.ncc-root,
.ncc-root * {
    box-sizing: border-box;
}

.ncc-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 999999;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 20px;
    border: 1px solid rgba(0, 0, 0, .16);
    border-radius: 12px;
    background: #fff;
    color: #181818;
    box-shadow: 0 10px 34px rgba(0, 0, 0, .18);
    font: 400 15px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.ncc-banner__content {
    flex: 1 1 auto;
    min-width: 0;
}

.ncc-banner h2,
.ncc-modal h2 {
    margin: 0 0 6px;
    padding: 0;
    color: inherit;
    font: 700 20px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ncc-banner p,
.ncc-modal p {
    margin: 0;
    padding: 0;
    color: #333;
}

.ncc-banner a,
.ncc-modal a {
    color: inherit;
    text-decoration: underline;
}

.ncc-banner__actions,
.ncc-modal__footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.ncc-btn,
.ncc-reopen,
.ncc-icon-btn {
    appearance: none;
    border: 0;
    font: 600 14px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    cursor: pointer;
}

.ncc-btn {
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 7px;
}

.ncc-btn--primary {
    background: #111;
    color: #fff;
}

.ncc-btn--secondary {
    border: 1px solid #777;
    background: #fff;
    color: #111;
}

.ncc-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: rgba(0, 0, 0, .48);
}

.ncc-modal {
    position: fixed;
    z-index: 1000001;
    top: 50%;
    left: 50%;
    width: min(620px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    overflow: auto;
    transform: translate(-50%, -50%);
    padding: 22px;
    border-radius: 12px;
    background: #fff;
    color: #181818;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    font: 400 15px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ncc-modal__header {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.ncc-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f2f2f2;
    color: #111;
    font-size: 25px;
}

.ncc-preference {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid #e6e6e6;
}

.ncc-preference > span:first-child,
.ncc-preference > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ncc-preference span span,
.ncc-preference div span {
    color: #555;
    font-size: 13px;
}

.ncc-preference input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.ncc-always-on {
    color: #555;
    font-weight: 600;
    white-space: nowrap;
}

.ncc-modal__footer {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid #e6e6e6;
}

.ncc-reopen {
    position: fixed;
    z-index: 999998;
    left: 14px;
    bottom: 14px;
    padding: 8px 11px;
    border: 1px solid rgba(0, 0, 0, .28);
    border-radius: 7px;
    background: #fff;
    color: #222;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .12);
    font-size: 12px;
}

html.ncc-modal-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .ncc-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        display: block;
        padding: 16px;
    }

    .ncc-banner__actions {
        margin-top: 14px;
        justify-content: stretch;
    }

    .ncc-banner__actions .ncc-btn {
        flex: 1 1 140px;
    }

    .ncc-modal__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .ncc-modal__footer-actions {
        justify-content: stretch;
    }

    .ncc-modal__footer-actions .ncc-btn {
        flex: 1 1 140px;
    }
}
