.cscb-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(49, 31, 71, 0.72);
    display: none;
    z-index: 99998;
}

body.cscb-lock {
    overflow: hidden;
}

#cscb-cookie-banner.cscb-cookie-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 36px);
    max-width: 680px;
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    background: #ffffff;
    color: #111111;
    border: 1px solid #f2d9e2;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
    z-index: 99999;
    display: none;
    font-family: inherit;
}

.cscb-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.cscb-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    flex: 0 0 auto;
}

.cscb-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    color: #111111;
}

#cscb-cookie-banner .cscb-text {
    margin: 8px 0 16px;
    font-size: 14px;
    line-height: 1.55;
    color: #4d4d4d;
}

#cscb-cookie-banner .cscb-link {
    color: #ff5c8a;
    text-decoration: underline;
    font-weight: 600;
}

.cscb-actions,
.cscb-settings-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cscb-actions {
    margin-bottom: 12px;
}

.cscb-settings-actions {
    justify-content: flex-end;
    margin-top: 12px;
}

.cscb-button {
    appearance: none;
    border-radius: 999px;
    padding: 12px 28px;
    min-height: 44px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
}

.cscb-button:hover {
    transform: translateY(-1px);
}

.cscb-button:focus-visible {
    outline: 2px solid rgba(255, 92, 138, 0.25);
    outline-offset: 2px;
}

.cscb-outline {
    background: #ffffff;
    color: #ff5c8a;
    border: 1.5px solid #ff7ba1;
    box-shadow: none;
}

.cscb-outline:hover {
    background: rgba(255, 92, 138, 0.06);
}

.cscb-primary {
    background: linear-gradient(180deg, #ff8fac 0%, #ff6f97 52%, #ff5c8a 100%);
    color: #ffffff;
    border: 1.5px solid #ff6c95;
    box-shadow: 0 6px 16px rgba(255, 92, 138, 0.28);
}

.cscb-primary:hover {
    box-shadow: 0 8px 20px rgba(255, 92, 138, 0.36);
}

.cscb-settings {
    border-top: 1px solid #eeeeee;
    padding-top: 12px;
}

.cscb-setting-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f2f2f2;
}

.cscb-setting-info strong {
    display: block;
    font-size: 15px;
    line-height: 1.3;
    color: #111111;
}

.cscb-setting-info p {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #666666;
}

.cscb-switch {
    position: relative;
    width: 44px;
    min-width: 44px;
    height: 24px;
    display: inline-block;
}

.cscb-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cscb-slider {
    position: absolute;
    inset: 0;
    background: #cccccc;
    border-radius: 24px;
    transition: background-color .2s ease;
}

.cscb-slider::before {
    content: '';
    position: absolute;
    left: 3px;
    bottom: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform .2s ease;
}

.cscb-switch input:checked + .cscb-slider {
    background: #ff5c8a;
}

.cscb-switch input:checked + .cscb-slider::before {
    transform: translateX(20px);
}

.cscb-switch input:disabled + .cscb-slider {
    opacity: 1;
}

@media (max-width: 640px) {
    #cscb-cookie-banner.cscb-cookie-modal {
        padding: 18px;
        border-radius: 12px;
        max-height: calc(100vh - 24px);
        width: calc(100% - 24px);
    }

    .cscb-actions,
    .cscb-settings-actions {
        gap: 10px;
    }

    .cscb-button {
        padding: 11px 18px;
        min-height: 42px;
    }
}
