/**
 * Native WooCommerce cart, checkout and order-page presentation.
 * Loaded only where these commerce screens are rendered.
 */

.woocommerce-cart .hwt-main,
.woocommerce-checkout .hwt-main,
.woocommerce-order-pay .hwt-main,
.woocommerce-order-received .hwt-main {
  background:
    radial-gradient(circle at 100% 0, rgba(13, 71, 161, .055), transparent 32rem),
    #f4f7fa;
}

.woocommerce-cart .hwt-page-shell,
.woocommerce-checkout .hwt-page-shell,
.woocommerce-order-pay .hwt-page-shell,
.woocommerce-order-received .hwt-page-shell {
  max-width: 1240px;
}

.woocommerce-cart .hwt-commerce-header,
.woocommerce-checkout .hwt-commerce-header {
  max-width: 760px;
  margin-bottom: 24px;
}

.woocommerce-cart .hwt-commerce-header > span,
.woocommerce-checkout .hwt-commerce-header > span {
  margin-bottom: 7px;
}

.woocommerce-cart .hwt-commerce-header p,
.woocommerce-checkout .hwt-commerce-header p {
  color: #68768a;
  font-size: 16px;
}

.woocommerce-cart .woocommerce-notices-wrapper,
.woocommerce-checkout .woocommerce-notices-wrapper {
  margin-bottom: 16px;
}

.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-error,
.woocommerce-cart .woocommerce-info,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-info {
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(19, 42, 70, .06);
}

.woocommerce-cart .cart-empty {
  margin: 0;
  padding: 24px;
  border: 1px solid #dfe5eb;
  border-radius: 18px;
  background: #fff;
  color: #536176;
  box-shadow: 0 14px 36px rgba(21, 43, 70, .06);
  text-align: center;
}

.woocommerce-cart .return-to-shop {
  margin: 14px 0 0;
  text-align: center;
}

.woocommerce-cart .return-to-shop .button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 11px;
}

/* Desktop cart table: denser rows, clearer controls and stronger hierarchy. */
.woocommerce-cart .woocommerce-cart-form {
  margin: 0;
}

.woocommerce-cart .woocommerce-cart-form table.cart {
  margin: 0;
  border: 1px solid #dfe5eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(21, 43, 70, .065);
}

.woocommerce-cart .woocommerce-cart-form table.cart thead th {
  height: 50px;
  padding: 12px 15px;
  border: 0;
  border-bottom: 1px solid #e3e8ed;
  background: #f8fafc;
  color: #526074;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
}

.woocommerce-cart .woocommerce-cart-form table.cart tbody td {
  padding: 13px 15px;
  border-width: 0 0 1px;
  border-color: #e8edf1;
  vertical-align: middle;
}

.woocommerce-cart .woocommerce-cart-form table.cart tr:last-child td {
  border-bottom: 0;
}

.woocommerce-cart table.cart th.product-remove,
.woocommerce-cart table.cart td.product-remove {
  width: 52px;
  padding-right: 8px;
  text-align: center;
}

.woocommerce-cart table.cart th.product-thumbnail,
.woocommerce-cart table.cart td.product-thumbnail {
  width: 92px;
  padding-left: 8px;
  padding-right: 8px;
}

.woocommerce-cart table.cart td.product-thumbnail img {
  width: 72px;
  height: 72px;
  display: block;
  margin: 0 auto;
  padding: 7px;
  border-radius: 12px;
  background: #f4f7fb;
  object-fit: contain;
}

.woocommerce-cart table.cart td.product-name {
  color: #263449;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
}

.woocommerce-cart table.cart td.product-name a {
  color: inherit;
}

.woocommerce-cart table.cart td.product-name a:hover {
  color: var(--hwt-blue);
}

.woocommerce-cart table.cart td.product-name dl.variation {
  margin: 5px 0 0;
  color: #748196;
  font-size: 11px;
  font-weight: 600;
}

.woocommerce-cart table.cart td.product-price,
.woocommerce-cart table.cart td.product-subtotal {
  color: #33435a;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.woocommerce-cart table.cart td.product-subtotal {
  color: var(--hwt-blue);
  font-weight: 850;
}

.woocommerce-cart table.cart a.remove {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f0d7d7;
  border-radius: 50%;
  background: #fff8f8;
  color: #b42318 !important;
  font-size: 20px;
  line-height: 1;
}

.woocommerce-cart table.cart a.remove:hover {
  border-color: #b42318;
  background: #b42318;
  color: #fff !important;
}

.woocommerce-cart table.cart .quantity .qty {
  width: 76px;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid #c9d4e0;
  border-radius: 11px;
  background: #f8fafc;
  color: #213149;
  font-weight: 750;
  text-align: center;
  box-shadow: inset 0 1px 2px rgba(21, 43, 70, .035);
}

.woocommerce-cart table.cart .quantity .qty:focus {
  border-color: var(--hwt-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 71, 161, .11);
  outline: 0;
}

.woocommerce-cart table.cart td.actions {
  padding: 14px;
  background: #fbfcfd;
}

.woocommerce-cart table.cart td.actions .coupon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  float: none;
}

.woocommerce-cart table.cart td.actions .coupon .input-text {
  width: 190px;
  min-height: 44px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid #c9d4e0;
  border-radius: 11px;
  background: #fff;
  color: #263449;
  box-shadow: inset 0 1px 2px rgba(21, 43, 70, .025);
}

.woocommerce-cart table.cart td.actions .coupon .input-text:focus {
  border-color: var(--hwt-blue);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, .1);
  outline: 0;
}

.woocommerce-cart table.cart td.actions .button {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
}

.woocommerce-cart table.cart td.actions button[name="update_cart"] {
  border: 1px solid #d8e0e8;
  background: #edf2f7;
  color: #263449;
}

.woocommerce-cart table.cart td.actions button[name="update_cart"]:not(:disabled):hover {
  border-color: var(--hwt-blue);
  background: var(--hwt-blue);
  color: #fff;
}

.woocommerce-cart .cart-collaterals {
  display: flow-root;
  margin-top: 24px;
}

.woocommerce-cart .cart-collaterals .cross-sells {
  width: calc(100% - 470px);
}

.woocommerce-cart .cart-collaterals .cart_totals {
  width: min(100%, 440px);
  padding: 22px;
  border: 1px solid #dfe5eb;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(21, 43, 70, .07);
}

.woocommerce-cart .cart_totals h2 {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: -.025em;
}

.woocommerce-cart .cart_totals table.shop_table {
  margin: 0 0 18px;
  overflow: visible;
  border: 1px solid #e3e8ed;
  border-radius: 12px;
  box-shadow: none;
}

.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
  padding: 13px 14px;
  border-color: #e8edf1;
  background: #fff;
  font-size: 13px;
}

.woocommerce-cart .cart_totals table.shop_table th {
  width: 42%;
  color: #536176;
  font-weight: 800;
}

.woocommerce-cart .cart_totals .order-total td {
  color: var(--hwt-blue);
  font-size: 18px;
  font-weight: 900;
}

.woocommerce-cart .wc-proceed-to-checkout {
  padding: 0;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 850;
}

/* Checkout and order screens use the same calm card language. */
.woocommerce-checkout form.checkout {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.woocommerce-checkout form.checkout .col2-set,
.woocommerce-checkout #order_review,
.woocommerce-checkout .woocommerce-form-coupon,
.woocommerce-order-pay #order_review,
.woocommerce-order-received .woocommerce-order-overview,
.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details,
.woocommerce-account .woocommerce-order-details,
.woocommerce-account .woocommerce-customer-details {
  border: 1px solid #dfe5eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(21, 43, 70, .06);
}

.woocommerce-checkout form.checkout .col2-set {
  padding: 22px;
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
  width: 100%;
  float: none;
}

.woocommerce-checkout #customer_details .col-2 {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #e8edf1;
}

.woocommerce-checkout #customer_details h3,
.woocommerce-checkout #order_review_heading {
  margin: 0 0 16px;
  color: #172234;
  font-size: 22px;
  letter-spacing: -.02em;
}

.woocommerce-checkout #order_review_heading {
  margin-top: 26px;
}

.woocommerce-checkout #order_review,
.woocommerce-order-pay #order_review {
  padding: 22px;
}

.woocommerce-checkout #order_review table.shop_table,
.woocommerce-order-pay #order_review table.shop_table {
  margin-bottom: 18px;
  border-radius: 12px;
  box-shadow: none;
}

.woocommerce-checkout #payment,
.woocommerce-order-pay #payment {
  overflow: hidden;
  border: 1px solid #e1e7ed;
  border-radius: 14px;
  background: #f8fafc;
}

.woocommerce-checkout #place_order,
.woocommerce-order-pay #place_order {
  min-height: 54px;
  border-radius: 12px;
}

.woocommerce-order-received .woocommerce-order-overview,
.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details,
.woocommerce-account .woocommerce-order-details,
.woocommerce-account .woocommerce-customer-details {
  margin-bottom: 18px;
  padding: 20px;
}

.woocommerce-account .woocommerce-order-details table.shop_table {
  margin: 0;
  border-radius: 12px;
  box-shadow: none;
}

.woocommerce-account .woocommerce-order-details__title,
.woocommerce-account .woocommerce-column__title,
.woocommerce-order-received .woocommerce-order-details__title,
.woocommerce-order-received .woocommerce-column__title {
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: -.02em;
}

.woocommerce-order-received .woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.woocommerce-order-received .woocommerce-order-overview li {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #e5eaf0;
  border-radius: 12px;
  background: #f8fafc;
}

@media (max-width: 767px) {
  .woocommerce-cart .hwt-main,
  .woocommerce-checkout .hwt-main,
  .woocommerce-order-pay .hwt-main,
  .woocommerce-order-received .hwt-main {
    padding: 18px 0 34px;
  }

  .woocommerce-cart .hwt-page-shell,
  .woocommerce-checkout .hwt-page-shell,
  .woocommerce-order-pay .hwt-page-shell,
  .woocommerce-order-received .hwt-page-shell {
    width: calc(100% - 20px);
  }

  .woocommerce-cart .hwt-commerce-header,
  .woocommerce-checkout .hwt-commerce-header {
    margin-bottom: 16px;
    padding: 0 2px;
  }

  .woocommerce-cart .hwt-commerce-header h1,
  .woocommerce-checkout .hwt-commerce-header h1 {
    font-size: 29px;
  }

  .woocommerce-cart .hwt-commerce-header p,
  .woocommerce-checkout .hwt-commerce-header p {
    font-size: 13px;
  }

  .woocommerce-cart .woocommerce-cart-form table.cart {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .woocommerce-cart .woocommerce-cart-form table.cart thead {
    display: none;
  }

  .woocommerce-cart .woocommerce-cart-form table.cart tbody {
    display: grid;
    gap: 11px;
  }

  .woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item {
    position: relative;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumbnail name name"
      "thumbnail price price"
      "thumbnail quantity subtotal";
    column-gap: 12px;
    row-gap: 5px;
    margin: 0;
    padding: 13px;
    overflow: hidden;
    border: 1px solid #dfe5eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(21, 43, 70, .055);
  }

  .woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left !important;
  }

  .woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item td::before {
    display: none;
  }

  .woocommerce-cart table.cart td.product-remove {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 2;
    width: 30px;
  }

  .woocommerce-cart table.cart a.remove {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .woocommerce-cart table.cart td.product-thumbnail {
    grid-area: thumbnail;
    width: 76px;
    display: block !important;
    align-self: start;
  }

  .woocommerce-cart table.cart td.product-thumbnail img {
    width: 76px;
    height: 76px;
    margin: 0;
    padding: 7px;
    border-radius: 12px;
  }

  .woocommerce-cart table.cart td.product-name {
    grid-area: name;
    padding-right: 30px !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
  }

  .woocommerce-cart table.cart td.product-price {
    grid-area: price;
    color: #68768a;
    font-size: 12px;
    font-weight: 650;
  }

  .woocommerce-cart table.cart td.product-quantity {
    grid-area: quantity;
    align-self: end;
  }

  .woocommerce-cart table.cart .quantity .qty {
    width: 68px;
    min-height: 42px;
    padding: 7px 5px;
    border-radius: 10px;
    font-size: 13px;
  }

  .woocommerce-cart table.cart td.product-subtotal {
    grid-area: subtotal;
    align-self: center;
    color: var(--hwt-blue);
    font-size: 14px;
    font-weight: 900;
    text-align: right !important;
    white-space: nowrap;
  }

  .woocommerce-cart .woocommerce-cart-form table.cart tbody tr:not(.cart_item) {
    display: block;
    margin: 0;
    overflow: hidden;
    border: 1px solid #dfe5eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(21, 43, 70, .045);
  }

  .woocommerce-cart table.cart td.actions {
    display: grid;
    gap: 9px;
    padding: 11px;
    background: #fff;
  }

  .woocommerce-cart table.cart td.actions .coupon {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 124px;
    gap: 8px;
    width: 100%;
    float: none;
  }

  .woocommerce-cart table.cart td.actions .coupon .input-text {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding-inline: 13px;
    border-radius: 11px;
    font-size: 13px;
  }

  .woocommerce-cart table.cart td.actions .coupon .button,
  .woocommerce-cart table.cart td.actions button[name="update_cart"] {
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 9px 11px;
    border-radius: 11px;
    float: none;
    font-size: 12px;
    font-weight: 850;
  }

  .woocommerce-cart table.cart td.actions .coupon .button {
    border-color: var(--hwt-yellow);
    background: var(--hwt-yellow);
    color: #111b2a;
  }

  .woocommerce-cart table.cart td.actions .coupon .button:hover {
    border-color: var(--hwt-blue);
    background: var(--hwt-blue);
    color: #fff;
  }

  .woocommerce-cart table.cart td.actions button[name="update_cart"] {
    border-color: #d8e1ea;
    background: #f4f7fa;
    color: #526074;
  }

  .woocommerce-cart table.cart td.actions button[name="update_cart"]:disabled {
    opacity: .62;
  }

  .woocommerce-cart .cart-collaterals {
    margin-top: 14px;
  }

  .woocommerce-cart .cart-collaterals .cross-sells,
  .woocommerce-cart .cart-collaterals .cart_totals {
    width: 100%;
    float: none;
  }

  .woocommerce-cart .cart-collaterals .cross-sells {
    margin-bottom: 14px;
  }

  .woocommerce-cart .cart-collaterals .cart_totals {
    padding: 16px 15px 15px;
    border-color: #dce4ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(21, 43, 70, .06);
  }

  .woocommerce-cart .cart_totals h2 {
    margin: 0 0 12px;
    color: #172234;
    font-size: 21px;
    font-weight: 850;
    letter-spacing: -.025em;
  }

  /* WooCommerce's responsive-table defaults turn these cells into little
     independent pills. Keep the summary as two full-width, readable rows. */
  .woocommerce-cart .cart_totals table.shop_table {
    display: block !important;
    width: 100%;
    margin: 0 0 13px;
    overflow: hidden !important;
    border: 1px solid #dfe6ed;
    border-radius: 13px;
    background: #f8fafc;
  }

  .woocommerce-cart .cart_totals table.shop_table tbody {
    display: block !important;
    width: 100%;
  }

  .woocommerce-cart .cart_totals table.shop_table tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    margin: 0 !important;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .woocommerce-cart .cart_totals table.shop_table tr + tr {
    border-top: 1px solid #e1e7ed;
  }

  .woocommerce-cart .cart_totals table.shop_table th,
  .woocommerce-cart .cart_totals table.shop_table td {
    display: block !important;
    width: auto !important;
    min-height: 0;
    margin: 0 !important;
    padding: 13px 14px !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 13px;
    line-height: 1.35;
  }

  .woocommerce-cart .cart_totals table.shop_table th {
    color: #526074;
    font-weight: 750;
    text-align: left !important;
  }

  .woocommerce-cart .cart_totals table.shop_table td {
    color: #263449;
    font-weight: 800;
    text-align: right !important;
  }

  .woocommerce-cart .cart_totals table.shop_table td .woocommerce-Price-amount {
    white-space: nowrap;
  }

  .woocommerce-cart .cart_totals table.shop_table td::before {
    display: none !important;
    content: none !important;
  }

  .woocommerce-cart .cart_totals table.shop_table .order-total {
    background: #eef4fc;
  }

  .woocommerce-cart .cart_totals table.shop_table .order-total th {
    color: var(--hwt-blue);
    font-weight: 850;
  }

  .woocommerce-cart .cart_totals table.shop_table .order-total td,
  .woocommerce-cart .cart_totals table.shop_table .order-total strong {
    color: var(--hwt-blue);
    font-size: 16px;
    font-weight: 900;
  }

  .woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    min-height: 52px;
    border-radius: 11px;
    font-size: 15px;
    box-shadow: none;
  }

  .woocommerce-checkout form.checkout .col2-set,
  .woocommerce-checkout #order_review,
  .woocommerce-order-pay #order_review,
  .woocommerce-order-received .woocommerce-order-overview,
  .woocommerce-order-received .woocommerce-order-details,
  .woocommerce-order-received .woocommerce-customer-details,
  .woocommerce-account .woocommerce-order-details,
  .woocommerce-account .woocommerce-customer-details {
    padding: 15px;
    border-radius: 16px;
  }

  .woocommerce-checkout #customer_details h3,
  .woocommerce-checkout #order_review_heading {
    font-size: 20px;
  }

  .woocommerce-checkout #order_review table.shop_table th,
  .woocommerce-checkout #order_review table.shop_table td,
  .woocommerce-order-pay #order_review table.shop_table th,
  .woocommerce-order-pay #order_review table.shop_table td {
    padding: 10px;
    font-size: 12px;
  }

  .woocommerce-order-received .woocommerce-order-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .woocommerce-order-received .woocommerce-order-overview li {
    padding: 10px;
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .woocommerce-cart .woocommerce-cart-form table.cart tbody tr.cart_item {
    grid-template-columns: 68px minmax(0, 1fr) auto;
    column-gap: 9px;
    padding: 11px;
  }

  .woocommerce-cart table.cart td.product-thumbnail,
  .woocommerce-cart table.cart td.product-thumbnail img {
    width: 68px;
    height: 68px;
  }

  .woocommerce-cart table.cart td.actions .coupon {
    grid-template-columns: 1fr;
  }
}
