.sc-cookie-shell {
    position: fixed;
    z-index: 2147483000;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    justify-content: center;
    pointer-events: none;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sc-cookie-shell[hidden],
.sc-cookie-modal-backdrop[hidden] {
    display: none !important;
}

.sc-cookie-box {
    pointer-events: auto;
    width: min(760px, 100%);
    background: #0f172a;
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
    border-radius: 18px;
    padding: 18px;
}

.sc-cookie-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 750;
    color: #ffffff;
}

.sc-cookie-text {
    margin: 8px 0 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #cbd5e1;
}

.sc-cookie-text a {
    color: #93c5fd;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sc-cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.sc-cookie-btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.sc-cookie-btn-primary {
    background: #38bdf8;
    color: #082f49;
}

.sc-cookie-btn-secondary {
    background: #1e293b;
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.sc-cookie-btn-muted {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.sc-cookie-modal-backdrop {
    position: fixed;
    z-index: 2147483001;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(2, 6, 23, 0.62);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sc-cookie-modal {
    width: min(620px, 100%);
    background: #ffffff;
    color: #0f172a;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.4);
    overflow: hidden;
}

.sc-cookie-modal-head {
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.sc-cookie-modal-head h2 {
    margin: 0;
    font-size: 20px;
}

.sc-cookie-modal-body {
    padding: 18px 20px;
}

.sc-cookie-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid #eef2f7;
}

.sc-cookie-row:last-child {
    border-bottom: 0;
}

.sc-cookie-row h3 {
    margin: 0 0 5px 0;
    font-size: 15px;
}

.sc-cookie-row p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #475569;
}

.sc-cookie-switch {
    min-width: 52px;
    height: 30px;
    position: relative;
    display: inline-block;
}

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

.sc-cookie-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    transition: 0.2s;
    border-radius: 999px;
}

.sc-cookie-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    top: 4px;
    background: white;
    transition: 0.2s;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.sc-cookie-switch input:checked + .sc-cookie-slider {
    background: #0284c7;
}

.sc-cookie-switch input:checked + .sc-cookie-slider:before {
    transform: translateX(22px);
}

.sc-cookie-switch input:disabled + .sc-cookie-slider {
    cursor: not-allowed;
    background: #94a3b8;
}

.sc-cookie-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding: 16px 20px 20px 20px;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 560px) {
    .sc-cookie-shell {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .sc-cookie-box {
        padding: 15px;
        border-radius: 14px;
    }

    .sc-cookie-actions,
    .sc-cookie-modal-actions {
        flex-direction: column;
    }

    .sc-cookie-btn {
        width: 100%;
    }
}
