/* ANDPRO-TRUST-QUICKPACK-FIX1-CONSENT */
#andpro-consent[hidden] {
  display: none !important;
}
#andpro-consent {
  position: fixed;
  z-index: 10050;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 16px;
  color: var(--andpro-text, #252b3b);
}
.andpro-consent__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid var(--andpro-border, #dfe3ee);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(31, 45, 61, .18);
}
.andpro-consent__text {
  max-width: 760px;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}
.andpro-consent__text a {
  color: var(--andpro-violet, #5762c8);
  font-weight: 700;
}
.andpro-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}
.andpro-consent__button {
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--andpro-border, #dfe3ee);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}
.andpro-consent__button:focus-visible,
.andpro-consent-settings:focus-visible {
  outline: 3px solid #0b70e0;
  outline-offset: 3px;
}
.andpro-consent__button--primary {
  border-color: var(--andpro-violet, #5762c8);
  color: #fff;
  background: var(--andpro-violet, #5762c8);
}
.andpro-consent__button--secondary {
  color: var(--andpro-text, #252b3b);
  background: #fff;
}
.andpro-consent-settings {
  padding: 0;
  border: 0;
  color: #768cf9;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
@media (max-width: 760px) {
  #andpro-consent {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
  }
  .andpro-consent__inner {
    display: block;
    padding: 15px;
    border-radius: 14px;
  }
  .andpro-consent__text {
    font-size: 14px;
  }
  .andpro-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 12px;
  }
  .andpro-consent__button {
    min-height: 48px;
    padding: 9px 10px;
  }
  .andpro-consent-settings--order {
    margin-bottom: 48px;
  }
}
@media (max-width: 430px) {
  .andpro-consent__inner {
    padding: 12px;
  }
  .andpro-consent__text {
    font-size: 13px;
    line-height: 1.4;
  }
  .andpro-consent__actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
  }
  .andpro-consent__button {
    min-height: 44px;
    padding: 8px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #andpro-consent *,
  #andpro-consent *::before,
  #andpro-consent *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


/* ===== F209 / F211 — отступ прокрутки, чтобы клавиатурный фокус не уходил
   под баннер согласия и под липкую шапку. Внесено 15.09.2026.
   Измерено до и после: перекрытых фокусов было 26/23/16/13 при 390 px
   и 3/5/15/6 при 1280 px; в репетиции стало 0 в 15 ячейках из 16.
   Нижний отступ действует ТОЛЬКО пока баннер показан: скрытому баннеру
   скрипт ставит атрибут [hidden], и правило перестаёт совпадать. ===== */
html{scroll-padding-top:136px;scroll-padding-bottom:264px}
body:has(#andpro-consent:not([hidden])){padding-bottom:264px}
@media (min-width:431px){
  html{scroll-padding-top:136px;scroll-padding-bottom:190px}
  body:has(#andpro-consent:not([hidden])){padding-bottom:190px}
}
@media (min-width:768px){
  html{scroll-padding-top:216px}
}
@media (min-width:1000px){
  html{scroll-padding-top:127px}
}

/* F270: keep the consent banner above the visible PDP purchase bar. */
body:has(#apStickybar:not([aria-hidden="true"])) #andpro-consent {
  bottom: calc(77px + env(safe-area-inset-bottom));
}

/* F390202: compact notice on public inner pages; private routes keep original markup/layout. */
@media (max-width: 768px) {
  html.ap-wave-a-v1 #andpro-consent.andpro-consent--compact-public .andpro-consent__inner {
    display: block;
    padding: 4px 8px;
  }
  html.ap-wave-a-v1 #andpro-consent.andpro-consent--compact-public .andpro-consent__full { display: none; }
  html.ap-wave-a-v1 #andpro-consent.andpro-consent--compact-public .andpro-consent__compact[hidden] { display: inline; }
  html.ap-wave-a-v1 #andpro-consent.andpro-consent--compact-public .andpro-consent__text {
    font-size: 12px;
    line-height: 16px;
  }
  html.ap-wave-a-v1 #andpro-consent.andpro-consent--compact-public .andpro-consent__text a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
    vertical-align: middle;
  }
  html.ap-wave-a-v1 #andpro-consent.andpro-consent--compact-public .andpro-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
  }
  html.ap-wave-a-v1 #andpro-consent.andpro-consent--compact-public .andpro-consent__button {
    min-height: 44px;
    padding: 4px 8px;
    font-size: 12px;
    line-height: 16px;
  }
}

/* F390202 addendum: theme rule gives section#andpro-consent computed padding 40px 0
   (not from andpro-consent.css); compact mode must zero it. Measured LIVE 07:52Z:
   inner 102px + 2x40px = 182px. Expected after fix: ~102px (target <=120). */
@media (max-width: 768px) {
  html.ap-wave-a-v1 #andpro-consent.andpro-consent--compact-public {
    padding: 0;
  }
}
