/* ==========================================================================
 * Agency Quotation & Order Form — V3 Stylesheet
 * ==========================================================================
 * Table of Contents:
 *
 *  1.  Global & Typography
 *  2.  Layout & Page Wrappers
 *  3.  Form Groups & Labels
 *  4.  Form Inputs, Textareas & Selects
 *  5.  Placeholder Styles (cross-browser)
 *  6.  Radio & Checkbox Inputs (native)
 *  7.  Required Badge
 *  8.  Product Input Wrapper
 *  9.  Product Table — Shared Styles
 * 10.  Product Table 2 — 一般商品 (General Products)
 * 11.  Product Table 3 — セット椅子 (Set Chairs)
 * 12.  Radio-as-Button (.radio-group-inline)
 * 13.  Date Block & Delivery
 * 14.  Address Section
 * 15.  Success / Failure Wrappers
 * 16.  Agreement & Separation
 * 17.  Submit Button
 * 18.  Form Control Overrides (Bootstrap)
 * 19.  Legacy Input ID Sizing
 * 20.  Legacy Colour Boxes
 * 21.  Legacy Product Table (productTable — original)
 * 22.  Error Styles
 * 23.  Responsive — ≤ 900px
 * 24.  Responsive — ≤ 799px (Tablet)
 * 25.  Responsive — ≤ 600px (Mobile)
 * 26.  Responsive — ≥ 1400px (Large Desktop)
 * ======================================================================== */


/* ==========================================================================
 * 1. Global & Typography
 * ======================================================================== */

body {
  font-family: "Noto Sans JP", sans-serif;
}

.small, small {
  font-size: .69em;
  color: rgb(103, 105, 112);
}

h1 {
  word-break: auto-phrase;
}

/* ==========================================================================
 * 2. Layout & Page Wrappers
 * ======================================================================== */

.input-part-1, .input-part-2 {
  width: 100%;
}

.title-wrapper {
  text-align: center;
}

.title-wrapper,
form,
.sucess-wrapper,
.failure-wrapper {
  max-width: 900px;
  margin: auto;
  padding: 1.5rem;
}

.container-wrapper form {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 15px;
}


/* ==========================================================================
 * 3. Form Groups & Labels
 * ======================================================================== */

.form-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  column-gap: 10px;
  width: 100%;
  margin: 0;
  padding: 1rem 0;
  align-items: center;
}

.form-group label {
  min-width: 300px;
  position: relative;
  margin-bottom: 0;
  display: flex;
  column-gap: 5px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  letter-spacing: -1px;
}

.form-group p {
  margin-left: 310px;
  margin-bottom: 0;
}

.form-group.form-group-textarea {
  align-items: flex-start;
}

.form-group.form-group-textarea label {
  margin-top: 15px;
}

/* ── Radio option group (top-level form radio) ───────────────────────────── */

.radio-group {
  display: flex;
  width: calc(100% - 310px);
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 35px;
  justify-content: flex-start;
  padding: 10px 12px 10px 0;
  background-color: white;
}

.radio-group .radio-option {
  width: fit-content;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  align-content: center;
  column-gap: 5px;
}

.radio-group .radio-option label {
  margin-bottom: 0;
  min-width: unset;
  word-break: auto-phrase;
}


/* ==========================================================================
 * 4. Form Inputs, Textareas & Selects
 * ======================================================================== */

input {
  width: calc(100% - 310px);
  padding: 10px 12px;
}

input, textarea, select {
  border-radius: 2px;
  border: 1px solid #dcd5cf;
  color: #534842;
  background: #ffffff;
  font-size: max(1rem, 14px);
  box-shadow: 0 1px rgba(231, 226, 222, .25) inset;
  transition: border-color .2s ease-in-out, box-shadow .2s ease-in-out, color .2s ease-in-out;
}

input::placeholder,
textarea::placeholder,
select::placeholder {
  color: #ddd;
}

select {
  padding: 10px 12px;
}

textarea {
  width: calc(100% - 310px);
  min-height: 150px;
  max-height: 450px;
  padding: 10px 12px;
}

input[type="tel"] {
  width: calc(75% - 310px);
}


/* ==========================================================================
 * 5. Placeholder Styles (cross-browser)
 * ======================================================================== */

::-webkit-input-placeholder { font-size: 13px; }  /* Chrome, Safari */
:-moz-placeholder           { font-size: 13px; }  /* Firefox 18- */
::-moz-placeholder          { font-size: 13px; }  /* Firefox 19+ */
:-ms-input-placeholder      { font-size: 13px; }  /* IE 10+ */
::placeholder               { font-size: 13px; }


/* ==========================================================================
 * 6. Radio & Checkbox Inputs (native)
 * ======================================================================== */

input[type=checkbox],
input[type=radio] {
  display: block;
  margin: auto;
  height: 100%;
  width: fit-content;
}

.form-check-input[type=radio] {
  width: 16px;
  height: 16px;
  padding: 0;
  margin-top: 4px;
  margin-right: 3px;
}

.form-check-input:checked[type=radio] {
  background-color: #E08D55;
  border-color: #E08D55;
  --bs-form-check-bg-image: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e);
}


/* ==========================================================================
 * 7. Required Badge
 * ======================================================================== */

.input_required:after {
  content: "\5fc5\9808";
  display: block;
  position: relative;
  padding: 3px;
  font-size: .6em;
  background-color: #db4f4a;
  color: #fff;
  width: 27px;
  margin-top: 3px;
}


/* ==========================================================================
 * 8. Product Input Wrapper
 * ======================================================================== */

.product-input-wrapper {
  padding: 2vw 0;
  width: 100%;
}

.product-input-wrapper p {
  margin: 0;
}


/* ==========================================================================
 * 9. Product Table — Shared Styles
 * ======================================================================== */

.product-table {
  margin: 20px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  row-gap: 20px;
}

.product-table-container {
  width: 100%;
}

.product-table-container.setchair-table {
  margin-top: 40px;
}

.product-table-container input {
  width: 100%;
}

/* ── Shared table inputs ─────────────────────────────────────────────────── */

#productTable2 input,
#productTable3 input {
  box-shadow: none;
}

#productTable2 input[type="text"],
#productTable2 input[type="number"],
#productTable3 input[type="text"],
#productTable3 input[type="number"] {
  width: 100%;
  padding: 5px 10px;
  box-sizing: border-box;
  border: 0;
}

/* ── Shared row styles ───────────────────────────────────────────────────── */

.product-row .table-row {
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
}

/* ── Inline header labels (always visible) ───────────────────────────────── */

.product-row .table-row > span {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  color: #534842;
}

.product-row .table-row span {
  width: 100%;
  text-align: left;
  background-color: #d8d8d8;
  margin: 0;
  padding: 3px 3px 3px 20px;
}

/* ── Row number column ───────────────────────────────────────────────────── */

.table-column {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ── Delete button column ────────────────────────────────────────────────── */

.table-row.table-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.table-row.table-button svg {
  width: 15px;
  height: 15px;
}

.table-row.table-button svg path {
  fill: gray;
}

/* ── Add / Remove row buttons ────────────────────────────────────────────── */

.add-row-btn {
  background-color: #E08D55;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-end;
}

.add-row-btn:hover {
  background-color: #E08D55;
}

.remove-row {
  background-color: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  height: fit-content;
  font-weight: bold;
  padding: 0 1px 5px 1px;
}

button#addRow {
  width: fit-content;
  align-self: flex-end;
}


/* ==========================================================================
 * 10. Product Table 2 — 一般商品 (General Products)
 * ======================================================================== */

#productTable2 {
  border-radius: 10px;
  border: 2px solid #5b5b5b;
  overflow: hidden;
}

#productTable2 .product-row:not(.first-row) {
  border-top: 2px solid #5b5b5b;
}

/* ── Grid layout ─────────────────────────────────────────────────────────── */

#productTable2 .product-row {
  display: grid;
  grid-template-areas:
    "row-nb sku         product     product delete"
    "row-nb size-color  size-color  number  delete";
  grid-template-columns: 50px 30% auto 80px 34px;
}

/* ── Grid area assignments ───────────────────────────────────────────────── */

.table-column     { grid-area: row-nb; }
.table-sku        { grid-area: sku; }
.table-product    { grid-area: product; }
.table-size-color { grid-area: size-color; }
.table-button     { grid-area: delete; }

.table-number {
  grid-area: number;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── Row number cell ─────────────────────────────────────────────────────── */

#productTable2 .table-row.table-column.row-no {
  width: 100%;
  height: 100%;
  align-items: center;
  align-content: center;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Internal borders ────────────────────────────────────────────────────── */

.table-column,
.table-sku,
.table-product,
.table-size-color,
.table-number {
  border-right: 1px solid #ababab;
}

.table-sku,
.table-product {
  border-bottom: 1px solid #ababab;
}

/* ── Quantity column alignment ───────────────────────────────────────────── */

.table-row.table-number input {
  text-align: center;
}

.table-row.table-number span {
  text-align: center;
  padding-left: 3px;
}


/* ==========================================================================
 * 11. Product Table 3 — セット椅子 (Set Chairs)
 * ======================================================================== */

#productTable3 {
  border-radius: 10px;
  border: 2px solid #5b5b5b;
  overflow: hidden;
}

#productTable3 .product-row:not(.first-row) {
  border-top: 2px solid #5b5b5b;
}

/* ── Grid layout ─────────────────────────────────────────────────────────── */

#productTable3 .product-row {
  display: grid;
  grid-template-areas:
    "row-nb chair-name   chair-name     chair-number  delete"
    "row-nb seat-code    seat-color     seat-color    delete"
    "row-nb pump-code    pump-model     pump-model    delete"
    "row-nb step-code    step-type      step-type     delete";
  grid-template-columns: 50px 30% auto 150px 34px;
}

/* ── Grid area assignments ───────────────────────────────────────────────── */

.table-chair-name        { grid-area: chair-name; }
.table-chair-number      { grid-area: chair-number; }
.table-chair-seat-number { grid-area: seat-code; }
.table-chair-seat-color  { grid-area: seat-color; }
.table-chair-pump-number { grid-area: pump-code; }
.table-chair-pump-model  { grid-area: pump-model; }
.table-chair-step-number { grid-area: step-code; }
.table-chair-step-type   { grid-area: step-type; }

/* ── Row layout (horizontal labels + inputs) ─────────────────────────────── */

#productTable3 .product-row .table-row {
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0;
}

/* ── Row number cell ─────────────────────────────────────────────────────── */

#productTable3 .table-row.table-column.row-no {
  width: 100%;
  height: 100%;
  align-items: center;
  align-content: center;
  flex-wrap: wrap;
  justify-content: center;
}

#productTable3 .product-row .table-row.table-column {
  align-self: center;
  justify-self: center;
}

/* ── Inline header labels ────────────────────────────────────────────────── */

#productTable3 .product-row .table-row span {
  width: 110px;
  text-align: left;
  background-color: #d8d8d8;
  margin: 0;
  padding: 3px 3px 3px 10px;
  font-size: 12px;
  height: 100%;
}

#productTable3 .product-row .table-row > span {
  font-size: 10px;
  display: flex;
  align-items: center;
}

/* ── Input widths (offset by label width) ────────────────────────────────── */

#productTable3 input[type="text"],
#productTable3 input[type="number"] {
  width: calc(100% - 110px);
}

/* Narrower label for 台数 */
#productTable3 .product-row .table-row.table-chair-number span {
  width: 50px;
}

#productTable3 .table-row.table-chair-number input[type="number"] {
  width: calc(100% - 50px);
}

/* Narrower labels for color/model/type columns */
#productTable3 .product-row .table-chair-seat-color span,
#productTable3 .product-row .table-chair-pump-model span,
#productTable3 .product-row .table-chair-step-type span {
  width: 90px;
}

#productTable3 .product-row .table-chair-seat-color input[type="text"],
#productTable3 .product-row .table-chair-pump-model input[type="text"],
#productTable3 .product-row .table-chair-step-type input[type="text"],
.radio-group-inline {
  width: calc(100% - 90px);
}

/* ── Internal borders ────────────────────────────────────────────────────── */

.table-chair-name,
.table-chair-number,
.table-chair-seat-number,
.table-chair-seat-color,
.table-chair-pump-number,
.table-chair-pump-model,
.table-chair-step-number,
.table-chair-step-type {
  border-right: 1px solid #ababab;
}

.table-chair-name,
.table-chair-seat-number,
.table-chair-seat-color,
.table-chair-pump-number,
.table-chair-pump-model,
.table-chair-number {
  border-bottom: 1px solid #ababab;
}


/* ==========================================================================
 * 12. Radio-as-Button (.radio-group-inline)
 *
 *  The native <input type="radio"> is visually hidden (sr-only).
 *  The wrapping <label> is styled as a clickable button.
 *  Active state uses :has(:checked) (modern) + .is-checked (JS fallback).
 * ======================================================================== */

.radio-group-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* Hide the native radio circle — accessible sr-only approach */
.radio-group-inline 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;
}

/* Label styled as a button */
.radio-group-inline label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: unset;
  padding: 2px 4px;
  font-size: 0.66rem;
  font-weight: 400;
  color: #534842;
  background-color: #fff;
  border: 1px solid #dcd5cf;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  user-select: none;
  margin: 3px;
}

.radio-group-inline label:hover {
  border-color: #E08D55;
  color: #E08D55;
}

/* Active/checked state — modern browsers (:has) */
.radio-group-inline label:has(input[type="radio"]:checked) {
  background-color: #E08D55;
  border-color: #E08D55;
  color: #fff;
  font-weight: 500;
}

/* Active/checked state — JS fallback for older browsers */
.radio-group-inline label.is-checked {
  background-color: #E08D55;
  border-color: #E08D55;
  color: #fff;
  font-weight: 500;
}


/* ==========================================================================
 * 13. Date Block & Delivery
 * ======================================================================== */

.date_block {
  width: calc(100% - 310px);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

#delivery_date {
  width: calc(100% - 160px);
  max-width: 100%;
}

.delivery_date_time {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 15px;
  width: 150px;
}


/* ==========================================================================
 * 14. Address Section
 * ======================================================================== */

span.labelAdresse {
  min-width: 300px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  column-gap: 10px;
}

.address-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  row-gap: 30px;
  align-items: center;
  padding: 15px 0;
  column-gap: 10px;
}

.address-container label.adresse,
.address-container .p-street-address,
.address-container .address2 {
  width: calc(100% - 310px);
  margin-left: 310px;
}

.address-container p {
  grid-area: graySign;
  text-align: left;
  margin-left: 20px;
  margin-bottom: 0;
}

.posteCode {
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: 15px;
}

.p-postal-code {
  width: 140px;
}

.adresse-info {
  background-color: #bababa;
  height: fit-content;
  padding: 7px;
  font-size: 11px;
  border-radius: 10px;
  margin-left: 5px;
}


/* ==========================================================================
 * 15. Success / Failure Wrappers
 * ======================================================================== */

.sucess-wrapper {
  max-width: 800px;
  margin: auto;
}


/* ==========================================================================
 * 16. Agreement & Separation
 * ======================================================================== */

.separation_special {
  padding: 100px 0 15px;
  background-color: white;
}

.i_agree-wrapper {
  max-width: 100%;
}

#agree_checkbox {
  margin: 0;
  position: relative;
}

.agree_checkbox {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 15px;
  max-width: 100%;
  width: 300px;
  margin: auto;
  margin-top: 30px;
}

.agree_checkbox label {
  margin-bottom: 0;
}

.agree-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agree-txt p {
  margin: 0;
}


/* ==========================================================================
 * 17. Submit Button
 * ======================================================================== */

.submit {
  max-width: 100%;
  width: 130px;
  margin: 30px auto;
  text-align: center;
}

.submit button.btn.btn-primary {
  width: 100%;
}


/* ==========================================================================
 * 18. Form Control Overrides (Bootstrap)
 * ======================================================================== */

.form-control {
  border-radius: 0;
  background-color: #fdfdfd;
  font-size: 14px;
}

.form-control:focus {
  border-color: #aadbe8;
  outline: 0;
  -webkit-box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.4);
  box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.4);
  background-color: #fff;
}

textarea.form-control {
  height: 200px;
}

.form-boxes {
  display: flex;
}


/* ==========================================================================
 * 19. Legacy Input ID Sizing
 * ======================================================================== */

#name, #email, #subject, #email_check, #tel, #salon,
#post_code, #address, #address2, #address3, #address4,
#salon2, #recipient, #body {
  max-width: 400px;
}

#body {
  max-width: 640px;
}


/* ==========================================================================
 * 20. Legacy Colour Boxes
 * ======================================================================== */

.box   { width: 100px; height: 32px; font-size: 14px; }
.red   { width: 50px;  height: 32px; }
.blue  { width: 100px; height: 32px; }
.green { width: 100px; height: 40px; }


/* ==========================================================================
 * 21. Legacy Product Table (productTable — original)
 * ======================================================================== */

#productTable {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

#productTable th,
#productTable td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

#productTable th {
  background-color: #f2f2f2;
}

#productTable input[type="text"],
#productTable input[type="number"] {
  width: 95%;
  padding: 5px;
  box-sizing: border-box;
}


/* ==========================================================================
 * 22. Error Styles
 * ======================================================================== */

.error,
.error-php,
.error-js {
  color: red;
}


/* ==========================================================================
 * 23. Responsive — ≤ 900px
 * ======================================================================== */

@media (max-width: 900px) {

  #productTable3 .product-row {
    grid-template-columns: 30px 236px auto 120px 30px;
  }

  #productTable2 .product-row {
    grid-template-columns: 29px 236px auto 80px 30px;
  }

  .radio-group-inline label {
    margin: 0;
  }

  .radio-group-inline {
    gap: 2px;
    padding-left: 2px;
  }

  #productTable3 input,
  #productTable2 input {
    font-size: 14px;
  }

  #productTable3 input[type="text"],
  #productTable2 input[type="text"] {
    padding: 4px 5px;
  }

  #productTable3 .product-row .table-row span {
    width: 106px;
  }

  #productTable3 input[type="text"],
  #productTable3 input[type="number"],
  .radio-group-inline {
    width: calc(100% - 106px);
  }

  #productTable3 .product-row .table-chair-seat-color span,
  #productTable3 .product-row .table-chair-pump-model span,
  #productTable3 .product-row .table-chair-step-type span {
    width: 80px;
  }

  #productTable3 .product-row .table-chair-seat-color input[type="text"],
  #productTable3 .product-row .table-chair-pump-model input[type="text"],
  #productTable3 .product-row .table-chair-step-type input[type="text"],
  .radio-group-inline {
    width: calc(100% - 80px);
  }
}


/* ==========================================================================
 * 24. Responsive — ≤ 799px (Tablet)
 * ======================================================================== */

@media (max-width: 799px) {

  .form-group {
    display: flex;
    flex-direction: column;
    row-gap: 0px;
    padding: 0.5rem 0;
    text-align: center;
    align-items: flex-start;
  }

  .form-group label {
    width: 100%;
    margin-bottom: 5px;
    letter-spacing: normal;
  }

  .form-group p {
    margin-left: 0;
    text-align: left;
    width: 100%;
  }

  .product-input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0;
  }
  .product-input-wrapper p {
    font-size: 13px;
  }

  .separation_special {
    padding: 100px 0 15px;
  }

  input, textarea, select {
    width: 100%;
  }

  input[type="email"],
  input[type="tel"] {
    width: 100%;
  }

  .radio-group {
    width: 100%;
    row-gap: 25px;
  }

  .radio-group .radio-option {
    width: calc(50% - 20px);
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  input[type=checkbox],
  input[type=radio] {
    margin: 0;
  }

  #delivery_date {
    width: 50%;
  }

  .date_block {
    width: 100%;
    column-gap: 10px;
  }

  .delivery_date_time {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .address-container {
    margin: 1rem 0;
  }

  .address-container .p-street-address,
  .address-container .address2 {
    width: 100%;
    margin-left: 0;
  }

  span.labelAdresse {
    width: 100%;
  }

  .small, small {
    font-size: .725em;
  }
  .form-group.form-group-textarea label {
    margin-top: 0px;
  }
  .agree-txt {
    font-size: 13px;
  }
}


/* ==========================================================================
 * 25. Responsive — ≤ 600px (Mobile)
 * ======================================================================== */

@media (max-width: 600px) {

  /* ── Product Table 3 — stacked single-column layout ────────────────────── */

  #productTable3 .product-row {
    display: grid;
    grid-template-areas:
      "row-nb chair-name    delete"
      "row-nb chair-number  delete"
      "row-nb seat-code     delete"
      "row-nb seat-color    delete"
      "row-nb pump-code     delete"
      "row-nb pump-model    delete"
      "row-nb step-code     delete"
      "row-nb step-type     delete";
    grid-template-columns: 30px auto 26px;
  }

  /* ── Product Table 2 — stacked single-column layout ────────────────────── */

  #productTable2 .product-row {
    display: grid;
    grid-template-areas:
      "row-nb sku         delete"
      "row-nb number      delete"
      "row-nb product     delete"
      "row-nb size-color  delete";
    grid-template-columns: 30px auto 26px;
  }

  /* ── Label widths (unified for stacked layout) ─────────────────────────── */

  #productTable3 .product-row .table-row span,
  #productTable3 .product-row .table-chair-seat-color span,
  #productTable3 .product-row .table-chair-pump-model span,
  #productTable3 .product-row .table-chair-step-type span,
  #productTable3 .product-row .table-row.table-chair-number span {
    width: 106px;
  }

  /* ── Input widths (offset by unified label width) ──────────────────────── */

  #productTable3 .product-row .table-chair-seat-color input[type="text"],
  #productTable3 .product-row .table-chair-pump-model input[type="text"],
  #productTable3 .product-row .table-chair-step-type input[type="text"],
  .radio-group-inline,
  #productTable3 input[type="text"],
  #productTable3 input[type="number"],
  #productTable3 .table-row.table-chair-number input[type="number"] {
    width: calc(100% - 106px);
  }

  /* ── Additional mobile borders ─────────────────────────────────────────── */

  .table-chair-step-number,
  .table-number {
    border-bottom: 1px solid #ababab;
  }

  /* ── Radio inline padding ──────────────────────────────────────────────── */

  .radio-group-inline {
    padding: 4px;
  }

  /* ── Quantity column alignment (left-aligned on mobile) ─────────────────── */

  .table-row.table-number span,
  #productTable2 input[type="number"] {
    text-align: left;
  }

  .table-row.table-number span {
    padding-left: 20px;
  }
  .form-group label {
    font-size: 14px;
  }
}

@media (max-width: 450px) {
  #productTable3 .product-row {
    display: grid;
    grid-template-areas:
    "row-nb       row-nb"
    "chair-name   delete"
    "chair-number delete"
    "seat-code    delete"
    "seat-color   delete"
    "pump-code    delete"
    "pump-model   delete"
    "step-code    delete"
    "step-type    delete";
    grid-template-columns: auto 26px;
  }
    #productTable2 .product-row {
    display: grid;
    grid-template-areas:
    "row-nb     row-nb"
    "sku        delete"
    "number     delete"
    "product    delete"
    "size-color delete";
    grid-template-columns: auto 26px;
  }
  #productTable3 .product-row .table-row.table-column, #productTable2 .product-row .table-row.table-column {
    border-bottom: 1px solid #ababab;
    border-right: 0;
    padding: 5px;
    font-size: 16px;
  }
}

/* ==========================================================================
 * 26. Responsive — ≥ 1400px (Large Desktop)
 * ======================================================================== */

@media screen and (min-width: 1400px) {
  h1, .h1 {
    font-size: 40px;
  }
}