.bnc-surface,
.bnc-persistent {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #18362e;
    box-sizing: border-box;
    text-align: left;
}
.bnc-persistent {
    display: none !important;
}
.bnc-surface *,
.bnc-persistent * {
    box-sizing: border-box
}

.bnc-surface[hidden],
.bnc-persistent [hidden] {
    display: none !important
}

.bnc-banner,
.bnc-error {
    position: fixed;
    z-index: 2147483000;
    bottom: 72px;
    left: 24px;
    right: 24px;
    max-width: 760px;
    margin: 0 auto;
    padding: 24px;
    background: #fff;
    border: 1px solid #b9cfc5;
    border-radius: 16px;
    box-shadow: 0 12px 48px #102d292e;
    max-height: calc(100vh - 112px);
    overflow: auto
}

.bnc-surface h2 {
    margin: 0 32px 12px 0;
    font-size: 22px;
    font-weight: 700;
    color: #18362e;
    line-height: 1.25
}

.bnc-surface h3 {
    font-size: 17px;
    color: #18362e;
    margin: 20px 0 8px
}

.bnc-surface p {
    margin: 10px 0
}

.bnc-surface a {
    color: #155b44;
    text-decoration: underline;
    text-underline-offset: 3px
}

.bnc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 14px
}

.bnc-button,
.bnc-small-button {
    appearance: none;
    cursor: pointer;
    border: 1px solid #236148;
    background: #fff;
    color: #174b38;
    border-radius: 8px;
    padding: 11px 15px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    min-height: 44px;
    text-align: center;
    text-decoration: none;
    box-shadow: none;
    white-space: normal
}

.bnc-actions .bnc-button {
    flex: 1 1 160px;
    background: #216147;
    color: #fff;
    border-color: #216147
}

.bnc-button:hover,
.bnc-small-button:hover {
    background: #e4f0e9;
    color: #153f30
}

.bnc-actions .bnc-button:hover {
    background: #154831;
    color: #fff
}

.bnc-button:disabled {
    cursor: wait;
    opacity: .65
}

.bnc-surface :focus-visible,
.bnc-persistent :focus-visible {
    outline: 3px solid #b66800;
    outline-offset: 3px
}

.bnc-persistent {
    position: fixed;
    z-index: 2147482999;
    bottom: 16px;
    left: 20px;
    display: flex;
    gap: 8px;
    padding: 4px;
    border: 1px solid #c1d4cb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 18px #102d291f;
    max-width: calc(100vw - 40px)
}

.bnc-persistent button {
    font-size: 12px;
    padding: 8px 12px;
    min-height: 36px
}

.bnc-panel {
    position: fixed;
    z-index: 2147483100;
    width: min(700px, calc(100% - 32px));
    max-height: 85vh;
    padding: 28px;
    margin: auto;
    border: 1px solid #9eb7aa;
    border-radius: 16px;
    background: #fff;
    overflow: auto;
    box-shadow: 0 16px 60px #102d2955
}

.bnc-panel:not([open]) {
    display: none
}

.bnc-panel::backdrop {
    background: #0c211980
}

.bnc-close {
    position: absolute;
    top: 16px;
    right: 16px;
    max-width: 120px
}

.bnc-panel h2 {
    padding-right: 100px
}

.bnc-category {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer
}

.bnc-category input {
    width: 22px;
    height: 22px;
    accent-color: #216147;
    flex: none;
    margin: 0
}

.bnc-service {
    background: #f0f6f2;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 10px 0;
    overflow-wrap: anywhere
}

.bnc-service p {
    font-size: 13px;
    margin: 6px 0
}

.bnc-message {
    color: #924500;
    font-weight: 600
}

.bnc-muted {
    font-size: 12px;
    color: #4e665b
}

.bnc-policy {
    font: 16px/1.65 Arial, Helvetica, sans-serif;
    color: #18362e;
    margin: 0;
    padding: 36px 20px 100px
}

.bnc-policy main {
    max-width: 1060px;
    margin: auto;
    background: #fff;
    border: 1px solid #c6d6cc;
    border-radius: 16px;
    padding: 32px
}

.bnc-policy h1 {
    font-size: 30px;
    line-height: 1.2
}

.bnc-policy h2 {
    font-size: 22px;
    margin-top: 30px
}

.bnc-policy a {
    color: #155b44
}

.bnc-policy table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px
}

.bnc-policy th,
.bnc-policy td {
    vertical-align: top;
    text-align: left;
    padding: 10px;
    border: 1px solid #c8d6cc;
    overflow-wrap: anywhere
}

.bnc-policy th {
    background: #edf3ef
}

.bnc-table-scroll {
    overflow: auto
}

.bnc-policy-extra {
    white-space: pre-line
}

.bnc-policy code {
    overflow-wrap: anywhere
}

@media(max-width:600px) {

    .bnc-banner,
    .bnc-error {
        left: 12px;
        right: 12px;
        bottom: 76px;
        padding: 18px;
        max-height: calc(100dvh - 100px)
    }

    .bnc-actions {
        gap: 8px
    }

    .bnc-actions .bnc-button {
        flex-basis: 100%;
        padding: 10px
    }

    .bnc-panel {
        padding: 22px 18px
    }

    .bnc-persistent {
        left: 12px;
        bottom: 12px
    }

    .bnc-policy {
        padding: 16px 12px 110px
    }

    .bnc-policy main {
        padding: 20px 16px
    }

    .bnc-policy h1 {
        font-size: 26px
    }
}

@media(prefers-reduced-motion:reduce) {
    .bnc-surface * {
        scroll-behavior: auto !important
    }
}

@media print {

    .bnc-banner,
    .bnc-persistent,
    .bnc-panel {
        display: none !important
    }

    .bnc-policy {
        background: #fff;
        padding: 0
    }

    .bnc-policy main {
        border: 0;
        padding: 0
    }
}

/* Configurable 1.1 surfaces. Only validated color/number variables are used. */
.bnc-surface,
.bnc-persistent {
    --bnc-bg: #fff;
    --bnc-text: #18362e;
    --bnc-accent: #216147;
    --bnc-button-text: #fff;
    --bnc-border: #c6d6cc;
    --bnc-radius: 14px;
    --bnc-width: 920px;
    --bnc-font_size: 15px;
    color: var(--bnc-text);
    font-size: var(--bnc-font_size)
}

.bnc-persistent[hidden] {
    display: none !important
}

.bnc-banner,
.bnc-panel,
.bnc-persistent {
    background: var(--bnc-bg);
    border-color: var(--bnc-border);
    border-radius: var(--bnc-radius)
}

.bnc-banner {
    bottom: 24px;
    max-width: var(--bnc-width);
    padding: 24px 28px;
    max-height: calc(100dvh - 48px);
    animation: bnc-enter .2s ease-out
}

.bnc-surface h2,
.bnc-surface h3 {
    color: var(--bnc-text)
}

.bnc-banner h2 {
    font-size: 20px;
    margin-bottom: 8px
}

.bnc-copy p {
    margin: 0 0 8px;
    white-space: pre-line
}

.bnc-copy a {
    font-size: 13px
}

.bnc-banner .bnc-actions {
    margin: 18px 0 0
}

.bnc-surface a {
    color: var(--bnc-accent)
}

.bnc-actions .bnc-button {
    background: var(--bnc-accent);
    border-color: var(--bnc-accent);
    color: var(--bnc-button-text)
}

.bnc-actions .bnc-button:hover {
    background: var(--bnc-accent);
    color: var(--bnc-button-text);
    filter: brightness(.92)
}

.bnc-button,
.bnc-small-button {
    border-color: var(--bnc-accent);
    color: var(--bnc-text);
    background: var(--bnc-bg);
    border-radius: min(8px, var(--bnc-radius))
}

.bnc-category input {
    accent-color: var(--bnc-accent)
}

.bnc-surface p,
.bnc-surface h2,
.bnc-surface h3,
.bnc-button {
    overflow-wrap: anywhere
}

.bnc-service {
    background: transparent;
    border: 1px solid var(--bnc-border)
}

.bnc-banner[data-bnc-layout="bottom_left"] {
    margin: 0;
    right: auto;
    width: min(var(--bnc-width), 480px, calc(100% - 48px))
}

.bnc-banner[data-bnc-layout="bottom_right"] {
    margin: 0;
    left: auto;
    width: min(var(--bnc-width), 480px, calc(100% - 48px))
}

.bnc-banner[data-bnc-layout="top_bar"] {
    top: 24px;
    bottom: auto
}

.bnc-persistent[data-bnc-layout="bottom_right"] {
    right: 20px;
    left: auto
}

.bnc-panel {
    max-height: calc(100dvh - 40px);
    color: var(--bnc-text)
}

.bnc-panel .bnc-category input:disabled {
    opacity: 1
}

.bnc-panel p {
    white-space: pre-line
}

@keyframes bnc-enter {
    from {
        opacity: 0;
        transform: translateY(8px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@media(max-width:600px) {

    .bnc-banner,
    .bnc-banner[data-bnc-layout="bottom_left"],
    .bnc-banner[data-bnc-layout="bottom_right"] {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-height: calc(100dvh - 24px);
        padding: 20px;
        margin: 0
    }

    .bnc-banner[data-bnc-layout="top_bar"] {
        top: 12px;
        bottom: auto
    }

    .bnc-panel {
        width: calc(100% - 24px);
        max-height: calc(100dvh - 24px)
    }

    .bnc-persistent {
        max-width: calc(100vw - 24px)
    }

    .bnc-banner h2 {
        font-size: 19px
    }
}

@media(prefers-reduced-motion:reduce) {
    .bnc-banner {
        animation: none
    }
}