@media screen and (max-width: 782px) {
    #wpadminbar #wp-admin-bar-ncs-brand,
    #wpadminbar #wp-admin-bar-ncs-account-menu,
    #wpadminbar #wp-admin-bar-ncs-client { display: block; }
    #wpadminbar #wp-admin-bar-ncs-brand > .ab-item {
        max-width: 46vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    #wpadminbar #wp-admin-bar-ncs-client > .ab-item {
        max-width: 38vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
.ncs-pm {
    --ncs-ink: #23332d;
    --ncs-muted: #58665e;
    --ncs-accent: #464feb;
    --ncs-border: #e6e6e6;
    color: var(--ncs-ink);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    max-width: 1240px;
    margin: 24px auto;
    width: 100%;
    min-width: 0;
    text-align: left;
    container: ncs-gallery / inline-size;
}
.ncs-pm *, .ncs-pm *::before, .ncs-pm *::after { box-sizing: border-box; }
.ncs-pm a { text-decoration: none; color: var(--ncs-accent); }
.ncs-pm h1, .ncs-pm h2, .ncs-pm h3, .ncs-pm h4 { color: var(--ncs-ink); line-height: 1.25; }
.ncs-pm h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 8px 0 16px; }
.ncs-pm-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--ncs-muted); }
.ncs-pm-heading { margin-bottom: 24px; }
.ncs-pm-notice { background: #f8f5ed; border-left: 4px solid #967d40; border-radius: 4px; padding: 18px 22px; margin: 20px 0 28px; }
.ncs-pm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.ncs-pm-card { border: 1px solid var(--ncs-border); border-radius: 10px; overflow: hidden; background: #fff; align-self: start; }
.ncs-pm.ncs-pm img.ncs-pm-proof { width: 100%; max-width: 100%; height: 250px; object-fit: contain; display: block; background: #f5f5f2; border: 0; border-radius: 0; margin: 0; }
.ncs-pm.ncs-pm button.ncs-pm-enlarge { display: block; width: 100%; padding: 0; background: #f5f5f2; color: #23332d; border: 0; border-radius: 0; cursor: zoom-in; }
.ncs-pm-enlarge span { display: block; padding: 6px 12px; font-size: .85rem; }
html.ncs-pm-viewer-open { overflow: hidden; }
dialog.ncs-pm-viewer { box-sizing: border-box; width: min(1200px, 96vw); max-width: 96vw; max-height: 94vh; max-height: 94dvh; padding: 16px; border: 1px solid #59616b; border-radius: 8px; background: #15191e; color: #fff; overflow: auto; font-family: inherit; }
dialog.ncs-pm-viewer::backdrop { background: #000c; }
.ncs-pm-viewer-toolbar { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.ncs-pm-viewer-toolbar button { min-height: 44px; padding: 8px 16px; border: 1px solid #aeb9ca; border-radius: 4px; background: #fff; color: #18212c; cursor: pointer; font: inherit; }
.ncs-pm-viewer-toolbar button:disabled { opacity: .5; cursor: default; }
.ncs-pm-viewer button:focus-visible { outline: 3px solid #95baff; outline-offset: 3px; }
dialog.ncs-pm-viewer .ncs-pm-viewer-image { display: block; width: 100%; height: 64vh; height: 64dvh; max-width: 100%; object-fit: contain; margin: 0; border: 0; }
.ncs-pm-viewer p { color: #fff; font-size: .9rem; line-height: 1.5; margin: 10px 0; overflow-wrap: anywhere; }
.ncs-pm-viewer-caption { font-weight: 600; }
.ncs-pm-viewer-status:empty { display: none; }
.ncs-pm-card h3 { margin: 18px 18px 8px; font-size: 1rem; overflow-wrap: anywhere; }
.ncs-pm-crop { margin: 0 18px 18px; font-size: .8rem; color: var(--ncs-muted); }
.ncs-pm-card details { border-top: 1px solid var(--ncs-border); padding: 16px 18px; }
.ncs-pm-card summary { cursor: pointer; font-weight: 600; }
.ncs-pm-card h4 { margin: 22px 0 12px; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.ncs-pm .ncs-pm-product { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; }
.ncs-pm-product small { display: block; font-size: .75rem; color: var(--ncs-muted); }
.ncs-pm-size-table { margin: 18px 0; overflow-x: auto; }
.ncs-pm-size-table table { table-layout: fixed; }
.ncs-pm-size-table caption { text-align: left; font-weight: 700; padding: 8px 0; color: var(--ncs-ink); }
.ncs-pm-gallery-request { margin-top: 24px; padding: 20px; border: 1px solid var(--ncs-border); border-radius: 10px; }
.ncs-pm-gallery-request .ncs-pm-size-table { max-width: 640px; }
.ncs-pm-summary section + section { margin-top: 20px; border-top: 1px solid var(--ncs-border); padding-top: 12px; }
.ncs-pm.ncs-pm .ncs-pm-size-table label { margin-bottom: 4px; font-size: .8rem; }
.ncs-pm.ncs-pm .ncs-pm-size-table th, .ncs-pm.ncs-pm .ncs-pm-size-table td { padding: 8px 6px; font-size: .8rem; vertical-align: middle; }
.ncs-pm-size-table thead th:first-child { width: 39%; }
.ncs-pm-size-table thead th:last-child { width: 64px; }
.ncs-pm.ncs-pm .ncs-pm-size-table input.ncs-pm-qty { width: 100%; max-width: 100%; padding: 8px 4px; }
.ncs-pm.ncs-pm input:not([type="hidden"]):not([type="checkbox"]), .ncs-pm.ncs-pm textarea { background: #fff; color: var(--ncs-ink); border: 1px solid #a8b2ac; border-radius: 5px; font: inherit; padding: 10px 12px; width: 100%; min-width: 0; min-height: 44px; height: auto; box-shadow: none; margin: 4px 0 0; }
.ncs-pm.ncs-pm input.ncs-pm-qty { width: 76px; max-width: 76px; flex: 0 0 76px; margin: 0; }
.ncs-pm .ncs-pm-qty { width: 76px; flex-shrink: 0; }
.ncs-pm label { display: block; margin-bottom: 16px; }
.ncs-pm .ncs-pm-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; }
.ncs-pm input[type="checkbox"] { width: 20px; min-height: 20px; flex: 0 0 20px; margin-top: 4px; }
.ncs-pm-checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-top: 36px; padding: 28px; background: #f5f7f4; border-radius: 10px; }
.ncs-pm-checkout > section, .ncs-pm-card { min-width: 0; }
.ncs-pm.ncs-pm .ncs-pm-checkout h3 { font-size: 1.25rem; font-weight: 600; margin: 0 0 20px; }
.ncs-pm.ncs-pm p { line-height: 1.6; }
.ncs-pm.ncs-pm label { font-size: 1rem; font-weight: 400; line-height: 1.5; }
.ncs-pm.ncs-pm label.ncs-pm-consent { font-size: .85rem; }
.ncs-pm.ncs-pm button { font-size: 1rem; line-height: 1.5; text-transform: none; letter-spacing: normal; }
.ncs-pm [hidden] { display: none !important; }
.ncs-pm-summary { max-height: 360px; overflow-y: auto; overflow-wrap: anywhere; }
.ncs-pm-summary p { border-bottom: 1px solid var(--ncs-border); padding-bottom: 10px; }
.ncs-pm-total { font-size: 1.15rem; }
.ncs-pm button { border: 0; border-radius: 5px; padding: 14px 24px; font: inherit; font-weight: 600; background: var(--ncs-accent); color: #fff; cursor: pointer; min-height: 48px; }
.ncs-pm button:disabled { opacity: .65; cursor: wait; }
.ncs-pm a.ncs-pm-signin { display: inline-block; border-radius: 5px; padding: 14px 24px; font-weight: 600; background: var(--ncs-accent); color: #fff; min-height: 48px; }
.ncs-pm .ncs-pm-remove { padding: 3px 8px; min-height: 32px; font-size: .75rem; background: #fff; border: 1px solid var(--ncs-border); color: var(--ncs-accent); }
.ncs-pm :focus-visible { outline: 3px solid var(--ncs-accent); outline-offset: 3px; }
.ncs-pm-pagination { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ncs-pm-pagination a { padding: 8px 16px; border: 1px solid var(--ncs-border); border-radius: 5px; }
.ncs-pm-pagination [aria-current] { background: var(--ncs-accent); color: white; }
.ncs-pm-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ncs-pm-order { max-width: 960px; padding: 32px 24px; }
.ncs-pm-status { display: inline-block; padding: 6px 18px; border-radius: 30px; background: #e4ede6; font-weight: 700; }
.ncs-pm-table-wrap { overflow-x: auto; }
.ncs-pm table { border-collapse: collapse; width: 100%; }
.ncs-pm tr th, .ncs-pm tr td { border: 1px solid #e6e6e6; padding: 12px; text-align: left; overflow-wrap: anywhere; }
.ncs-pm tr th { background-color: #f5f5f5; }
.ncs-pm-digital { border-top: 1px solid var(--ncs-border); margin-top: 24px; padding-top: 20px; }
.ncs-pm-digital-summary { overflow-wrap: anywhere; }
.ncs-pm-library { margin-top: 32px; }
.ncs-pm-purchase { margin: 20px 0; padding: 22px; background: #fff; border: 1px solid var(--ncs-border); border-radius: 12px; }
.ncs-pm-purchase-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ncs-pm-purchase-heading h4 { font-size: 1.25rem; margin: 4px 0; overflow-wrap: anywhere; }
.ncs-pm-purchase-heading .ncs-pm-eyebrow { margin: 0; }
.ncs-pm-purchase-meta { font-size: .875rem; color: var(--ncs-muted); }
.ncs-pm-payment-badge { border-radius: 20px; padding: 5px 12px; font-size: .8rem; font-weight: 700; background: #f7efdb; color: #654d13; }
.ncs-pm-payment-paid { background: #e4ede6; color: #235237; }
.ncs-pm-payment-revoked, .ncs-pm-payment-expired { background: #f2e7e6; color: #762f2a; }
.ncs-pm-download-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 18px; margin-top: 20px; }
.ncs-pm figure.ncs-pm-download-card { margin: 0; min-width: 0; border: 1px solid var(--ncs-border); border-radius: 8px; overflow: hidden; }
.ncs-pm.ncs-pm img.ncs-pm-purchase-preview { display: block; width: 100%; height: 190px; object-fit: contain; background: #f5f5f2; border: 0; border-radius: 0; margin: 0; }
.ncs-pm-download-card figcaption { padding: 14px; }
.ncs-pm-download-name { display: block; overflow-wrap: anywhere; font-size: .85rem; margin-bottom: 12px; }
.ncs-pm a.ncs-pm-download-button { display: block; background: var(--ncs-accent); color: #fff; padding: 12px 10px; min-height: 44px; border-radius: 5px; text-align: center; font-weight: 600; font-size: .85rem; }
.ncs-pm-purchase-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ncs-pm .ncs-pm-secondary { background: #fff; color: var(--ncs-accent); border: 1px solid var(--ncs-accent); }
.ncs-pm-purchase-contact { border-top: 1px solid var(--ncs-border); padding-top: 16px; font-size: .85rem; overflow-wrap: anywhere; }
.ncs-pm-library-empty { padding: 24px; background: #f5f7f4; border-radius: 8px; }
.ncs-pm-preview-error { padding: 12px; font-size: .85rem; }
.ncs-pm-account-nav { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.ncs-pm-account-nav a { padding: 8px 14px; border: 1px solid var(--ncs-border); border-radius: 20px; min-height: 44px; }
@container ncs-gallery (max-width: 700px) {
    .ncs-pm-checkout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 20px; }
}
@media (max-width: 600px) {
    .ncs-pm-grid, .ncs-pm-checkout { grid-template-columns: 1fr; }
    .ncs-pm-checkout { padding: 20px; gap: 20px; }
    .ncs-pm.ncs-pm img.ncs-pm-proof { height: 280px; }
}
