.ss-favorite-form--card,
.product-card > .ss-favorite-button--card {
  position: absolute;
  right: 0.85rem;
  top: 0.85rem;
  z-index: 5;
}

.ss-favorite-button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--ss-line);
  border-radius: 0;
  color: var(--ss-green);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--ss-sans);
  justify-content: center;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.ss-favorite-button:hover,
.ss-favorite-button:focus-visible {
  background: var(--ss-green);
  border-color: var(--ss-green);
  color: var(--ss-paper);
}

.ss-favorite-button:disabled,
.ss-favorite-button[aria-busy="true"] {
  cursor: wait;
  opacity: 0.62;
}

.ss-favorite-icon {
  fill: transparent;
  height: 1.15rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
  transition: fill 180ms ease;
  width: 1.15rem;
}

.ss-favorite-button.is-favorite .ss-favorite-icon,
.ss-favorite-button[aria-pressed="true"] .ss-favorite-icon {
  fill: currentColor;
}

.ss-favorite-button--card {
  background: transparent;
  border-color: transparent;
  height: 2.65rem;
  padding: 0;
  width: 2.65rem;
}

.product-card .ss-favorite-button--card:hover,
.product-card .ss-favorite-button--card:focus-visible {
  background: transparent;
  border-color: transparent;
  color: var(--ss-ink);
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.ss-favorite-button--card .ss-favorite-button__label {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  white-space: nowrap;
  width: 1px;
}

.ss-single-favorite {
  border-bottom: 1px solid var(--ss-line);
  padding-bottom: 1.5rem;
}

.ss-favorite-button--single {
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.75rem 1rem;
}

.ss-favorite-button--single .ss-favorite-button__label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-grid.ss-favorites-grid {
  gap: 3.5rem 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.5rem;
}

.ss-favorites-grid .product-card {
  grid-column: auto;
}

.ss-account-favorites__empty {
  background: var(--ss-stone);
  margin-top: 2.5rem;
  padding: clamp(2rem, 5vw, 4rem);
}

@media (max-width: 782px) {
  .product-grid.ss-favorites-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .product-grid.ss-favorites-grid {
    grid-template-columns: 1fr;
  }

  .ss-favorite-button--single {
    width: 100%;
  }
}

.single-product .ss-single-favorite {
  border: 0;
  margin-top: 0.75rem;
  padding: 0;
}

.single-product .ss-favorite-form--single,
.single-product .ss-favorite-button--single {
  width: 100%;
}

.single-product .ss-favorite-button--single {
  min-height: 3.4rem;
}

.product-card .ss-favorite-button--card,
.product-card .ss-favorite-button--card:hover {
  background: transparent;
  border-color: transparent;
}
