.deco-cookie-banner {
    position: fixed;
    inset: 0;
    z-index: 999950;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(16, 25, 39, 0.26);
}

.deco-cookie-banner.is-visible {
    display: flex;
}

.deco-cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(100%, 860px);
    margin: 0 auto;
    padding: 24px 26px;
    background: #ffffff;
    border: 1px solid rgba(37, 56, 88, 0.14);
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(20, 36, 60, 0.28);
}

.deco-cookie-banner-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.deco-cookie-banner-title {
    display: block;
    margin-bottom: 6px;
    font-size: 17px;
    font-weight: 700;
    color: #22314a;
}

.deco-cookie-banner-message {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #536176;
}

.deco-cookie-banner-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
}

.deco-cookie-banner-links a {
    font-size: 13px;
    font-weight: 600;
    color: #2a6db2;
    text-decoration: none;
}

.deco-cookie-banner-actions,
.deco-cookie-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.deco-cookie-btn {
    min-width: 146px;
    padding: 11px 16px;
    background: #ffffff;
    border: 1px solid #cfd8e3;
    color: #26384f;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: none !important;
}

.deco-cookie-btn:hover,
.deco-cookie-btn:focus {
    background: #f7f9fc;
    border-color: #9db2ca;
    color: #203249;
}

.deco-cookie-btn-outline {
    background: #ffffff;
    border-color: #9fb2c7;
    color: #22344d;
}

.deco-cookie-btn-secondary {
    border-color: #c9d2de;
    color: #29405f;
}

.deco-cookie-btn-primary {
    background: #2f6fb0;
    border-color: #2f6fb0;
    color: #ffffff;
}

.deco-cookie-btn-primary:hover,
.deco-cookie-btn-primary:focus {
    background: #255f99;
    border-color: #255f99;
    color: #ffffff;
}

.deco-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 999960;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 24, 39, 0.45);
}

.deco-cookie-modal.is-visible {
    display: flex;
}

.deco-cookie-modal-dialog {
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 32px);
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(37, 56, 88, 0.12);
    box-shadow: 0 24px 56px rgba(17, 29, 48, 0.24);
    overflow: auto;
}

.deco-cookie-modal-header,
.deco-cookie-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: #f7f9fc;
}

.deco-cookie-modal-header h3 {
    margin: 0 0 4px;
    font-size: 18px;
    color: #22314a;
}

.deco-cookie-modal-header p {
    margin: 0;
    font-size: 12px;
    color: #607086;
    line-height: 1.45;
}

.deco-cookie-close {
    border: 0;
    background: transparent;
    color: #607086;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.deco-cookie-modal-body {
    padding: 16px;
}

.deco-cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #e8edf4;
}

.deco-cookie-category:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.deco-cookie-category:first-child {
    padding-top: 0;
}

.deco-cookie-category-copy strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: #22314a;
}

.deco-cookie-category-copy p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #607086;
}

.deco-cookie-category-copy {
    min-width: 0;
}

.deco-cookie-category-lock {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-left: 3px solid #2f6fb0;
    background: rgba(47, 111, 176, 0.1);
    color: #2f6fb0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.deco-cookie-switch {
    position: relative;
    display: inline-flex;
    width: 50px;
    height: 26px;
    flex: 0 0 auto;
}

.deco-cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.deco-cookie-switch-slider {
    position: absolute;
    inset: 0;
    background: #c5cfdb;
    border-radius: 999px;
    transition: background 0.2s ease;
    cursor: pointer;
}

.deco-cookie-switch-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(15, 24, 39, 0.2);
    transition: transform 0.2s ease;
}

.deco-cookie-switch input:checked+.deco-cookie-switch-slider {
    background: #2f6fb0;
}

.deco-cookie-switch input:checked+.deco-cookie-switch-slider::before {
    transform: translateX(24px);
}

@media (max-width: 767px) {
    .deco-cookie-banner {
        padding: clamp(8px, 2.8vw, 12px);
    }

    .deco-cookie-banner-content {
        gap: clamp(10px, 2.8vw, 14px);
        padding: clamp(14px, 3.4vw, 18px);
    }

    .deco-cookie-banner-title {
        font-size: clamp(15px, 4.2vw, 17px);
    }

    .deco-cookie-banner-message {
        font-size: clamp(12px, 3.3vw, 14px);
    }

    .deco-cookie-modal {
        padding: clamp(8px, 2.8vw, 14px);
    }

    .deco-cookie-modal-dialog {
        max-width: 100%;
        max-height: calc(100vh - clamp(16px, 5vw, 28px));
    }

    .deco-cookie-modal-header,
    .deco-cookie-modal-footer {
        padding: clamp(10px, 2.8vw, 14px);
        gap: clamp(6px, 2vw, 10px);
    }

    .deco-cookie-modal-header {
        align-items: flex-start;
    }

    .deco-cookie-modal-header h3 {
        font-size: clamp(15px, 4vw, 17px);
    }

    .deco-cookie-modal-header p,
    .deco-cookie-category-copy p {
        font-size: clamp(10px, 2.9vw, 11px);
        line-height: 1.4;
    }

    .deco-cookie-modal-body {
        padding: clamp(10px, 2.8vw, 14px);
    }

    .deco-cookie-category {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: clamp(6px, 2vw, 10px);
        padding: clamp(8px, 2.2vw, 12px) 0;
    }

    .deco-cookie-category-copy {
        min-width: 0;
    }

    .deco-cookie-category-lock,
    .deco-cookie-switch {
        justify-self: end;
        align-self: center;
    }

    .deco-cookie-category-copy strong {
        font-size: clamp(12px, 3.5vw, 13px);
        margin-bottom: 2px;
    }

    .deco-cookie-category-lock {
        padding: clamp(4px, 1.2vw, 5px) clamp(7px, 2vw, 8px);
        font-size: clamp(8px, 2vw, 9px);
    }

    .deco-cookie-switch {
        width: clamp(38px, 10vw, 44px);
        height: clamp(20px, 5.5vw, 24px);
    }

    .deco-cookie-switch-slider::before {
        top: clamp(2px, 0.7vw, 3px);
        left: clamp(2px, 0.7vw, 3px);
        width: clamp(16px, 4.2vw, 18px);
        height: clamp(16px, 4.2vw, 18px);
    }

    .deco-cookie-switch input:checked+.deco-cookie-switch-slider::before {
        transform: translateX(clamp(17px, 4.8vw, 21px));
    }

    .deco-cookie-btn {
        min-width: 0;
        padding: clamp(8px, 2.4vw, 10px) clamp(10px, 3vw, 14px);
        font-size: clamp(12px, 3.2vw, 13px);
        line-height: 1.25;
    }

    .deco-cookie-modal-footer {
        flex-direction: row;
        align-items: stretch;
        justify-content: stretch;
        flex-wrap: nowrap;
    }

    .deco-cookie-modal-footer .deco-cookie-btn {
        flex: 1 1 0;
        width: auto;
    }

    .deco-cookie-close {
        align-self: flex-end;
        font-size: clamp(20px, 5vw, 24px);
    }
}
