.jb-suite-cookie-open {
    overflow: hidden;
}

.jb-suite-cookie-consent {
    position: relative;
    z-index: 99998;
}

.jb-suite-cookie-banner {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: min(400px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid #d6d6db;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
    padding: 20px;
    z-index: 99999;
}

.jb-suite-cookie-banner h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.2;
    color: #111827;
}

.jb-suite-cookie-banner p {
    margin: 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.45;
}

.jb-suite-cookie-banner p a {
    color: #0056d2;
}

.jb-suite-cookie-banner-actions {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.jb-suite-cookie-btn {
    border: 1px solid #0056d2;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    color: #0056d2;
}

.jb-suite-cookie-btn-primary {
    background: #0056d2;
    color: #fff;
}

.jb-suite-cookie-btn:hover {
    filter: brightness(0.98);
}

.jb-suite-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.jb-suite-cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.jb-suite-cookie-modal-dialog {
    position: relative;
    width: min(800px, calc(100vw - 24px));
    margin: 6vh auto 0;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.jb-suite-cookie-modal-header {
    padding: 14px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.jb-suite-cookie-modal-header h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    color: #111827;
}

.jb-suite-cookie-close {
    border: 0;
    background: transparent;
    font-size: 34px;
    line-height: 1;
    color: #98a2b3;
    cursor: pointer;
}

.jb-suite-cookie-modal-body {
    padding: 16px 20px;
    overflow: auto;
    display: grid;
    gap: 14px;
}

.jb-suite-cookie-category {
    border-bottom: 1px solid #eceff3;
    padding-bottom: 14px;
}

.jb-suite-cookie-category:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

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

.jb-suite-cookie-category-head strong {
    font-size: 18px;
    color: #111827;
}

.jb-suite-cookie-category p {
    margin: 8px 0 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.45;
}

.jb-suite-cookie-always-on {
    color: #1f8a2e;
    font-size: 16px;
    font-weight: 600;
}

.jb-suite-cookie-switch {
    position: relative;
    width: 56px;
    height: 32px;
    display: inline-block;
}

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

.jb-suite-cookie-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d0d5dd;
    transition: 0.2s ease;
}

.jb-suite-cookie-switch span::before {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    left: 4px;
    top: 4px;
    border-radius: 999px;
    background: #fff;
    transition: 0.2s ease;
}

.jb-suite-cookie-switch input:checked + span {
    background: #0056d2;
}

.jb-suite-cookie-switch input:checked + span::before {
    transform: translateX(24px);
}

.jb-suite-cookie-modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 12px 20px 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 767px) {
    .jb-suite-cookie-banner {
        left: 8px;
        right: 8px;
        bottom: 8px;
        width: auto;
        padding: 14px;
    }

    .jb-suite-cookie-banner h3 {
        font-size: 22px;
    }

    .jb-suite-cookie-banner p {
        font-size: 15px;
    }

    .jb-suite-cookie-banner-actions {
        grid-template-columns: 1fr;
    }

    .jb-suite-cookie-btn {
        font-size: 15px;
    }

    .jb-suite-cookie-modal-dialog {
        width: calc(100vw - 12px);
        margin-top: 2vh;
        max-height: 94vh;
    }

    .jb-suite-cookie-modal-header h3 {
        font-size: 18px;
    }

    .jb-suite-cookie-category-head strong {
        font-size: 18px;
    }

    .jb-suite-cookie-category p {
        font-size: 14px;
    }

    .jb-suite-cookie-always-on {
        font-size: 13px;
    }

    .jb-suite-cookie-modal-footer {
        grid-template-columns: 1fr;
    }
}
