.sa-consent[hidden],
.sa-consent-button[hidden] {
    display: none !important;
}

.sa-consent {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #101942;
}

.sa-consent__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 15, 40, 0.62);
    backdrop-filter: blur(3px);
}

.sa-consent__panel {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: min(680px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 24px;
    border: 1px solid #dce0f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(9, 15, 40, 0.28);
}

.sa-consent__panel--preferences {
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
}

.sa-consent__eyebrow {
    margin: 0 0 6px;
    color: #f60c49;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sa-consent__title {
    margin: 0 0 10px;
    color: #101942;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.sa-consent__text {
    margin: 0;
    color: #4f5f8d;
    font-size: 14px;
    line-height: 1.6;
}

.sa-consent__link {
    color: #d40840;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sa-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.sa-consent__action {
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #c5cbdf;
    border-radius: 999px;
    background: #fff;
    color: #101942;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.sa-consent__action:hover,
.sa-consent__action:focus-visible {
    border-color: #101942;
    outline: 3px solid rgba(16, 25, 66, 0.16);
    outline-offset: 2px;
}

.sa-consent__action--primary {
    border-color: #f60c49;
    background: #f60c49;
    color: #fff;
}

.sa-consent__action--primary:hover,
.sa-consent__action--primary:focus-visible {
    border-color: #d40840;
    background: #d40840;
}

.sa-consent__categories {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.sa-consent__category {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    border: 1px solid #dce0f0;
    border-radius: 14px;
    background: #f8f9fd;
}

.sa-consent__category h3 {
    margin: 0 0 4px;
    color: #101942;
    font-size: 15px;
    font-weight: 800;
}

.sa-consent__category p {
    margin: 0;
    color: #6070a0;
    font-size: 13px;
    line-height: 1.45;
}

.sa-consent__switch {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    accent-color: #f60c49;
    cursor: pointer;
}

.sa-consent__switch:disabled {
    cursor: not-allowed;
}

.sa-consent-button {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 2147482999;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #c5cbdf;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #101942;
    box-shadow: 0 3px 10px rgba(9, 15, 40, 0.13);
    font: 700 16px/1 Inter, system-ui, sans-serif;
    cursor: pointer;
}

.sa-consent-button__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sa-consent-button:hover,
.sa-consent-button:focus-visible {
    border-color: #101942;
    outline: 3px solid rgba(16, 25, 66, 0.16);
    outline-offset: 2px;
}

.sa-consent-noscript {
    position: relative;
    z-index: 2147482998;
    padding: 10px 16px;
    background: #fff3cd;
    color: #664d03;
    text-align: center;
    font: 600 13px/1.45 system-ui, sans-serif;
}

@media (max-width: 640px) {
    .sa-consent__panel {
        bottom: 12px;
        width: calc(100vw - 20px);
        max-height: calc(100vh - 24px);
        padding: 20px;
        border-radius: 16px;
    }

    .sa-consent__panel--preferences {
        top: 12px;
        bottom: 12px;
        transform: translateX(-50%);
    }

    .sa-consent__actions {
        display: grid;
    }

    .sa-consent__action {
        width: 100%;
    }

    .sa-consent-button {
        right: 10px;
        bottom: 10px;
    }
}
