.rsc-cookie-settings-link {
    border: 0;
    background: transparent;
    color: #111827;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.rsc-cookie-banner,
.rsc-cookie-modal,
.rsc-cookie-backdrop,
.rsc-cookie-banner *,
.rsc-cookie-modal * {
    box-sizing: border-box;
}

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

.rsc-cookie-banner {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 999999;
    max-width: 1040px;
    margin: 0 auto;
    background: #ffffff;
    color: #111827;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    padding: 20px;
    font-family: inherit;
}

.rsc-cookie-banner-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.rsc-cookie-title {
    font-weight: 800;
    font-size: 18px;
    margin: 0 0 8px;
    color: #111827;
}

.rsc-cookie-text {
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    color: #374151;
}

.rsc-cookie-links {
    margin-top: 8px;
    font-size: 13px;
}

.rsc-cookie-links a {
    color: #111827;
    text-decoration: underline;
    margin-right: 12px;
}

.rsc-cookie-actions,
.rsc-cookie-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.rsc-cookie-actions {
    min-width: 330px;
}

.rsc-cookie-btn {
    appearance: none;
    border: 1px solid #111827;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    background: #ffffff;
    color: #111827;
    line-height: 1.2;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.rsc-cookie-btn:hover,
.rsc-cookie-btn:focus {
    transform: translateY(-1px);
    opacity: 0.92;
}

.rsc-cookie-btn-primary {
    background: #111827;
    color: #ffffff;
}

.rsc-cookie-btn-light {
    background: #f9fafb;
}

.rsc-cookie-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.52);
    z-index: 1000000;
}

.rsc-cookie-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000001;
    width: min(680px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    overflow: auto;
    background: #ffffff;
    color: #111827;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
    padding: 24px;
    font-family: inherit;
}

.rsc-cookie-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.rsc-cookie-modal-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #111827;
}

.rsc-cookie-close {
    border: 0;
    background: #f3f4f6;
    color: #111827;
    border-radius: 999px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    flex: 0 0 auto;
}

.rsc-cookie-category {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    margin: 12px 0;
    background: #ffffff;
}

.rsc-cookie-category-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.rsc-cookie-category h3 {
    font-size: 16px;
    margin: 0;
    color: #111827;
}

.rsc-cookie-category p {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    margin: 8px 0 0;
}

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

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

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

.rsc-cookie-slider:before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    top: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.22);
}

.rsc-cookie-switch input:checked + .rsc-cookie-slider {
    background: #111827;
}

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

.rsc-cookie-switch input:disabled + .rsc-cookie-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.rsc-cookie-modal-actions {
    margin-top: 18px;
}

.rsc-hide-duplicate-cookie-banners .cmplz-cookiebanner,
.rsc-hide-duplicate-cookie-banners #cmplz-cookiebanner-container,
.rsc-hide-duplicate-cookie-banners .cky-consent-container,
.rsc-hide-duplicate-cookie-banners .cky-modal,
.rsc-hide-duplicate-cookie-banners .wd-cookies-popup,
.rsc-hide-duplicate-cookie-banners #cookie-law-info-bar,
.rsc-hide-duplicate-cookie-banners .cli-modal-backdrop,
.rsc-hide-duplicate-cookie-banners .cc-window {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 720px) {
    .rsc-cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 16px;
        border-radius: 16px;
    }

    .rsc-cookie-banner-grid {
        grid-template-columns: 1fr;
    }

    .rsc-cookie-actions {
        min-width: 0;
        justify-content: stretch;
    }

    .rsc-cookie-actions .rsc-cookie-btn,
    .rsc-cookie-modal-actions .rsc-cookie-btn {
        width: 100%;
    }
}
