/* ── Cookie Consent ──
   Баннер вставляется во все страницы из Render::injectCookieConsent(),
   поэтому стили самодостаточные и не зависят от Bootstrap / antiqon_art*.css. */

html.cookie-lock,
html.cookie-lock body {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2147483000;
    touch-action: none;
}

.cookie-holder {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    z-index: 2147483001;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #111;
    max-width: 1000px;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: auto;
    box-sizing: border-box;
    text-align: left;
}
.cookie-holder *,
.cookie-holder *::before,
.cookie-holder *::after { box-sizing: border-box; }
.cookie-holder .hidden { display: none !important; }
.cookie-holder p { margin: 0; }

/* Collapsed bar */
.cookie-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    gap: 24px;
}
.cookie-wrapper .cookie-text { flex: 1; }
.cookie-read-more { color: #c17f3a; text-decoration: none; }
.cookie-read-more:hover { text-decoration: underline; }

.cookie-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

/* Buttons */
.btn-cookie {
    display: inline-block;
    margin: 0;
    padding: 10px 28px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    border: 1.5px solid #111;
    border-radius: 0;
    background: transparent;
    color: #111;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.btn-cookie:hover { background: #111; color: #fff; }
.btn-cookie-primary { background: #111; color: #fff; }
.btn-cookie-primary:hover { background: #333; border-color: #333; }
.btn-cookie:disabled { opacity: 0.6; cursor: default; }

/* Expanded panel */
.cookie-wrapper-choice {
    padding: 32px 40px 28px;
    border-top: 1px solid #e8e8e8;
}
.cookie-intro-text {
    font-size: 13.5px;
    line-height: 1.65;
    color: #333;
    margin-bottom: 24px !important;
    max-width: 900px;
}
.cookie-consent-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}
.cookie-category-row {
    border-top: 1px solid #e0e0e0;
}
.cookie-category-row:last-of-type { border-bottom: 1px solid #e0e0e0; }
.cookie-category-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    cursor: pointer;
    user-select: none;
}
.cookie-category-label input[type=checkbox] {
    width: 16px; height: 16px;
    margin: 0;
    accent-color: #111;
    cursor: pointer;
}
.cookie-category-label input[type=checkbox]:disabled { opacity: 0.45; cursor: not-allowed; }
.cookie-chevron {
    margin-left: auto;
    width: 8px; height: 8px;
    border-right: 1.5px solid #888;
    border-bottom: 1.5px solid #888;
    transform: rotate(45deg);
    transition: transform 0.15s;
}
.cookie-category-label.open .cookie-chevron { transform: rotate(-135deg); }
.cookie-category-desc {
    font-size: 13px;
    line-height: 1.65;
    color: #555;
    padding: 0 32px 14px 26px;
}

.cookie-choice-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Mobile */
.cookie-holder-mobile .cookie-wrapper,
.cookie-holder-mobile .cookie-actions,
.cookie-holder-mobile .cookie-choice-actions { flex-direction: column; align-items: stretch; }
.cookie-holder-mobile .cookie-wrapper { padding: 18px 20px; gap: 16px; }
.cookie-holder-mobile .cookie-actions,
.cookie-holder-mobile .cookie-choice-actions { gap: 10px; }
.cookie-holder-mobile .cookie-wrapper-choice { padding: 20px 20px 24px; }
.cookie-holder-mobile .btn-cookie { width: 100%; white-space: normal; text-align: center; }
.cookie-holder-mobile .cookie-category-desc { padding: 0 0 14px 26px; }

@media (max-width: 767px) {
    .cookie-wrapper,
    .cookie-actions,
    .cookie-choice-actions { flex-direction: column; align-items: stretch; }
    .cookie-wrapper { padding: 18px 20px; gap: 16px; }
    .cookie-wrapper-choice { padding: 20px 20px 24px; }
    .btn-cookie { width: 100%; white-space: normal; text-align: center; }
}
