/* ============================================================
   Cookie Consent Popup — Scoped Styles
   Conforms to project design standards:
   - Typography: "Poppins", "montserrat", sans-serif for headings & buttons
   - Colors: #304552 (heading color), #555555 (body), #ED1C24 (accept button)
   - Overlay: rgba(0, 0, 0, 0.65) matching modal backdrop
   - No existing project CSS files are modified.
   - Strictly NO inline CSS.
   ============================================================ */

/* Full-screen backdrop to block page interaction until consent */
.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999998;
    display: block;
}

/* Bottom banner popup */
.cookie-consent-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    z-index: 999999;
    padding: 24px 32px;
    display: block;
    box-sizing: border-box;
}

/* Flex layout container */
.cookie-consent-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

/* Text section */
.cookie-consent-text {
    flex: 1 1 320px;
}

.cookie-consent-text h4 {
    font-family: "Poppins", "montserrat", sans-serif;
    font-size: 16px;
    color: #304552;
    margin: 0 0 6px 0;
    font-weight: 600;
}

.cookie-consent-text p {
    font-family: "Poppins", "open-sans", sans-serif;
    font-size: 13px;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

/* Action button container */
.cookie-consent-actions {
    flex: 0 0 auto;
}

/* Accept button — reuses project .btn base, styled with red theme */
.cookie-consent-accept-btn {
    background: #ED1C24 !important;
    border: #ED1C24 solid thin !important;
    color: #ffffff !important;
    padding: 8px 24px !important;
    font-family: "Poppins", "montserrat", sans-serif !important;
    font-size: 13px !important;
    letter-spacing: 1px !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
    height: auto !important;
    display: inline-block !important;
}

.cookie-consent-accept-btn:hover {
    background: #c0151b !important;
    border-color: #c0151b !important;
    color: #ffffff !important;
}

/* Utility class to hide popup without inline css */
.cookie-consent-hidden {
    display: none !important;
}

/* Responsive design for mobile devices */
@media only screen and (max-width: 640px) {
    .cookie-consent-bar {
        padding: 18px 16px;
        border-radius: 10px 10px 0 0;
    }

    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .cookie-consent-actions {
        width: 100%;
    }

    .cookie-consent-accept-btn {
        width: 100% !important;
        padding: 10px 0 !important;
        text-align: center !important;
        display: block !important;
    }
}
