/**
 * Cookie consent bar — solid black background, white border, iOS safe-area, 44px touch targets.
 * Copy and button labels are set in js/cookie-consent.js for consistency across pages.
 */

#cookie-banner {
    position: fixed;
    z-index: 2147483000;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    color-scheme: dark;
    forced-color-adjust: none;
    background: #000000;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    transform: translateY(110%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
    #cookie-banner {
        left: 50%;
        right: auto;
        bottom: max(16px, env(safe-area-inset-bottom, 0px));
        width: calc(100% - 40px);
        max-width: 1000px;
        border: 1px solid #ffffff;
        border-radius: 8px;
        padding: 24px;
        padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        transform: translate(-50%, 160%);
    }
}

#cookie-banner.visible {
    transform: translateY(0);
}

@media (min-width: 768px) {
    #cookie-banner.visible {
        transform: translate(-50%, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    #cookie-banner {
        transition: none;
    }
}

.cookie-banner__text {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.55;
    max-width: 800px;
}

.cookie-banner__text strong {
    color: #ffffff;
    font-weight: 700;
}

.cookie-banner__text a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
}

@media (min-width: 768px) {
    .cookie-banner__actions {
        flex-shrink: 0;
        justify-content: flex-end;
    }
}

.cookie-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 22px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.06em;
    cursor: pointer;
    border-radius: 4px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.cookie-btn.btn-accept {
    background: #ffffff;
    color: #000000;
    border: none;
}

.cookie-btn.btn-deny {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.cookie-btn.btn-accept:hover,
.cookie-btn.btn-accept:focus-visible {
    opacity: 0.92;
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.cookie-btn.btn-deny:hover,
.cookie-btn.btn-deny:focus-visible {
    border-color: #ffffff;
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}
