/* Calls to action, shared by the home cards and the product pages */

.store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.store-badge:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.store-badge img {
  height: 52px;
  width: auto;
}

.store-badge--small img {
  height: 44px;
}

/* Mozilla's badge is nearly square-cornered; clip it to the App Store badge's rounding (~22% of height) */
.store-badge--addon {
  overflow: hidden;
  border-radius: 12px;
}

.store-badge--addon.store-badge--small {
  border-radius: 10px;
}

/* styled after the App Store badge it sits next to: black, hairline border */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 52px;
  padding: 0 1.25rem;
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  color: white;
  background: black;
  box-shadow: inset 0 0 0 1px #a6a6a6;
  transition: transform 200ms ease, opacity 200ms ease, background-color 200ms ease;
}

.button:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.button--small {
  height: 44px;
  padding: 0 1rem;
  border-radius: 10px;
  font-size: 0.9375rem;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.button--ghost:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.14);
}

.button__icon {
  flex: none;
}
