/* ADWIN Product Helper. Namespaced to avoid collisions with SellAuth forms and modals. */
#app ~ #adwin-product-helper,
#adwin-product-helper {
  --aph-pink: var(--cl-accent, #eda3a9);
  --aph-pink-rgb: var(--cl-accent-rgb, 237,163,169);
  position: relative;
  z-index: 12060;
  font-family: inherit;
  box-sizing: border-box;
}
#adwin-product-helper *, #adwin-product-helper *::before, #adwin-product-helper *::after { box-sizing: border-box; }
#adwin-product-helper[data-disabled="true"] { display: none !important; visibility: hidden !important; pointer-events: none !important; }
#adwin-product-helper [hidden] { display: none !important; }
#adwin-product-helper button, #adwin-product-helper input, #adwin-product-helper a { font: inherit; }
#adwin-product-helper button { cursor: pointer; }
#adwin-product-helper .aph-toast {
  position: fixed; right: 22px; bottom: 23px; z-index: 12061;
  width: min(366px, calc(100vw - 32px)); min-height: 82px;
  display: flex; align-items: center; gap: 11px; padding: 12px;
  background: radial-gradient(360px 120px at 0% 0%,rgba(var(--aph-pink-rgb),.13),transparent 65%),#191419;
  border: 1px solid rgba(var(--aph-pink-rgb),.34); border-radius: 16px;
  box-shadow: 0 20px 66px rgba(0,0,0,.65),inset 0 1px rgba(255,255,255,.035);
  opacity: 0; transform: translateY(18px) scale(.97);
  transition: opacity 320ms ease, transform 360ms cubic-bezier(.2,.78,.22,1);
}
#adwin-product-helper .aph-toast.is-visible { opacity: 1; transform: translateY(0) scale(1); }
#adwin-product-helper .aph-toast__symbol,
#adwin-product-helper .aph-launcher {
  flex-shrink: 0; display: grid; place-items: center;
  width: 45px; height: 45px; border-radius: 13px;
  color: var(--aph-pink);
  background: rgba(var(--aph-pink-rgb),.11);border: 1px solid rgba(var(--aph-pink-rgb),.22);
}
#adwin-product-helper .aph-toast__symbol { font-size: 17px; }
#adwin-product-helper .aph-toast__action { background: transparent; border: 0; color: #f7eef2; min-width: 0; padding: 4px 0; flex: 1; text-align: left; }
#adwin-product-helper .aph-toast__action strong { display:block;font-size:12px;font-weight:750;line-height:1.5; }
#adwin-product-helper .aph-toast__action span {display:block;margin-top:3px;font-size:10px;line-height:1.4;color:#a99ba6;}
#adwin-product-helper .aph-toast__dismiss { align-self:flex-start; width:24px;height:24px; border:0;background:transparent;color:#998991; border-radius:7px; }
#adwin-product-helper .aph-toast__dismiss:hover { color:white;background:rgba(255,255,255,.08); }
#adwin-product-helper .aph-launcher {
  position: fixed; right:22px;bottom:22px;z-index:12060; width:48px;height:48px;
  opacity:0;transform:translateY(8px) scale(.94);
  background: #22191f; box-shadow: 0 13px 32px rgba(0,0,0,.4);
  transition: opacity 220ms ease,transform 220ms ease,border-color 220ms ease;
}
#adwin-product-helper .aph-launcher.is-visible {opacity:1;transform:translateY(0) scale(1);}
#adwin-product-helper .aph-launcher:hover {border-color:var(--aph-pink);transform:translateY(-2px);}
#adwin-product-helper .aph-dialog {
  position:fixed !important; inset:0 !important; margin:auto !important;
  width:min(660px,calc(100vw - 30px)) !important;
  max-width:660px !important;max-height:min(740px,calc(100dvh - 34px)) !important;
  padding:0 !important; overflow:hidden !important; border-radius:19px !important;
  background:linear-gradient(180deg,#1c151c 0%,#130f15 100%) !important;
  border:1px solid rgba(var(--aph-pink-rgb),.37) !important;
  color:#f8f1f4 !important;
  box-shadow:0 38px 100px rgba(0,0,0,.78),0 1px rgba(255,255,255,.05) inset !important;
  animation: aph-dialog-in 290ms cubic-bezier(.2,.75,.23,1) both;
}
#adwin-product-helper .aph-dialog::backdrop {background:rgba(6,4,7,.79);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);}
@keyframes aph-dialog-in {from{opacity:0;transform:translateY(15px) scale(.97);}to{opacity:1;transform:translateY(0) scale(1);}}
#adwin-product-helper .aph-shell { display:flex;flex-direction:column;max-height:min(740px,calc(100dvh - 34px));min-height:min(450px,calc(100dvh - 34px));}
#adwin-product-helper .aph-head {flex-shrink:0;display:flex;gap:14px;align-items:start;padding:24px 26px 16px;}
#adwin-product-helper .aph-head__mark {width:48px;height:48px;border-radius:14px;flex-shrink:0;display:grid;place-items:center;
  color:var(--aph-pink);font-size:19px;background:rgba(var(--aph-pink-rgb),.11);border:1px solid rgba(var(--aph-pink-rgb),.26);}
#adwin-product-helper .aph-head__copy {flex:1;min-width:0;}
#adwin-product-helper .aph-overline {color:var(--aph-pink);font-size:9px;font-weight:900;letter-spacing:.15em;display:block;margin-bottom:6px;}
#adwin-product-helper .aph-head h2 {font-size:23px !important;line-height:1.17!important;margin:0!important;font-weight:800!important;color:#fff3f5!important;letter-spacing:-.03em!important;}
#adwin-product-helper .aph-head p {font-size:11px;line-height:1.5;color:#a89aa4;margin:7px 0 0;}
#adwin-product-helper .aph-close {flex-shrink:0;width:32px;height:32px;color:#d3c3ca;border:1px solid rgba(255,255,255,.11);border-radius:9px;background:rgba(255,255,255,.045);transition:background 160ms,color 160ms;}
#adwin-product-helper .aph-close:hover {background:rgba(var(--aph-pink-rgb),.12);color:#fff;}
#adwin-product-helper .aph-progress {display:flex;align-items:center;padding:0 28px 18px;flex-shrink:0;}
#adwin-product-helper .aph-progress__dot {width:8px;height:8px;border-radius:50%;background:#514249;border:1px solid #665158;flex-shrink:0;transition:all 250ms ease;}
#adwin-product-helper .aph-progress__dot.is-active{background:var(--aph-pink);box-shadow:0 0 0 4px rgba(var(--aph-pink-rgb),.13);border-color:var(--aph-pink);}
#adwin-product-helper .aph-progress__dot.is-done{background:var(--aph-pink);border-color:var(--aph-pink);}
#adwin-product-helper .aph-progress__line {flex:1;height:1px;background:#45353c;margin:0 8px;}
#adwin-product-helper .aph-content{flex:1;min-height:0;overflow-y:auto;padding:21px 26px 22px;border-top:1px solid rgba(255,255,255,.065);scrollbar-color:#5d4855 transparent;scrollbar-width:thin;animation:aph-content-in 220ms ease;}
@keyframes aph-content-in {from{opacity:.4;}to{opacity:1;}}
#adwin-product-helper .aph-stage-title{font-size:17px!important;font-weight:800!important;line-height:1.3!important;margin:0 0 4px!important;color:#fff1f3!important;}
#adwin-product-helper .aph-stage-desc{font-size:11px;line-height:1.55;color:#a899a5;margin:0 0 18px;}
#adwin-product-helper .aph-search {display:block;outline:0;width:100%;min-height:43px;padding:10px 13px;color:#f8eaf0;background:#120e13;border:1px solid #45343e;border-radius:10px;font-size:12px;transition:border-color 190ms,box-shadow 190ms;}
#adwin-product-helper .aph-search:focus{border-color:var(--aph-pink);box-shadow:0 0 0 3px rgba(var(--aph-pink-rgb),.11);}
#adwin-product-helper .aph-game-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:13px;}
#adwin-product-helper .aph-options{display:grid;grid-template-columns:1fr;gap:9px;}
#adwin-product-helper .aph-options--two{grid-template-columns:repeat(2,minmax(0,1fr));}
#adwin-product-helper .aph-choice{position:relative;min-height:48px;width:100%;border:1px solid #3e303a;background:#231c24;color:#ddd0db;border-radius:11px;padding:11px 13px;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;transition:background-color 190ms,border-color 190ms,transform 190ms,color 190ms;}
#adwin-product-helper .aph-game{min-height:44px;}
#adwin-product-helper .aph-choice__label{font-size:12px;font-weight:700;line-height:1.4;}
#adwin-product-helper .aph-choice__check{width:20px;height:20px;flex-shrink:0;border-radius:7px;display:grid;place-items:center;color:transparent;border:1px solid rgba(255,255,255,.1);font-size:10px;transition:all 180ms;}
#adwin-product-helper .aph-choice:hover {background:#30232b;border-color:rgba(var(--aph-pink-rgb),.5);transform:translateY(-1px);color:#fff;}
#adwin-product-helper .aph-choice.is-selected{background:rgba(var(--aph-pink-rgb),.14);border-color:rgba(var(--aph-pink-rgb),.78);color:#fff4f6;}
#adwin-product-helper .aph-choice.is-selected .aph-choice__check{color:#261017;background:var(--aph-pink);border-color:var(--aph-pink);}
#adwin-product-helper .aph-field-label{margin:15px 0 9px;font-size:11px;font-weight:800;color:#e9d6e1;}
#adwin-product-helper .aph-plan{display:grid;gap:4px;grid-template-columns:1fr auto;align-items:center;margin-bottom:15px;padding:13px 15px;border:1px solid rgba(var(--aph-pink-rgb),.27);background:rgba(var(--aph-pink-rgb),.07);border-radius:11px;}
#adwin-product-helper .aph-plan__label{color:#c9b8c2;font-size:11px;font-weight:700;}
#adwin-product-helper .aph-plan__value{color:#fff1f4;font-size:15px;}
#adwin-product-helper .aph-plan__note{grid-column:1/-1;font-size:10px;color:#a898a3;line-height:1.4;}
#adwin-product-helper .aph-results{display:grid;gap:10px;}
#adwin-product-helper .aph-result{border:1px solid #45323c;background:#211a22;border-radius:13px;padding:16px;}
#adwin-product-helper .aph-result--top{border-color:rgba(var(--aph-pink-rgb),.6);background:linear-gradient(115deg,rgba(var(--aph-pink-rgb),.12),#231b23 60%);}
#adwin-product-helper .aph-result__header{display:flex;justify-content:space-between;gap:8px;align-items:start;}
#adwin-product-helper .aph-result__identity{display:grid;gap:2px;}
#adwin-product-helper .aph-result__name{font-size:14px;color:#fff1f5;}
#adwin-product-helper .aph-result__brand{font-size:10px;color:#a89aaa;}
#adwin-product-helper .aph-result__tag{white-space:nowrap;font-size:9px;font-weight:800;color:#c7b4bd;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);padding:5px 8px;border-radius:7px;}
#adwin-product-helper .aph-result__tag.is-featured{background:rgba(var(--aph-pink-rgb),.15);color:var(--aph-pink);border-color:rgba(var(--aph-pink-rgb),.35);}
#adwin-product-helper .aph-result__reason{margin:11px 0 7px;font-size:11px;line-height:1.6;color:#d7c7d0;}
#adwin-product-helper .aph-result__feature-note{margin:0 0 12px;font-size:10px;color:#a899a2;line-height:1.5;}
#adwin-product-helper .aph-result__link {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:9px 12px;text-decoration:none!important;border-radius:8px;border:1px solid rgba(var(--aph-pink-rgb),.23);background:rgba(var(--aph-pink-rgb),.1);color:var(--aph-pink)!important;font-size:11px;font-weight:800;transition:filter 160ms,border-color 160ms,transform 160ms;}
#adwin-product-helper .aph-result__link:hover{filter:brightness(1.14);border-color:rgba(var(--aph-pink-rgb),.65);transform:translateY(-1px);}
#adwin-product-helper .aph-warning {display:flex;gap:10px;align-items:start;margin-top:14px;font-size:10px;color:#bbabb5;line-height:1.6;padding:11px 12px;background:#1a151b;border:1px solid #392d37;border-radius:10px;}
#adwin-product-helper .aph-warning i{color:#e1b588;margin-top:2px;}
#adwin-product-helper .aph-empty{text-align:center;padding:28px 18px;color:#cbb8c3;border:1px dashed #5b424e;border-radius:12px;font-size:12px;}
#adwin-product-helper .aph-empty i{color:var(--aph-pink);font-size:20px;}
#adwin-product-helper .aph-catalog-link{display:inline-block;margin-top:11px;color:var(--aph-pink)!important;font-size:11px;text-decoration:none!important;}
#adwin-product-helper .aph-catalog-link:hover{text-decoration:underline!important;}
#adwin-product-helper .aph-footer{flex-shrink:0;display:flex;align-items:center;gap:10px;padding:14px 26px;border-top:1px solid rgba(255,255,255,.065);}
#adwin-product-helper .aph-footer__hint {margin-left:auto;font-size:10px;letter-spacing:.08em;color:#9f8f9c;}
#adwin-product-helper .aph-secondary,#adwin-product-helper .aph-primary {display:inline-flex;justify-content:center;align-items:center;gap:10px;min-height:41px;border-radius:10px;padding:0 16px;font-size:11px;font-weight:800;border:1px solid transparent;transition:transform 160ms ease,background-color 160ms ease,filter 160ms ease;}
#adwin-product-helper .aph-secondary{background:#29212a;color:#e2d3dd;border-color:#4a3942;}
#adwin-product-helper .aph-secondary:hover{background:#3a2934;}
#adwin-product-helper .aph-primary {color:#2b0d15;background:var(--aph-pink);border-color:var(--aph-pink);min-width:141px;}
#adwin-product-helper .aph-primary:hover:not(:disabled){filter:brightness(1.08);transform:translateY(-1px);}
#adwin-product-helper .aph-primary:disabled{opacity:.43;cursor:not-allowed;transform:none;}
#adwin-product-helper :focus-visible{outline:2px solid var(--aph-pink)!important;outline-offset:2px;}
@media(max-width:575.98px){
  #adwin-product-helper .aph-toast{right:12px;bottom:14px;width:calc(100vw - 24px);}
  #adwin-product-helper .aph-launcher{right:15px;bottom:16px;}
  #adwin-product-helper .aph-dialog{width:calc(100vw - 20px)!important;max-height:calc(100dvh - 22px)!important;border-radius:16px!important;}
  #adwin-product-helper .aph-shell{max-height:calc(100dvh - 22px);min-height:min(430px,calc(100dvh - 22px));}
  #adwin-product-helper .aph-head{padding:18px 16px 13px;gap:10px;}
  #adwin-product-helper .aph-head__mark{width:42px;height:42px;border-radius:12px;font-size:16px;}
  #adwin-product-helper .aph-head h2{font-size:20px!important;}
  #adwin-product-helper .aph-progress{padding:0 18px 15px;}
  #adwin-product-helper .aph-content{padding:18px 16px;}
  #adwin-product-helper .aph-game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  #adwin-product-helper .aph-choice{padding:10px;min-height:48px;}
  #adwin-product-helper .aph-choice__label{font-size:11px;}
  #adwin-product-helper .aph-footer{padding:12px 16px;}
  #adwin-product-helper .aph-result__header{flex-wrap:wrap;}
}
@media(max-width:380px){#adwin-product-helper .aph-game-grid{grid-template-columns:1fr;}#adwin-product-helper .aph-options--two{grid-template-columns:1fr;}}
@media(prefers-reduced-motion:reduce){#adwin-product-helper *,#adwin-product-helper *::before,#adwin-product-helper *::after{animation:none!important;transition-duration:0.01ms!important;}}


/* Product Helper modal isolation: independent overlay, no native dialog dismissal. */
#adwin-product-helper .aph-backdrop {
  position: fixed;
  inset: 0;
  z-index: 12062;
  background: rgba(6,4,7,.79);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease, visibility 240ms ease;
}
#adwin-product-helper .aph-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#adwin-product-helper .aph-dialog {
  z-index: 12063 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(15px) scale(.97);
  animation: none !important;
  transition: opacity 240ms ease, transform 280ms cubic-bezier(.2,.75,.23,1), visibility 240ms ease;
}
#adwin-product-helper .aph-dialog.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
@media(prefers-reduced-motion:reduce) {
  #adwin-product-helper .aph-dialog,
  #adwin-product-helper .aph-backdrop {transition: none !important;}
}

/* Compact product cards: same media, border and accent treatment as the catalog. */
#adwin-product-helper .aph-stage-title {margin-bottom:14px !important;}
#adwin-product-helper .aph-stage-title:has(+ .aph-stage-desc) {margin-bottom:4px !important;}
#adwin-product-helper .aph-result {display:grid;grid-template-columns:156px minmax(0,1fr);padding:0;overflow:hidden;}
#adwin-product-helper .aph-result:not(:has(.aph-result__media)) {grid-template-columns:minmax(0,1fr);}
#adwin-product-helper .aph-result__media {display:block;min-height:156px;background:#171219;overflow:hidden;}
#adwin-product-helper .aph-result__media img {display:block;width:100%;height:100%;min-height:156px;object-fit:cover;}
#adwin-product-helper .aph-result__body {padding:17px;min-width:0;}
#adwin-product-helper .aph-result__tag {display:inline-block;white-space:normal;}
#adwin-product-helper .aph-result__name {display:block;font-size:20px !important;line-height:1.25 !important;margin:11px 0 0 !important;font-weight:800 !important;color:#fff1f5 !important;overflow-wrap:anywhere;}
#adwin-product-helper .aph-result__reason {margin:8px 0 13px;font-size:11px;line-height:1.5;}
#adwin-product-helper .aph-result__bottom {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:14px;}
#adwin-product-helper .aph-result__price {display:grid;gap:3px;}
#adwin-product-helper .aph-result__price small {font-size:10px;color:#a899a2;}
#adwin-product-helper .aph-result__price strong {font-size:18px;color:#fff1f5;}
#adwin-product-helper .aph-result__link {margin-left:auto;}
#adwin-product-helper .aph-alternatives-title {font-size:12px !important;color:#c7b4bd !important;margin:8px 0 0 !important;}
#adwin-product-helper .aph-check {font-size:10px;line-height:1.55;color:#a899a2;margin:13px 0 0;}
#adwin-product-helper .aph-catalog-link {display:block;width:fit-content;}
@media(max-width:560px) {
  #adwin-product-helper .aph-result {grid-template-columns:100px minmax(0,1fr);}
  #adwin-product-helper .aph-result__media,#adwin-product-helper .aph-result__media img {min-height:140px;}
  #adwin-product-helper .aph-result__body {padding:13px;}
  #adwin-product-helper .aph-result__name {font-size:18px !important;}
}
@media(max-width:380px) {
  #adwin-product-helper .aph-result {grid-template-columns:minmax(0,1fr);}
  #adwin-product-helper .aph-result__media,#adwin-product-helper .aph-result__media img {height:130px;min-height:0;}
}

/* Let the isolated div dialog fit its shell instead of leaving empty space. */
#adwin-product-helper .aph-dialog {height:fit-content !important;}

#adwin-product-helper .aph-target {display:grid;grid-template-columns:1fr auto;gap:6px 12px;margin-bottom:16px;padding:12px 14px;border:1px solid rgba(var(--aph-pink-rgb),.27);background:rgba(var(--aph-pink-rgb),.07);border-radius:11px;}
#adwin-product-helper .aph-target__label {font-size:11px;color:#c9b8c2;align-self:center;}
#adwin-product-helper .aph-target__value {font-size:17px;color:#fff1f4;}
#adwin-product-helper .aph-target__reason {grid-column:1/-1;margin:0;font-size:11px;line-height:1.5;color:#c9b8c2;}
#adwin-product-helper .aph-result__plan {font-size:13px;font-weight:700;color:#fff1f4;margin:9px 0 0;}
#adwin-product-helper .aph-plan-mismatch {color:#d7c7d0;font-size:10px;}
#adwin-product-helper .aph-retry-plans {margin-top:12px;}

/* Match the site's current body font; override legacy Russo One text rules.
   Font Awesome icons keep their own font family. */
#adwin-product-helper,
#adwin-product-helper :where(h1,h2,h3,h4,h5,h6,p,a,button,input,select,textarea,label,li,summary,small,strong,span) {
  font-family: inherit !important;
}

/* Follow the site's refined typography, including spacing and text weights.
   The legacy editorial stylesheet otherwise forces 2px tracking on all text. */
#adwin-product-helper,
#adwin-product-helper :where(h1,h2,h3,h4,h5,h6,p,a,button,input,select,textarea,label,li,summary,small,strong,span,div,article,header,footer) {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
  letter-spacing: 0 !important;
}
#adwin-product-helper :where(p,input,small) {font-weight:400 !important;}
#adwin-product-helper :where(button,a),
#adwin-product-helper .aph-choice__label {font-weight:600 !important;}
#adwin-product-helper strong {font-weight:650 !important;}
#adwin-product-helper .aph-head h2 {font-weight:800 !important;letter-spacing:-.035em !important;}
#adwin-product-helper .aph-stage-title {font-weight:700 !important;letter-spacing:-.035em !important;}
#adwin-product-helper .aph-result__name {font-weight:750 !important;letter-spacing:-.037em !important;}
#adwin-product-helper .aph-overline {font-weight:600 !important;letter-spacing:.06em !important;}
#adwin-product-helper .aph-result__tag {font-weight:600 !important;}

/* v4.3: Product thumbnails follow the real image ratio. Do not stretch them
   vertically to the height of the result text, which created letterboxing. */
#adwin-product-helper .aph-result__media {
  height: fit-content !important;
  min-height: 0 !important;
  align-self: center !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  background-image: none !important;
}
#adwin-product-helper .aph-result__media img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  padding: 0 !important;
  border-radius: 10px !important;
}
@media (max-width: 380px) {
  #adwin-product-helper .aph-result__media {
    width: 100% !important;
    height: fit-content !important;
    max-height: none !important;
    align-self: start !important;
  }
  #adwin-product-helper .aph-result__media img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
  }
}
