/* ============================================
   BRD Cookie Consent Banner
   Brand colours: Navy #0D1835, Teal #51A8C5
   Font: Poppins (headings), Lato (body)
   ============================================ */

.brd-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #0D1835;
    color: #fff;
    font-family: 'Lato', -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease;
}

.brd-cookie-banner--bottom {
    bottom: 0;
}

.brd-cookie-banner--top {
    top: 0;
}

.brd-cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
}

.brd-cookie-content p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.9);
}

.brd-cookie-privacy-link {
    color: #51A8C5;
    text-decoration: underline;
    margin-left: 4px;
}

.brd-cookie-privacy-link:hover {
    color: #6ec4de;
}

/* Buttons */

.brd-cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.brd-cookie-btn {
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 24px;
    border-radius: 3px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.brd-cookie-btn:hover {
    transform: translateY(-1px);
}

.brd-cookie-btn:active {
    transform: translateY(0);
}

.brd-cookie-btn--accept {
    background: #51A8C5;
    color: #fff;
}

.brd-cookie-btn--accept:hover {
    background: #3d94b1;
}

.brd-cookie-btn--essential {
    background: transparent;
    color: #51A8C5;
    border: 1px solid #51A8C5;
}

.brd-cookie-btn--essential:hover {
    background: rgba(81, 168, 197, 0.1);
}

.brd-cookie-btn--manage {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    padding: 10px 16px;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.brd-cookie-btn--manage:hover {
    color: rgba(255, 255, 255, 0.9);
}

.brd-cookie-btn--save {
    background: #51A8C5;
    color: #fff;
    margin-top: 12px;
}

.brd-cookie-btn--save:hover {
    background: #3d94b1;
}

/* Preferences panel */

.brd-cookie-preferences {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.brd-cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brd-cookie-category:last-of-type {
    border-bottom: none;
}

.brd-cookie-category-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-right: 16px;
}

.brd-cookie-category-info strong {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    margin-bottom: 2px;
}

.brd-cookie-category-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Toggle switch */

.brd-cookie-category input[type="checkbox"] {
    display: none;
}

.brd-cookie-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.brd-cookie-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.brd-cookie-category input:checked + .brd-cookie-toggle {
    background: #51A8C5;
}

.brd-cookie-category input:checked + .brd-cookie-toggle::after {
    transform: translateX(20px);
}

.brd-cookie-category input:disabled + .brd-cookie-toggle {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile responsive */

@media (max-width: 600px) {
    .brd-cookie-inner {
        padding: 16px;
    }

    .brd-cookie-actions {
        flex-direction: column;
    }

    .brd-cookie-btn {
        width: 100%;
        text-align: center;
    }

    .brd-cookie-btn--manage {
        width: auto;
    }
}
