/* Cart badge */
.wh-cart-badge{
  display:inline-block;
  min-width:18px;
  height:18px;
  line-height:18px;
  border-radius:9px;
  color:var(--tbim-black, #111);
  font-size:12px;
  font-weight:700;
  text-align:center;
  margin-left:6px;
  vertical-align:middle;
}

/* =====================================
   Parts Checkout - clean, modern styles
   ===================================== */
.wh-parts-checkout{
  max-width: 1200px;
  margin: 20px auto 60px auto;
  padding: 10px 10px 40px 10px;
}
.wh-parts-checkout h3{
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 10px 0 14px 0;
}

/* Table */
.wh-parts-checkout .wh-cart-table{
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  overflow: hidden;
}
.wh-parts-checkout .wh-cart-table thead th{
  background: #f7f7f9;
  color: #222;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .06em;
  padding: 14px 12px;
  border-bottom: 1px solid #ececf2;
}
.wh-parts-checkout .wh-cart-table td{
  padding: 14px 12px;
  border-bottom: 1px solid #f1f1f5;
  vertical-align: middle;
}
.wh-parts-checkout .wh-cart-table td:last-child,
.wh-parts-checkout .wh-cart-table th:last-child{
  text-align: right;
}
.wh-parts-checkout .wh-cart-table tr:last-child td{
  border-bottom: 0;
}

/* Totals */
.wh-parts-checkout .wh-cart-table tfoot th,
.wh-parts-checkout .wh-cart-table tfoot td{
  padding: 12px;
  border-top: 1px solid #ececf2;
}
.wh-parts-checkout .wh-cart-table tfoot th{
  text-align: right;
  font-weight: 700;
}
.wh-parts-checkout .wh-cart-table tfoot tr:last-child th,
.wh-parts-checkout .wh-cart-table tfoot tr:last-child td{
  font-size: 18px;
}

/* Remove buttons */
.wh-parts-checkout .button.wh-remove-line{
  background: #fff;
  color: #c62828;
  border: 1px solid #e5e5ea;
  border-radius: 22px;
  padding: 6px 12px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
}
.wh-parts-checkout .button.wh-remove-line:hover{
  background: #fff4f4;
  border-color: #f2c7c7;
}

/* Form */
.wh-parts-checkout .wh-checkout-form{
  margin-top: 8px;
}
.wh-parts-checkout .wh-form-row{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}
.wh-parts-checkout .wh-form-row.two-col{ gap:14px; }
.wh-parts-checkout .wh-form-row.two-col .wh-col{ flex: 0 0 calc(50% - 7px); max-width: calc(50% - 7px); }
.wh-parts-checkout .wh-form-row.two-col .wh-col input,
.wh-parts-checkout .wh-form-row.two-col .wh-col select,
.wh-parts-checkout .wh-form-row.two-col .wh-col textarea{ width: 100%; }

/* 50/25/25 three-split layout inherits base display; widths set inline to avoid calc conflicts */
.wh-parts-checkout .wh-form-row.three-split{ gap:14px; }
.wh-parts-checkout .wh-form-row.three-split .wh-col.city{ flex:0 0 calc(50% - 7px); max-width: calc(50% - 7px); }
.wh-parts-checkout .wh-form-row.three-split .wh-col.state{ flex:0 0 calc(25% - 7px); max-width: calc(25% - 7px); }
.wh-parts-checkout .wh-form-row.three-split .wh-col.zip{ flex:0 0 calc(25% - 15px); max-width: calc(25% - 15px); }
.wh-parts-checkout .wh-form-row.three-split .wh-col input,
.wh-parts-checkout .wh-form-row.three-split .wh-col select{ width:100%; }

@media (max-width: 900px){
  .wh-parts-checkout .wh-form-row.three-split .wh-col{ flex:0 0 100%; max-width:100%; }
}
.wh-parts-checkout .wh-form-row input:not([type="checkbox"]):not([type="radio"]),
.wh-parts-checkout .wh-form-row textarea{
  width: 100%;
  padding: 14px 14px;
  border: 1px solid #e5e5ea;
  border-radius: 8px;
  background: #fff;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.wh-parts-checkout .select2-container--default .select2-selection--single{
  height: 50px;
  border: 1px solid #e5e5ea;
  border-radius: 8px;
}
.wh-parts-checkout .select2-selection__rendered{
  line-height: 46px !important;
  padding-left: 12px !important;
}
.wh-parts-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #000;
  font-size: 14px;
  font-weight: 100;
}

.wh-parts-checkout .select2-container--default .select2-selection--single .select2-selection__rendered[title="State"] {
  color: #b2b1b1 !important;
}

.wh-parts-checkout .select2-selection__arrow{ height: 46px !important; right: 8px !important; }
.wh-parts-checkout .select2-container .select2-selection--single:focus{
  outline: none;
  border-color: #cdd5ff;
  box-shadow: 0 0 0 3px rgba(115,130,255,.18);
}
.wh-parts-checkout .wh-form-row input:focus,
.wh-parts-checkout .wh-form-row textarea:focus{
  outline: none;
  border-color: #cdd5ff;
  box-shadow: 0 0 0 3px rgba(115,130,255,.18);
}
.wh-parts-checkout .wh-form-row textarea{
  min-height: 120px;
}
.wh-parts-checkout .wh-checkout-form .button.button-primary{
  background: var(--tbim-light-blue, #ffd400);
  color: #111;
  border: 0;
  padding: 12px 20px;
  border-radius: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.wh-parts-checkout .wh-checkout-form .button.button-primary:disabled{
  opacity: .6;
  cursor: not-allowed;
}

/* Inline radio/checkbox options */
.wh-parts-checkout .wh-form-row label{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wh-parts-checkout .wh-checkout-form .button.button-primary.wh-place-order {
  background: #000;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wh-parts-checkout .wh-checkout-form .button.button-primary.wh-place-order:hover {
  background: #444;
}

/* Responsive */
@media (max-width: 900px){
  .wh-parts-checkout{
    padding: 6px 0 30px 0;
  }
  .wh-parts-checkout .wh-cart-table{
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .wh-parts-checkout .wh-form-row.two-col .wh-col{ flex: 0 0 100%; max-width: 100%; }
}
