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

.sc-cookie {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1080;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 -0.5rem 2rem rgba(0, 0, 0, 0.12);
}

.sc-cookie__box {
    display: flex;
    max-width: 1100px;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 1rem;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.12);
}

.sc-cookie__content {
    min-width: 0;
}

.sc-cookie__title {
    margin: 0 0 0.35rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.sc-cookie__text {
    margin: 0;
    font-size: 0.95rem;
}

.sc-cookie__actions,
.sc-cookie-modal__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.sc-cookie__btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

.sc-cookie__btn--primary {
    color: #fff;
    background: var(--bs-pink, #d63384);
    border-color: var(--bs-pink, #d63384);
}

.sc-cookie__btn--secondary {
    color: var(--bs-pink, #d63384);
    background: #fff;
    border-color: var(--bs-pink, #d63384);
}

.sc-cookie__btn--light {
    color: #222;
    background: #f8f9fa;
    border-color: #ced4da;
}

.sc-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 1090;
}

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

.sc-cookie-modal__box {
    position: relative;
    width: min(620px, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    margin: 1rem auto;
    padding: 1.25rem;
    overflow: auto;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25);
}

.sc-cookie-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.sc-cookie-modal__title {
    margin: 0 2rem 1rem 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.sc-cookie-modal__section {
    padding: 1rem 0;
    border-top: 1px solid #e9ecef;
}

.sc-cookie-modal__section h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
}

.sc-cookie-modal__section p {
    margin: 0 0 0.5rem;
}

.sc-cookie-modal__badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: #f1f3f5;
    font-size: 0.8rem;
}

.sc-cookie-switch {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    cursor: pointer;
}

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

.sc-cookie-switch__control {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: #ced4da;
    transition: background 0.2s ease;
}

.sc-cookie-switch__control::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    content: '';
    transition: transform 0.2s ease;
}

.sc-cookie-switch input:checked + .sc-cookie-switch__control {
    background: var(--bs-pink, #d63384);
}

.sc-cookie-switch input:checked + .sc-cookie-switch__control::after {
    transform: translateX(20px);
}

.sc-cookie-switch__text small {
    display: block;
    margin-top: 0.25rem;
    color: #6c757d;
}

@media (max-width: 767.98px) {
    .sc-cookie {
        padding: 0;
    }

    .sc-cookie__box {
        display: block;
        border-radius: 0;
    }

    .sc-cookie__actions {
        margin-top: 1rem;
        justify-content: stretch;
    }

    .sc-cookie__btn {
        flex: 1 1 100%;
    }
}
