/* Checkout 1.2: align customer details and the complete order summary from the start. */
body.woocommerce-checkout form.checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .68fr);
  grid-template-areas:
    "express express"
    "details summary";
  align-items: start;
  column-gap: 40px;
  row-gap: 0;
}

body.woocommerce-checkout form.checkout > .wc-stripe-banner-checkout {
  grid-area: express;
  width: min(100%, 680px) !important;
  margin: 0 auto 34px !important;
}

body.woocommerce-checkout .wc-stripe-banner-checkout fieldset {
  overflow: hidden;
  border: 1px solid var(--ms-au-line, #e2e5e2) !important;
  border-radius: 14px !important;
  background: #fff;
  box-shadow: 0 10px 32px rgba(23, 26, 24, .07);
}

body.woocommerce-checkout #customer_details {
  position: relative;
  grid-area: details;
  align-self: start;
  box-sizing: border-box;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 30px 32px 32px !important;
  overflow: hidden;
  border: 1px solid var(--ms-au-line, #e2e5e2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(213, 166, 45, .08), transparent 28%),
    #fff;
  box-shadow: 0 16px 44px rgba(23, 26, 24, .07);
}

body.woocommerce-checkout #customer_details::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #b88416, #e8c35c 52%, #b88416);
  content: "";
}

body.woocommerce-checkout #customer_details > .col-1,
body.woocommerce-checkout #customer_details > .col-2 {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

body.woocommerce-checkout #customer_details .woocommerce-billing-fields {
  margin: 0 0 22px !important;
}

body.woocommerce-checkout #customer_details .woocommerce-billing-fields > h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px !important;
  color: var(--ms-au-ink, #171a18);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -.025em;
  text-transform: none;
}

body.woocommerce-checkout #customer_details .woocommerce-billing-fields > h3::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: var(--ms-au-ink, #171a18);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0;
  content: "1";
}

body.woocommerce-checkout #customer_details .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout #customer_details .woocommerce-shipping-fields__field-wrapper,
body.woocommerce-checkout #customer_details .woocommerce-additional-fields__field-wrapper {
  display: flex !important;
  flex-wrap: wrap;
  margin: 0 -8px !important;
}

body.woocommerce-checkout #customer_details .form-row {
  box-sizing: border-box;
  float: none !important;
  margin: 0 0 15px !important;
  padding: 0 8px !important;
}

body.woocommerce-checkout #customer_details .form-row-first,
body.woocommerce-checkout #customer_details .form-row-last,
body.woocommerce-checkout #billing_phone_field,
body.woocommerce-checkout #billing_email_field {
  width: 50% !important;
}

body.woocommerce-checkout #billing_city_field,
body.woocommerce-checkout #billing_state_field,
body.woocommerce-checkout #billing_postcode_field {
  width: 33.333% !important;
}

body.woocommerce-checkout #customer_details .form-row-wide,
body.woocommerce-checkout #customer_details #billing_company_field,
body.woocommerce-checkout #customer_details #billing_country_field,
body.woocommerce-checkout #customer_details #billing_address_1_field,
body.woocommerce-checkout #customer_details #billing_address_2_field,
body.woocommerce-checkout #customer_details #order_comments_field {
  width: 100% !important;
}

body.woocommerce-checkout #customer_details .form-row label {
  margin-bottom: 7px;
  color: #555c56;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .035em;
}

body.woocommerce-checkout #customer_details .input-text,
body.woocommerce-checkout #customer_details .select2-selection--single {
  width: 100%;
  min-height: 52px;
  padding-right: 14px !important;
  padding-left: 14px !important;
  border: 1px solid #cfd5d0 !important;
  border-radius: 10px !important;
  background: #f9faf9 !important;
  color: var(--ms-au-ink, #171a18) !important;
  font-size: 14px;
  box-shadow: none !important;
}

body.woocommerce-checkout #customer_details textarea.input-text {
  min-height: 104px;
  padding-top: 13px !important;
  padding-bottom: 13px !important;
  line-height: 1.55;
  resize: vertical;
}

body.woocommerce-checkout #customer_details .select2-selection__rendered {
  padding-left: 0 !important;
  line-height: 50px !important;
}

body.woocommerce-checkout #customer_details .select2-selection__arrow {
  height: 50px !important;
}

body.woocommerce-checkout #customer_details .input-text:focus,
body.woocommerce-checkout #customer_details .select2-container--focus .select2-selection {
  border-color: var(--ms-au-gold, #d5a62d) !important;
  outline: 0;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(213, 166, 45, .14) !important;
}

body.woocommerce-checkout #customer_details .mailchimp-newsletter,
body.woocommerce-checkout #customer_details .woocommerce-account-fields > .create-account {
  margin: 2px 8px 14px !important;
  padding: 14px 16px !important;
  border: 1px solid var(--ms-au-line, #e2e5e2);
  border-radius: 10px;
  background: var(--ms-au-soft, #f6f7f6);
}

body.woocommerce-checkout #customer_details label.checkbox,
body.woocommerce-checkout #ship-to-different-address label,
body.woocommerce-checkout .woocommerce-form__label-for-checkbox {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  color: var(--ms-au-ink, #171a18);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

body.woocommerce-checkout input[type="checkbox"] {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin: 0 !important;
  accent-color: var(--ms-au-ink, #171a18);
}

body.woocommerce-checkout #customer_details .woocommerce-shipping-fields {
  margin: 0 0 18px;
}

body.woocommerce-checkout #ship-to-different-address {
  box-sizing: border-box;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 15px 16px;
  border: 1px solid var(--ms-au-line, #e2e5e2);
  border-radius: 10px;
  background: var(--ms-au-soft, #f6f7f6);
}

body.woocommerce-checkout #customer_details .woocommerce-additional-fields {
  clear: both;
  margin: 0 !important;
  padding-top: 20px;
  border-top: 1px solid var(--ms-au-line, #e2e5e2);
}

body.woocommerce-checkout #customer_details .woocommerce-additional-fields .form-row {
  margin-bottom: 0 !important;
}

body.woocommerce-checkout #order_review_heading {
  position: relative;
  z-index: 2;
  grid-area: summary;
  align-self: start;
  box-sizing: border-box;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 22px 26px 20px;
  border-radius: 16px 16px 0 0;
  background: var(--ms-au-ink, #171a18);
  color: #fff !important;
  font-size: 22px !important;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -.02em !important;
  text-transform: none;
}

body.woocommerce-checkout #order_review_heading::after {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, .68);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .01em;
  content: "Review items, delivery and payment";
}

body.woocommerce-checkout #order_review {
  grid-area: summary;
  align-self: start;
  box-sizing: border-box;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 80px 0 0 !important;
  overflow: hidden;
  border: 1px solid var(--ms-au-line, #e2e5e2);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(23, 26, 24, .09);
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table {
  width: 100%;
  margin: 0 !important;
  border: 0;
  background: #fff;
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table thead th {
  padding: 14px 24px;
  border-bottom: 1px solid var(--ms-au-line, #e2e5e2);
  background: var(--ms-au-soft, #f6f7f6);
  color: #606761;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tbody td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--ms-au-line, #e2e5e2);
  vertical-align: middle;
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot th,
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot td {
  padding: 13px 24px;
  border-bottom: 1px solid var(--ms-au-line, #e2e5e2);
  color: #4e554f;
  font-size: 12px;
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot th {
  font-weight: 800;
  letter-spacing: .025em;
  text-transform: uppercase;
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table .order-total th,
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table .order-total td {
  padding-top: 17px;
  padding-bottom: 17px;
  border-bottom: 0;
  background: #fff8e6;
  color: var(--ms-au-ink, #171a18);
  font-size: 15px;
}

body.woocommerce-checkout #order_review td.product-name img {
  width: 64px;
  height: 64px;
  margin-right: 12px;
  border-radius: 9px;
  object-fit: contain;
  background: var(--ms-au-soft, #f6f7f6);
}

body.woocommerce-checkout #order_review .product-total,
body.woocommerce-checkout #order_review tfoot td {
  text-align: right;
}

body.woocommerce-checkout #payment {
  margin: 0 !important;
  padding: 10px 24px 24px !important;
  border-top: 1px solid var(--ms-au-line, #e2e5e2);
  background: #fff !important;
}

body.woocommerce-checkout #payment ul.payment_methods {
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
}

body.woocommerce-checkout #payment .payment_methods > li {
  padding: 15px 0 !important;
  border-bottom: 1px solid var(--ms-au-line, #e2e5e2);
}

body.woocommerce-checkout #payment .payment_methods > li > label {
  color: var(--ms-au-ink, #171a18);
  font-size: 13px;
  font-weight: 800;
}

body.woocommerce-checkout #payment .payment_box {
  margin: 13px 0 0 !important;
  padding: 15px !important;
  border-radius: 10px;
  background: var(--ms-au-soft, #f6f7f6) !important;
}

body.woocommerce-checkout #payment .place-order {
  margin: 0 !important;
  padding: 18px 0 0 !important;
}

body.woocommerce-checkout #payment .woocommerce-privacy-policy-text,
body.woocommerce-checkout #payment .wc_payment_method p {
  color: #686e69;
  font-size: 11px;
  line-height: 1.55;
}

body.woocommerce-checkout #place_order {
  min-height: 56px;
  margin-top: 15px !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 26px rgba(23, 26, 24, .16);
}

body.woocommerce-checkout .msr-checkout-wallet {
  margin-bottom: 18px;
  border-radius: 11px;
}

@media (max-width: 1080px) {
  body.woocommerce-checkout form.checkout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "express"
      "details"
      "summary";
    row-gap: 28px;
  }

  body.woocommerce-checkout form.checkout > .wc-stripe-banner-checkout {
    margin-bottom: 0 !important;
  }

  body.woocommerce-checkout #order_review,
  body.woocommerce-checkout #order_review_heading {
    margin: 0 !important;
  }
}

@media (max-width: 640px) {
  body.woocommerce-checkout .rey-siteMain {
    width: calc(100% - 24px);
  }

  body.woocommerce-checkout #customer_details {
    padding: 26px 19px 22px !important;
    border-radius: 13px;
  }

  body.woocommerce-checkout #customer_details .woocommerce-billing-fields > h3 {
    margin-bottom: 20px !important;
    font-size: 20px;
  }

  body.woocommerce-checkout #customer_details .form-row-first,
  body.woocommerce-checkout #customer_details .form-row-last,
  body.woocommerce-checkout #billing_phone_field,
  body.woocommerce-checkout #billing_email_field,
  body.woocommerce-checkout #billing_city_field,
  body.woocommerce-checkout #billing_state_field,
  body.woocommerce-checkout #billing_postcode_field {
    width: 100% !important;
  }

  body.woocommerce-checkout #order_review_heading {
    padding: 19px 18px 17px;
    border-radius: 13px 13px 0 0;
    font-size: 20px !important;
  }

  body.woocommerce-checkout #order_review {
    padding-top: 74px !important;
    border-radius: 13px;
  }

  body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table thead th,
  body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tbody td,
  body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot th,
  body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot td {
    padding-right: 15px;
    padding-left: 15px;
  }

  body.woocommerce-checkout #order_review td.product-name img {
    width: 54px;
    height: 54px;
    margin-right: 8px;
  }

  body.woocommerce-checkout #payment {
    padding: 8px 16px 18px !important;
  }

  body.woocommerce-checkout #ship-to-different-address {
    padding: 14px;
  }
}
