.favorites-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid var(--avs-border-strong, #c8d9e8);
  border-radius: 12px;
  color: #12364e;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
  min-height: 44px;
  padding: 8px 10px;
  position: relative;
  text-decoration: none;
}
.favorites-header-heart { font-size: 23px; line-height: 1; }
.favorites-count {
  background: #eaf3f9;
  border-radius: 999px;
  font-size: 11px;
  line-height: 20px;
  min-width: 20px;
  padding: 0 4px;
  text-align: center;
}
.favorites-toggle:hover { border-color: #149bd7; background: #f5faff; }
.favorites-toggle:focus-visible,
.favorites-drawer :is(button, a):focus-visible { outline: 3px solid #149bd7; outline-offset: 3px; }
.product-card-wishlist, .wishlist-toggle { transition: color 180ms ease, background 180ms ease; }
.product-card-wishlist.active, .wishlist-toggle.active { color: #075f9d; background: #e5f4fc; }
body.favorites-open { overflow: hidden; }
.favorites-drawer {
  background: #fff;
  border: 0;
  border-left: 1px solid #dce8f2;
  box-shadow: -16px 0 60px #09283d26;
  box-sizing: border-box;
  color: #0f2232;
  height: 100dvh;
  inset: 0 0 0 auto;
  margin: 0;
  max-height: 100dvh;
  max-width: 100vw;
  overflow: hidden;
  padding: 0;
  width: 460px;
}
.favorites-drawer[open] { display: flex; flex-direction: column; }
.favorites-drawer::backdrop { background: #061b2d80; }
.favorites-heading { align-items: center; border-bottom: 1px solid #e4edf4; display: grid; flex-shrink: 0; gap: 8px; grid-template-columns: minmax(0, 1fr) auto 44px; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 16px 16px; }
.favorites-heading .eyebrow { color: #075f9d; font-size: 9px; letter-spacing: .12em; line-height: 1.4; margin: 0 0 4px; }
.favorites-heading h2 { display: flex; flex-wrap: wrap; gap: 5px; font-size: 21px; letter-spacing: -.025em; line-height: 1.3; margin: 0; }
.favorites-heading [data-favorites-summary] { color: #586879; font-size: inherit; font-weight: 500; }
.favorites-close { align-items: center; background: #f0f6fa; border: 1px solid #dce8f2; border-radius: 50%; color: #12364e; cursor: pointer; display: flex; font-size: 27px; justify-content: center; line-height: 1; min-height: 44px; padding: 0; width: 44px; }
.favorites-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.favorite-item { border-bottom: 1px solid #e4edf4; display: grid; gap: 12px; grid-template-columns: 92px minmax(0, 1fr); padding: 14px 0; position: relative; }
.favorite-image { align-self: start; background: #f5f8fb; border: 1px solid #e4edf4; border-radius: 10px; cursor: pointer; overflow: hidden; padding: 2px; width: 100%; }
.favorite-image img { display: block; height: 112px; object-fit: contain; width: 100%; }
.favorite-info { min-width: 0; }
.favorite-info h3 { line-height: 1.35; margin: 0 32px 4px 0; }
.favorite-info h3 button { background: none; border: 0; color: #0f2232; cursor: pointer; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; font: inherit; font-size: 13px; font-weight: 750; line-height: 1.35; padding: 0; text-align: left; }
.favorite-price { color: #0b324e; font-size: 16px; font-weight: 800; line-height: 1.3; margin: 0 0 3px; }
.favorite-stock { color: #237354; font-size: 11px; line-height: 1.4; margin: 0 0 6px; }
.favorite-stock.unavailable { color: #805e37; }
.favorite-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.favorite-actions .btn { box-sizing: border-box; border-radius: 8px; font-size: 11px; line-height: 1.2; min-height: 44px; min-width: 48px; padding: 8px 11px; white-space: normal; }
.favorite-actions .btn:disabled { cursor: not-allowed; opacity: .5; }
.favorites-remove { background: none; border: 0; color: #526779; cursor: pointer; font: inherit; font-size: 11px; min-height: 44px; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; }
.favorites-remove-icon { align-items: center; background: transparent; border: 0; border-radius: 8px; color: #617487; cursor: pointer; display: flex; height: 44px; justify-content: center; padding: 0; position: absolute; right: -6px; top: 4px; width: 44px; }
.favorites-remove-icon:hover { background: #f0f6fa; color: #0b324e; }
.favorite-item-unavailable { grid-template-columns: 1fr; padding-right: 38px; }
.favorite-item-unavailable h3 { font-size: 14px; margin: 0 0 4px; }
.favorite-item-unavailable p { color: #586879; font-size: 13px; margin: 0; }
.favorites-empty { align-items: center; display: flex; flex-direction: column; padding: 28px 8px; text-align: center; }
.favorites-empty > span { background: #eef7fd; border-radius: 50%; color: #075f9d; font-size: 32px; height: 56px; line-height: 56px; margin-bottom: 14px; width: 56px; }
.favorites-empty h3 { font-size: 20px; margin: 0 0 8px; }
.favorites-empty p { color: #586879; font-size: 13px; line-height: 1.5; margin: 0 0 16px; max-width: 270px; }
.favorites-empty .btn { min-height: 44px; }
.favorites-loading { color: #586879; padding: 20px 0; }
.favorites-confirm { background: #f0f7fc; border-bottom: 1px solid #dce8f2; flex-shrink: 0; padding: 12px 16px; }
.favorites-confirm p { font-size: 13px; margin: 0 0 8px; }
.favorites-confirm .btn { font-size: 11px; min-height: 44px; margin: 0 6px 0 0; padding: 8px 10px; }
.favorites-notice { align-items: center; background: #eef8f3; border-bottom: 1px solid #dce8f2; color: #18563e; display: flex; flex-shrink: 0; font-size: 12px; gap: 8px; justify-content: space-between; padding: 4px 16px; }
.favorites-notice > span { padding-block: 8px; }
.favorites-notice button { background: none; border: 0; color: #075f9d; cursor: pointer; font: inherit; font-weight: 700; min-height: 44px; padding: 6px; white-space: nowrap; }
.favorites-drawer [hidden] { display: none !important; }
@media (max-width: 1200px) { .favorites-label { display: none; } }
@media (max-width: 768px) {
  .favorites-toggle { height: 42px; justify-content: center; min-height: 42px; min-width: 42px; padding: 0; width: 42px; }
  .favorites-count { font-size: 10px; line-height: 18px; min-width: 18px; position: absolute; right: -3px; top: -6px; }
}
@media (max-width: 480px) {
  .favorites-toggle { height: 40px; min-height: 40px; min-width: 40px; width: 40px; }
  .favorites-drawer { width: 100%; }
  .favorites-heading h2 { font-size: 19px; }
  .favorite-item { grid-template-columns: 80px minmax(0, 1fr); padding-block: 12px; }
  .favorite-image img { height: 108px; }
}
@media (max-width: 350px) {
  .favorites-heading { padding-inline: max(12px, env(safe-area-inset-left)); }
  .favorites-heading h2 { font-size: 18px; }
  .favorites-list { padding-inline: max(12px, env(safe-area-inset-left)); }
  .favorite-actions .btn { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) { .product-card-wishlist, .wishlist-toggle { transition: none; } }
