.nf-cc {
    --nf-cc-green: #1FB25A;
    --nf-cc-green-hover: #1a994d;
    --nf-cc-text: #333;
    --nf-cc-muted: #5c5c5c;
    --nf-cc-border: #e2e2e2;
    --nf-cc-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: var(--nf-cc-text);
    z-index: 99999;
}

.nf-cc[hidden],
.nf-cc [hidden] {
    display: none !important;
}

.nf-cc button {
    font-family: inherit;
    box-shadow: none;
    text-transform: none;
    letter-spacing: 0;
    background-image: none;
    -webkit-appearance: none;
    appearance: none;
}

.nf-cc__banner {
    position: fixed;
    bottom: 20px;
    z-index: 100000;
    width: min(420px, calc(100vw - 24px));
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--nf-cc-shadow);
}

.nf-cc--left .nf-cc__banner,
.nf-cc--left .nf-cc__reopen {
    left: 20px;
    right: auto;
}

.nf-cc--right .nf-cc__banner,
.nf-cc--right .nf-cc__reopen {
    right: 20px;
    left: auto;
}

.nf-cc__banner-inner {
    padding: 22px 22px 18px;
}

.nf-cc__title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--nf-cc-text);
}

.nf-cc__message {
    margin: 0 0 12px;
    color: var(--nf-cc-muted);
}

.nf-cc__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 16px;
}

.nf-cc__link {
    background: none !important;
    background-color: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    color: #1FB25A !important;
    text-decoration: underline !important;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    box-shadow: none !important;
}

.nf-cc__link:hover {
    color: #1a994d !important;
}

.nf-cc__actions,
.nf-cc__modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.nf-cc button.nf-cc__btn {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: none !important;
}

.nf-cc button.nf-cc__btn--primary {
    background: #1FB25A !important;
    background-color: #1FB25A !important;
    background-image: none !important;
    color: #fff !important;
    border: 1px solid #1FB25A !important;
}

.nf-cc button.nf-cc__btn--primary:hover,
.nf-cc button.nf-cc__btn--primary:focus {
    background: #1a994d !important;
    background-color: #1a994d !important;
    color: #fff !important;
    border-color: #1a994d !important;
}

.nf-cc button.nf-cc__btn--ghost {
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    color: #333 !important;
    border: 1px solid #c6c6c6 !important;
}

.nf-cc button.nf-cc__btn--ghost:hover,
.nf-cc button.nf-cc__btn--ghost:focus {
    border-color: #111 !important;
    color: #111 !important;
    background: #fff !important;
}

.nf-cc__overlay {
    display: none;
}

.nf-cc__modal {
    position: fixed;
    inset: 0;
    z-index: 100002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.45);
}

.nf-cc__modal-inner {
    width: min(720px, 100%);
    max-height: min(86vh, 800px);
    overflow: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--nf-cc-shadow);
}

.nf-cc__modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 10px;
    border-bottom: 1px solid var(--nf-cc-border);
}

.nf-cc__modal-title {
    margin: 0;
    font-size: 18px;
}

.nf-cc button.nf-cc__close {
    background: none !important;
    background-color: transparent !important;
    border: 0 !important;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666 !important;
    padding: 0 4px !important;
    box-shadow: none !important;
}

.nf-cc__modal-body {
    padding: 8px 20px 16px;
}

.nf-cc__group {
    border-bottom: 1px solid var(--nf-cc-border);
    padding: 12px 0;
}

.nf-cc__group-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nf-cc button.nf-cc__group-toggle {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    flex: 1;
    background: #f6f7f7 !important;
    background-color: #f6f7f7 !important;
    border: 1px solid #e2e2e2 !important;
    border-radius: 6px;
    padding: 10px 12px !important;
    cursor: pointer;
    text-align: left;
    color: #333 !important;
    font: inherit;
    box-shadow: none !important;
}

.nf-cc button.nf-cc__group-toggle:hover,
.nf-cc button.nf-cc__group-toggle:focus {
    border-color: #1FB25A !important;
    background: #f0faf4 !important;
    background-color: #f0faf4 !important;
}

.nf-cc__chevron {
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 7px;
    border-color: transparent transparent transparent #1FB25A;
    transform: rotate(0deg);
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.nf-cc__group-toggle[aria-expanded="true"] .nf-cc__chevron {
    transform: rotate(90deg);
}

.nf-cc__group-name {
    font-weight: 700;
}

.nf-cc__group-hint {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: #1FB25A;
    text-decoration: underline;
    white-space: nowrap;
}

.nf-cc__group-hint-open {
    display: none;
}

.nf-cc__group-toggle[aria-expanded="true"] .nf-cc__group-hint-closed {
    display: none;
}

.nf-cc__group-toggle[aria-expanded="true"] .nf-cc__group-hint-open {
    display: inline;
}

.nf-cc__always {
    font-size: 12px;
    color: #1FB25A;
    font-weight: 600;
    white-space: nowrap;
}

.nf-cc__group-desc {
    margin: 8px 0 0;
    color: var(--nf-cc-muted);
    font-size: 13px;
}

.nf-cc__group-body {
    margin-top: 12px;
    overflow-x: auto;
}

.nf-cc__empty {
    margin: 0;
    color: var(--nf-cc-muted);
}

.nf-cc__service {
    border: 1px solid var(--nf-cc-border);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #fafafa;
}

.nf-cc__service-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.nf-cc__service-copy {
    min-width: 0;
    flex: 1;
}

.nf-cc__service-name {
    display: block;
    font-size: 13px;
}

.nf-cc__service-desc {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--nf-cc-muted);
}

.nf-cc__service-desc a {
    color: #1FB25A;
    text-decoration: underline;
}

.nf-cc__service-desc a:hover {
    color: #1a994d;
}

.nf-cc__service-keys {
    margin: 4px 0 0;
    font-size: 11px;
    color: #6b6b6b;
    word-break: break-word;
}

.nf-cc__service-keys span {
    font-weight: 600;
    color: #444;
}

.nf-cc__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.nf-cc__table th,
.nf-cc__table td {
    border: 1px solid var(--nf-cc-border);
    padding: 8px;
    text-align: left;
    vertical-align: top;
}

.nf-cc__table th {
    background: #f7f7f7;
}

.nf-cc__modal-actions {
    padding: 12px 20px 18px;
    border-top: 1px solid var(--nf-cc-border);
}

.nf-cc__switch {
    position: relative;
    display: inline-flex;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.nf-cc__switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}

.nf-cc__switch-ui {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #ccc;
    transition: background 0.15s ease;
}

.nf-cc__switch-ui::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.15s ease;
}

.nf-cc__switch input:checked + .nf-cc__switch-ui {
    background: #1FB25A;
}

.nf-cc__switch input:checked + .nf-cc__switch-ui::after {
    transform: translateX(18px);
}

.nf-cc__switch--small {
    width: 36px;
    height: 20px;
}

.nf-cc__switch--small .nf-cc__switch-ui::after {
    width: 14px;
    height: 14px;
}

.nf-cc__switch--small input:checked + .nf-cc__switch-ui::after {
    transform: translateX(16px);
}

.nf-cc button.nf-cc__reopen {
    position: fixed;
    bottom: 20px;
    z-index: 99998;
    width: 44px;
    height: 44px;
    border: 0 !important;
    border-radius: 50%;
    background: #fff !important;
    background-color: #fff !important;
    box-shadow: var(--nf-cc-shadow) !important;
    cursor: pointer;
    padding: 0 !important;
}

.nf-cc__reopen-icon {
    display: block;
    width: 18px;
    height: 18px;
    margin: 0 auto;
    border: 2px solid #1FB25A;
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px #fff, inset 6px 0 0 #1FB25A;
}

@media (max-width: 600px) {
    .nf-cc__banner {
        bottom: 12px;
        width: calc(100vw - 24px);
    }

    .nf-cc--left .nf-cc__banner,
    .nf-cc--right .nf-cc__banner,
    .nf-cc--left .nf-cc__reopen,
    .nf-cc--right .nf-cc__reopen {
        left: 12px;
        right: 12px;
    }

    .nf-cc button.nf-cc__reopen {
        left: auto !important;
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .nf-cc__modal-actions {
        flex-direction: column-reverse;
    }

    .nf-cc button.nf-cc__btn {
        width: 100%;
    }

    .nf-cc__group-hint {
        width: 100%;
        margin-left: 17px;
    }
}
