/* ==========================================
   Dflex Woo Theme — Cookie Banner & Privacy
   ========================================== */

.dflex-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    padding: 0 20px;
    transform: translateY(100%);
    animation: dflex-cookie-slide-up 0.5s ease-out 1s forwards;
}

@keyframes dflex-cookie-slide-up {
    to {
        transform: translateY(0);
    }
}

.dflex-cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

/* Light theme */
.dflex-cookie-light .dflex-cookie-inner {
    background: #ffffff;
    color: #333;
    border: 1px solid #eee;
    border-bottom: none;
}

/* Dark theme */
.dflex-cookie-dark .dflex-cookie-inner {
    background: #1a1a2e;
    color: #e0e0e0;
    border: 1px solid #2a2a3e;
    border-bottom: none;
}

.dflex-cookie-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.dflex-cookie-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.dflex-cookie-content a {
    color: var(--dflex-color-primary, #E53935);
    text-decoration: underline;
    font-weight: 500;
}

.dflex-cookie-content a:hover {
    text-decoration: none;
}

.dflex-cookie-actions {
    flex-shrink: 0;
}

.dflex-cookie-accept {
    background: var(--dflex-color-primary, #E53935);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: var(--dflex-btn-radius, 25px);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    white-space: nowrap;
}

.dflex-cookie-accept:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Hide animation */
.dflex-cookie-banner.dflex-cookie-hidden {
    animation: dflex-cookie-slide-down 0.4s ease-in forwards;
}

@keyframes dflex-cookie-slide-down {
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Consent block on checkout */
.dflex-consent-block {
    margin: 16px 0;
}

.dflex-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
    color: var(--dflex-color-text-muted, #666);
}

.dflex-consent-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--dflex-color-primary, #E53935);
}

.dflex-consent-label a {
    color: var(--dflex-color-primary, #E53935);
    text-decoration: underline;
}

.dflex-consent-label a:hover {
    text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .dflex-cookie-inner {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        gap: 12px;
    }

    .dflex-cookie-accept {
        width: 100%;
    }
}