/* =======================================================
   COOKIE CONSENT BANNER
   ======================================================= */
#cookie-consent-banner {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.55);

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 40px;
    z-index: 9999;

    font-family: Arial, sans-serif;
    color: white;
}

#cookie-consent-banner .cookie-consent-box {
    width: 100%;
    max-width: 70%;

    background: #121212;
    border: 2px solid #444;
    border-radius: 24px;

    padding: 28px;
    color: white;
    text-align: left;

    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

#cookie-consent-banner h2 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: bold;
    color: white;
}

#cookie-consent-banner p {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.6;
    color: white;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-consent-buttons button {
    background: white;
    color: black;

    border: none;
    border-radius: 12px;

    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;

    cursor: pointer;
    transition: opacity 0.2s ease;
}

.cookie-consent-buttons button:hover {
    opacity: 0.85;
}

#cookie-consent-decline {
    background: #2a2a2a;
    color: white;
}

#cookie-consent-toggle,
#last-level-id {
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 9998;

    background: #121212;
    color: white;
    border: 2px solid #444;
    border-radius: 12px;

    padding: 8px 14px;
    font-size: clamp(0.6rem, 1dvh, 1rem);
    font-family: Arial, sans-serif;
    font-weight: bold;

    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s ease;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

#cookie-consent-toggle:hover,
#last-level-id:hover {
    opacity: 1;
}


@media (max-width: 768px) and (orientation: portrait) {

    #cookie-consent-banner {
        padding: 12px;
    }

    #cookie-consent-banner .cookie-consent-box {
        max-width: 100%;
        max-height: calc(100dvh - 24px);
        padding: 18px;
        border-radius: 16px;
        overflow-y: auto;
    }

    #cookie-consent-banner h2 {
        font-size: 1rem;
    }

    #cookie-consent-banner p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .cookie-consent-buttons {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .cookie-consent-buttons button {
        flex: 1 1 0;
        min-width: 0;
        padding: 10px 8px;
        font-size: 13px;
    }
	
	#cookie-consent-toggle {
        left: 6px;
        bottom: calc(6px + env(safe-area-inset-bottom, 0px) + 40px);
        padding: 5px 8px;
        font-size: 10px;
    }
    
    #last-level-id {
        font-size: 9px !important;
        padding: 4px 6px !important;
    }
}

@media (max-height: 500px) and (orientation: landscape) {

    #cookie-consent-banner {
        padding: 8px;
    }

    #cookie-consent-banner .cookie-consent-box {
        max-width: 70%;
        max-height: calc(100dvh - 16px);
        padding: 14px;
        overflow-y: auto;
    }

    #cookie-consent-banner h2 {
        font-size: 0.9rem;
    }

    #cookie-consent-banner p {
        font-size: 0.7rem;
        line-height: 1.35;
    }

    .cookie-consent-buttons button {
        padding: 6px 10px;
        font-size: 11px;
    }
	
    #cookie-consent-toggle {
        left: 4px;
        bottom: calc(4px + env(safe-area-inset-bottom, 0px) + 30px);
        padding: 4px 6px;
        font-size: 9px;
    }
    
    #last-level-id {
        font-size: 8px !important;
        padding: 3px 5px !important;
    }
}