/* Неблокувальна смужка згоди. Стилі та логіка залишаються в модулі аналітики. */
#tf-analytics-consent { position: fixed; inset: auto 1rem calc(1rem + var(--tf-analytics-lift, 0px)); z-index: 10000; box-sizing: border-box; width: min(70rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem - var(--tf-analytics-lift, 0px)); margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; padding: 1rem 1.25rem; border: 1px solid #d8d8d8; background: #fff; color: #0f1412; box-shadow: 0 4px 24px rgb(0 0 0 / 14%); font: inherit; overflow: auto; }
#tf-analytics-consent[hidden] { display: none; }
/* Липка кнопка покупки на екрані — панель товару теми (compact) чи «Оформити замовлення» кошика WooCommerce
   (до 782 px): смужка стоїть над нею, а не закриває її (власник 2026-10-05). Підйом — висота панелі з її полів
   і кнопки (товар: 2.75rem + 2 × 0.75rem, кошик: 3.5rem + 2 × 0.75rem) із запасом на рамку, safe-area — як у панелей. */
body:has(.tf-sticky-buy:not([hidden])) #tf-analytics-consent { --tf-analytics-lift: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 782px) {
 body:has(.wc-block-cart__submit-container--sticky) #tf-analytics-consent { --tf-analytics-lift: calc(5.25rem + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: no-preference) {
 #tf-analytics-consent { transition: bottom .2s ease-out; }
}
.tf-analytics-copy { flex: 1 1 34rem; min-width: 0; }
#tf-analytics-consent h2 { margin: 0 0 .25rem; font: inherit; font-size: 1rem; font-weight: 700; }
#tf-analytics-consent p { margin: 0; font-size: .875rem; line-height: 1.45; }
#tf-analytics-consent .tf-analytics-policy { margin-top: .3rem; font-size: .75rem; color: #545955; }
.tf-analytics-policy a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.tf-analytics-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: .5rem; }
.tf-analytics-actions button { min-height: 44px; padding: .625rem 1rem; border: 1px solid #0f1412; background: #fff; color: #0f1412; cursor: pointer; font: inherit; font-size: .875rem; white-space: nowrap; }
.tf-analytics-actions [data-tf-analytics-choice="granted"] { background: #c52818; border-color: #c52818; color: #fff; font-weight: 700; }
.tf-analytics-actions [data-tf-analytics-choice="granted"]:hover { background: #a91f12; border-color: #a91f12; }
.tf-analytics-settings { text-align: center; padding: .5rem; }
[data-tf-analytics-settings] { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--tf-text, #0f1412); font: inherit; cursor: pointer; text-align: start; }
[data-tf-analytics-settings]:hover { text-decoration: underline; text-underline-offset: .2em; }
[data-tf-analytics-settings][hidden], .tf-analytics-settings:has([hidden]) { display: none; }
.tf-footer-legal:has([data-tf-analytics-settings]) { column-gap: 1rem; }
.tf-footer-legal [data-tf-analytics-settings] { min-height: var(--tf-control-compact, 36px); }
.tf-analytics-actions button:focus-visible, [data-tf-analytics-settings]:focus-visible { outline: 3px solid #0f1412; outline-offset: 3px; }
@media (max-width: 48rem) {
 #tf-analytics-consent { inset-inline: .5rem; bottom: calc(.5rem + var(--tf-analytics-lift, 0px)); width: calc(100% - 1rem); padding: .875rem; flex-direction: column; align-items: stretch; gap: .75rem; }
 .tf-analytics-copy { flex-basis: auto; }
 .tf-analytics-actions { flex-wrap: nowrap; }
 .tf-analytics-actions button { flex: 1 1 auto; padding-inline: .5rem; }
}
