﻿/* Professional cookie preferences modal & banner styling
   Replace/augment previous styles with a sleeker, compact design.
*/

.cookie-prefs-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: rgba(17, 24, 39, 0.95);
    color: #fff;
    z-index: 9999;
    padding: 14px 18px;
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(2,6,23,0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-prefs-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.cookie-prefs-banner .cookie-text {
    font-size: 0.95rem;
    line-height: 1.3;
    color: rgba(255,255,255,0.95);
}

    .cookie-prefs-banner .cookie-text a.cp-manage-link {
        color: #BBA687;
        text-decoration: underline;
        margin-left: 6px;
    }

.cookie-prefs-banner .cookie-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cookie-prefs-banner button {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.cookie-prefs-banner .btn-accept {
    background: #BBA687;
    color: #111;
    box-shadow: 0 4px 10px rgba(248,186,1,0.12);
}

.cookie-prefs-banner .btn-accept-all {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
}

/* Modal backdrop */
.cookie-prefs-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,0.6);
    z-index: 10000;
    padding: 40px 20px;
    overflow: auto;
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Modal panel */
.cookie-prefs-modal-inner {
    background: #fff;
    color: #111;
    max-width: 720px;
    margin: 24px auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(2,6,23,0.12);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Header */
.cp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #eef2f6;
    padding-bottom: 8px;
}

    .cp-header h2 {
        margin: 0;
        font-size: 1.125rem;
        font-weight: 700;
    }

.cp-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

/* Lead text */
.cp-lead {
    margin: 0;
    color: #374151;
    font-size: 0.95rem;
}

/* Categories list */
.cp-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

/* Category row */
.cp-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #fbfdff;
    border: 1px solid #f1f5f9;
}

.cp-cat-info {
    flex: 1 1 auto;
    min-width: 0;
}

.cp-cat-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.97rem;
}

.cp-required {
    font-weight: 600;
    font-size: 0.78rem;
    color: #6b7280;
    margin-left: 8px;
}

.cp-cat-desc {
    font-size: 0.875rem;
    color: #475569;
    margin-top: 4px;
}

/* Toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
        position: absolute;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e6eef8;
    transition: .22s;
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(2,6,23,0.06);
}

    .slider:before {
        position: absolute;
        content: "";
        height: 22px;
        width: 22px;
        left: 4px;
        top: 4px;
        background: white;
        border-radius: 50%;
        transition: .22s;
        box-shadow: 0 4px 10px rgba(2,6,23,0.08);
    }

.switch input:checked + .slider {
    background: linear-gradient(90deg,#BBA687,#897962);
}

    .switch input:checked + .slider:before {
        transform: translateX(26px);
    }

/* Footer actions */
.cp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 6px;
    border-top: 1px solid #eef2f6;
    margin-top: 8px;
}

.cp-actions-left .btn-reject {
    background: transparent;
    border: 1px solid #e7eef8;
    color: #0f172a;
    padding: 8px 12px;
    border-radius: 8px;
}

.cp-actions-right .btn-save {
    background: #0f172a;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
}

.cp-actions-right .btn-cancel {
    background: transparent;
    color: #6b7280;
    border: none;
    padding: 8px 12px;
    margin-left: 8px;
}

/* Responsive */
@media (max-width: 520px) {
    .cookie-prefs-banner {
        left: 8px;
        right: 8px;
        padding: 12px;
    }

    .cookie-prefs-modal-inner {
        padding: 14px;
        margin: 8px;
        width: calc(100% - 16px);
    }

    .cp-category {
        flex-direction: column;
        align-items: flex-start;
    }

    .cp-cat-toggle {
        margin-top: 8px;
    }
}


.cookieStyle a {
    color: #fff;
}

    .cookieStyle a:hover {
      
        color: #BBA687;
    }