.htp-favorite-controls [hidden], .htp-favorite-request [hidden], [data-favorite-swatch] [hidden] { display: none !important; }
.htp-favorite-active { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; min-height:56px; padding:5px 10px 5px 14px; border:1px solid #bae6fd; border-radius:12px; color:#0369a1; background:#f0f9ff; }
.htp-favorite-label { display:inline-flex; gap:6px; align-items:center; font-weight:600; font-size:14px; white-space:nowrap; }
.htp-favorite-label svg { fill:#0284c7; stroke:#0284c7; flex-shrink:0; }
.htp-favorite-stepper { display:flex; align-items:center; justify-content:flex-end; gap:2px; margin-left:auto; }
.htp-favorite-stepper button, .htp-favorite-selected-row button { display:inline-flex; align-items:center; justify-content:center; border-radius:8px; width:40px; min-height:40px; color:#0369a1; background:transparent; }
.htp-favorite-stepper button:hover, .htp-favorite-selected-row button:hover { background:#e0f2fe; }
.htp-favorite-stepper button:disabled { opacity:.4; cursor:not-allowed; }
.htp-favorite-stepper button:focus-visible, .htp-favorite-selected-row button:focus-visible { outline:2px solid #0284c7; outline-offset:2px; }
.htp-favorite-stepper [data-favorite-remove] { color:#64748b; border-left:1px solid #bae6fd; }
.htp-favorite-stepper [data-favorite-qty] { min-width:24px; text-align:center; font-size:15px; font-weight:600; font-variant-numeric:tabular-nums; }
.htp-favorite-color { margin:6px 0 0; font-size:12px; line-height:1.4; color:#64748b; }
.htp-favorite-compact .htp-favorite-active { padding:3px 7px; min-height:44px; gap:3px; }
.htp-favorite-compact .htp-favorite-label { font-size:12px; }
.htp-favorite-compact .htp-favorite-stepper button { width:32px; min-height:36px; }
.htp-favorite-selected { margin-top:10px; border-top:1px solid #e2e8f0; padding-top:8px; font-size:13px; color:#475569; }
.htp-favorite-selected > p { font-weight:600; margin-bottom:4px; }
.htp-favorite-selected-row { display:grid; grid-template-columns:12px minmax(0,1fr) auto 34px; gap:8px; align-items:center; min-height:36px; }
.htp-favorite-selected-row button { width:34px; min-height:34px; font-size:20px; }
.htp-favorite-dot { width:12px; height:12px; border:1px solid #cbd5e1; border-radius:50%; background:#e2e8f0; }
[data-favorite-swatch] { position:relative; }
.htp-favorite-swatch-count { position:absolute; right:-3px; top:-5px; z-index:2; display:flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 4px; border:1px solid white; border-radius:999px; background:#0284c7; color:white; font-size:10px; font-weight:700; line-height:1; pointer-events:none; }
.htp-favorite-request { margin-top:16px; }
.htp-favorite-request[hidden] { display:none !important; }
.htp-favorite-request label:not(.htp-favorite-consent) { display:block; font-size:13px; color:#475569; margin:12px 0 5px; font-weight:500; }
.htp-favorite-request input:not([type=checkbox]), .htp-favorite-request textarea { width:100%; border:1px solid #cbd5e1; border-radius:10px; padding:10px 12px; color:#334155; background:white; font-size:14px; }
.htp-favorite-request input:focus, .htp-favorite-request textarea:focus { outline:2px solid #7dd3fc; outline-offset:1px; }
.htp-favorite-consent { display:flex; align-items:flex-start; gap:8px; font-size:12px; color:#64748b; margin:14px 0; }
.htp-favorite-consent input { margin-top:2px; }
.htp-favorite-request button[type=submit]:disabled { opacity:.5; }

/* Кнопка раскрытия скрывается, пока пользователь заполняет запрос. */
[data-favorites-request-open][aria-expanded="true"] { display: none !important; }
/* После успешной отправки можно открыть новый запрос. */
[data-favorites-request-open][aria-expanded="true"]:has(+ .htp-favorite-request [data-form-success]:not([hidden])) { display: flex !important; }
