/* Keep the WooCommerce checkout content aligned to the main Warm Neo page shell.
 *
 * The checkout template already sits inside `.gtg-shell`; this removes narrower
 * WooCommerce inner constraints so the checkout can use the same content width
 * as the rest of the site.
 */

.gtg-neo.woocommerce-checkout .gtg-shop-content .gtg-shell {
  width: min(var(--gtg-shell), calc(100% - 2.5rem));
  max-width: var(--gtg-shell);
}

.gtg-neo.woocommerce-checkout .gtg-shop-content .woocommerce,
.gtg-neo.woocommerce-checkout .gtg-shop-content .woocommerce-notices-wrapper,
.gtg-neo.woocommerce-checkout .gtg-shop-content .woocommerce-NoticeGroup,
.gtg-neo.woocommerce-checkout .gtg-shop-content .woocommerce-error,
.gtg-neo.woocommerce-checkout .gtg-shop-content .woocommerce-info,
.gtg-neo.woocommerce-checkout .gtg-shop-content .woocommerce-message {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.gtg-neo.woocommerce-checkout .gtg-shop-content form.checkout {
  width: 100%;
}

/* Screenshot follow-up: make the checkout breathe better at the wider shell. */
.gtg-neo.woocommerce-checkout .gtg-shop-content form.checkout {
  grid-template-columns: minmax(360px, .92fr) minmax(430px, 1.08fr);
  gap: clamp(1.15rem, 2.6vw, 1.75rem);
}

/* Pull the summary heading and table together so there is no odd white strip. */
.gtg-neo.woocommerce-checkout #order_review_heading {
  margin-bottom: 0;
  padding-block: .78rem .82rem;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.05;
}

.gtg-neo.woocommerce-checkout #order_review {
  margin-top: 3.02rem;
  padding-top: 0;
}

.gtg-neo.woocommerce-checkout #order_review table.shop_table {
  margin-top: 0;
  font-size: .88rem;
  line-height: 1.28;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.gtg-neo.woocommerce-checkout #order_review table.shop_table th,
.gtg-neo.woocommerce-checkout #order_review table.shop_table td {
  padding: .56rem .64rem;
}

.gtg-neo.woocommerce-checkout #order_review table.shop_table thead th {
  padding-block: .72rem;
  font-size: .82rem;
  letter-spacing: .08em;
  line-height: 1.1;
}

.gtg-neo.woocommerce-checkout #order_review table.shop_table .product-name {
  width: 70%;
  font-size: .86rem;
  line-height: 1.25;
}

.gtg-neo.woocommerce-checkout #order_review table.shop_table .product-total {
  width: 30%;
  font-size: .86rem;
  white-space: nowrap;
}

.gtg-neo.woocommerce-checkout #order_review table.shop_table .product-quantity {
  display: inline-block;
  margin-left: .15rem;
  font-size: .82em;
  white-space: nowrap;
}

.gtg-neo.woocommerce-checkout #order_review table.shop_table tfoot th,
.gtg-neo.woocommerce-checkout #order_review table.shop_table tfoot td {
  font-size: .86rem;
  line-height: 1.25;
}

.gtg-neo.woocommerce-checkout #order_review table.shop_table tfoot tr.order-total th,
.gtg-neo.woocommerce-checkout #order_review table.shop_table tfoot tr.order-total td {
  font-size: .96rem;
}

.gtg-neo.woocommerce-checkout #payment ul.payment_methods li {
  padding: .72rem .78rem;
}

.gtg-neo.woocommerce-checkout #payment ul.payment_methods label {
  font-size: .88rem;
  line-height: 1.25;
}

.gtg-neo.woocommerce-checkout #payment div.payment_box {
  padding: .72rem;
  font-size: .82rem;
  line-height: 1.35;
}

.gtg-neo.woocommerce-checkout #payment .place-order {
  padding: .78rem;
}

.gtg-neo.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper {
  font-size: .78rem;
  line-height: 1.35;
}

/* Quiet the optional shipping toggle so it reads like a full-width form option. */
.gtg-neo.woocommerce-checkout #ship-to-different-address {
  margin-top: .7rem;
  width: 100%;
}

.gtg-neo.woocommerce-checkout #ship-to-different-address label,
.gtg-neo.woocommerce-checkout .woocommerce-account-fields label.checkbox,
.gtg-neo.woocommerce-checkout .woocommerce-form__label-for-checkbox {
  display: flex;
  align-items: center;
  width: 100%;
  gap: .5rem;
  padding: .5rem .62rem;
  min-height: 42px;
  background: var(--gtg-surface-inset);
  border: 1px solid var(--gtg-rule);
  border-radius: 10px;
  box-shadow: none;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

.gtg-neo.woocommerce-checkout #ship-to-different-address label span {
  display: inline;
  max-width: none;
}

.gtg-neo.woocommerce-checkout #customer_details input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

@media (max-width: 960px) {
  .gtg-neo.woocommerce-checkout .gtg-shop-content form.checkout {
    display: block;
  }

  .gtg-neo.woocommerce-checkout #order_review_heading {
    padding-bottom: .7rem;
  }

  .gtg-neo.woocommerce-checkout #order_review {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .gtg-neo.woocommerce-checkout #order_review table.shop_table {
    font-size: .84rem;
  }

  .gtg-neo.woocommerce-checkout #order_review table.shop_table .product-name {
    width: 64%;
    font-size: .84rem;
  }

  .gtg-neo.woocommerce-checkout #order_review table.shop_table .product-total {
    width: 36%;
  }
}
