/* BERA Cookie Consent Banner styles */
#bera-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: #0b2e4f;
    color: #f5f7fa;
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.25);
    padding: 18px 24px;
    display: none;
}

#bera-cookie-banner.bera-visible {
    display: block;
}

.bera-cookie-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.bera-cookie-text {
    flex: 1 1 420px;
    font-size: 14px;
    line-height: 1.5;
}

.bera-cookie-text a {
    color: #7fc9ff;
    text-decoration: underline;
}

.bera-cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bera-btn {
    border: none;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
}

.bera-btn-accept {
    background: #1e8e3e;
    color: #fff;
}

.bera-btn-reject {
    background: transparent;
    color: #f5f7fa;
    border: 1px solid #f5f7fa;
}

.bera-btn-manage {
    background: #f5a623;
    color: #1a1a1a;
}

/* Preferences modal */
#bera-cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
}

#bera-cookie-modal.bera-visible {
    display: flex;
}

.bera-modal-box {
    background: #fff;
    color: #1a1a1a;
    width: 90%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 6px;
    padding: 24px;
}

.bera-modal-box h2 {
    margin-top: 0;
    font-size: 20px;
    color: #0b2e4f;
}

.bera-cat {
    border-top: 1px solid #e2e2e2;
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.bera-cat h3 {
    margin: 0 0 4px 0;
    font-size: 15px;
}

.bera-cat p {
    margin: 0;
    font-size: 13px;
    color: #444;
}

.bera-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex: none;
}

.bera-switch input { opacity: 0; width: 0; height: 0; }

.bera-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: .2s;
}

.bera-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: .2s;
}

input:checked + .bera-slider {
    background-color: #1e8e3e;
}

input:checked + .bera-slider:before {
    transform: translateX(18px);
}

input:disabled + .bera-slider {
    background-color: #1e8e3e;
    opacity: 0.6;
    cursor: not-allowed;
}

.bera-modal-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
