/* Named NSC controls only. Preserve theme widgets, icon fonts and state colours. */
body.nsc-design-2026 {
    --nsc-control-font: 'Inter NSC', Arial, Helvetica, sans-serif;
    --nsc-control-radius: 4px;
    --nsc-control-height: 44px;
}
body.nsc-design-2026 #Wrapper :is(
    .nsc-rmax-button, .nsc-rmax-pill, .nsc-rma-filter-clear, .nsc-rma-notes-button,
    .nsc-new-rma-link, .nsc-rma-add-product, .nsc-support-button,
    .nsc-rman-secondary, .nsc-rman-primary, .nsc-rma-trash-button,
    .nsc-cteam-primary, .nsc-cteam .button,
    .nsc-quote-catalog-add, .nsc-quote-launch, .nsc-quote-actions button,
    .nsc-quote-actions a, .nsc-custom-catalog-search button[type=submit],
    .wpcf7-submit, .woocommerce-EditAccountForm .woocommerce-Button,
    .nsc-product-contact-actions a, .nsc-product-share__trigger,
    .nsc-partner-catalog-link
) {
    font-family: var(--nsc-control-font) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    min-height: var(--nsc-control-height) !important;
    box-sizing: border-box;
    border-radius: var(--nsc-control-radius) !important;
    box-shadow: none !important;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: background-color 180ms, border-color 180ms, color 180ms;
}
/* Primary actions share the brand colour, but selected/added/destructive states remain distinct. */
body.nsc-design-2026 #Wrapper :is(
    .nsc-new-rma-link, .nsc-support-button.is-primary, .nsc-rman-primary,
    .nsc-cteam-primary, .nsc-product-contact-actions__primary,
    .nsc-quote-catalog-add:not(.is-added), .nsc-quote-submit,
    .wpcf7-submit, .woocommerce-EditAccountForm .woocommerce-Button
) {
    background: var(--nsc-red) !important;
    border-color: var(--nsc-red) !important;
    color: #fff !important;
    min-height: 48px !important;
}
body.nsc-design-2026 #Wrapper :is(
    .nsc-new-rma-link, .nsc-support-button.is-primary, .nsc-rman-primary,
    .nsc-cteam-primary, .nsc-product-contact-actions__primary,
    .nsc-quote-catalog-add:not(.is-added), .nsc-quote-submit,
    .wpcf7-submit, .woocommerce-EditAccountForm .woocommerce-Button
):hover:not(:disabled):not([aria-disabled=true]) {
    background: var(--nsc-red-hover) !important;
    border-color: var(--nsc-red-hover) !important;
}
body.nsc-design-2026 #Wrapper :is(.nsc-rma-plus-button, .nsc-rma-notes-button) {
    min-width: 44px;
    min-height: 44px;
}
body.nsc-design-2026 #Wrapper .nsc-rma-plus-button {
    font-family: var(--nsc-control-font);
    box-shadow: none;
}
body.nsc-design-2026 #Wrapper #Content .nsc-rma-table .nsc-rma-notes-button {
    padding: 8px 6px;
    font-size: 13px !important;
}
body.nsc-design-2026 :is(.nsc-rma-detail-dialog, .nsc-quote-dialog) {
    font-family: var(--nsc-control-font);
}
body.nsc-design-2026 :is(.nsc-rma-detail-dialog, .nsc-quote-dialog) :is(a, button, input, select, textarea):focus-visible {
    outline: 2px solid var(--nsc-ink) !important;
    outline-offset: 4px;
    box-shadow: 0 0 0 4px #fff !important;
}
body.nsc-design-2026 :is(.nsc-rma-detail-dialog__close, .nsc-quote-close) {
    min-height: 44px;
    min-width: 44px;
}
/* Native dialogs sit outside #Wrapper in the top layer. */
body.nsc-design-2026 .nsc-quote-dialog .nsc-quote-actions :is(button, a) {
    font-family: var(--nsc-control-font) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    min-height: 44px;
    border-radius: var(--nsc-control-radius) !important;
    box-shadow: none !important;
}
body.nsc-design-2026 .nsc-quote-dialog .nsc-quote-submit {
    background: var(--nsc-red) !important;
    border-color: var(--nsc-red) !important;
    min-height: 48px !important;
}
body.nsc-design-2026 #Wrapper :is(.nsc-support-button, .nsc-rmax-button, .nsc-rma-notes-button, .nsc-quote-catalog-add, .wpcf7-submit):is(:disabled, [aria-disabled=true]) {
    opacity: .6;
    cursor: not-allowed;
}
body.nsc-design-2026 #Wrapper :is(.nsc-support-form, .nsc-support-filters, .nsc-rma-internal-filters, .nsc-proposal-fields, .woocommerce-EditAccountForm, .wpcf7-form) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=submit]), select, textarea) {
    font-family: var(--nsc-control-font) !important;
    font-size: 16px !important;
    line-height: 1.5;
    letter-spacing: 0;
    border-radius: var(--nsc-control-radius);
    min-height: 44px;
}
/* Long elapsed times must wrap inside their cell instead of crossing the invoice. */
body.nsc-design-2026 #Wrapper #Content .nsc-rma-table .nsc-rma-elapsed {
    white-space: normal;
    overflow-wrap: normal;
    line-height: 1.5;
}
body.nsc-design-2026 #Wrapper #Content .nsc-rma-table td:has(.nsc-rma-plus-button) {
    min-width: 44px;
}
/* One frame belongs to the outer proposal card, not another frame around its link. */
body.nsc-design-2026 #Wrapper #Content .nsc-quote-catalog-item > .nsc-custom-catalog-card-product {
    border: 0 !important;
    border-radius: 0 !important;
}
body.nsc-design-2026 #Wrapper .nsc-custom-catalog-image img {
    object-fit: contain;
    object-position: center;
    border: 0;
    box-shadow: none;
}
/* The legacy builder declares height=450 for this verified 941 x 1672 photo. */
body.nsc-design-2026 #Wrapper .nsc-history-building-image img[src$="/imagemnsc.png"] {
    aspect-ratio: 941 / 1672;
    height: auto;
    object-fit: contain;
}
@media (prefers-reduced-motion: reduce) {
    body.nsc-design-2026 #Wrapper :is(.nsc-support-button, .nsc-rmax-button, .nsc-rmax-pill, .nsc-quote-catalog-add, .nsc-partner-catalog-link, .wpcf7-submit) { transition: none; }
}
