/* RoLS cookie consent banner and settings */
.rols-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background-color: #ffffff;
    border-top: 3px solid #d5d52b;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    padding: 18px 0;
    font-size: 15px;
    line-height: 1.5;
    color: #232323;
}

.rols-cookie-banner[hidden] {
    display: none !important;
}

.rols-cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.rols-cookie-banner-text {
    flex: 1 1 300px;
    max-width: 760px;
}

.rols-cookie-banner-text p {
    margin: 0;
}

.rols-cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1 1 auto;
}

.rols-cookie-banner-link {
    color: #232323;
    text-decoration: underline;
    font-weight: 500;
}

.rols-cookie-banner-link:hover {
    color: #d5d52b;
}

.rols-cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.rols-cookie-btn:focus-visible {
    outline: 2px solid #d5d52b;
    outline-offset: 2px;
}

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

.rols-cookie-btn-primary:hover,
.rols-cookie-btn-primary:active {
    background-color: #ffffff;
    color: #232323;
}

.rols-cookie-btn-secondary {
    background-color: #ffffff;
    color: #232323;
    border-color: #232323;
}

.rols-cookie-btn-secondary:hover,
.rols-cookie-btn-secondary:active {
    background-color: #232323;
    color: #ffffff;
}

/* Settings modal */
.rols-cookie-settings {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rols-cookie-settings[hidden] {
    display: none !important;
}

.rols-cookie-settings:not([hidden]) {
    display: flex;
}

.rols-cookie-settings-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.65);
}

.rols-cookie-settings-panel {
    position: relative;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
}

.rols-cookie-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    border-bottom: 1px solid #eaeaeb;
}

.rols-cookie-settings-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #232323;
}

.rols-cookie-settings-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #232323;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.rols-cookie-settings-close:focus-visible {
    outline: 2px solid #d5d52b;
    outline-offset: 2px;
}

.rols-cookie-settings-body {
    padding: 28px;
    flex: 1 1 auto;
}

.rols-cookie-setting-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 18px;
    background-color: #f7f7f7;
    border-radius: 4px;
}

.rols-cookie-setting-row strong {
    font-weight: 600;
    color: #232323;
    display: block;
    margin-bottom: 4px;
}

.rols-cookie-setting-row p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #717580;
}

.rols-cookie-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
    color: #232323;
    font-weight: 600;
    flex-shrink: 0;
}

.rols-cookie-toggle:focus-visible {
    outline: 2px solid #d5d52b;
    outline-offset: 2px;
}

.rols-cookie-toggle .rols-cookie-toggle-slider {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background-color: #a8a8a8;
    position: relative;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.rols-cookie-toggle .rols-cookie-toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ffffff;
    transition: transform 0.2s ease;
}

.rols-cookie-toggle.is-active .rols-cookie-toggle-slider {
    background-color: #d5d52b;
}

.rols-cookie-toggle.is-active .rols-cookie-toggle-slider::before {
    transform: translateX(20px);
}

.rols-cookie-toggle-status {
    min-width: 70px;
    text-align: right;
}

.rols-cookie-settings-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 28px;
    border-top: 1px solid #eaeaeb;
    flex-wrap: wrap;
}

@media (max-width: 575px) {
    .rols-cookie-banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .rols-cookie-banner-actions {
        width: 100%;
        justify-content: space-between;
    }

    .rols-cookie-banner-text {
        flex: 1 1 100%;
    }

    .rols-cookie-banner .rols-cookie-btn {
        flex: 1 1 auto;
    }

    .rols-cookie-banner-link {
        width: 100%;
    }

    .rols-cookie-setting-row {
        flex-direction: column;
    }

    .rols-cookie-settings-footer {
        justify-content: stretch;
    }

    .rols-cookie-settings-footer .rols-cookie-btn {
        flex: 1 1 auto;
    }
}
