.provider-card {
  position: relative;
}

.favorite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  min-width: 0;
  border: 1px solid rgba(196, 154, 69, 0.28);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  color: #111111;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  line-height: 0;
  outline: none;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  vertical-align: middle;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.favorite-button:hover,
.favorite-button:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.12);
  color: var(--gold-dark);
}

.favorite-button:active {
  transform: translateY(1px);
}

.favorite-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.favorite-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  line-height: 0;
  overflow: visible;
  pointer-events: none;
}

.favorite-heart-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.favorite-button.is-favorite {
  border-color: rgba(196, 154, 69, 0.62);
  background: #111111;
  color: #ffffff;
}

.favorite-button.is-favorite:hover,
.favorite-button.is-favorite:focus-visible {
  border-color: var(--gold);
  background: #111111;
  color: #ffffff;
}

.favorite-card-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  backdrop-filter: blur(14px);
}

.favorite-profile-button {
  width: 52px;
  min-width: 52px;
  height: 52px;
  min-height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
}

.favorite-profile-button .favorite-heart {
  width: 30px;
  height: 30px;
}

.favorite-profile-button [data-favorite-label] {
  display: none;
}

.profile-intro .favorite-profile-button {
  flex: 0 0 auto;
}

.favorite-notice {
  position: fixed;
  right: clamp(16px, 4vw, 34px);
  bottom: clamp(16px, 4vw, 34px);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(360px, calc(100vw - 32px));
  border: 1px solid rgba(196, 154, 69, 0.3);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 22px 70px rgba(17, 17, 17, 0.14);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  padding: 12px 14px;
}

.favorite-notice[hidden] {
  display: none;
}

.favorite-notice a {
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--gold-dark);
  font-size: 0.84rem;
  padding: 7px 10px;
}

.account-favorites-list {
  display: grid;
  gap: 12px;
}

.account-favorite-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(196, 154, 69, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(255, 255, 255, 0.98)),
    #ffffff;
  padding: 15px;
}

.account-favorite-main {
  display: grid;
  gap: 6px;
}

.account-favorite-main h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.15;
}

.account-favorite-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.account-favorite-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.account-favorite-actions .small-button {
  border: 1px solid var(--gold-line);
}

.account-favorite-remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 850;
  padding: 8px 4px;
}

.account-favorite-remove:hover,
.account-favorite-remove:focus-visible {
  color: var(--gold-dark);
}

@media (max-width: 720px) {
  .favorite-card-button {
    top: 12px;
    right: 12px;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .favorite-card-button .favorite-heart {
    width: 25px;
    height: 25px;
  }

  .profile-intro .favorite-profile-button {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    padding: 0;
  }

  .profile-intro .favorite-profile-button .favorite-heart {
    width: 29px;
    height: 29px;
  }

  .favorite-notice {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 380px) {
  .profile-intro .favorite-profile-button {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    flex-basis: 46px;
  }

  .profile-intro .favorite-profile-button .favorite-heart {
    width: 27px;
    height: 27px;
  }
}
