/* Public consent dialog: white canvas, cool gray type, muted green confirmation. */
#npcc-overlay,
#npcc-overlay * { box-sizing: border-box; }
#npcc-overlay {
    --npcc-green: #43865d;
    --npcc-ink: #737980;
    --npcc-shade: rgba(6, 13, 22, .72);
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--npcc-shade) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
#npcc-overlay[hidden], #npcc-overlay [hidden] { display: none !important; }
html.npcc-locked, html.npcc-locked body { overflow: hidden !important; }
#npcc-overlay .npcc-dialog {
    width: 850px !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 48px);
    margin: auto !important;
    padding: 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #e9e9e9 !important;
    border-radius: 5px !important;
    background: #fff !important;
    color: var(--npcc-ink) !important;
    box-shadow: 0 18px 46px rgba(0, 0, 0, .21) !important;
    text-align: left !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
}
#npcc-overlay .npcc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 68px;
    padding: 22px 28px 10px;
    margin: 0;
    border: 0;
    background: #fff;
}
#npcc-overlay .npcc-brand {
    color: #7d848a;
    font: 700 23px/1.3 Arial, Helvetica, sans-serif !important;
    letter-spacing: -.035em !important;
    overflow-wrap: anywhere;
}
#npcc-overlay .npcc-secure {
    color: #b5b9bd;
    font-size: 12px !important;
    text-align: right;
    font-weight: 400 !important;
}
#npcc-overlay .npcc-tabs {
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr));
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #e1e3e5 !important;
    background: #fff !important;
}
#npcc-overlay .npcc-tab {
    min-width: 0 !important;
    min-height: 49px !important;
    margin: 0 !important;
    padding: 10px 4px !important;
    border: 0 !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #a3a8ad !important;
    text-align: center !important;
    text-transform: none !important;
    font: 600 13px/1.35 Arial, Helvetica, sans-serif !important;
    letter-spacing: 0 !important;
    cursor: pointer;
    text-decoration: none !important;
    -webkit-appearance: none;
    appearance: none;
    transition: color .15s ease;
}
#npcc-overlay .npcc-tab[aria-selected="true"] {
    border-bottom-color: #abb0b4 !important;
    color: #797f85 !important;
}
#npcc-overlay .npcc-tab:hover { color: #656c73 !important; }
#npcc-overlay button:focus-visible, #npcc-overlay a:focus-visible, #npcc-overlay input:focus-visible {
    outline: 3px solid #528f6e !important;
    outline-offset: 3px !important;
}
#npcc-overlay .npcc-inner { padding: 23px 28px 24px; }
#npcc-overlay .npcc-view { display: flex; flex-direction: column; min-height: 231px; margin: 0; padding: 0; }
#npcc-overlay .npcc-scroll-area > h2 {
    margin: 0 0 11px !important;
    padding: 0 !important;
    border: 0 !important;
    color: #8a9095 !important;
    font: 600 14px/1.4 Arial, Helvetica, sans-serif !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    background: transparent !important;
}
#npcc-overlay .npcc-description, #npcc-overlay .npcc-info {
    margin: 0 0 12px !important;
    padding: 0 !important;
    color: var(--npcc-ink) !important;
    font: 400 13px/1.7 Arial, Helvetica, sans-serif !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
#npcc-overlay .npcc-info { margin-top: 2px !important; font-size: 12px !important; }
#npcc-overlay .npcc-info a {
    padding: 0 !important;
    color: #616970 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    background: transparent !important;
}
#npcc-overlay .npcc-actions {
    display: flex !important;
    gap: 9px !important;
    align-items: stretch;
    justify-content: flex-end;
    margin: auto 0 0 !important;
    padding: 17px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
}
#npcc-overlay .npcc-btn {
    display: inline-flex !important;
    flex: 0 1 194px;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 123px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 9px 16px !important;
    border: 1px solid #bfc3c6 !important;
    border-radius: 3px !important;
    background: #fff !important;
    background-image: none !important;
    box-shadow: 0 4px 7px rgba(0, 0, 0, .12) !important;
    color: #8c9399 !important;
    text-align: center !important;
    text-decoration: none !important;
    font: 600 12px/1.25 Arial, Helvetica, sans-serif !important;
    letter-spacing: .09em !important;
    text-transform: uppercase !important;
    opacity: 1 !important;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: filter .15s, box-shadow .15s !important;
}
#npcc-overlay .npcc-btn:hover { filter: brightness(.985) !important; box-shadow: 0 6px 12px rgba(0,0,0,.15) !important; }
#npcc-overlay .npcc-btn-custom { flex: 0 1 190px; }
#npcc-overlay .npcc-btn-reject { flex: 0 1 150px; }
#npcc-overlay .npcc-btn-accept {
    flex: 0 1 194px;
    border-color: var(--npcc-green) !important;
    background: var(--npcc-green) !important;
    color: #fff !important;
    box-shadow: 0 5px 10px rgba(24, 67, 38, .25) !important;
}
#npcc-overlay .npcc-categories {
    display: grid;
    gap: 2px;
    max-height: 42vh;
    overflow-y: auto;
    margin: 3px 0 13px;
    border: 1px solid #e7eaec;
    border-radius: 2px;
}
#npcc-overlay .npcc-category {
    display: flex !important;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin: 0 !important;
    padding: 9px 13px !important;
    border: 0;
    border-bottom: 1px solid #eff0f1;
    color: #777f85 !important;
    background: #fff;
    font: 400 13px/1.45 Arial, Helvetica, sans-serif !important;
    cursor: pointer;
}
#npcc-overlay .npcc-category:last-child { border-bottom: 0; }
#npcc-overlay .npcc-category span { display: block; }
#npcc-overlay .npcc-category strong {
    display: block;
    margin-bottom: 2px;
    font-weight: 600 !important;
    color: #6d747a !important;
}
#npcc-overlay .npcc-category small {
    display: block;
    font-size: 12px !important;
    color: #8a9197 !important;
}
#npcc-overlay .npcc-category input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: var(--npcc-green);
    cursor: pointer;
}
#npcc-overlay .npcc-category input[disabled] { cursor: not-allowed; opacity: .6; }
.npcc-open-settings {
    cursor: pointer;
    background: transparent;
    color: inherit;
    font: inherit;
    padding: 0;
    border: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}
@media (max-width: 650px) {
    #npcc-overlay { padding: 10px !important; align-items: center !important; }
    /* A tall dialog with its own scrollable text reproduces the mobile reference.
       The choice buttons remain visible in a separate footer. */
    #npcc-overlay .npcc-dialog {
        display: flex !important;
        flex-direction: column !important;
        flex: none !important;
        width: 100% !important;
        max-width: 420px !important;
        height: 80dvh !important;
        min-height: 0 !important;
        max-height: calc(100dvh - 20px) !important;
        overflow: hidden !important;
        margin: auto !important;
    }
    #npcc-overlay .npcc-header { flex: 0 0 auto; min-height: 63px; padding: 14px 13px 9px; }
    #npcc-overlay .npcc-brand { font-size: 18px !important; }
    #npcc-overlay .npcc-secure { font-size: 10px !important; }
    #npcc-overlay .npcc-tabs { flex: 0 0 auto; }
    #npcc-overlay .npcc-tab { min-height: 48px !important; font-size: 11px !important; padding: 9px 2px !important; }
    #npcc-overlay .npcc-inner {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
        padding: 16px 13px 18px !important;
    }
    #npcc-overlay .npcc-view { flex: 1 1 auto !important; min-height: 0 !important; overflow: hidden !important; }
    #npcc-overlay .npcc-scroll-area {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        padding: 0 3px 6px 0 !important;
    }
    #npcc-overlay .npcc-description { font-size: 12px !important; line-height: 1.55 !important; }
    #npcc-overlay .npcc-info { font-size: 11px !important; }
    #npcc-overlay .npcc-actions {
        display: flex !important;
        flex: 0 0 auto !important;
        flex-direction: column !important;
        gap: 7px !important;
        justify-content: flex-start !important;
        margin: 0 !important;
        padding: 11px 0 0 !important;
        background: #fff !important;
    }
    #npcc-overlay .npcc-btn {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        width: 100% !important;
        min-height: 46px !important;
    }
    #npcc-overlay .npcc-btn-accept { order: -2; }
    #npcc-overlay .npcc-btn-reject { order: -1; }
    #npcc-overlay .npcc-btn-custom { order: 0; }
    #npcc-overlay .npcc-categories { max-height: none !important; overflow: visible !important; }
}
@media (max-width: 650px) and (max-height: 500px) {
    #npcc-overlay .npcc-dialog { height: calc(100dvh - 20px) !important; }
    #npcc-overlay .npcc-header { min-height: 45px; padding-top: 8px; padding-bottom: 5px; }
    #npcc-overlay .npcc-tab { min-height: 39px !important; }
    #npcc-overlay .npcc-inner { padding-top: 8px !important; padding-bottom: 8px !important; }
    #npcc-overlay .npcc-btn { min-height: 34px !important; }
}
@media (prefers-reduced-motion: reduce) {
    #npcc-overlay .npcc-btn, #npcc-overlay .npcc-tab { transition: none !important; }
}
/* Keyboard focus starts on the dialog container; interactive controls retain visible focus rings. */
#npcc-overlay .npcc-dialog:focus { outline: none !important; }
