/* BBC-style consent bar in REP charcoal and white. */

#cookie-panel {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 22px 0;
    background: #444444 !important;
    color: #ffffff !important;
    border-top: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .25);
    text-align: left;
}

.cookie-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 28px;
}

.cookie-copy { max-width: 640px; }

.cookie-title {
    margin: 0 0 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: #ffffff;
}

.cookie-text {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .86);
}

.cookie-text a {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.cookie-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
}

.cookie-btn {
    height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.cookie-btn--primary {
    background: #ffffff;
    color: #444444;
    border-color: #ffffff;
}

.cookie-btn--primary:hover { background: #f1f1f1; }

.cookie-btn--ghost {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, .7);
}

.cookie-btn--ghost:hover { background: rgba(255, 255, 255, .12); }

.cookie-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Reset the legacy grey "button" styling on the panel's links */
#cookie-panel .cookie-link {
    padding: 0 !important;
    margin: 0 0 0 6px !important;
    background: transparent !important;
    color: #ffffff !important;
    border-radius: 0 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 13px;
    text-decoration: underline;
}

#cookie-panel .cookie-link:hover { background: transparent !important; color: #ffffff !important; }

@media (max-width: 860px) {
    #cookie-panel { padding: 18px 0; }

    .cookie-inner {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        gap: 14px;
    }

    .cookie-actions { width: 100%; }

    .cookie-btn { -ms-flex: 1 1 0%; flex: 1 1 0%; }

    #cookie-panel .cookie-link { -ms-flex-preferred-size: 100%; flex-basis: 100%; margin: 4px 0 0 !important; }
}
