.commerce-page {
  min-height: 68vh;
  background: #f2f5f8;
}

.commerce-heading {
  border-bottom: 1px solid var(--line-dark);
  padding-block: 42px;
  color: #fff;
  background: linear-gradient(115deg, #03101f, #061a31 62%, #082541);
}

.commerce-heading p {
  margin: 0 0 7px;
  color: var(--blue-bright);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.commerce-heading h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
  text-transform: uppercase;
}

.commerce-content {
  padding-block: 62px 82px;
}

.woocommerce {
  color: #15253a;
}

.woocommerce-info,
.woocommerce-message {
  border: 1px solid #cbd7e2;
  border-left: 4px solid var(--blue);
  padding: 18px 20px;
  background: #fff;
  color: #37495c;
  font-size: 14px;
}

.return-to-shop {
  margin: 24px 0 0;
}

.commerce-empty {
  max-width: 760px;
  margin-inline: auto;
  padding: 46px;
  text-align: center;
  background: #fff;
  box-shadow: 0 14px 34px rgba(4, 20, 38, 0.08);
}

.commerce-empty .woocommerce-info {
  margin: 0;
  text-align: left;
}

.commerce-empty .button {
  margin-top: 24px;
}

.commerce-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  gap: 34px;
  align-items: start;
}

.woocommerce-cart-form,
.cart_totals {
  border: 1px solid #d1dae3;
  background: #fff;
  box-shadow: 0 14px 34px rgba(4, 20, 38, 0.07);
}

.shop_table {
  width: 100%;
  border-collapse: collapse;
}

.shop_table th {
  padding: 15px 14px;
  color: #fff;
  background: #071a2f;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.shop_table td {
  border-bottom: 1px solid #dce3ea;
  padding: 18px 14px;
  vertical-align: middle;
  font-size: 14px;
}

.product-remove {
  width: 42px;
  text-align: center;
}

.product-remove a {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #bdcad5;
  color: #536476;
  font-size: 19px;
}

.product-remove a:hover,
.product-remove a:focus-visible {
  border-color: #ad2831;
  color: #ad2831;
}

.product-thumbnail {
  width: 90px;
}

.product-thumbnail img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 1px solid #d5dee7;
  background: #fff;
}

.product-name > a {
  color: #0a4f95;
  font-weight: 750;
}

.variation {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 8px;
  margin: 9px 0 0;
  color: #657487;
  font-size: 12px;
}

.variation dt {
  font-weight: 700;
}

.variation dd,
.variation dd p {
  margin: 0;
}

.product-price,
.product-subtotal {
  white-space: nowrap;
  font-weight: 750;
}

.product-quantity input {
  width: 72px;
  min-height: 42px;
  border: 1px solid #bfcbd7;
  padding: 8px;
  color: #142337;
  background: #f8fafc;
}

.cart-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.coupon {
  display: flex;
  flex: 1;
  gap: 8px;
}

.coupon input {
  width: min(100%, 220px);
  min-height: 44px;
  border: 1px solid #bfcbd7;
  padding: 10px 12px;
}

.commerce-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 11px 18px;
  color: #fff;
  background: var(--blue-deep);
  cursor: pointer;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.commerce-button:hover,
.commerce-button:focus-visible {
  background: var(--blue);
}

.commerce-button-secondary {
  color: #15304a;
  background: #dfe7ee;
}

.cart_totals {
  padding: 28px;
}

.cart_totals h2 {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: 27px;
  text-transform: uppercase;
}

.cart_totals .shop_table th {
  width: 38%;
  color: #23384d;
  background: #edf2f6;
}

.cart_totals .shop_table td {
  line-height: 1.45;
}

.shipping-note {
  display: block;
  color: #627286;
  font-size: 12px;
}

.order-total th,
.order-total td {
  color: #071a2f !important;
  font-size: 17px !important;
  font-weight: 800;
}

.wc-proceed-to-checkout {
  margin-top: 22px;
}

.wc-proceed-to-checkout .commerce-button {
  width: 100%;
  min-height: 52px;
}

.commerce-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 34px;
  align-items: start;
}

.checkout-panel,
.checkout-order {
  border: 1px solid #d1dae3;
  padding: 30px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(4, 20, 38, 0.07);
}

.checkout-panel h2,
.checkout-order h2 {
  margin: 0 0 24px;
  color: #071a2f;
  font-family: var(--display);
  font-size: 27px;
  text-transform: uppercase;
}

.checkout-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.checkout-fields p {
  margin: 0;
}

.checkout-field-wide {
  grid-column: 1 / -1;
}

.checkout-fields label {
  display: block;
  margin-bottom: 7px;
  color: #263a4f;
  font-size: 13px;
  font-weight: 750;
}

.checkout-fields input,
.checkout-fields select,
.checkout-fields textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #bfcbd7;
  padding: 10px 12px;
  color: #142337;
  background: #f8fafc;
  font: inherit;
}

.checkout-fields textarea {
  min-height: 104px;
  resize: vertical;
}

.checkout-order .shop_table th {
  width: 42%;
  color: #23384d;
  background: #edf2f6;
}

.checkout-payment {
  margin-top: 24px;
  border-left: 4px solid var(--blue);
  padding: 18px;
  background: #edf2f6;
}

.checkout-payment h3 {
  margin: 0 0 8px;
  color: #071a2f;
  font-family: var(--display);
  font-size: 17px;
  text-transform: uppercase;
}

.checkout-payment p {
  margin: 0;
  color: #536679;
  font-size: 13px;
  line-height: 1.55;
}

.checkout-place-order {
  width: 100%;
  min-height: 52px;
  margin-top: 22px;
}

.checkout-back-link {
  display: block;
  margin-top: 18px;
  color: #0a4f95;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.commerce-offline-notice {
  color: #b42318;
  font-weight: 700;
}

@media (max-width: 980px) {
  .commerce-cart-layout,
  .commerce-checkout-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .commerce-heading {
    padding-block: 34px;
  }

  .commerce-content {
    padding-block: 38px 54px;
  }

  .commerce-empty {
    padding: 28px 22px;
  }

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

  .shop_table thead {
    display: none;
  }

  .woocommerce-cart-form .shop_table,
  .woocommerce-cart-form tbody,
  .woocommerce-cart-form tr,
  .woocommerce-cart-form td {
    display: block;
    width: 100%;
  }

  .woocommerce-cart-form tr.cart_item {
    margin-bottom: 18px;
    border: 1px solid #d1dae3;
    padding: 16px;
    background: #fff;
  }

  .woocommerce-cart-form td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #e0e6ec;
    padding: 12px 0;
    text-align: right;
  }

  .woocommerce-cart-form td::before {
    color: #536679;
    content: attr(data-title);
    font-family: var(--display);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .woocommerce-cart-form .product-remove::before,
  .woocommerce-cart-form .product-thumbnail::before {
    content: none;
  }

  .woocommerce-cart-form .product-remove,
  .woocommerce-cart-form .product-thumbnail {
    justify-content: flex-end;
  }

  .woocommerce-cart-form .product-name {
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
  }

  .cart-actions,
  .coupon {
    align-items: stretch;
    flex-direction: column;
  }

  .coupon input,
  .cart-actions .commerce-button {
    width: 100%;
  }

  .checkout-panel,
  .checkout-order {
    padding: 24px 20px;
  }

  .checkout-fields {
    grid-template-columns: 1fr;
  }

  .checkout-field-wide {
    grid-column: auto;
  }
}
