/* Nightforce BDC PDP v2026-08-12-pressure-advisory-2 prod */

/* BEGIN styles.html */
:root {
    --nf-bg: #f3f4f2;
    --nf-surface: #ffffff;
    --nf-surface-soft: #f7f7f5;
    --nf-surface-subtle: #f3f4f1;
    --nf-surface-muted: #ebede8;
    --nf-border: #d7d9d3;
    --nf-border-strong: #c5c9c2;
    --nf-text: #1f211d;
    --nf-text-muted: #61645d;
    --nf-text-soft: #7a7e76;
    --nf-placeholder: #c6c6c6;
    --nf-focus: rgba(53, 72, 98, 0.22);
    --nf-success: #5d765e;
    --nf-success-surface: #f5f8f5;
  }

  .nf-bdc-widget input::placeholder,
  .nf-bdc-widget textarea::placeholder {
    color: var(--nf-placeholder);
    opacity: 1;
  }

  #turretTabsContainer,
  #turretTabsContainer.container {
    max-width: 860px !important;
    width: min(100%, 860px) !important;
    margin: 0 auto 1.15rem;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  @media (min-width: 641px) {
    #turretTabsContainer,
    #turretTabsContainer.container {
      position: sticky;
      top: 0.5rem;
      z-index: 80;
      padding-top: 0.35rem;
      background: linear-gradient(180deg, rgba(243, 244, 242, 0.98), rgba(243, 244, 242, 0.92));
      backdrop-filter: blur(8px);
    }
  }

  #turretTabs,
  #turretTabs.tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.7rem;
    width: 100%;
    margin: 0 0 1.05rem 0;
    padding: 0;
    list-style: none;
    align-items: stretch;
    justify-content: flex-start;
    overflow: visible;
  }

  #turretTabs::before,
  #turretTabs::after,
  #turretTabs.tabs::before,
  #turretTabs.tabs::after {
    content: none !important;
    display: none !important;
  }

  #turretTabs .tab {
    min-width: 0;
    width: auto !important;
    flex: 1 1 0 !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
    display: block !important;
  }

  #turretTabs .tab-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    min-height: 88px;
    padding: 0.95rem 1rem;
    border: 1px solid var(--nf-border);
    border-radius: 16px;
    background: var(--nf-surface-soft);
    color: var(--nf-text);
    text-decoration: none;
    box-sizing: border-box;
    box-shadow: none;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  }

  #turretTabs .nf-step-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    inline-size: 30px;
    block-size: 30px;
    flex: 0 0 30px;
    border-radius: 999px;
    border: 1px solid var(--nf-border-strong);
    background: var(--nf-surface);
    color: var(--nf-text-soft);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
  }

  #turretTabs .nf-step-copy {
    display: grid;
    gap: 0.26rem;
    min-width: 0;
    padding-top: 0;
  }

  #turretTabs .nf-step-copy strong {
    display: block;
    font-size: 0.98rem;
    line-height: 1.08;
    font-weight: 760;
    letter-spacing: -0.02em;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  #turretTabs .nf-step-copy small {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    border: 0;
    color: var(--nf-text-muted);
    font-size: 0.8rem;
    line-height: 1.22;
    max-width: none;
    display: none;
  }

  #turretTabs .tab.is-active .tab-title {
    border-color: #2d2418;
    background: var(--nf-surface);
    box-shadow: 0 8px 16px rgba(28, 19, 7, 0.05);
  }

  #turretTabs .tab.is-active .nf-step-copy small {
    display: block;
  }

  #turretTabs .tab:not(.is-locked) .tab-title:hover {
    border-color: var(--nf-border-strong);
    background: var(--nf-surface);
    box-shadow: 0 6px 14px rgba(28, 19, 7, 0.04);
  }

  #turretTabs .tab.is-active .nf-step-marker {
    border-color: #1f1f1f;
    background: #1f1f1f;
    color: #fff;
  }

  #turretTabs .tab.is-complete .tab-title {
    border-color: #d6ded4;
    background: var(--nf-success-surface);
  }

  #turretTabs .tab.is-complete .nf-step-marker {
    border-color: var(--nf-success);
    background: var(--nf-success);
    color: #fff;
  }

  #turretTabs .tab.is-complete .nf-step-marker::before {
    content: "✓";
  }

  #turretTabs .tab.is-complete .nf-step-marker {
    font-size: 0;
  }

  #turretTabs .tab.is-warning .tab-title {
    border-color: #e2c48b;
    background: #fff9ef;
  }

  #turretTabs .tab.is-warning .nf-step-marker {
    border-color: #c98212;
    background: #c98212;
    color: #fff;
  }

  #turretTabs .tab.is-warning .nf-step-copy small,
  #turretTabs .tab.is-warning .nf-step-copy strong {
    color: #6c4510;
  }

  #turretTabs .tab.is-error .tab-title {
    border-color: #d8a3a3;
    background: #fff3f3;
  }

  #turretTabs .tab.is-error .nf-step-marker {
    border-color: #b00020;
    background: #b00020;
    color: #fff;
  }

  #turretTabs .tab.is-error .nf-step-copy small,
  #turretTabs .tab.is-error .nf-step-copy strong {
    color: #7a1f10;
  }

  #turretTabs .tab.is-locked .tab-title {
    background: var(--nf-surface-soft);
    border-color: var(--nf-border);
    color: #8a8d86;
    cursor: not-allowed;
    box-shadow: none;
  }

  #turretTabs .tab.is-locked .nf-step-marker {
    border-color: var(--nf-border);
    background: var(--nf-surface);
    color: #a2a59e;
  }

  #turretTabs .tab.is-locked .nf-step-copy small,
  #turretTabs .tab.is-locked .nf-step-copy strong {
    color: inherit;
  }

  #turretTabs .tab.is-locked .nf-step-copy small {
    color: #91958d;
  }

  #turretTabs .tab:not(.is-active) .nf-step-copy small {
    display: block;
  }

  #nfMobileStepper {
    display: none;
  }

  #nfMobileStepper[hidden] {
    display: none !important;
  }

  #nfMobileStepper .nf-mobile-stepper__head {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    min-width: 0;
  }

  #nfMobileStepper .nf-mobile-stepper__meta {
    display: inline-block;
    flex: 0 0 auto;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #59606a;
  }

  #nfMobileStepper .nf-mobile-stepper__title {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.08;
    color: #2a241c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #nfMobileStepper .nf-mobile-stepper__rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
  }

  #nfMobileStepper .nf-mobile-stepper__segment {
    appearance: none;
    border: 0;
    padding: 0.22rem 0;
    margin: 0;
    min-width: 0;
    background: transparent;
    border-radius: 999px;
    cursor: pointer;
  }

  #nfMobileStepper .nf-mobile-stepper__segment::before {
    content: "";
    display: block;
    block-size: 5px;
    border-radius: 999px;
    background: #d9dcd6;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  }

  #nfMobileStepper .nf-mobile-stepper__segment.is-complete::before {
    background: var(--nf-success);
  }

  #nfMobileStepper .nf-mobile-stepper__segment.is-active::before {
    background: #2d2418;
    transform: scaleY(1.18);
    box-shadow: 0 0 0 1px rgba(45, 36, 24, 0.08), 0 4px 10px rgba(45, 36, 24, 0.15);
  }

  #nfMobileStepper .nf-mobile-stepper__segment.is-warning::before {
    background: #c98212;
  }

  #nfMobileStepper .nf-mobile-stepper__segment.is-error::before {
    background: #b00020;
  }

  #nfMobileStepper .nf-mobile-stepper__segment.is-available::before {
    background: #bcc1b9;
  }

  #nfMobileStepper .nf-mobile-stepper__segment.is-locked::before,
  #nfMobileStepper .nf-mobile-stepper__segment[disabled]::before {
    background: #e8eae5;
  }

  #nfMobileStepper .nf-mobile-stepper__segment:not([disabled]):hover::before {
    background: #979d95;
  }

  #nfMobileStepper .nf-mobile-stepper__segment.is-active:hover::before {
    background: #2d2418;
  }

  #nfMobileStepper .nf-mobile-stepper__segment:focus-visible {
    outline: 2px solid #005fa3;
    outline-offset: 2px;
  }

  #nfMobileStepper .nf-mobile-stepper__segment[disabled] {
    cursor: default;
  }
  .nf-unsaved-prompt__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .tab-panel[hidden], .nf-tab-panel[hidden] { display: none; }

  @keyframes nf-message-enter {
    0% {
      opacity: 0;
      transform: translate3d(0, -6px, 0) scale(0.985);
    }
    100% {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
    }
  }

  @keyframes nf-message-exit {
    0% {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
      opacity: 0;
      transform: translate3d(0, -4px, 0) scale(0.99);
    }
  }

  .nf-message-motion {
    transform-origin: top center;
    will-change: opacity, transform;
  }

  .nf-message-motion.nf-message-enter,
  #tab-confirmation:not([hidden]) .nf-confirm-warning {
    animation: nf-message-enter 180ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
  }

  .nf-message-motion.nf-message-exit {
    pointer-events: none;
    animation: nf-message-exit 160ms ease-in both;
  }

  .nf-message-motion[hidden] {
    display: none !important;
  }

  @media (prefers-reduced-motion: reduce) {
    .nf-message-motion,
    .nf-message-motion.nf-message-enter,
    .nf-message-motion.nf-message-exit,
    #tab-confirmation:not([hidden]) .nf-confirm-warning {
      animation: none !important;
      transform: none !important;
    }
  }

  /* Tables */
  /* Nightforce tab — table panel scoping */
  #tab-table { font-size: 16px; line-height: 1.4; }
  #tab-table .step-content {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.95rem 1rem 1rem;
  }
  #tab-table .nf-table { 
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.36rem;
    table-layout: fixed;
    font-variant-numeric: tabular-nums;
  }
  #tab-table .nf-table-toolbar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 0.55rem;
    justify-content: flex-end;
  }
  #tab-table .nf-table-toolbar .button {
    min-block-size: 2.45rem;
    padding: 0.56rem 0.92rem;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.15;
  }
  #tab-table .nf-table-assist {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.6rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--nf-border);
    border-radius: 12px;
    background: var(--nf-surface-soft);
  }
  #tab-table .nf-table-assist__copy {
    max-width: 52ch;
    color: var(--nf-text-muted);
    font-size: 0.84rem;
    line-height: 1.36;
  }
  #tab-table .nf-table-assist__copy strong {
    display: block;
    margin-bottom: 0.08rem;
    color: var(--nf-text);
    font-size: 0.88rem;
    letter-spacing: -0.01em;
  }
  #tab-table .nf-table-assist__count {
    flex: 0 0 auto;
    align-self: center;
    padding: 0.28rem 0.58rem;
    border: 1px solid var(--nf-border);
    border-radius: 999px;
    background: var(--nf-surface);
    color: var(--nf-text-muted);
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
  }
  #tab-table .nf-table-assist.has-overrides .nf-table-assist__count {
    border-color: #cad7e3;
    background: #f5f8fb;
    color: #354862;
  }
  #tab-table .nf-table-confirm {
    flex: 0 0 auto;
  }
  #tab-table #nfTableConfirmBtn[disabled],
  #tab-table #nfTableConfirmBtn[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
  }
  #tab-table .nf-table-download {
    flex: 0 0 auto;
    background: var(--nf-surface-soft);
    border: 1px solid var(--nf-border);
    border-radius: 10px;
    color: var(--nf-text);
    font-size: 0.9rem;
    padding: 0.58rem 0.9rem;
    box-shadow: none;
    margin-right: auto;
  }
  #tab-table .nf-table-download:hover {
    background: var(--nf-surface);
    border-color: var(--nf-border-strong);
  }
  /* make sure every layer in the table inherits readable type even if theme zeroes something */
  #tab-table .nf-table, 
  #tab-table .nf-table thead,
  #tab-table .nf-table tbody,
  #tab-table .nf-table tr,
  #tab-table .nf-table th,
  #tab-table .nf-table td { font-size: 16px !important; line-height: 1.4 !important; }
  .muted { color: #666; font-size: .9rem; }

  /* Confirmation table */
  #confirmTable {
    width: 100%;
    border-collapse: collapse;
  }
  #confirmTable th, #confirmTable td {
    border-bottom: 1px solid #eee;
    padding: .35rem .5rem;
  }
  #confirmTable th {
    text-align: left;
    width: 45%;
    color: #444;
    font-weight: 600;
  }
  #confirmTable td {
    text-align: right;
    color: #222;
  }
      /* Page Styles */
      #nf-bdc-app,
      [data-nf-bdc-app] {
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
        font-size: 16px;
        margin: 0;
        padding: 20px;
        background: var(--nf-bg);
        box-sizing: border-box;
      }
      #container {
        position: relative;
        max-width: 860px;
        margin: 0 auto;
        background: var(--nf-surface);
        padding: 2rem;
        border: 1px solid var(--nf-border);
        border-radius: 16px;
        box-shadow: 0 24px 46px rgba(0, 0, 0, 0.08);
        --nf-input-bg: #fff;
        --nf-input-border: #cfd3cb;
        --nf-input-radius: 8px;
        --nf-input-padding: 0.56rem 0.65rem;
        --nf-input-font-size: 1rem;
        --nf-input-text: #222;
        --nf-input-focus: var(--nf-focus);
      }
      .nf-guided-solver-gate {
        max-width: 760px;
        margin: 0 auto 0.72rem;
        padding: 0.66rem 0.8rem;
        border: 1px solid #dedbd4;
        border-radius: 8px;
        background: #faf9f6;
        color: #5f5d57;
        font-size: 0.86rem;
        line-height: 1.35;
        box-shadow: none;
      }
      .nf-guided-solver-gate__text {
        margin: 0;
      }
      .nf-guided-solver-gate[hidden] {
        display: none !important;
      }
      .nf-guided-setup-guide {
        max-width: 760px;
        margin: clamp(1.05rem, 2vw, 1.45rem) auto 0.72rem;
      }
      .nf-guided-setup-guide[hidden] {
        display: none !important;
      }
      .nf-guided-setup-guide .nf-prereq-guide {
        margin: 0;
        width: 100%;
      }
      body.nf-guided-pdp-locked #turretTabsContainer,
      body.nf-guided-pdp-locked #container {
        display: none !important;
      }
      #nf-input-fieldset {
        border: 0;
        padding: 0;
        margin: 0;
        min-inline-size: 0;
      }

      .nf-panel-header {
        margin: 0 0 1.45rem;
      }

      .nf-panel-kicker {
        margin: 0 0 0.35rem;
        font-size: 0.74rem;
        font-weight: 700;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: #59606a;
      }

      .nf-panel-header h2 {
        margin: 0;
        padding: 0;
        border: 0;
        font-size: 2.35rem;
        line-height: 0.98;
        letter-spacing: -0.045em;
        color: var(--nf-text);
      }

      .nf-panel-intro {
        margin: 0.55rem 0 0;
        max-width: 58ch;
        color: #5a5d56;
        font-size: 1.03rem;
        line-height: 1.58;
      }

      /* Headings */
      h2 {
        margin-top: 2rem;
        font-size: 1.3rem;
        border-bottom: 1px solid #ddd;
        padding-bottom: 0.5rem;
      }

      /* Wizard Card (Form Section) Styles */
      .form-section {
        background: var(--nf-surface);
        border: 1px solid var(--nf-border);
        border-radius: 16px;
        margin-bottom: 1.25rem;
        box-shadow: 0 14px 28px rgba(19, 23, 28, 0.04);
        overflow: visible;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
      }
      .form-section.completed {
        background: #fcfdfc;
        border-color: #d6ddd6;
      }
      .form-section h3 {
        margin: 0;
        font-size: 1.04rem;
        font-weight: 750;
        letter-spacing: -0.02em;
        color: var(--nf-text);
        line-height: 1.2;
        padding: 0.95rem 1.15rem;
        border-bottom: 1px solid #e1e4dd;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: var(--nf-surface-subtle);
        border-radius: 15px 15px 0 0;
        transition: background 0.2s ease, border-color 0.2s ease;
      }
      .form-section.completed h3 {
        background: #f1f5f1;
        color: #222;
      }
      .form-section.completed h3::before {
        content: '✓';
        color: #2e7d32;
        font-weight: 700;
        margin-right: 0.5rem;
      }
      /* Ballistics primary action */
      #completeStep4Btn {
        background: #b20000;
        border: 1px solid #8f0000;
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        min-inline-size: 10.25rem;
        min-block-size: 2.65rem;
        padding: 0.68rem 1.05rem;
        font-size: 0.94rem;
        font-weight: 650;
        line-height: 1.1;
        letter-spacing: 0.01em;
        white-space: nowrap;
        border-radius: 10px;
        cursor: pointer;
      }
      #completeStep4Btn:hover {
        background: #a00000;
        border-color: #7d0000;
      }
      #completeStep4Btn:focus-visible {
        outline: 2px solid rgba(178, 0, 0, 0.45);
        outline-offset: 2px;
      }
      #completeStep4Btn.is-disabled,
      #completeStep4Btn[aria-disabled="true"] {
        background: #ebede8;
        border-color: #d4d8d0;
        color: #6d726a;
        box-shadow: none;
        opacity: 1;
        cursor: not-allowed;
      }
      #completeStep4Btn.is-disabled:hover,
      #completeStep4Btn[aria-disabled="true"]:hover {
        background: #ebede8;
        border-color: #d4d8d0;
      }
      .form-section.collapsed .step-content {
        display: none;
      }
      .step-content {
        padding: 1.15rem 1.15rem 1.2rem;
        display: block;
      }
      .step-actions {
        display: flex;
        justify-content: flex-end;
        margin-top: 0.75rem;
      }
      .selection-display {
        margin-left: auto;
        display: inline-flex;
        align-items: center;
        min-height: 28px;
        padding: 0.2rem 0.55rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.88);
        border: 1px solid var(--nf-border);
        font-weight: 650;
        font-size: 0.82rem;
        color: #5d625a;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: min(46ch, 58%);
      }
      .selection-display:empty {
        display: none;
      }

      .nf-input-gate-hint {
        margin-top: 0.75rem;
        max-width: 42rem;
        padding: 0.62rem 0.78rem;
        border: 1px solid #d8d4cc;
        border-radius: 10px;
        background: #faf8f4;
        color: #514b43;
        font-size: 0.82rem;
        line-height: 1.35;
        box-shadow: 0 6px 16px rgba(36, 28, 18, 0.035);
      }

      .nf-input-gate-hint[hidden] {
        display: none !important;
      }

      /* Form Rows */
      /* Core input styles shared across tabs */
      #container :is(
        input[type="text"],
        input[type="number"],
        input[type="email"],
        input[type="url"],
        input[type="tel"],
        input[type="search"],
        input[type="password"],
        input[type="date"],
        input[type="time"],
        input[type="datetime-local"],
        textarea,
        select
      ) {
        padding: var(--nf-input-padding);
        font-size: var(--nf-input-font-size);
        border: 1px solid var(--nf-input-border);
        border-radius: var(--nf-input-radius);
        box-sizing: border-box;
        color: var(--nf-input-text);
        background: var(--nf-input-bg);
      }
      #container :is(
        input[type="text"],
        input[type="number"],
        input[type="email"],
        input[type="url"],
        input[type="tel"],
        input[type="search"],
        input[type="password"],
        input[type="date"],
        input[type="time"],
        input[type="datetime-local"],
        textarea,
        select
      ):focus {
        outline: 2px solid var(--nf-input-focus);
        outline-offset: 1px;
        border-color: #b79c75;
      }

      #container input::placeholder,
      #container textarea::placeholder {
        color: var(--nf-placeholder, #c6c6c6);
        opacity: 1;
      }

      .form-row {
        display: flex;
        flex-wrap: wrap;
        position: relative;
        margin-bottom: 1rem;
        align-items: center;
        gap: 0.55rem 1rem;
        font-size: 16px;
      }

      .form-row.nf-row-has-validation-message {
        padding-bottom: 1.18rem;
      }
      .form-row label {
        flex: 1 1 200px;
        min-width: 160px;
        max-width: 100%;
        margin: 0;
        font-size: 0.94rem;
        font-weight: 700;
        color: #353831;
        display: flex;
        align-items: center;
        gap: 0.35rem;
        line-height: 1.2;
      }
      .form-row input,
      .form-row select {
        padding: var(--nf-input-padding);
        font-size: var(--nf-input-font-size);
        border: 1px solid var(--nf-input-border);
        border-radius: var(--nf-input-radius);
        box-sizing: border-box;
        color: var(--nf-input-text);
        background: var(--nf-input-bg);
      }
      .form-row .nf-input-invalid {
        border-color: #b00020 !important;
        background: #fff4f4;
        box-shadow: 0 0 0 1px rgba(176, 0, 32, 0.2);
      }
      .form-row .nf-input-invalid:focus {
        outline: 2px solid rgba(176, 0, 32, 0.3);
        outline-offset: 2px;
      }

      .form-row .nf-input-advisory:not(.nf-input-invalid) {
        border-color: #c08a2c;
        background: #fffaf0;
        box-shadow: 0 0 0 1px rgba(192, 138, 44, 0.2);
      }

      .form-row .nf-input-advisory:not(.nf-input-invalid):focus {
        outline: 2px solid rgba(192, 138, 44, 0.24);
        outline-offset: 2px;
        border-color: #a97418;
      }

      .form-row .nf-input-missing {
        border-color: #b9c4d1 !important;
        background: #f8fafc;
        box-shadow: 0 0 0 1px rgba(121, 138, 160, 0.12);
      }

      .form-row .nf-input-missing:focus {
        outline: 2px solid rgba(88, 108, 136, 0.18);
        outline-offset: 2px;
        border-color: #9cabbf !important;
      }

      .form-row.nf-row-missing > label,
      .form-row > label.nf-label-missing {
        color: #4c5766;
      }

      .form-row .nf-field-warning {
        flex: 1 1 260px;
        margin-left: calc(200px + 1rem);
        margin-top: -0.35rem;
        padding: 0.48rem 0.62rem;
        border: 1px solid #e2c48b;
        border-radius: 8px;
        background: #fff9ef;
        color: #6c4510;
        font-size: 0.78rem;
        line-height: 1.32;
      }
      .form-row .nf-field-warning[hidden] {
        display: none !important;
      }

      .form-row .nf-field-validation-message {
        position: absolute;
        right: 0;
        bottom: 0;
        left: calc(200px + 1rem);
        margin: 0;
        color: #7a1f10;
        font-size: 0.78rem;
        line-height: 1.32;
        text-align: right;
        pointer-events: none;
      }

      .form-row .nf-field-validation-message[hidden] {
        display: none !important;
      }

      .form-row .nf-field-advisory-message {
        position: static;
        width: 100%;
        margin-top: 0.42rem;
        color: #7b5312;
        text-align: right;
        pointer-events: auto;
      }

      /* Tooltip help icon */
      .nf-tooltip {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        margin-left: 0;
        border: 1px solid #999;
        border-radius: 50%;
        font-size: 12px;
        line-height: 1;
        color: #6a6357;
        background: var(--nf-surface);
        cursor: help;
        user-select: none;
        box-sizing: border-box;
        flex: 0 0 20px;
        align-self: center;
        vertical-align: middle;
      }
      .nf-tooltip::before,
      .nf-tooltip::after {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.15s ease, transform 0.15s ease;
        z-index: 10000;
      }
      .nf-tooltip::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 100%;
        transform: translate(-50%, 4px);
        border: 6px solid transparent;
        border-bottom-color: #111;
      }
      .nf-tooltip::after {
        content: attr(data-tooltip);
        position: absolute;
        left: 50%;
        top: 100%;
        transform: translate(-50%, 10px);
        background: #111;
        color: #fff;
        padding: 8px 10px;
        border-radius: 6px;
        font-size: 12px;
        line-height: 1.35;
        min-width: 220px;
        max-width: min(420px, 92vw);
        white-space: normal;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
        z-index: 10;
      }
      .nf-tooltip:hover::before,
      .nf-tooltip:hover::after,
      .nf-tooltip:focus::before,
      .nf-tooltip:focus::after,
      .nf-tooltip:focus-visible::before,
      .nf-tooltip:focus-visible::after {
        opacity: 1;
      }
      .nf-tooltip:hover::before,
      .nf-tooltip:focus::before,
      .nf-tooltip:focus-visible::before {
        transform: translate(-50%, 6px);
      }
      .nf-tooltip:hover::after,
      .nf-tooltip:focus::after,
      .nf-tooltip:focus-visible::after {
        transform: translate(-50%, 12px);
      }
      #tab-preview .nf-preview-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        flex-wrap: wrap;
        margin-bottom: 0.5rem;
      }
      #tab-preview #nfPreviewContinueBtn[disabled],
      #tab-preview #nfPreviewContinueBtn[aria-disabled="true"] {
        opacity: 0.6;
        cursor: not-allowed;
        pointer-events: none;
      }
      #tab-preview .nf-preview-gate {
        margin-bottom: 0.75rem;
        padding: 0.55rem 0.75rem;
        border-radius: 4px;
        border: 1px solid #f0b4b4;
        background: #fff7f7;
        color: #a40000;
        font-size: 0.9rem;
        line-height: 1.35;
      }
      .productView-options .nf-customize-btn.nf-customize-btn--pending,
      .productView-options .nf-customize-btn.nf-customize-btn--pending.button,
      .productView-options .nf-customize-btn.nf-customize-btn--pending.button--primary {
        background: #f6f6f4 !important;
        border: 1px solid #d5d5d0 !important;
        color: #666 !important;
        box-shadow: none !important;
        cursor: pointer;
        opacity: 0.86;
      }
      .productView-options .nf-customize-btn.nf-customize-btn--pending:hover,
      .productView-options .nf-customize-btn.nf-customize-btn--pending:focus {
        background: #eeeeeb !important;
        border-color: #c8c8c2 !important;
        color: #333 !important;
      }
      .productView-options .nf-customize-btn.nf-customize-btn--pending:focus-visible {
        outline: 2px solid rgba(42, 45, 41, 0.28);
        outline-offset: 3px;
      }
      .productView-options .nf-customize-help-link {
        display: block;
        width: fit-content;
        margin: 0.65rem 0 0.45rem;
        color: #333;
        font-size: 0.92rem;
        font-weight: 700;
        line-height: 1.25;
        text-decoration: underline;
        text-underline-offset: 0.14em;
      }
      .productView-options .nf-customize-help-link:hover,
      .productView-options .nf-customize-help-link:focus {
        color: #a40000;
      }
      .productView-options .nf-customize-help-link:focus-visible {
        outline: 2px solid rgba(164, 0, 0, 0.28);
        outline-offset: 3px;
      }
      /* Prereq gate (riflescope/unit/kit) */
      .nf-prereq,
      .nf-tab-panel .nf-prereq,
      #nf-options-gate {
        margin-bottom: 0.75rem;
        border: 0;
        background: transparent;
        color: inherit;
      }
      .nf-prereq-guide {
        box-sizing: border-box;
        width: min(100%, 760px);
        margin: 0 auto 0.72rem;
        overflow: hidden;
        border: 1px solid #d6d7d2;
        border-radius: 6px;
        background: #111;
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
      }
      .nf-prereq-guide__label {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.6rem 0.72rem;
        background: #f7f7f4;
        color: #242724;
        font-size: 0.88rem;
        font-weight: 700;
        line-height: 1.25;
      }
      .nf-prereq-guide__play {
        position: relative;
        flex: 0 0 auto;
        width: 1.25rem;
        height: 0.9rem;
        border-radius: 3px;
        background: #d91f1f;
      }
      .nf-prereq-guide__play::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-top: 0.24rem solid transparent;
        border-bottom: 0.24rem solid transparent;
        border-left: 0.36rem solid #fff;
        transform: translate(-35%, -50%);
      }
      .nf-prereq-guide__frame {
        box-sizing: border-box;
        position: relative;
        aspect-ratio: 16 / 9;
        display: block;
        width: 100%;
        overflow: hidden;
        background: #111;
      }
      .nf-prereq-guide__frame--button {
        appearance: none;
        border: 0;
        padding: 0;
        cursor: pointer;
        text-align: inherit;
      }
      .nf-prereq-guide__frame--button:focus-visible {
        outline: 3px solid rgba(164, 0, 0, 0.32);
        outline-offset: -3px;
      }
      .nf-prereq-guide__poster {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: translateZ(0);
      }
      .nf-prereq-guide__overlay {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.3));
        transition: background 0.18s ease;
      }
      .nf-prereq-guide__frame--button:hover .nf-prereq-guide__overlay,
      .nf-prereq-guide__frame--button:focus-visible .nf-prereq-guide__overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.22));
      }
      .nf-prereq-guide__play--large {
        width: 3.35rem;
        height: 2.35rem;
        border-radius: 0.55rem;
        box-shadow: 0 7px 18px rgba(0, 0, 0, 0.26);
      }
      .nf-prereq-guide__play--large::after {
        border-top-width: 0.48rem;
        border-bottom-width: 0.48rem;
        border-left-width: 0.72rem;
      }
      .nf-prereq-guide__frame--button.is-loading .nf-prereq-guide__overlay::after {
        content: "";
        position: absolute;
        width: 2.6rem;
        height: 2.6rem;
        border-radius: 50%;
        border: 3px solid rgba(255, 255, 255, 0.55);
        border-top-color: #fff;
        animation: nfSpin 0.8s linear infinite;
      }
      .nf-prereq-guide__frame--button.is-loading .nf-prereq-guide__play--large {
        opacity: 0;
      }
      @keyframes nfSpin {
        to {
          transform: rotate(360deg);
        }
      }
      .nf-prereq-guide__frame iframe {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
      }
      .nf-prereq .nf-prereq-text,
      #nf-options-gate p {
        margin: 0;
        padding: 0.55rem 0.75rem;
        border-radius: 4px;
        border: 1px solid #f0b4b4;
        background: #fff7f7;
        color: #a40000;
        font-size: 0.9rem;
        line-height: 1.35;
      }
      .nf-prereq .nf-prereq-btn {
        margin: 0.5rem 0 0;
      }
      .nf-prereq .nf-prereq-btn,
      #nf-options-gate .nf-prereq-btn {
        background: #2a2d29;
        border: 1px solid #202320;
        color: #fff;
        font-weight: 600;
        padding: 0.55rem 1rem;
        border-radius: 4px;
        cursor: pointer;
      }
      .nf-prereq .nf-prereq-btn:hover,
      #nf-options-gate .nf-prereq-btn:hover {
        background: #1f221f;
        border-color: #181b18;
      }
      .nf-prereq .nf-prereq-btn:focus-visible,
      #nf-options-gate .nf-prereq-btn:focus-visible {
        outline: 2px solid rgba(42, 45, 41, 0.28);
        outline-offset: 2px;
      }
      @media (max-width: 640px) {
        #nfMobileStepper {
          -webkit-backdrop-filter: none !important;
          backdrop-filter: none !important;
        }
        .nf-message-motion {
          will-change: auto;
        }
        .nf-prereq-guide {
          border-radius: 4px;
          box-shadow: none;
        }
        .nf-guided-solver-gate {
          margin-bottom: 0.65rem;
          padding: 0.62rem 0.72rem;
          font-size: 0.84rem;
        }
        .nf-guided-setup-guide {
          margin-top: 0.95rem;
          margin-bottom: 0.65rem;
        }
        .nf-prereq-guide__label {
          padding: 0.55rem 0.65rem;
          font-size: 0.84rem;
        }
      }
      @supports (-webkit-touch-callout: none) {
        html.nf-ios-repaint-kick {
          -webkit-transform: translateZ(0);
          transform: translateZ(0);
        }
        .nf-bdc-widget-shell,
        [data-nf-bdc-app],
        #nf-bdc-app,
        #turretTabsContainer,
        #nf-bdc-app #container,
        [data-nf-bdc-app] #container,
        .nf-tab-panel,
        #nfGuidedOptions,
        .nf-guided-options {
          content-visibility: visible !important;
          contain: none !important;
          will-change: auto !important;
          -webkit-backface-visibility: visible !important;
          backface-visibility: visible !important;
        }
        #nfMobileStepper,
        #turretTabsContainer {
          -webkit-backdrop-filter: none !important;
          backdrop-filter: none !important;
        }
        body.nf-guided-pdp-locked #turretTabsContainer.nf-guided-ios-collapsed,
        body.nf-guided-pdp-locked #container.nf-guided-ios-collapsed,
        .nf-guided-ios-collapsed,
        .nf-prereq-ios-collapsed {
          display: block !important;
          height: 0 !important;
          min-height: 0 !important;
          max-height: 0 !important;
          margin-top: 0 !important;
          margin-bottom: 0 !important;
          padding-top: 0 !important;
          padding-bottom: 0 !important;
          border-top-width: 0 !important;
          border-bottom-width: 0 !important;
          overflow: hidden !important;
          opacity: 0 !important;
          visibility: hidden !important;
          pointer-events: none !important;
          box-shadow: none !important;
        }
        .nf-message-motion,
        .nf-message-motion.nf-message-enter,
        .nf-message-motion.nf-message-exit,
        #tab-confirmation:not([hidden]) .nf-confirm-warning {
          animation: none !important;
          transform: none !important;
          will-change: auto;
        }
      }
      @keyframes nfPrereqPulse {
        0% {
          box-shadow: 0 0 0 0 rgba(164, 0, 0, 0.16);
        }
        100% {
          box-shadow: 0 0 0 8px rgba(164, 0, 0, 0);
        }
      }
      .productView-options [data-product-option-id].nf-prereq-highlight,
      .productView-options .form-field.nf-prereq-highlight,
      .productView-options label.nf-prereq-highlight {
        border-radius: 6px;
        background: rgba(255, 247, 247, 0.92);
        animation: nfPrereqPulse 0.9s ease-out 2;
      }
      .productView-options [data-product-option-id].nf-prereq-highlight select,
      .productView-options select.nf-prereq-highlight {
        border-color: #d66d6d !important;
        box-shadow: 0 0 0 3px rgba(164, 0, 0, 0.12);
      }
      .productView-options [data-product-option-id].nf-prereq-highlight label,
      .productView-options label.nf-prereq-highlight {
        color: #a40000;
      }
      #tab-preview .nf-preview-media {
        display: grid;
        gap: 1rem;
        align-items: start;
      }
      #tab-preview .nf-preview-helper {
        grid-column: 1 / -1;
        font-size: 0.85rem;
        color: #666;
        margin-top: -0.25rem;
      }
      #tab-preview .nf-load-proof-btn,
      #tab-preview .nf-load-3d-btn {
        justify-self: start;
        min-width: min(100%, 220px);
        touch-action: manipulation;
      }
      #tab-preview .nf-preview-note {
        margin: 0.4rem 0 0;
        font-size: 0.8rem;
        color: #777;
      }
  #tab-preview .nf-preview-media[hidden],
  #tab-preview .muted[hidden],
  #tab-preview #threeContainer[hidden],
  #tab-preview .nf-preview-helper[hidden],
  #tab-preview .nf-load-proof-btn[hidden],
  #tab-preview .nf-load-3d-btn[hidden] {
    display: none !important;
  }
      #tab-preview .nf-svg-frame {
        width: 100%;
        box-sizing: border-box;
        padding: 6px 10px;
        border: 1px solid #444;
        border-radius: 6px;
        background: #000;
        overflow: visible;
      }
      #turretSvg {
        display: block;
        overflow: visible;
        background: transparent;
      }
      #threeContainer {
        width: 100%;
        max-width: 100%;
        height: clamp(260px, 45vw, 420px);
        border: 1px solid #444;
        border-radius: 4px;
        position: relative;
        background: #1e1e1e;
        overflow: hidden;
      }
      #threeContainer .nf-webgl-fallback {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        text-align: center;
        color: #bbb;
        font-size: 0.9rem;
        background: rgba(0, 0, 0, 0.2);
      }
      #threeContainer canvas {
        display: block;
        width: 100%;
        height: 100%;
      }

      hr {
        margin: 2rem 0;
      }

      /* Our hidden option inputs */
      .hidden-turret-input {
        display: none;
      }

      /* Force-hide theme-rendered BigCommerce text fields used for payload plumbing
         (sandbox ids + prod ids). */
      #attribute_text_522,
      #attribute_text_524,
      #attribute_text_525,
      #attribute_text_769,
      #attribute_text_770,
      #attribute_text_771,
      label[for="attribute_text_522"],
      label[for="attribute_text_524"],
      label[for="attribute_text_525"],
      label[for="attribute_text_769"],
      label[for="attribute_text_770"],
      label[for="attribute_text_771"] {
        display: none !important;
      }
      .form-field:has(#attribute_text_522),
      .form-field:has(#attribute_text_524),
      .form-field:has(#attribute_text_525),
      .form-field:has(#attribute_text_769),
      .form-field:has(#attribute_text_770),
      .form-field:has(#attribute_text_771) {
        display: none !important;
      }

      /* NEW: invalid state for cap label */
      #capLabel.invalid {
        border-color: #d33;
        background: #ffecec;
      }
      .stack {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
      }
      .radio-row {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
      }
      .inline-input {
        min-width: 12rem;
        width: min(40ch, 100%);
        max-width: 100%;
        box-sizing: border-box;
      }
      #capSuggestedText.invalid {
        outline: 1px solid #d33;
        background: #ffecec;
        padding: 0 0.25rem;
        border-radius: 3px;
      }

      /* left column label only */
.form-row > label {
  flex: 1 1 200px;
  min-width: 160px;
  max-width: 100%;
  margin: 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
}

/* radio rows inside the stack */
.form-row .radio-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;         /* don't become 200px tall */
  margin: 0;              /* kill inherited margin */
  font-weight: 400;       /* normal weight */
  min-width: 0;
  max-width: 100%;
}

/* optional: keep the help text aligned under the radios */
#capLabelHelp {
  display: block;
  margin-top: 0.25rem;
}

/* Only text-ish inputs should flex */
.form-row select,
.form-row input[type="text"],
.form-row input[type="number"],
.form-row input[type="email"],
.form-row input[type="url"],
.form-row input[type="tel"],
.form-row input[type="search"],
.form-row input[type="password"] {
  flex: 1 1 260px;
  min-width: 200px;
  max-width: 100%;
}

.form-row .nf-field-control {
  flex: 1 1 260px;
  min-width: 200px;
  max-width: 100%;
}

.form-row .nf-field-control > input[type="number"] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex: none;
}

/* Radios/checkboxes must not flex */
.form-row input[type="radio"],
.form-row input[type="checkbox"] {
  flex: 0 0 auto !important;
  width: auto;
  min-width: 0;
}

/* Keep the two radio rows tidy and aligned */
.form-row .stack { flex: 1 1 260px; min-width: 200px; max-width: 100%; }

/* Segmented radio groups should align with text inputs */
.form-row .segmented { flex: 1 1 260px; min-width: 200px; }

.segmented {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
}
.segmented label {
  margin: 0;
  font-weight: 400;
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}
.radio-row > input[type="radio"] { flex: 0 0 auto; }
.radio-row > span { white-space: nowrap; }

/* Suggested label looks like an input and can grow, but won’t push things around */
#capSuggestedText,
.radio-row .inline-input {
  flex: 1 1 40ch;
  min-width: 0;
}
#capSuggestedText {
  display: inline-block;
  padding: .45rem .6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  line-height: 1.2;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Stepper focus */
  #turretTabs .tab-title:focus-visible {
    outline: 2px solid #005fa3;
    outline-offset: 2px;
  }

  /* Ensure panels render (override any theme tab-content rules) */
  .tab-panel, .nf-tab-panel {
    display: block;
    width: 100%;
    padding-top: .5rem;
    scroll-margin-top: 5.5rem;
  }
  .tab-panel[hidden], .nf-tab-panel[hidden],
  .tab-panel.is-hidden, .nf-tab-panel.is-hidden {
    display: none !important;
  }

  /* Scope any tab border resets to this component only */
  #turretTabs .tab {
    border: none;
  }

#tab-table .nf-table thead th {
  position: sticky;
  top: 0;
  padding: 0 0.8rem 0.24rem;
  border: 0;
  background: transparent;
  z-index: 1;
  color: var(--nf-text-soft);
  font-size: 0.72rem !important;
  line-height: 1.15 !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
#tab-table .nf-table th:first-child,
#tab-table .nf-table td:first-child {
  text-align: left;
}
#tab-table .nf-table tbody td {
  background: var(--nf-surface);
  border-top: 1px solid var(--nf-border);
  border-bottom: 1px solid var(--nf-border);
  padding: 0.56rem 0.8rem;
  text-align: right;
  vertical-align: top;
  font-size: 14px !important;
  line-height: 1.25 !important;
}
#tab-table .nf-table tbody td:first-child {
  border-left: 1px solid var(--nf-border);
  border-radius: 12px 0 0 12px;
  width: 17%;
  font-weight: 700;
  color: var(--nf-text);
}
#tab-table .nf-table tbody td:last-child {
  border-right: 1px solid var(--nf-border);
  border-radius: 0 12px 12px 0;
}
#tab-table .nf-table .nf-table-solution-cell {
  color: var(--nf-text);
  font-weight: 700;
}
#tab-table .nf-table .nf-table-debug-col,
#tab-table .nf-table .nf-table-debug-cell {
  color: var(--nf-text-soft);
}
#tab-table .nf-table .nf-table-debug-col {
  width: 5.5rem;
}
#tab-table .nf-table .nf-table-debug-cell {
  font-size: 0.82rem !important;
}
#tab-table .nf-table:not(.nf-table--show-rotation) .nf-table-debug-col,
#tab-table .nf-table:not(.nf-table--show-rotation) .nf-table-debug-cell {
  display: none !important;
}
#tab-table .nf-table:not(.nf-table--show-rotation) .nf-table-custom-cell {
  border-right: 1px solid var(--nf-border);
  border-radius: 0 12px 12px 0;
}
#tab-table .nf-table .nf-table-custom-cell {
  width: clamp(17rem, 38%, 24rem);
  padding: 0.5rem 0.62rem;
  background-clip: padding-box;
}
#tab-table .nf-table .nf-table-custom-shell {
  display: grid;
  gap: 0.26rem;
  justify-items: end;
  align-content: start;
}
#tab-table .nf-table .nf-table-custom-input {
  width: min(100%, 10.75rem);
  min-height: 2.15rem;
  box-sizing: border-box;
  border: 1px solid var(--nf-input-border);
  border-radius: 9px;
  padding: 0.4rem 0.55rem;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: right;
  background: var(--nf-input-bg);
  color: var(--nf-input-text);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
#tab-table .nf-table .nf-table-custom-input.is-overridden {
  border-color: #b7c8d7;
  background: #f7fbff;
}
#tab-table .nf-table .nf-table-custom-input.is-rounded-to-calculated {
  border-color: #d4c6ac;
  background: #faf7f1;
  color: #66543b;
}
#tab-table .nf-table .nf-table-custom-input:focus {
  outline: 2px solid var(--nf-input-focus);
  outline-offset: 1px;
  border-color: #8ea3bc;
}
#tab-table .nf-table .nf-table-custom-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.65rem;
  width: min(100%, 22rem);
  max-width: 22rem;
  margin-left: auto;
  text-align: left;
}
#tab-table .nf-table .nf-table-custom-meta[hidden] {
  display: none !important;
}
#tab-table .nf-table .nf-table-custom-state {
  flex: 1 1 12rem;
  min-width: 0;
  max-width: 18rem;
  color: var(--nf-text-muted);
  font-size: 0.72rem;
  line-height: 1.28;
}
#tab-table .nf-table .nf-table-custom-state.is-overridden {
  color: #354862;
  font-weight: 650;
}
#tab-table .nf-table .nf-table-custom-state.is-rounded-to-calculated {
  flex-basis: 100%;
  max-width: 100%;
  color: #6c4510;
  font-weight: 650;
}
#tab-table .nf-table .nf-table-custom-state.is-rounded-to-calculated + .nf-table-custom-reset {
  margin-left: auto;
}
#tab-table .nf-table .nf-table-custom-reset {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.02rem 0 0;
  border: 0;
  background: transparent;
  color: #354862;
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  cursor: pointer;
}
#tab-table .nf-table .nf-table-custom-reset:hover {
  color: #1f2d3d;
}
#tab-table .nf-table .nf-table-custom-reset[hidden] {
  display: none !important;
}

  /* Validation / error states for editable table */

  /* 1) Invalid row highlight */
  #tab-table .nf-table tr.nf-table-row-overridden td {
    background-color: #f7fafc;
    border-color: #d6dee6;
  }

  #tab-table .nf-table tr.nf-table-row-error td {
    background-color: #fff7f7;
    border-color: #e8c4c0;
  }

  #tab-table .nf-table tr.nf-table-row-error td:first-child {
    border-left-color: #c0392b;
  }

  /* 2) Invalid Custom input */
  #tab-table .nf-table .nf-table-input-error {
    background-color: #fff4f4;
    border: 1px solid #c0392b;
  }

  /* Focus state on invalid input */
  #tab-table .nf-table .nf-table-input-error:focus {
    outline: 2px solid rgba(192, 57, 43, 0.18);
    outline-offset: 1px;
    border-color: #c0392b;
    background-color: #fff;
  }

  /* Per-cell error text under the Custom input */
  #tab-table .step-content .nf-cell-error {
    display: block;
    margin-top: 1px;
    font-size: 0.72rem;
    line-height: 1.22;
    color: #b20000;
    min-height: 1.1em;
    max-width: min(100%, 10.5rem);
    text-align: right;
  }
  #tab-table .step-content .nf-cell-warning {
    display: block;
    margin-top: 1px;
    font-size: 0.7rem;
    line-height: 1.2;
    color: #75685b;
    min-height: 1.1em;
    max-width: min(100%, 10.5rem);
    text-align: right;
  }
  #tab-table .step-content .nf-cell-warning.has-warning {
    color: #7a4e00;
  }
  /* Don't reserve space when no message is present */
  #tab-table .step-content .nf-cell-error:empty,
  #tab-table .step-content .nf-cell-warning:empty {
    display: none;
    margin-top: 0;
    min-height: 0;
  }

  /* Table-level error summary under the table */
  #tab-table .step-content #nfTableErrors,
  #tab-table .step-content .nf-table-errors {
    display: block;
    margin-top: 0.5rem;
    padding: 0.62rem 0.78rem;
    font-size: 0.8rem;
    line-height: 1.3;
    border-radius: 12px;
    border: 1px solid #efc4bf;
    background-color: #fff7f7;
    color: #a40000;
  }
  #tab-table .nf-table-confirm-hint {
    margin: 0.1rem 0 0.75rem;
    font-size: 0.85rem;
    line-height: 1.3;
    color: #a40000;
    text-align: left;
  }
  #tab-table .nf-table-confirm-hint[hidden] {
    display: none !important;
  }

  /* Confirmation acknowledgement + ATC disabled state */
  #tab-confirmation .nf-confirm-ack {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  #tab-confirmation .nf-confirm-ack input[type="checkbox"] {
    margin-top: 0.15rem;
    flex: 0 0 auto;
  }

  #tab-confirmation .nf-confirm-ack label {
    flex: 1 1 auto;
    margin: 0;
  }
  #tab-confirmation .nf-confirm-warning {
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid #b7342d;
    border-radius: 4px;
    background: #fff4f1;
    color: #7c1d18;
    font-size: 0.92rem;
    line-height: 1.45;
  }
  #tab-confirmation .nf-confirm-warning strong {
    font-weight: 700;
  }
  #tab-confirmation .nf-confirm-hint {
    margin: 0.35rem 0 0.75rem;
    font-size: 0.85rem;
    color: #666;
  }

  #tab-confirmation .nf-confirm-availability {
    margin: 0 0 1rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    background: #f7f7f7;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  #tab-confirmation .nf-confirm-availability[hidden] {
    display: none !important;
  }

  #tab-confirmation .nf-confirm-availability strong {
    display: block;
    margin-bottom: 0.18rem;
    font-weight: 700;
  }

  #tab-confirmation .nf-confirm-availability--low-stock {
    border-color: #d8bd7a;
    background: #fffaf0;
    color: #654b0f;
  }

  #tab-confirmation .nf-confirm-availability--out-of-stock {
    border-color: #d9aaa5;
    background: #fff6f4;
    color: #7c1d18;
  }

  #tab-confirmation.nf-inventory-out-of-stock .nf-confirm-warning,
  #tab-confirmation.nf-inventory-out-of-stock .nf-confirm-ack,
  #tab-confirmation.nf-inventory-out-of-stock .nf-confirm-hint {
    display: none !important;
  }

  #tab-confirmation .nf-confirm-save {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 0;
    padding: 0.9rem 0;
    border-top: 1px solid #dedede;
    border-bottom: 1px solid #dedede;
  }

  #tab-confirmation .nf-confirm-save__copy {
    min-width: 0;
  }

  #tab-confirmation .nf-confirm-save__copy strong,
  #tab-confirmation .nf-confirm-save__copy span {
    display: block;
  }

  #tab-confirmation .nf-confirm-save__copy strong {
    margin-bottom: 0.15rem;
    color: #222;
    font-size: 0.92rem;
    font-weight: 700;
  }

  #tab-confirmation .nf-confirm-save__copy span {
    color: #666;
    font-size: 0.84rem;
    line-height: 1.35;
  }

  #tab-confirmation .nf-confirm-save .button {
    flex: 0 0 auto;
    margin: 0;
  }

  #confirmationSummary {
    margin: 0 0 1rem;
    padding: 1rem;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    background: #fafafa;
  }

  #confirmationSummary:empty {
    display: none;
  }

  .nf-review-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
  }

  .nf-review-summary__item {
    min-width: 0;
  }

  .nf-review-summary__label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #59606a;
  }

  .nf-review-summary__value {
    display: block;
    color: #222;
    font-size: 0.98rem;
    line-height: 1.35;
    word-break: break-word;
  }

  .nf-confirm-actions {
    display: flex;
    justify-content: flex-start;
    margin: 0 0 0.85rem;
  }

  #tab-confirmation .product-status-message.aria-description--hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .nf-submitted-lock-banner {
    max-width: 860px;
    margin: 0.9rem auto 1rem;
    padding: 0.85rem;
    border: 1px solid #cfd7c8;
    border-radius: 10px;
    background: #f7faf5;
    color: #243122;
    box-shadow: 0 12px 26px rgba(28, 38, 24, 0.06);
  }
  .nf-submitted-lock-banner[hidden] {
    display: none !important;
  }
  .nf-submitted-lock-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
  }
  .nf-submitted-lock-banner__copy {
    min-width: 0;
  }
  .nf-submitted-lock-banner__title {
    display: block;
    margin: 0 0 0.16rem;
    font-size: 0.98rem;
    line-height: 1.22;
  }
  .nf-submitted-lock-banner__body {
    display: block;
    color: #596352;
    font-size: 0.86rem;
    line-height: 1.35;
  }
  .nf-submitted-lock-banner__action {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  body.nf-bdc-submitted-locked #nf-input-fieldset,
  body.nf-bdc-submitted-locked #solverTableView,
  body.nf-bdc-submitted-locked #stepPreview,
  body.nf-bdc-submitted-locked #confirmationSummary,
  body.nf-bdc-submitted-locked .productView-options #nfGuidedOptions {
    opacity: 0.72;
  }
  body.nf-bdc-submitted-locked .productView-options #nfCustomizeBtn {
    cursor: not-allowed;
  }

  /* Disabled state for confirmation Add to Cart */
  #tab-confirmation [data-button-type="add-cart"][disabled],
  #tab-confirmation [data-button-type="add-cart"].nf-atc-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
  }

  @media (max-width: 720px) {
    .nf-submitted-lock-banner__inner {
      align-items: stretch;
      flex-direction: column;
    }
    .nf-submitted-lock-banner__action {
      width: 100%;
    }
  }



  /* Help / FAQ accordion */
  .nf-help-section--global {
    max-width: 860px;
    margin: 1.25rem auto 0;
  }

  .nf-help-section .step-content details {
    display: block;
    margin: 0 0 0.75rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid #ddd;
  }

  .nf-help-section .step-content details:last-of-type {
    border-bottom: 1px solid #ddd;
  }

  .nf-help-section .step-content summary {
    display: block;            /* override any theme rules that collapse it */
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    list-style: none;
  }

  .nf-help-section .step-content summary::-webkit-details-marker {
    display: none;
  }

  .nf-help-section .step-content details[open] summary {
    margin-bottom: 0.25rem;
  }

  .nf-help-section .step-content details p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
  }

  @media (max-width: 760px) {
    #turretTabs .tab-title {
      min-height: 54px;
      padding: 0.65rem 0.75rem;
    }

    #turretTabs .nf-step-copy strong {
      font-size: 0.86rem;
      line-height: 1.1;
    }

    #container {
      padding: 1.25rem;
    }

    #tab-table .nf-table-assist {
      flex-direction: column;
      align-items: stretch;
    }

    #tab-table .nf-table-assist__count {
      align-self: flex-start;
    }

    #tab-table .nf-table {
      min-width: 700px;
      border-spacing: 0 0.28rem;
    }

    #tab-table .step-content {
      padding: 0.85rem 0.85rem 0.9rem;
    }

    #tab-table .nf-table tbody td {
      padding: 0.48rem 0.62rem;
    }

    #tab-table .nf-table .nf-table-custom-input {
      width: min(100%, 10rem);
      min-height: 2rem;
    }

    #tab-table .nf-table .nf-table-custom-meta {
      width: min(100%, 18rem);
      max-width: min(100%, 18rem);
    }

    #tab-table .step-content .nf-cell-error,
    #tab-table .step-content .nf-cell-warning {
      width: min(100%, 10rem);
      max-width: min(100%, 10rem);
    }

    .nf-review-summary {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 640px) {
    #tab-table .step-content {
      padding: 0.78rem 0.78rem 0.84rem;
    }

    #tab-table .nf-table {
      min-width: 680px;
    }

    #tab-table .nf-table:not(.nf-table--show-rotation) {
      min-width: 0;
      width: 100%;
      table-layout: fixed;
    }

    #tab-table .nf-table:not(.nf-table--show-rotation) tbody td:first-child {
      width: 25%;
    }

    #tab-table .nf-table:not(.nf-table--show-rotation) .nf-table-solution-cell {
      width: 22%;
    }

    #tab-table .nf-table:not(.nf-table--show-rotation) .nf-table-custom-cell {
      width: 53%;
    }

    #tab-table .nf-table thead th {
      padding: 0 0.5rem 0.18rem;
      font-size: 0.66rem !important;
    }

    #tab-table .nf-table tbody td {
      padding: 0.42rem 0.5rem;
      font-size: 13px !important;
    }

    #tab-table .nf-table .nf-table-debug-col {
      width: 4.85rem;
    }

    #tab-table .nf-table .nf-table-custom-input {
      width: min(100%, 9.2rem);
      min-height: 1.92rem;
      font-size: 0.84rem;
    }

    #tab-table .nf-table:not(.nf-table--show-rotation) .nf-table-custom-input {
      width: min(100%, 8.6rem);
    }

    #tab-table .nf-table .nf-table-custom-meta {
      width: min(100%, 16.5rem);
      max-width: min(100%, 16.5rem);
      gap: 0.5rem;
    }

    #tab-table .step-content .nf-cell-error,
    #tab-table .step-content .nf-cell-warning {
      width: min(100%, 9.2rem);
      max-width: min(100%, 9.2rem);
    }

    #tab-table .nf-table .nf-table-custom-state,
    #tab-table .nf-table .nf-table-custom-reset,
    #tab-table .step-content .nf-cell-warning,
    #tab-table .step-content .nf-cell-error {
      font-size: 0.66rem;
    }

    #nfMobileStepper {
      display: block;
      margin: 0 0 0.85rem;
      padding: 0.62rem 0.78rem 0.66rem;
      border: 1px solid var(--nf-border);
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.96);
      box-shadow: 0 6px 16px rgba(35, 24, 9, 0.045);
      backdrop-filter: blur(10px);
    }

    #nfMobileStepper .nf-mobile-stepper__head {
      margin-bottom: 0.42rem;
    }
  }

  @media (max-width: 560px) {
    #nf-bdc-app,
    [data-nf-bdc-app] {
      padding: 12px;
    }

    #tab-table .step-content {
      padding: 0.72rem 0.72rem 0.78rem;
    }

    #tab-table .nf-table-assist {
      padding: 0.56rem 0.68rem;
      gap: 0.55rem;
    }

    #tab-table .nf-table-assist__copy {
      font-size: 0.8rem;
    }

    #tab-table .nf-table-assist__copy strong {
      font-size: 0.84rem;
    }

    #tab-table .nf-table {
      min-width: 680px;
    }

    #nfMobileStepper {
      padding: 0.56rem 0.68rem 0.6rem;
      border-radius: 11px;
    }

    #nfMobileStepper .nf-mobile-stepper__meta {
      font-size: 0.64rem;
    }

    #nfMobileStepper .nf-mobile-stepper__title {
      font-size: 0.9rem;
    }

    #nfMobileStepper .nf-mobile-stepper__rail {
      gap: 0.38rem;
    }

    #nfMobileStepper .nf-mobile-stepper__segment {
      padding: 0.2rem 0;
    }

    #nfMobileStepper .nf-mobile-stepper__segment::before {
      block-size: 4px;
    }

    .nf-panel-header h2 {
      font-size: 1.6rem;
    }

    .step-actions,
    #tab-table .nf-table-toolbar,
    #tab-preview .nf-preview-toolbar,
    .nf-confirm-actions {
      flex-direction: column;
      align-items: stretch;
    }

    #tab-confirmation .nf-confirm-save {
      align-items: stretch;
      flex-direction: column;
    }

    #tab-confirmation .nf-confirm-save .button {
      width: 100%;
    }

    #tab-preview .nf-load-proof-btn,
    #tab-preview .nf-load-3d-btn {
      width: 100%;
    }

    .selection-display {
      max-width: 100%;
      white-space: normal;
    }

    .form-row .nf-field-warning {
      flex-basis: 100%;
      margin-left: 0;
    }

    .form-row .nf-field-validation-message {
      position: static;
      width: 100%;
      margin-left: 0;
      margin-top: 0.12rem;
      text-align: left;
      pointer-events: auto;
    }

    .form-row .nf-field-advisory-message {
      margin-top: 0.42rem;
      line-height: 1.4;
    }

    .form-row.nf-row-has-validation-message {
      padding-bottom: 0;
    }
  }
/* END styles.html */

