/* Cookie Consent Popup - Multi-layout (Footer / Header / Modal) */

/* ===== Base / Shared ===== */
.de-consent-popup {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 99999;
    background: var(--de-consent-bg, #1a1a2e);
    color: var(--de-consent-text, #e0e0e0);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.de-consent-popup__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.de-consent-popup__content { flex: 1; min-width: 0; }

.de-consent-popup__title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--de-consent-text, #fff);
    margin-bottom: 4px;
}

.de-consent-popup__message {
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 4px;
    opacity: 0.8;
}

.de-consent-popup__links { font-size: 12px; margin: 0; }
.de-consent-popup__links a { color: #64b5f6; text-decoration: none; }
.de-consent-popup__links a:hover { text-decoration: underline; }
.de-consent-popup__sep { margin: 0 6px; opacity: 0.4; }

.de-consent-popup__actions { display: flex; gap: 10px; flex-shrink: 0; }

.de-consent-popup__btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.de-consent-popup__btn:active { transform: scale(0.97); }
.de-consent-popup__btn--accept { background: #4caf50; color: #fff; }
.de-consent-popup__btn--accept:hover { background: #43a047; }
.de-consent-popup__btn--reject { background: transparent; color: var(--de-consent-text, #bbb); border: 1px solid rgba(128,128,128,0.4); }
.de-consent-popup__btn--reject:hover { background: rgba(255,255,255,0.08); }

/* ===== Footer Bar ===== */
.de-consent-popup--footer {
    bottom: 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    transform: translateY(100%);
    animation: deConsentSlideUp 0.4s ease-out forwards;
}

.de-consent-popup--footer.de-consent-popup--hidden {
    animation: deConsentSlideDown 0.3s ease-in forwards;
}

@keyframes deConsentSlideUp   { to { transform: translateY(0); } }
@keyframes deConsentSlideDown { to { transform: translateY(100%); } }

/* ===== Header Bar ===== */
.de-consent-popup--header {
    top: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transform: translateY(-100%);
    animation: deConsentSlideDown2 0.4s ease-out forwards;
}

.de-consent-popup--header.de-consent-popup--hidden {
    animation: deConsentSlideUp2 0.3s ease-in forwards;
}

@keyframes deConsentSlideDown2 { to { transform: translateY(0); } }
@keyframes deConsentSlideUp2   { to { transform: translateY(-100%); } }

/* ===== Modal (center) ===== */
.de-consent-popup--modal {
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.de-consent-popup--modal .de-consent-popup__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    animation: deConsentFadeIn 0.3s ease-out forwards;
}

.de-consent-popup--modal .de-consent-popup__inner {
    position: relative;
    z-index: 1;
    max-width: 520px;
    width: 90vw;
    background: var(--de-consent-bg, #1a1a2e);
    color: var(--de-consent-text, #e0e0e0);
    border-radius: 12px;
    padding: 28px 28px 24px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    flex-direction: column;
    text-align: center;
    gap: 18px;
    opacity: 0;
    transform: scale(0.92);
    animation: deConsentZoomIn 0.35s ease-out 0.1s forwards;
}

.de-consent-popup--modal .de-consent-popup__actions {
    justify-content: center;
    width: 100%;
}

.de-consent-popup--modal.de-consent-popup--hidden .de-consent-popup__overlay {
    animation: deConsentFadeOut 0.25s ease-in forwards;
}

.de-consent-popup--modal.de-consent-popup--hidden .de-consent-popup__inner {
    animation: deConsentZoomOut 0.25s ease-in forwards;
}

@keyframes deConsentFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes deConsentFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes deConsentZoomIn  { to { opacity: 1; transform: scale(1); } }
@keyframes deConsentZoomOut { to { opacity: 0; transform: scale(0.92); } }

/* ===== Mobile responsive ===== */
@media (max-width: 640px) {
    .de-consent-popup__inner {
        flex-direction: column;
        padding: 16px;
        gap: 14px;
        text-align: center;
    }

    .de-consent-popup__actions {
        width: 100%;
        justify-content: center;
    }

    .de-consent-popup__btn {
        flex: 1;
        padding: 12px 16px;
    }

    .de-consent-popup--modal .de-consent-popup__inner {
        width: 94vw;
        padding: 20px 16px;
    }
}
