.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #111;
    color: #fff;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
    padding: 20px 0;
}

.cookie-consent-banner[hidden],
.cookie-consent-modal[hidden] {
    display: none !important;
}

.cookie-consent-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 24px;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cookie-consent-banner__content {
    flex: 1 1 520px;
    min-width: 280px;
}

.cookie-consent-banner__text {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.cookie-consent-banner__text:last-child {
    margin-bottom: 0;
}

.cookie-consent-banner__text a {
    color: #fff;
    text-decoration: underline;
}

.cookie-consent-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.cookie-consent-btn {
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-consent-btn--primary {
    background: var(--heading-color, #6fa219);
    color: #fff;
    border-color: var(--heading-color, #6fa219);
}

.cookie-consent-btn--primary:hover {
    background: var(--accent-color, #98cd40);
    border-color: var(--accent-color, #98cd40);
}

.cookie-consent-btn--secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.cookie-consent-btn--secondary:hover {
    border-color: #fff;
}

.cookie-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.cookie-consent-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.cookie-consent-modal__panel {
    position: relative;
    width: min(560px, calc(100% - 32px));
    margin: 8vh auto 0;
    background: #fff;
    color: #111;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.cookie-consent-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #e8e8e8;
}

.cookie-consent-modal__title {
    margin: 0;
    font-size: 20px;
}

.cookie-consent-modal__close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.cookie-consent-modal__body {
    padding: 18px 20px;
}

.cookie-consent-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #efefef;
}

.cookie-consent-option:last-child {
    border-bottom: 0;
}

.cookie-consent-option__text p {
    margin: 6px 0 0;
    font-size: 14px;
    color: #555;
}

.cookie-consent-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex: 0 0 auto;
}

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

.cookie-consent-switch__slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 26px;
    transition: 0.2s;
}

.cookie-consent-switch__slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}

.cookie-consent-switch input:checked + .cookie-consent-switch__slider {
    background: var(--heading-color, #6fa219);
}

.cookie-consent-switch input:checked + .cookie-consent-switch__slider:before {
    transform: translateX(20px);
}

.cookie-consent-switch input:disabled + .cookie-consent-switch__slider {
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-consent-modal__footer {
    padding: 16px 20px 20px;
    border-top: 1px solid #e8e8e8;
    text-align: right;
}

[dir="rtl"] .cookie-consent-banner__actions {
    justify-content: flex-start;
}

[dir="rtl"] .cookie-consent-switch input:checked + .cookie-consent-switch__slider:before {
    transform: translateX(-20px);
}

@media (max-width: 767px) {
    .cookie-consent-banner__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-banner__actions {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-consent-banner__actions .cookie-consent-btn {
        flex: 1 1 auto;
    }
}
