/* DSM Cookie Consent Banner — dark theme, matches home page */

.dsm-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 36px;
    z-index: 1002;
    background: linear-gradient(145deg, #1a1a1a, #252525);
    border-top: 1px solid rgba(76, 175, 80, 0.35);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    animation: dsmCookieBannerSlideUp 0.35s ease-out;
}

.dsm-cookie-banner.is-hidden {
    display: none;
}

@keyframes dsmCookieBannerSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dsm-cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.dsm-cookie-banner__text {
    flex: 1;
    min-width: 200px;
    margin: 0;
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

.dsm-cookie-banner__text strong {
    color: #fff;
}

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

.dsm-cookie-banner__more {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.5);
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.dsm-cookie-banner__more:hover,
.dsm-cookie-banner__more:focus-visible {
    color: #fff;
    background: rgba(76, 175, 80, 0.15);
    border-color: #4CAF50;
    outline: none;
}

.dsm-cookie-banner__accept {
    display: inline-block;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    color: #0d0d0d;
    background: linear-gradient(135deg, #8bc34a, #4caf50);
    box-shadow: 0 4px 14px rgba(76, 175, 80, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
}

.dsm-cookie-banner__accept:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(76, 175, 80, 0.45);
}

.dsm-cookie-banner__accept:focus-visible {
    outline: 2px solid #4caf50;
    outline-offset: 3px;
}

.dsm-cookie-banner__accept:disabled {
    opacity: 0.65;
    cursor: wait;
}

.dsm-cookie-banner__status {
    width: 100%;
    margin: 0;
    padding: 0 20px 10px;
    font-size: 0.8rem;
    color: #f44336;
    text-align: center;
    display: none;
}

.dsm-cookie-banner__status.is-visible {
    display: block;
}

/* Extra bottom padding while banner is visible */
body.dsm-cookie-banner-visible {
    padding-bottom: 120px !important;
}

/* Sidebar offset on wide screens (matches footer) */
@media (min-width: 1901px) {
    .dsm-cookie-banner {
        left: 250px;
    }
}

/* Guest badge may sit above footer on mobile */
@media (max-width: 480px) {
    body.dsm-guest-mode-active .dsm-cookie-banner,
    body:has(#dsm-guest-mode-badge) .dsm-cookie-banner {
        bottom: 56px;
    }

    .dsm-cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 12px 16px;
    }

    .dsm-cookie-banner__actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 380px) {
    .dsm-cookie-banner__actions {
        flex-direction: column;
        width: 100%;
    }

    .dsm-cookie-banner__more,
    .dsm-cookie-banner__accept {
        width: 100%;
        text-align: center;
    }
}
