/* ==========================================================================
   COMPLIANZ COOKIE BANNER — Top Pneus overrides
   Plugin-specific: if Complianz is replaced, delete this file + enqueue.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. OVERLAY — Remove (causes PageSpeed contrast failures, not required by LPD)
   --------------------------------------------------------------------------- */

.cmplz-cookiebanner-container .cmplz-overlay,
.cmplz-overlay {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.cmplz-blocked {
    overflow: auto !important;
}

/* ---------------------------------------------------------------------------
   2. BANNER — Dark bottom bar, compact
   --------------------------------------------------------------------------- */

.cmplz-cookiebanner.cmplz-bottom {
    background: #1a1a1a !important;
    color: #f0f0f0 !important;
    border: none !important;
    border-top: 3px solid #E31837 !important;
    border-radius: 0 !important;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3) !important;
    padding: 16px 48px 16px 24px !important;
    max-width: 100% !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
}

/* ---------------------------------------------------------------------------
   3. HEADER — Compact title, hide close button
   --------------------------------------------------------------------------- */

.cmplz-cookiebanner.cmplz-bottom .cmplz-header {
    padding: 0 !important;
    margin: 0 0 8px !important;
}

.cmplz-cookiebanner.cmplz-bottom .cmplz-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Close button (X) — visible, top-right */
.cmplz-cookiebanner.cmplz-bottom .cmplz-close {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute !important;
    top: 12px !important;
    right: 16px !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    color: #999999 !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

.cmplz-cookiebanner.cmplz-bottom .cmplz-close:hover {
    color: #ffffff !important;
}

.cmplz-cookiebanner.cmplz-bottom .cmplz-close svg {
    width: 14px !important;
    height: 14px !important;
}

/* ---------------------------------------------------------------------------
   4. BODY — Compact message, hide categories
   --------------------------------------------------------------------------- */

.cmplz-cookiebanner.cmplz-bottom .cmplz-body {
    padding: 0 !important;
    margin: 0 0 12px !important;
}

.cmplz-cookiebanner.cmplz-bottom .cmplz-message {
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #cccccc !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide categories — granular control not required by nLPD (Accept/Deny sufficient) */
.cmplz-cookiebanner.cmplz-bottom .cmplz-categories {
    display: none !important;
}

/* ---------------------------------------------------------------------------
   5. HIDE decorative elements
   --------------------------------------------------------------------------- */

.cmplz-cookiebanner.cmplz-bottom .cmplz-divider {
    display: none !important;
}

.cmplz-cookiebanner.cmplz-bottom .cmplz-links {
    display: none !important;
}

/* ---------------------------------------------------------------------------
   6. BUTTONS — Red accept, subtle deny, text manage
   --------------------------------------------------------------------------- */

.cmplz-cookiebanner.cmplz-bottom .cmplz-buttons {
    display: flex !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-wrap: wrap !important;
}

/* Accept — primary red */
.cmplz-cookiebanner.cmplz-bottom .cmplz-btn.cmplz-accept {
    background: #E31837 !important;
    color: #ffffff !important;
    border: 2px solid #E31837 !important;
    border-radius: 6px !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    order: 1 !important;
    transition: background 0.2s ease !important;
}

.cmplz-cookiebanner.cmplz-bottom .cmplz-btn.cmplz-accept:hover {
    background: #c01530 !important;
    border-color: #c01530 !important;
}

/* Deny — discrete text link (art. 45c LTC compliance) */
.cmplz-cookiebanner.cmplz-bottom .cmplz-btn.cmplz-deny {
    display: inline-block !important;
    background: transparent !important;
    color: #999999 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 6px 4px !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    order: 2 !important;
}

.cmplz-cookiebanner.cmplz-bottom .cmplz-btn.cmplz-deny:hover {
    color: #ffffff !important;
}

/* Manage — hidden (Accept/Deny sufficient under nLPD, policy link in footer) */
.cmplz-cookiebanner.cmplz-bottom .cmplz-btn.cmplz-view-preferences {
    display: none !important;
}

/* ---------------------------------------------------------------------------
   7. MOBILE — Stack layout
   --------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .cmplz-cookiebanner.cmplz-bottom {
        padding: 14px 16px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .cmplz-cookiebanner.cmplz-bottom .cmplz-message {
        font-size: 12px !important;
    }

    .cmplz-cookiebanner.cmplz-bottom .cmplz-buttons {
        flex-direction: column !important;
    }

    .cmplz-cookiebanner.cmplz-bottom .cmplz-btn.cmplz-accept {
        width: 100% !important;
        text-align: center !important;
        padding: 12px !important;
    }

    .cmplz-cookiebanner.cmplz-bottom .cmplz-btn.cmplz-deny {
        text-align: center !important;
    }
}

/* ---------------------------------------------------------------------------
   8. BANNER LOGO — Hide (not needed in bottom bar)
   --------------------------------------------------------------------------- */

.cmplz-cookiebanner.cmplz-bottom .cmplz-logo {
    display: none !important;
}
