/* =====================================================
   THE OCEANS POST
   COOKIE CONSENT DESIGN
===================================================== */


/* =====================================================
   COOKIE BANNER
===================================================== */

.cookie-consent {

    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;

    display: none;

    z-index: 99998;

    box-sizing: border-box;

    padding: 18px 20px;

    background: rgba(255, 255, 255, 0.97);

    border-top: 1px solid #e5e7eb;

    box-shadow:
        0 -8px 30px rgba(0, 0, 0, 0.12);

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);
}


.cookie-consent[aria-hidden="false"] {
    display: block;
}


/* =====================================================
   BANNER BOX
===================================================== */

.cookie-consent-box {

    width: 100%;

    max-width: 1250px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: auto 1fr auto;

    align-items: center;

    gap: 20px;

    box-sizing: border-box;
}


/* =====================================================
   COOKIE ICON
===================================================== */

.cookie-consent-icon {

    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #f3f4f6;

    border-radius: 50%;

    font-size: 27px;
}


/* =====================================================
   BANNER TEXT
===================================================== */

.cookie-consent-body h2 {

    margin: 0 0 6px;

    color: #111827;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 19px;

    font-weight: 700;

    line-height: 1.3;
}


.cookie-consent-body p {

    margin: 0;

    color: #4b5563;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 13px;

    line-height: 1.55;
}


.cookie-consent-links {

    margin-top: 4px !important;
}


.cookie-consent-links a {

    color: #075985;

    font-weight: 600;

    text-decoration: underline;
}


.cookie-consent-links a:hover {

    color: #0c4a6e;
}


/* =====================================================
   BUTTONS
===================================================== */

.cookie-consent-actions {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 8px;

    flex-shrink: 0;
}


.cookie-button {

    min-height: 40px;

    padding: 9px 15px;

    border-radius: 6px;

    border: 1px solid transparent;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 13px;

    font-weight: 650;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.cookie-button:hover {

    transform: translateY(-1px);
}


/* PRIMARY */

.cookie-button-primary {

    background: #111827;

    color: #ffffff;

    border-color: #111827;
}


.cookie-button-primary:hover {

    background: #374151;

    border-color: #374151;
}


/* OUTLINE */

.cookie-button-outline {

    background: #ffffff;

    color: #111827;

    border-color: #d1d5db;
}


.cookie-button-outline:hover {

    background: #f3f4f6;

    border-color: #9ca3af;
}


/* LIGHT */

.cookie-button-light {

    background: #f3f4f6;

    color: #374151;

    border-color: #f3f4f6;
}


.cookie-button-light:hover {

    background: #e5e7eb;
}


/* =====================================================
   PREFERENCES MODAL
===================================================== */

.cookie-preferences {

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    box-sizing: border-box;

    z-index: 99999;
}


.cookie-preferences[aria-hidden="false"] {

    display: flex;
}


/* =====================================================
   MODAL OVERLAY
===================================================== */

.cookie-preferences-overlay {

    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.62);

    backdrop-filter: blur(3px);

    -webkit-backdrop-filter: blur(3px);
}


/* =====================================================
   MODAL BOX
===================================================== */

.cookie-preferences-box {

    position: relative;

    width: 100%;

    max-width: 650px;

    max-height: 90vh;

    overflow-y: auto;

    background: #ffffff;

    border-radius: 14px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.35);

    box-sizing: border-box;

    padding: 28px;

    animation: cookieModalIn 0.2s ease-out;
}


@keyframes cookieModalIn {

    from {

        opacity: 0;

        transform: translateY(12px) scale(0.98);
    }

    to {

        opacity: 1;

        transform: translateY(0) scale(1);
    }
}


/* =====================================================
   MODAL HEADER
===================================================== */

.cookie-preferences-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 20px;

    padding-bottom: 22px;

    border-bottom: 1px solid #e5e7eb;
}


.cookie-preferences-label {

    display: block;

    margin-bottom: 7px;

    color: #64748b;

    font-size: 11px;

    font-weight: 750;

    letter-spacing: 1px;
}


.cookie-preferences-header h2 {

    margin: 0 0 7px;

    color: #111827;

    font-size: 25px;

    font-weight: 750;
}


.cookie-preferences-header p {

    margin: 0;

    max-width: 520px;

    color: #6b7280;

    font-size: 14px;

    line-height: 1.55;
}


/* =====================================================
   CLOSE
===================================================== */

.cookie-close {

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border: none;

    border-radius: 50%;

    background: #f3f4f6;

    color: #374151;

    font-size: 24px;

    line-height: 1;

    cursor: pointer;
}


.cookie-close:hover {

    background: #e5e7eb;

    color: #111827;
}


/* =====================================================
   COOKIE OPTIONS
===================================================== */

.cookie-option {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    padding: 21px 0;

    border-bottom: 1px solid #eef0f2;
}


.cookie-option-content {

    flex: 1;
}


.cookie-option-content h3 {

    margin: 0 0 6px;

    color: #1f2937;

    font-size: 16px;

    font-weight: 700;
}


.cookie-option-content p {

    margin: 0;

    color: #6b7280;

    font-size: 13px;

    line-height: 1.55;
}


/* =====================================================
   TOGGLE
===================================================== */

.cookie-toggle {

    position: relative;

    display: block;

    width: 48px;

    height: 26px;

    flex-shrink: 0;
}


.cookie-toggle input {

    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}


.cookie-toggle-slider {

    position: absolute;

    inset: 0;

    border-radius: 30px;

    background: #d1d5db;

    cursor: pointer;

    transition: 0.2s ease;
}


.cookie-toggle-slider::before {

    content: "";

    position: absolute;

    width: 20px;
    height: 20px;

    top: 3px;
    left: 3px;

    background: #ffffff;

    border-radius: 50%;

    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.25);

    transition: 0.2s ease;
}


.cookie-toggle input:checked + .cookie-toggle-slider {

    background: #111827;
}


.cookie-toggle input:checked + .cookie-toggle-slider::before {

    transform: translateX(22px);
}


.cookie-toggle input:disabled + .cookie-toggle-slider {

    opacity: 0.65;

    cursor: not-allowed;
}


/* =====================================================
   MODAL FOOTER
===================================================== */

.cookie-preferences-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding-top: 22px;
}


.cookie-preferences-footer p {

    margin: 0;

    color: #6b7280;

    font-size: 12px;

    line-height: 1.5;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 900px) {

    .cookie-consent-box {

        grid-template-columns: auto 1fr;

    }


    .cookie-consent-actions {

        grid-column: 1 / -1;

        justify-content: flex-end;
    }

}


@media (max-width: 600px) {

    .cookie-consent {

        padding: 14px;

    }


    .cookie-consent-box {

        grid-template-columns: auto 1fr;

        gap: 12px;

    }


    .cookie-consent-icon {

        width: 42px;
        height: 42px;

        font-size: 22px;

    }


    .cookie-consent-body h2 {

        font-size: 17px;

    }


    .cookie-consent-body p {

        font-size: 12px;

    }


    .cookie-consent-actions {

        grid-column: 1 / -1;

        display: grid;

        grid-template-columns: 1fr 1fr;

        width: 100%;

        gap: 7px;

    }


    .cookie-button {

        width: 100%;

        font-size: 12px;

    }


    .cookie-button-primary {

        grid-column: 1 / -1;

    }


    .cookie-preferences {

        padding: 12px;

    }


    .cookie-preferences-box {

        max-height: 94vh;

        padding: 21px;

        border-radius: 12px;

    }


    .cookie-preferences-header h2 {

        font-size: 21px;

    }


    .cookie-option {

        align-items: flex-start;

        gap: 12px;

    }


    .cookie-option-content p {

        font-size: 12px;

    }


    .cookie-preferences-footer {

        align-items: stretch;

        flex-direction: column;

    }


    .cookie-preferences-footer .cookie-button {

        width: 100%;

    }

}
body.cookie-modal-open {
    overflow: hidden;
}