.cookie-settings-link {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    text-align: left;
}

.cookie-consent-banner {
    position: fixed;
    z-index: 1080;
    bottom: 24px;
    width: min(440px, calc(100vw - 32px));
    padding: 20px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
    color: #1f2937;
}

.cookie-consent-banner.bottom-left {
    left: 24px;
}

.cookie-consent-banner.bottom-center {
    left: 50%;
    transform: translateX(-50%);
}

.cookie-consent-banner.bottom-right {
    right: 24px;
}

.cookie-consent-title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 800;
}

.cookie-consent-copy {
    margin: 0 0 14px;
    color: #5b6675;
    font-size: 0.94rem;
    line-height: 1.5;
}

.cookie-consent-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.cookie-consent-links a,
.cookie-consent-data-copy a {
    color: #1f2937;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    border: 1px solid #1f2937;
    border-radius: 999px;
    padding: 10px 14px;
    background: #fff;
    color: #1f2937;
    font-weight: 800;
    line-height: 1;
}

.cookie-btn-primary {
    background: #1f2937;
    color: #fff;
}

.cookie-btn-ghost {
    border-color: rgba(15, 23, 42, 0.14);
}

.cookie-consent-modal[hidden],
.cookie-consent-banner[hidden] {
    display: none;
}

.cookie-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.56);
}

.cookie-consent-dialog {
    width: min(640px, 100%);
    max-height: min(760px, calc(100vh - 36px));
    overflow: auto;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 26px 80px rgba(15, 23, 42, 0.32);
}

.cookie-consent-modal-head,
.cookie-consent-modal-foot {
    padding: 18px 20px;
}

.cookie-consent-modal-head {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cookie-consent-modal-title {
    margin: 0 0 6px;
    font-size: 1.18rem;
    font-weight: 800;
}

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

.cookie-category {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cookie-category .cookie-category-title {
    margin: 0 0 4px;
    color: #1f2937;
    font-size: 0.98rem;
    font-weight: 800;
}

.cookie-category p,
.cookie-consent-data-copy {
    margin: 0;
    color: #5b6675;
    font-size: 0.9rem;
    line-height: 1.45;
}

.cookie-switch {
    position: relative;
    flex: 0 0 auto;
    width: 48px;
    height: 28px;
}

.cookie-switch input {
    position: absolute;
    opacity: 0;
}

.cookie-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 0.16s ease;
}

.cookie-switch span::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
    transition: transform 0.16s ease;
}

.cookie-switch input:checked + span {
    background: #1f2937;
}

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

.cookie-switch input:disabled + span {
    opacity: 0.72;
}

.cookie-consent-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 575px) {
    .cookie-consent-banner {
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 18px 18px 0 0;
    }

    .cookie-consent-banner.bottom-center {
        transform: none;
    }

    .cookie-consent-actions,
    .cookie-consent-modal-foot {
        display: grid;
        grid-template-columns: 1fr;
    }

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