:root {
    --bg: #080b10;
    --panel: #111722;
    --panel-light: #162031;
    --text: #f6f8fb;
    --muted: #9aa8bd;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #5aab30;
    --accent-dark: #4c9229;
    --danger: #ff5b6e;
    --radius: 22px;
  }

  * {
    box-sizing: border-box;
  }

  .sr-only {
    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;
  }

  body {
    margin: 0;
    background:
      radial-gradient(circle at top right, rgba(90, 171, 48, 0.18), transparent 34rem),
      linear-gradient(135deg, #080b10 0%, #0d1320 45%, #080b10 100%);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    min-height: 100vh;
  }

  .page-shell {
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
  }

  .hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
  }

  .eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 12px;
  }

  h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
    margin: 0;
  }

  .hero-text {
    color: var(--muted);
    max-width: 620px;
    font-size: 16px;
    line-height: 1.6;
  }

  .hero-logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    padding-top: 6px;
  }

  .hero-logo img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    opacity: 0.98;
  }

  .form-card {
    background: rgba(17, 23, 34, 0.88);
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.35);
    padding: clamp(20px, 4vw, 38px);
    backdrop-filter: blur(18px);
  }

  .section {
    border-bottom: 1px solid var(--line);
    padding: 26px 0;
  }

  .customer-type-section {
    border-bottom: 0;
  }

  .form-open .customer-type-section {
    border-bottom: 1px solid var(--line);
  }

  .section:first-child {
    padding-top: 0;
  }

  .section:last-of-type {
    border-bottom: 0;
  }

  h2 {
    font-size: 20px;
    margin: 0 0 16px;
  }

  .section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
  }

  .section-heading-row p {
    color: var(--muted);
    margin: 6px 0 0;
  }

  .customer-type-grid,
  .grid.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .choice-card {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--panel-light);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    cursor: pointer;
    transition: 0.25s ease;
    min-height: 110px;
  }

  .choice-card input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .choice-card:has(input:checked) {
    border-color: rgba(90, 171, 48, 0.95);
    box-shadow: 0 0 0 3px rgba(90, 171, 48, 0.18);
  }

  .choice-card:has(input:focus-visible) {
    outline: none;
    box-shadow: 0 0 0 2px rgba(139, 220, 90, 0.5);
  }

  @media (hover: hover) and (pointer: fine) {
    .choice-card:hover {
      background: #1a2638;
      border-color: rgba(90, 171, 48, 0.65);
      box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
      transform: translateY(-1px);
    }
  }

  .choice-card strong {
    display: block;
    margin-bottom: 4px;
  }

  .choice-card small {
    color: var(--muted);
  }

  .field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
  }

  .field span {
    color: #dce5f3;
    font-size: 14px;
    font-weight: 700;
  }

  input,
  select,
  textarea {
    width: 100%;
    background: #0c111b;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    outline: none;
  }

  input::placeholder,
  textarea::placeholder {
    color: rgba(246, 248, 251, 0.34);
  }

  select.placeholder {
    color: rgba(246, 248, 251, 0.45);
  }

  select option {
    color: var(--text);
    background: #0c111b;
  }

  select option[value=""] {
    color: rgba(246, 248, 251, 0.45);
  }

  input:focus,
  select:focus,
  textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(90, 171, 48, 0.14);
  }

  textarea {
    resize: vertical;
  }

  .checkbox-row {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--muted);
    margin: 8px 0 18px;
    width: fit-content;
    cursor: pointer;
  }

  .checkbox-row input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    accent-color: var(--accent);
    cursor: pointer;
  }

  .checkbox-row span {
    line-height: 1.35;
  }

  .billing-block {
    animation: sectionEnter 0.3s ease;
  }

  .issue-card {
    background: #0c111b;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
  }

  .issue-add-button {
    display: block;
    margin: 18px 0 0 auto;
  }

  .issue-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
  }

  .issue-card-header h3 {
    margin: 0;
    font-size: 17px;
  }

  .remove-issue {
    background: transparent;
    color: var(--danger);
    border: 0;
    cursor: pointer;
    font-weight: 700;
  }

  .serial-error,
  .email-error,
  .component-help {
    color: var(--danger);
    font-size: 12px;
    margin-top: -2px;
  }


  .country-field {
    position: relative;
  }

  .country-input {
    padding-right: 42px;
    cursor: text;
  }

  .country-field::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 45px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    pointer-events: none;
  }

  .country-dropdown {
    position: absolute;
    z-index: 50;
    left: 0;
    right: 0;
    top: 72px;
    max-height: 230px;
    overflow-y: auto;
    background: #0c111b;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
    padding: 6px;
  }

  .country-option {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    font: inherit;
    padding: 11px 12px;
    border-radius: 10px;
    cursor: pointer;
  }

  .country-option:hover,
  .country-option.active {
    background: rgba(90, 171, 48, 0.16);
    color: var(--text);
  }

  .country-no-result {
    color: var(--muted);
    padding: 11px 12px;
    font-size: 13px;
  }

  .physical-damage-note {
    background: rgba(255, 178, 36, 0.12);
    border: 1px solid rgba(255, 178, 36, 0.35);
    color: #ffd18a;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.45;
    margin: -4px 0 16px;
  }

  .cart-summary-note {
    color: var(--muted);
    margin: -6px 0 18px;
    line-height: 1.5;
  }

  .cart-summary {
    background: #0c111b;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
  }

  .cart-empty {
    color: var(--muted);
    margin: 0;
  }

  .cart-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .cart-line:last-child {
    border-bottom: 0;
  }

  .cart-line-title {
    font-weight: 700;
  }

  .cart-line-meta {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
  }

  .cart-line-price,
  .cart-total-price {
    font-weight: 800;
    white-space: nowrap;
  }

  .cart-total {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--line);
    margin-top: 14px;
    padding-top: 16px;
    font-size: 18px;
  }

  .cart-disclaimer {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    margin: 14px 0 0;
  }

  .privacy-note {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 18px 0 0;
  }

  .primary-button,
  .secondary-button {
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.18s ease;
  }

  .primary-button {
    background: var(--accent);
    color: #06100c;
    padding: 15px 24px;
    font-size: 15px;
  }

  .primary-button:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
  }

  .secondary-button {
    background: rgba(90, 171, 48, 0.12);
    color: var(--accent);
    padding: 12px 18px;
  }

  .secondary-button:disabled,
  .primary-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
  }

  .actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 24px;
  }

  .form-message {
    margin-top: 18px;
    border-radius: 16px;
    padding: 14px 16px;
    line-height: 1.5;
  }

  .form-message.success {
    background: rgba(90, 171, 48, 0.12);
    border: 1px solid rgba(90, 171, 48, 0.35);
  }

  .form-message.error {
    background: rgba(255, 91, 110, 0.12);
    border: 1px solid rgba(255, 91, 110, 0.35);
  }

  .accessible-field-error {
    margin: 0;
    color: #ff8997;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
  }

  [aria-invalid="true"] {
    border-color: #ff8997 !important;
    box-shadow: 0 0 0 3px rgba(255, 91, 110, 0.2) !important;
  }

  .animated-section {
    animation: sectionEnter 0.35s ease;
  }

  .issue-enter {
    animation: issueEnter 0.35s ease;
  }

  .issue-exit {
    animation: issueExit 0.24s ease forwards;
    pointer-events: none;
  }

  @keyframes sectionEnter {
    from {
      opacity: 0;
      transform: translateY(14px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes issueEnter {
    from {
      opacity: 0;
      transform: translateY(-18px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes issueExit {
    from {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    to {
      opacity: 0;
      transform: translateY(-14px) scale(0.98);
    }
  }

  .popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 6, 10, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
    backdrop-filter: blur(8px);
  }

  .popup-card {
    width: min(460px, 100%);
    background:
      radial-gradient(circle at top left, rgba(90, 171, 48, 0.14), transparent 16rem),
      var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 28px 100px rgba(0, 0, 0, 0.55);
    animation: popupEnter 0.22s ease;
  }

  .popup-card p {
    margin: 0 0 24px;
    line-height: 1.45;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    white-space: pre-line;
  }

  .popup-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
  }

  .popup-actions.has-two-buttons {
    justify-content: space-between;
  }

  .popup-card .primary-button,
  .popup-card .secondary-button {
    width: 140px;
    min-width: 140px;
    height: 54px;
    padding: 0;
    margin: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

  .popup-no-button {
    order: 1;
  }

  .popup-yes-button {
    order: 2;
  }

  @keyframes popupEnter {
    from {
      opacity: 0;
      transform: translateY(10px) scale(0.96);
    }

    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .hidden {
    display: none !important;
  }

  @media (max-width: 760px) {
    .hero-logo img {
      width: 90px;
      height: 90px;
    }

    .customer-type-grid,
    .grid.two {
      grid-template-columns: 1fr;
    }

    .section-heading-row {
      align-items: flex-start;
      flex-direction: column;
    }

    .issue-add-button {
      width: 100%;
    }

    .actions {
      justify-content: stretch;
    }

    .primary-button {
      width: 100%;
    }

    .popup-card .primary-button,
    .popup-card .secondary-button {
      width: 140px;
      min-width: 140px;
    }

    .cart-line {
      grid-template-columns: 1fr;
      gap: 6px;
    }
  }


  /* Unified dropdown styling */
  select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 44px;
    background-image:
      linear-gradient(45deg, transparent 50%, var(--muted) 50%),
      linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position:
      calc(100% - 22px) 52%,
      calc(100% - 16px) 52%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
  }

  .warranty-help {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    margin: -4px 0 16px;
  }

  .cart-line-price,
  .cart-total-price {
    text-align: right;
    min-width: 92px;
  }

  .cart-line-price.zero {
    color: var(--muted);
  }

  .cart-line-meta strong {
    color: #dce5f3;
  }

  .cart-line-title small {
    display: block;
    color: var(--muted);
    font-weight: 500;
    margin-top: 3px;
  }


  /* Final form refinements */
  input,
  select,
  textarea,
  .country-input {
    background-color: #0b101a;
    border-color: rgba(156, 170, 194, 0.22);
  }

  input:hover,
  select:hover,
  textarea:hover,
  .country-input:hover {
    border-color: rgba(156, 170, 194, 0.38);
  }

  select {
    cursor: pointer;
  }

  .country-dropdown {
    background: #0b101a;
    border-color: rgba(156, 170, 194, 0.28);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 255, 255, 0.03);
  }

  .country-option {
    color: #f6f8fb;
  }

  .country-option:hover,
  .country-option.active {
    background: rgba(90, 171, 48, 0.2);
  }

  .label-with-info {
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }

  .info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(90, 171, 48, 0.18);
    border: 1px solid rgba(90, 171, 48, 0.45);
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    cursor: help;
  }

  .tooltip-text {
    position: absolute;
    z-index: 80;
    left: 50%;
    bottom: calc(100% + 10px);
    width: min(320px, 80vw);
    transform: translateX(-50%);
    background: #0b101a;
    color: var(--text);
    border: 1px solid rgba(156, 170, 194, 0.28);
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.16s ease, visibility 0.16s ease;
  }

  .info-tooltip:hover .tooltip-text,
  .info-tooltip:focus .tooltip-text {
    opacity: 1;
    visibility: visible;
  }



  /* v3: brighter, custom dropdown UI */
  input,
  textarea,
  .country-input,
  .hardware-version-input,
  .issue-type-input,
  .custom-select-button {
    background-color: #121a28;
    border-color: rgba(176, 190, 215, 0.34);
  }

  input:hover,
  textarea:hover,
  .country-input:hover,
  .hardware-version-input:hover,
  .issue-type-input:hover,
  .custom-select-button:hover {
    background-color: #152033;
    border-color: rgba(176, 190, 215, 0.52);
  }

  input:focus,
  textarea:focus,
  .country-input:focus,
  .hardware-version-input:focus,
  .issue-type-input:focus,
  .custom-select.open .custom-select-button,
  .custom-select-button:focus {
    background-color: #111c2d;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(90, 171, 48, 0.18);
  }

  .native-select-hidden {
    display: none !important;
  }

  .custom-select {
    position: relative;
    width: 100%;
  }

  .custom-select-button {
    width: 100%;
    min-height: 47px;
    color: var(--text);
    border: 1px solid rgba(176, 190, 215, 0.34);
    border-radius: 14px;
    padding: 13px 44px 13px 14px;
    font: inherit;
    text-align: left;
    outline: none;
    cursor: pointer;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
  }

  .custom-select-button::after {
    content: "";
    position: absolute;
    right: 17px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid #aebbd1;
    border-bottom: 2px solid #aebbd1;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
  }

  .custom-select-button.placeholder,
  .hardware-version-input::placeholder,
  .issue-type-input::placeholder,
  .country-input::placeholder {
    color: rgba(246, 248, 251, 0.46);
  }

  .custom-select-menu,
  .country-dropdown,
  .hardware-version-dropdown,
  .issue-type-dropdown {
    position: absolute;
    z-index: 90;
    left: 0;
    right: 0;
    top: calc(100% + 7px);
    max-height: 280px;
    overflow-y: auto;
    background: #151f30;
    border: 1px solid rgba(176, 190, 215, 0.42);
    border-radius: 16px;
    box-shadow: 0 22px 80px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    padding: 7px;
  }

  .country-dropdown,
  .hardware-version-dropdown,
  .issue-type-dropdown {
    top: 72px;
  }

  .custom-select-option,
  .country-option {
    width: 100%;
    min-height: 42px;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    font: inherit;
    padding: 10px 12px;
    border-radius: 11px;
    cursor: pointer;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
  }

  .custom-select-option:hover,
  .custom-select-option.selected,
  .country-option:hover,
  .country-option.active {
    background: rgba(90, 171, 48, 0.22);
  }

  .custom-select-option.placeholder-option {
    color: rgba(246, 248, 251, 0.48);
  }

  .custom-option-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .custom-option-price {
    color: #dce5f3;
    font-weight: 800;
    min-width: 82px;
    text-align: right;
    font-variant-numeric: tabular-nums;
  }

  .country-no-result {
    color: var(--muted);
    padding: 11px 12px;
    font-size: 13px;
  }

  .hardware-version-field,
  .issue-type-field,
  .country-field {
    position: relative;
  }

  .hardware-version-input,
  .issue-type-input {
    padding-right: 42px;
  }

  .hardware-version-field::after,
  .issue-type-field::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 45px;
    width: 9px;
    height: 9px;
    border-right: 2px solid #aebbd1;
    border-bottom: 2px solid #aebbd1;
    transform: rotate(45deg);
    pointer-events: none;
  }

  .tooltip-text {
    background: #172235;
    border-color: rgba(176, 190, 215, 0.48);
    box-shadow: 0 22px 80px rgba(0, 0, 0, 0.68), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  }

  .info-tooltip {
    background: rgba(90, 171, 48, 0.24);
    border-color: rgba(90, 171, 48, 0.65);
  }


  /* v4: restore the darker input/dropdown color palette from the preferred version */
  input,
  textarea,
  .country-input,
  .hardware-version-input,
  .issue-type-input,
  .custom-select-button {
    background-color: #0c111b;
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text);
  }

  input:hover,
  textarea:hover,
  .country-input:hover,
  .hardware-version-input:hover,
  .issue-type-input:hover,
  .custom-select-button:hover {
    background-color: #0d131f;
    border-color: rgba(255, 255, 255, 0.2);
  }

  input:focus,
  textarea:focus,
  .country-input:focus,
  .hardware-version-input:focus,
  .issue-type-input:focus,
  .custom-select.open .custom-select-button,
  .custom-select-button:focus {
    background-color: #0c111b;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(90, 171, 48, 0.14);
  }

  input::placeholder,
  textarea::placeholder,
  .country-input::placeholder,
  .hardware-version-input::placeholder,
  .custom-select-button.placeholder {
    color: rgba(246, 248, 251, 0.34);
  }

  .custom-select-menu,
  .country-dropdown,
  .hardware-version-dropdown,
  .issue-type-dropdown {
    background: #101724;
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(255, 255, 255, 0.035) inset;
  }

  .custom-select-option,
  .country-option {
    color: var(--text);
  }

  .custom-select-option:hover,
  .custom-select-option.selected,
  .country-option:hover,
  .country-option.active {
    background: rgba(90, 171, 48, 0.18);
  }

  .custom-option-price {
    color: #dce5f3;
  }

  .tooltip-text {
    background: #101724;
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 255, 255, 0.035) inset;
  }

  .info-tooltip {
    background: rgba(90, 171, 48, 0.16);
    border-color: rgba(90, 171, 48, 0.45);
    color: var(--accent);
  }


  .autocomplete-field {
    position: relative;
  }

  .country-input,
  .hardware-version-input,
  .issue-type-input {
    padding-right: 76px;
  }

  .autocomplete-clear {
    position: absolute;
    right: 42px;
    top: 43px;
    z-index: 95;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: rgba(176, 190, 215, 0.14);
    color: #dce5f3;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .autocomplete-clear:hover,
  .autocomplete-clear:focus {
    background: rgba(90, 171, 48, 0.26);
    color: #ffffff;
  }

  .custom-select-menu,
  .country-dropdown,
  .hardware-version-dropdown,
  .issue-type-dropdown,
  .tooltip-text {
    background: #172235;
    border-color: rgba(176, 190, 215, 0.36);
    box-shadow: 0 24px 84px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255,255,255,0.05) inset;
  }

  .custom-select-option,
  .country-option {
    background: rgba(255, 255, 255, 0.015);
  }

  .custom-select-option + .custom-select-option,
  .country-option + .country-option {
    margin-top: 3px;
  }

  .custom-select-option:hover,
  .custom-select-option.selected,
  .country-option:hover,
  .country-option.active {
    background: rgba(90, 171, 48, 0.24);
  }


  .autocomplete-field.has-autocomplete-value::after {
    display: none !important;
  }

  .autocomplete-field.has-autocomplete-value .country-input,
  .autocomplete-field.has-autocomplete-value .hardware-version-input,
  .autocomplete-field.has-autocomplete-value .issue-type-input {
    padding-right: 58px;
  }

  .autocomplete-clear {
    right: 14px !important;
    top: 42px !important;
    width: 30px !important;
    height: 30px !important;
    z-index: 120 !important;
  }

  .hardware-version-field::after,
  .issue-type-field::after,
  .country-field::after {
    right: 22px !important;
    top: 47px !important;
  }

  .country-input,
  .hardware-version-input,
  .issue-type-input {
    padding-right: 54px !important;
  }

  .custom-select-menu,
  .country-dropdown,
  .hardware-version-dropdown,
  .issue-type-dropdown {
    z-index: 140 !important;
  }


  /* Align autocomplete clear buttons and dropdown arrows inside the input field */
  .autocomplete-field {
    position: relative !important;
  }

  .autocomplete-clear {
    right: 14px !important;
    top: auto !important;
    bottom: 9px !important;
    transform: none !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 24px !important;
  }

  .autocomplete-clear.hidden {
    display: none !important;
  }

  .country-field::after,
  .hardware-version-field::after,
  .issue-type-field::after {
    right: 22px !important;
    top: auto !important;
    bottom: 19px !important;
    transform: rotate(45deg) !important;
  }

  .autocomplete-field.has-autocomplete-value::after {
    display: none !important;
  }

  .autocomplete-field.has-autocomplete-value .country-input,
  .autocomplete-field.has-autocomplete-value .hardware-version-input,
  .autocomplete-field.has-autocomplete-value .issue-type-input {
    padding-right: 58px !important;
  }

  .autocomplete-field:not(.has-autocomplete-value) .country-input,
  .autocomplete-field:not(.has-autocomplete-value) .hardware-version-input,
  .autocomplete-field:not(.has-autocomplete-value) .issue-type-input {
    padding-right: 54px !important;
  }


  /* Keep autocomplete clear icon and dropdown arrow aligned to the input itself,
     not to the whole field height. This prevents vertical shifting when an
     error/help message appears below the input. */
  .country-field,
  .hardware-version-field,
  .issue-type-field {
    position: relative !important;
  }

  .country-input,
  .hardware-version-input,
  .issue-type-input {
    padding-right: 58px !important;
  }

  .autocomplete-field.has-autocomplete-value .country-input,
  .autocomplete-field.has-autocomplete-value .hardware-version-input,
  .autocomplete-field.has-autocomplete-value .issue-type-input {
    padding-right: 58px !important;
  }

  .country-field .autocomplete-clear,
  .hardware-version-field .autocomplete-clear,
  .issue-type-field .autocomplete-clear {
    position: absolute !important;
    right: 14px !important;
    top: 54px !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 24px !important;
    z-index: 160 !important;
  }

  .country-field .autocomplete-clear.hidden,
  .hardware-version-field .autocomplete-clear.hidden,
  .issue-type-field .autocomplete-clear.hidden {
    display: none !important;
  }

  .country-field::after,
  .hardware-version-field::after,
  .issue-type-field::after {
    right: 24px !important;
    top: 54px !important;
    bottom: auto !important;
    transform: translateY(-50%) rotate(45deg) !important;
    z-index: 80 !important;
  }

  .autocomplete-field.has-autocomplete-value::after {
    display: none !important;
  }


  /* Robust icon alignment: icons are positioned inside a wrapper around the input,
     so field-level help/error text can no longer move them. */
  .autocomplete-field {
    position: relative !important;
  }

  .autocomplete-control {
    position: relative !important;
    width: 100% !important;
    display: block !important;
  }

  .autocomplete-control .country-input,
  .autocomplete-control .hardware-version-input,
  .autocomplete-control .issue-type-input {
    width: 100% !important;
    padding-right: 58px !important;
  }

  .autocomplete-field.has-autocomplete-value .autocomplete-control .country-input,
  .autocomplete-field.has-autocomplete-value .autocomplete-control .hardware-version-input,
  .autocomplete-field.has-autocomplete-value .autocomplete-control .issue-type-input {
    padding-right: 58px !important;
  }

  /* Hide the old field-level arrow; use wrapper-level arrow instead. */
  .country-field::after,
  .hardware-version-field::after,
  .issue-type-field::after {
    display: none !important;
    content: none !important;
  }

  .autocomplete-control::after {
    content: "" !important;
    position: absolute !important;
    right: 22px !important;
    top: 50% !important;
    width: 10px !important;
    height: 10px !important;
    border-right: 2px solid #aebbd1 !important;
    border-bottom: 2px solid #aebbd1 !important;
    transform: translateY(-65%) rotate(45deg) !important;
    pointer-events: none !important;
    z-index: 10 !important;
  }

  .autocomplete-field.has-autocomplete-value .autocomplete-control::after {
    display: none !important;
    content: none !important;
  }

  .autocomplete-control .autocomplete-clear {
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 24px !important;
    z-index: 20 !important;
  }

  .autocomplete-control .autocomplete-clear.hidden {
    display: none !important;
  }



  /* Show exactly one icon in autocomplete fields: arrow when empty, clear X when filled. */
  .autocomplete-control.has-autocomplete-value::after,
  .autocomplete-field.has-autocomplete-value .autocomplete-control::after {
    display: none !important;
    content: none !important;
  }

  .autocomplete-control:not(.has-autocomplete-value) .autocomplete-clear,
  .autocomplete-field:not(.has-autocomplete-value) .autocomplete-control .autocomplete-clear {
    display: none !important;
  }

  .autocomplete-control.has-autocomplete-value .autocomplete-clear,
  .autocomplete-field.has-autocomplete-value .autocomplete-control .autocomplete-clear {
    display: inline-flex !important;
  }

  .autocomplete-control .autocomplete-clear.hidden {
    display: none !important;
  }

  .autocomplete-control::after {
    right: 24px !important;
    top: 50% !important;
    transform: translateY(-60%) rotate(45deg) !important;
  }

  .autocomplete-control .autocomplete-clear {
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }


  .field-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    min-height: 20px;
  }

  .field-label-row > span {
    flex: 0 1 auto;
  }

  .component-manual-link {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.18s ease, opacity 0.18s ease;
  }

  .component-manual-link::after {
    content: " ↗";
  }

  .component-manual-link:hover,
  .component-manual-link:focus-visible {
    color: #78cf4d;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  @media (max-width: 640px) {
    .field-label-row {
      align-items: flex-start;
      flex-wrap: wrap;
      gap: 5px 12px;
    }

    .component-manual-link {
      font-size: 12px;
      white-space: normal;
    }
  }

  input::placeholder,
  textarea::placeholder,
  .country-input::placeholder,
  .hardware-version-input::placeholder,
  .issue-type-input::placeholder {
    color: rgba(154, 168, 189, 0.72) !important;
    -webkit-text-fill-color: rgba(154, 168, 189, 0.72) !important;
    opacity: 1;
    font-weight: 500;
  }

  .custom-select-button.placeholder,
  .custom-select-button.placeholder .custom-option-label {
    color: rgba(154, 168, 189, 0.72) !important;
    -webkit-text-fill-color: rgba(154, 168, 189, 0.72) !important;
    font-weight: 500;
  }

  .wizard-progress {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 8px 0 30px;
    padding: 14px;
    background: rgba(12, 17, 27, 0.72);
    border: 1px solid var(--line);
    border-radius: 20px;
  }

  .wizard-progress-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 0;
    padding: 10px 8px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    cursor: default;
  }

  .wizard-progress-item::after {
    content: "";
    position: absolute;
    right: -8px;
    top: 50%;
    width: 8px;
    height: 1px;
    background: var(--line);
  }

  .wizard-progress-item:last-child::after {
    display: none;
  }

  .wizard-step-number {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(154, 168, 189, 0.34);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
  }

  .wizard-step-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 750;
  }

  .wizard-progress-item.active {
    background: rgba(90, 171, 48, 0.14);
    color: var(--text);
  }

  .wizard-progress-item.active .wizard-step-number,
  .wizard-progress-item.complete .wizard-step-number {
    border-color: var(--accent);
    background: var(--accent);
    color: #06100c;
  }

  .wizard-progress-item.complete {
    color: #c8d6c0;
  }

  .step-kicker {
    margin: 0 0 6px !important;
    color: var(--accent) !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .customer-entity-section {
    margin: 0 0 24px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(12, 17, 27, 0.7);
  }

  .customer-entity-section h3 {
    margin: 0 0 14px;
    font-size: 16px;
  }

  .entity-type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .compact-choice-card {
    min-height: 88px;
    padding: 16px 18px;
    border-radius: 16px;
  }

  .issue-stage {
    animation: sectionEnter 0.22s ease;
  }

  .wizard-actions {
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid var(--line);
    margin-top: 6px;
  }

  .wizard-actions-right {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
  }

  .component-field {
    position: relative;
  }

  .component-input {
    padding-right: 58px !important;
  }

  .component-dropdown {
    position: absolute;
    z-index: 170;
    left: 0;
    right: 0;
    top: 76px;
    max-height: 300px;
    overflow-y: auto;
    background: #0c111b;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.48);
    padding: 6px;
  }

  .component-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .component-option strong {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 13px;
  }

  .component-field .autocomplete-control {
    width: 100%;
  }

  .component-field .autocomplete-control .component-input {
    width: 100%;
  }

  .cart-summary {
    overflow: hidden;
  }

  .cart-table {
    width: 100%;
  }

  .cart-table-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 90px 130px 130px;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 15px 4px;
    border-bottom: 1px solid var(--line);
  }

  .cart-table-header {
    padding-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .cart-description {
    min-width: 0;
  }

  .cart-description strong,
  .cart-description small {
    display: block;
  }

  .cart-description strong {
    overflow-wrap: anywhere;
  }

  .cart-description small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
  }

  .cart-money {
    text-align: left;
    font-weight: 800;
    white-space: nowrap;
  }

  .cart-money.zero {
    color: var(--muted);
  }

  .request-review-card {
    padding: 2px 0 16px;
  }

  .request-review-card + .request-review-card {
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .request-review-card h3 {
    margin: 0 0 14px;
    font-size: 18px;
  }

  .request-review-card dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
  }

  .request-review-card dl > div {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
  }

  .request-review-card .review-description {
    grid-column: 1 / -1;
  }

  .request-review-card dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .request-review-card dd {
    margin: 6px 0 0;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  @media (max-width: 820px) {
    .wizard-progress {
      grid-template-columns: repeat(5, minmax(48px, 1fr));
      padding: 10px 6px;
    }

    .wizard-progress-item {
      flex-direction: column;
      gap: 5px;
      padding: 8px 3px;
    }

    .wizard-step-label {
      font-size: 10px;
    }

    .cart-table-row {
      grid-template-columns: minmax(180px, 1fr) 54px 100px 100px;
      gap: 10px;
    }
  }

  @media (max-width: 640px) {
    .entity-type-grid {
      grid-template-columns: 1fr;
    }

    .wizard-progress-item::after {
      display: none;
    }

    .wizard-actions {
      flex-wrap: wrap;
    }

    .wizard-actions > .secondary-button,
    .wizard-actions-right,
    .wizard-actions-right .primary-button {
      width: 100%;
    }

    .cart-table {
      display: block;
    }

    .cart-table-header {
      display: none;
    }

    .cart-table-row:not(.cart-table-header) {
      grid-template-columns: 1fr auto;
      gap: 8px 16px;
      padding: 16px 0;
    }

    .cart-description {
      grid-column: 1 / -1;
    }

    .cart-table-row:not(.cart-table-header) > div:nth-child(2)::before,
    .cart-table-row:not(.cart-table-header) > div:nth-child(3)::before,
    .cart-table-row:not(.cart-table-header) > div:nth-child(4)::before {
      display: block;
      margin-bottom: 3px;
      color: var(--muted);
      font-size: 10px;
      font-weight: 800;
      text-transform: uppercase;
    }

    .cart-table-row:not(.cart-table-header) > div:nth-child(2)::before {
      content: "Qty.";
    }

    .cart-table-row:not(.cart-table-header) > div:nth-child(3)::before {
      content: "Unit price";
    }

    .cart-table-row:not(.cart-table-header) > div:nth-child(4)::before {
      content: "Line total";
    }

    .request-review-card dl {
      grid-template-columns: 1fr;
    }

    .request-review-card .review-description {
      grid-column: auto;
    }
  }

  .wizard-progress-item {
    transition:
      background-color 0.2s ease,
      color 0.2s ease,
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }

  .wizard-progress-item.visited:not(.active) {
    color: #c8d6c0;
  }

  .wizard-progress-item.navigable {
    cursor: pointer;
  }

  .wizard-progress-item.navigable:hover,
  .wizard-progress-item.navigable:focus-visible {
    background: rgba(90, 171, 48, 0.1);
    color: var(--text);
    transform: translateY(-1px);
    outline: none;
    box-shadow: 0 0 0 2px rgba(90, 171, 48, 0.16);
  }

  .wizard-progress-item[aria-disabled="true"]:not(.active) {
    opacity: 0.56;
  }

  .wizard-enter-forward {
    animation: wizardEnterForward 0.18s ease-out both !important;
  }

  .wizard-enter-back {
    animation: wizardEnterBack 0.18s ease-out both !important;
  }

  @keyframes wizardEnterForward {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes wizardEnterBack {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .review-section {
    padding: 4px 0 22px;
  }

  .review-section + .review-section {
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }

  .review-section:last-child {
    padding-bottom: 0;
  }

  .review-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
  }

  .review-section-heading-wrap {
    flex-wrap: wrap;
  }

  .review-section-heading h3 {
    margin: 3px 0 0;
    font-size: 19px;
  }

  .review-eyebrow {
    margin: 0;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .review-edit-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .review-edit-button {
    border: 0;
    border-radius: 999px;
    background: rgba(90, 171, 48, 0.12);
    color: var(--accent);
    padding: 9px 13px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition:
      background-color 0.18s ease,
      transform 0.18s ease,
      box-shadow 0.18s ease;
  }

  .review-edit-button:hover,
  .review-edit-button:focus-visible {
    background: rgba(90, 171, 48, 0.2);
    transform: translateY(-1px);
    outline: none;
    box-shadow: 0 0 0 2px rgba(90, 171, 48, 0.14);
  }

  .review-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
  }

  .review-data-grid > div {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
  }

  .review-data-grid .review-wide {
    grid-column: 1 / -1;
  }

  .review-data-grid dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .review-data-grid dd {
    margin: 6px 0 0;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .review-order-section .cart-table {
    margin-top: 2px;
  }

  @media (max-width: 640px) {
    .review-section-heading,
    .review-edit-actions {
      width: 100%;
    }

    .review-section-heading {
      align-items: stretch;
    }

    .review-edit-actions {
      justify-content: flex-start;
    }

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

    .review-data-grid .review-wide {
      grid-column: auto;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      scroll-behavior: auto !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }

    .wizard-enter-forward,
    .wizard-enter-back,
    .wizard-progress-item,
    .review-edit-button {
      animation: none !important;
      transition: none !important;
    }
  }

  /* Wizard sections already receive a controlled step-transition class from
     JavaScript. The older always-on animation restarted whenever display:none
     was removed, producing a second animation and a visible flash. */
  .wizard-section.animated-section {
    animation: none;
  }

  .wizard-section,
  .issue-stage {
    backface-visibility: hidden;
    transform-origin: top center;
  }

  .customer-type-grid .choice-card {
    backface-visibility: hidden;
  }

  @media (prefers-reduced-motion: reduce) {
    .wizard-section,
    .issue-stage,
    .customer-type-grid .choice-card {
      backface-visibility: visible;
    }
  }



  /* The issue stages used to keep their older sectionEnter animation. When
     the controlled wizard animation class was removed, that older animation
     started again and caused a delayed second jump. */
  .issue-stage {
    animation: none !important;
  }

  /* Product details, Warranty status and Issue use the same outer section.
     Smoothly interpolate that section's real measured height instead of
     letting the shorter/taller stage resize the form in a single frame. */
  #issueSection.wizard-height-transitioning {
    overflow: clip;
    transition: height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: height;
  }

  .wizard-enter-forward,
  .wizard-enter-back {
    will-change: opacity, transform;
  }

  @media (prefers-reduced-motion: reduce) {
    #issueSection.wizard-height-transitioning {
      transition: none !important;
    }
  }

  .stock-order-note {
    margin: 14px 2px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
  }

  .wizard-progress.stock-order-progress {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wizard-progress.compact-progress {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .unified-issue-flow .issue-card {
    border-color: rgba(90, 171, 48, 0.22);
  }

  .unified-issue-flow .issue-stage + .issue-stage {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }

  @media (max-width: 820px) {
    .wizard-progress.stock-order-progress {
      grid-template-columns: repeat(3, minmax(48px, 1fr));
    }

    .wizard-progress.compact-progress {
      grid-template-columns: repeat(3, minmax(48px, 1fr));
    }
  }


  .quantity-field {
    align-items: flex-start;
  }

  .quantity-stepper {
    display: inline-grid;
    grid-template-columns: 38px 64px 38px;
    align-items: stretch;
    width: auto;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
    background: #0c111b;
  }

  .quantity-stepper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(90, 171, 48, 0.14);
  }

  .quantity-stepper-button {
    width: 38px;
    min-width: 38px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    font: inherit;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease;
  }

  .quantity-stepper-button:hover,
  .quantity-stepper-button:focus-visible {
    background: rgba(90, 171, 48, 0.18);
    color: var(--accent);
    outline: none;
  }

  .quantity-stepper .issue-quantity {
    width: 64px !important;
    min-width: 64px;
    height: 42px;
    margin: 0;
    padding: 0 6px;
    border: 0 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--text);
    text-align: center;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    box-shadow: none !important;
    appearance: textfield;
    -moz-appearance: textfield;
  }

  .quantity-stepper .issue-quantity::-webkit-outer-spin-button,
  .quantity-stepper .issue-quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  @media (max-width: 640px) {
    .quantity-stepper {
      grid-template-columns: 40px 68px 40px;
    }

    .quantity-stepper-button {
      width: 40px;
      min-width: 40px;
    }

    .quantity-stepper .issue-quantity {
      width: 68px !important;
      min-width: 68px;
    }
  }

  /* Spacing separates wizard content from the action area; horizontal rules
     added visual noise and could appear as a double line between sections. */
  .wizard-section {
    border-bottom: 0 !important;
  }

  .wizard-actions {
    border-top: 0 !important;
  }

  /* Keep table headings and values on the same visual axis. */
  .cart-table-row > div:nth-child(n + 2) {
    text-align: left;
  }

  .issue-evidence-field {
    margin-top: 4px;
    padding: 16px;
    border: 1px solid rgba(90, 171, 48, 0.28);
    border-radius: 14px;
    background: rgba(90, 171, 48, 0.055);
  }

  .issue-evidence-field input[type="file"] {
    padding: 10px;
    cursor: pointer;
  }

  .issue-evidence-field input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 12px;
    border: 1px solid rgba(90, 171, 48, 0.45);
    border-radius: 10px;
    background: rgba(90, 171, 48, 0.14);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  .issue-evidence-field small,
  .issue-evidence-selection {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
  }

  :where(a, button, [tabindex]):focus-visible {
    outline: 2px solid #8bdc5a;
    outline-offset: 2px;
  }

  :where(input, select, textarea, .custom-select-button):focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
  }

  @media (forced-colors: active) {
    .choice-card,
    .custom-select-button,
    input,
    select,
    textarea,
    .primary-button,
    .secondary-button {
      border: 1px solid CanvasText !important;
    }

    .choice-card:has(input:checked) {
      outline: 3px solid Highlight;
    }
  }

  .issue-evidence-selection {
    color: #dce5f3;
    overflow-wrap: anywhere;
  }

/* Portal integration */
body.portal-retailer .customer-type-section { display: none !important; }
body.portal-retailer .page-shell { padding-top: 24px; }
.portal-profile-hint { margin: 0 auto 18px; width: min(1040px, calc(100% - 32px)); color: #9aa8bd; font: 13px/1.5 Inter, Arial, sans-serif; }
.portal-profile-hint a { color: #8fd765; }
