/* Imperial RAC modern cart / checkout layer. */
body.woocommerce-cart .woocommerce *,
body.woocommerce-checkout .woocommerce *,
body.woocommerce-cart .select2-container *,
body.woocommerce-checkout .select2-container * {
  border-radius: 0 !important;
}

body.woocommerce-cart .news,
body.woocommerce-checkout .news {
  padding: clamp(30px, 4vw, 64px) 0 clamp(54px, 7vw, 96px);
  background: #f5f6f8;
}

body.woocommerce-cart .news > .container,
body.woocommerce-checkout .news > .container {
  width: calc(100% - var(--irac-page-gutter) - var(--irac-page-gutter)) !important;
  max-width: 1440px !important;
}

body.woocommerce-cart .news .row,
body.woocommerce-checkout .news .row {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

body.woocommerce-cart .news-posts,
body.woocommerce-checkout .news-posts {
  width: 100%;
  max-width: none;
}

body.woocommerce-cart .news-posts > .post,
body.woocommerce-checkout .news-posts > .post {
  margin: 0 !important;
}

body.woocommerce-cart .news-posts > .post > .post-content,
body.woocommerce-checkout .news-posts > .post > .post-content {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

body.woocommerce-cart .news-posts > .post > .post-content > .post-header,
body.woocommerce-checkout .news-posts > .post > .post-content > .post-header {
  display: none !important;
}

body.woocommerce-cart .post-edit-link,
body.woocommerce-checkout .post-edit-link,
body.woocommerce-cart .woocommerce-form-coupon-toggle,
body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-cart form.checkout_coupon,
body.woocommerce-checkout form.checkout_coupon,
body.woocommerce-cart .coupon,
body.woocommerce-checkout .coupon {
  display: none !important;
}

body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce {
  color: #263044;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

body.woocommerce-cart .woocommerce::before,
body.woocommerce-checkout .woocommerce::before {
  content: "Review and confirm your booking";
  display: block;
  margin: 0 0 22px;
  color: #050d32;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(23px, 2.2vw, 34px);
  font-weight: 700;
  line-height: 1.25;
}

body.woocommerce-cart .woocommerce-notices-wrapper > *,
body.woocommerce-checkout .woocommerce-notices-wrapper > * {
  margin: 0 0 20px !important;
  padding: 15px 18px 15px 48px !important;
  border: 1px solid #dce7d1 !important;
  border-left: 4px solid #83a936 !important;
  border-radius: 0 !important;
  background: #f7fbf3 !important;
  box-shadow: none !important;
  color: #263044 !important;
}

body.woocommerce-cart table.shop_table,
body.woocommerce-checkout table.shop_table {
  width: 100% !important;
  margin: 0 0 24px !important;
  overflow: hidden;
  border: 1px solid #e2e5eb !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: 0 12px 32px rgba(4, 13, 50, 0.07) !important;
}

body.woocommerce-cart table.shop_table th,
body.woocommerce-checkout table.shop_table th {
  padding: 15px 18px !important;
  border: 0 !important;
  border-bottom: 1px solid #e2e5eb !important;
  background: #050d32 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.woocommerce-cart table.shop_table td,
body.woocommerce-checkout table.shop_table td {
  padding: 18px !important;
  border: 0 !important;
  border-bottom: 1px solid #eceef2 !important;
  background: #fff !important;
  vertical-align: top !important;
}

body.woocommerce-cart table.shop_table tr:last-child td,
body.woocommerce-checkout table.shop_table tr:last-child td {
  border-bottom: 0 !important;
}

body.woocommerce-cart td.product-name > a,
body.woocommerce-checkout td.product-name > a {
  display: inline-block;
  margin-bottom: 10px;
  color: #050d32 !important;
  font-family: Cinzel, Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

body.woocommerce-cart td.product-thumbnail img,
body.woocommerce-checkout td.product-thumbnail img {
  width: 150px !important;
  max-width: 150px !important;
  height: auto !important;
  border-radius: 0 !important;
  background: #fafafa;
}

body.woocommerce-cart td.product-remove a,
body.woocommerce-checkout td.product-remove a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 30px !important;
  height: 30px !important;
  border: 1px solid #e1e4e9 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #8a3440 !important;
  font-size: 19px !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

body.woocommerce-cart td.product-remove a:hover,
body.woocommerce-checkout td.product-remove a:hover {
  border-color: #8a3440 !important;
  background: #8a3440 !important;
  color: #fff !important;
}

body.woocommerce-cart td.product-name dl.variation,
body.woocommerce-checkout td.product-name dl.variation {
  display: grid !important;
  float: none !important;
  grid-template-columns: minmax(135px, 190px) minmax(0, 1fr);
  gap: 7px 16px;
  width: 100% !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  color: #566071;
  font-size: 12px;
  line-height: 1.45;
}

body.woocommerce-cart td.product-name dl.variation dt,
body.woocommerce-checkout td.product-name dl.variation dt {
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  color: #30394b;
  font-weight: 700;
  text-transform: none;
}

body.woocommerce-cart td.product-name dl.variation dd,
body.woocommerce-checkout td.product-name dl.variation dd {
  float: none !important;
  min-width: 0;
  margin: 0 !important;
  color: #626b7a;
}

body.woocommerce-cart td.product-name dl.variation p,
body.woocommerce-checkout td.product-name dl.variation p {
  margin: 0 !important;
}

body.woocommerce-cart .quantity .qty,
body.woocommerce-checkout .quantity .qty {
  width: 66px !important;
  height: 44px !important;
  border: 1px solid #d8dce3 !important;
  border-radius: 0 !important;
  background: #fff !important;
  text-align: center;
}

body.woocommerce-cart .button,
body.woocommerce-checkout .button,
body.woocommerce-checkout button.button,
body.woocommerce-checkout input.button {
  min-height: 46px !important;
  padding: 12px 20px !important;
  border: 1px solid #caa119 !important;
  border-radius: 0 !important;
  background: #050d32 !important;
  box-shadow: none !important;
  color: #fff !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  text-transform: none !important;
  transition: 0.2s ease;
}

body.woocommerce-cart .button:hover,
body.woocommerce-checkout .button:hover,
body.woocommerce-checkout button.button:hover,
body.woocommerce-checkout input.button:hover {
  background: #caa119 !important;
  color: #050d32 !important;
}

body.woocommerce-cart .cart-collaterals,
body.woocommerce-checkout .cart-collaterals {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: 24px;
}

body.woocommerce-cart .cart_totals,
body.woocommerce-checkout .cart_totals {
  float: none !important;
  width: min(100%, 620px) !important;
  padding: 24px;
  border: 1px solid #e2e5eb;
  border-radius: 0 !important;
  background: #fff;
  box-shadow: 0 12px 32px rgba(4, 13, 50, 0.07);
}

body.woocommerce-cart .cart_totals h2,
body.woocommerce-checkout .cart_totals h2,
body.woocommerce-checkout #customer_details h3,
body.woocommerce-checkout #order_review_heading {
  margin: 0 0 18px !important;
  color: #050d32 !important;
  font-family: Cinzel, Georgia, serif !important;
  font-size: 21px !important;
  font-weight: 700 !important;
}

body.woocommerce-cart .cart_totals table,
body.woocommerce-checkout .cart_totals table {
  margin: 0 0 18px !important;
  box-shadow: none !important;
}

body.woocommerce-cart .cart_totals table th,
body.woocommerce-checkout .cart_totals table th {
  width: 55%;
  background: #fff !important;
  color: #30394b !important;
  letter-spacing: 0;
  text-transform: none;
}

body.woocommerce-cart .cart_totals table td,
body.woocommerce-checkout .cart_totals table td {
  text-align: right;
}

body.woocommerce-cart .order-total th,
body.woocommerce-cart .order-total td,
body.woocommerce-checkout .order-total th,
body.woocommerce-checkout .order-total td {
  background: #fff8dc !important;
  color: #050d32 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
body.woocommerce-checkout #place_order {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 15px 22px !important;
  text-align: center !important;
}

body.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  column-gap: 28px;
  row-gap: 0;
  align-items: start;
}

body.woocommerce-checkout form.checkout > .col2-set,
body.woocommerce-checkout form.checkout > #order_review,
body.woocommerce-checkout form.checkout > #order_review_heading {
  float: none !important;
  width: 100% !important;
  min-width: 0;
}

body.woocommerce-checkout form.checkout > .col2-set {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding: 26px;
  border: 1px solid #e2e5eb;
  border-radius: 0 !important;
  background: #fff;
  box-shadow: 0 12px 32px rgba(4, 13, 50, 0.07);
}

body.woocommerce-checkout form.checkout > #order_review_heading {
  grid-column: 2;
  grid-row: 1;
  margin: 0 !important;
  padding: 24px 24px 18px !important;
  border: 1px solid #e2e5eb;
  border-bottom: 0;
  border-radius: 0 !important;
  background: #fff;
  position: relative;
  z-index: 1;
}

body.woocommerce-checkout form.checkout > #order_review {
  grid-column: 2;
  grid-row: 2;
  margin-top: 0;
  padding: 0 24px 24px;
  border: 1px solid #e2e5eb;
  border-top: 0;
  border-radius: 0 !important;
  background: #fff;
  box-shadow: 0 12px 32px rgba(4, 13, 50, 0.07);
}

body.woocommerce-checkout #order_review table.shop_table {
  margin-bottom: 18px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.woocommerce-checkout #order_review table.shop_table th.product-name {
  width: 72%;
}

body.woocommerce-checkout #order_review table.shop_table th.product-total,
body.woocommerce-checkout #order_review table.shop_table td.product-total {
  width: 28%;
  text-align: right;
  white-space: nowrap;
}

body.woocommerce-checkout #order_review td.product-name dl.variation {
  grid-template-columns: minmax(105px, 135px) minmax(0, 1fr);
  gap: 5px 10px;
  font-size: 11px;
}

body.woocommerce-checkout .form-row {
  margin: 0 0 16px !important;
  padding: 0 !important;
}

body.woocommerce-checkout .form-row label {
  margin-bottom: 6px;
  color: #343d4f;
  font-size: 12px;
  font-weight: 700;
}

body.woocommerce-checkout .input-text,
body.woocommerce-checkout select,
body.woocommerce-checkout .select2-selection {
  min-height: 46px !important;
  padding: 10px 12px !important;
  border: 1px solid #d8dce3 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.woocommerce-checkout .input-text:focus,
body.woocommerce-checkout select:focus {
  border-color: #caa119 !important;
  outline: 0 !important;
  box-shadow: 0 0 0 3px rgba(202, 161, 25, 0.14) !important;
}

body.woocommerce-checkout #payment {
  border: 1px solid #e2e5eb !important;
  border-radius: 0 !important;
  background: #f8f9fb !important;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-checkout form.checkout_coupon {
  max-width: 760px;
  margin-right: auto !important;
  margin-left: auto !important;
}

/* Keep Billing Details and Your Order as two clean, top-aligned cards. */
body.woocommerce-checkout form.checkout.irac-rpe-checkout-ready {
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  column-gap: 30px;
  row-gap: 0;
  align-items: start;
}

body.woocommerce-checkout form.checkout.irac-rpe-checkout-ready > .col2-set,
body.woocommerce-checkout form.checkout.irac-rpe-checkout-ready > #order_review {
  grid-row: 1;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 26px !important;
  border: 1px solid #e2e5eb !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: 0 12px 32px rgba(4, 13, 50, 0.07) !important;
}

body.woocommerce-checkout form.checkout.irac-rpe-checkout-ready > .col2-set {
  grid-column: 1;
}

body.woocommerce-checkout form.checkout.irac-rpe-checkout-ready > #order_review {
  position: sticky;
  top: 28px;
  grid-column: 2;
}

body.woocommerce-checkout form.checkout.irac-rpe-checkout-ready > .col2-set > .col-1,
body.woocommerce-checkout form.checkout.irac-rpe-checkout-ready > .col2-set > .col-2 {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.woocommerce-checkout form.checkout.irac-rpe-checkout-ready #order_review_heading.irac-rpe-order-heading {
  position: static;
  z-index: auto;
  width: auto !important;
  margin: 0 0 18px !important;
  padding: 0 0 15px !important;
  border: 0 !important;
  border-bottom: 1px solid #e7e9ee !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.woocommerce-checkout form.checkout.irac-rpe-checkout-ready .woocommerce-billing-fields > h3 {
  margin: 0 0 18px !important;
  padding: 0 0 15px !important;
  border-bottom: 1px solid #e7e9ee;
}

body.woocommerce-checkout form.checkout.irac-rpe-checkout-ready #order_review table.shop_table {
  margin-top: 0 !important;
}

@media (max-width: 991px) {
  body.woocommerce-checkout form.checkout {
    grid-template-columns: 1fr;
  }

  body.woocommerce-checkout form.checkout > .col2-set,
  body.woocommerce-checkout form.checkout > #order_review_heading,
  body.woocommerce-checkout form.checkout > #order_review {
    grid-column: 1;
    grid-row: auto;
  }

  body.woocommerce-checkout form.checkout.irac-rpe-checkout-ready {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  body.woocommerce-checkout form.checkout.irac-rpe-checkout-ready > .col2-set,
  body.woocommerce-checkout form.checkout.irac-rpe-checkout-ready > #order_review {
    position: static;
    grid-column: 1;
    grid-row: auto;
  }

  body.woocommerce-cart td.product-name dl.variation,
  body.woocommerce-checkout td.product-name dl.variation {
    grid-template-columns: minmax(120px, 165px) minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  body.woocommerce-cart .news,
  body.woocommerce-checkout .news {
    padding: 26px 0 52px;
  }

  body.woocommerce-cart .woocommerce::before,
  body.woocommerce-checkout .woocommerce::before {
    margin-bottom: 17px;
  }

  body.woocommerce-cart table.shop_table,
  body.woocommerce-checkout table.shop_table {
    border-radius: 0 !important;
  }

  body.woocommerce-cart table.shop_table td,
  body.woocommerce-checkout table.shop_table td {
    padding: 13px 14px !important;
  }

  body.woocommerce-cart td.product-name dl.variation,
  body.woocommerce-checkout td.product-name dl.variation {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  body.woocommerce-cart td.product-name dl.variation dd,
  body.woocommerce-checkout td.product-name dl.variation dd {
    margin: 0 0 8px !important;
  }

  body.woocommerce-cart .cart_totals,
  body.woocommerce-checkout .cart_totals,
  body.woocommerce-checkout form.checkout > .col2-set {
    padding: 18px;
  }

  body.woocommerce-checkout form.checkout > #order_review_heading {
    padding: 20px 18px 16px !important;
  }

  body.woocommerce-checkout form.checkout > #order_review {
    padding: 0 18px 18px;
  }

  body.woocommerce-checkout form.checkout.irac-rpe-checkout-ready > .col2-set,
  body.woocommerce-checkout form.checkout.irac-rpe-checkout-ready > #order_review {
    padding: 18px !important;
  }

  .woocommerce .col2-set .col-1,
  .woocommerce-page .col2-set .col-1,
  .woocommerce .col2-set .col-2,
  .woocommerce-page .col2-set .col-2 {
    float: none !important;
    width: 100% !important;
  }
}

/*
 * Checkout follows the existing booking-step design: white canvas, square
 * bordered sections, navy section header and a single gold grand-total row.
 */
html body.irac-rpe-checkout-page .news,
html body.irac-rpe-checkout-page .news-posts,
html body.irac-rpe-checkout-page .post-content,
html body.irac-rpe-checkout-page .woocommerce,
html body.irac-rpe-checkout-page form.checkout {
  background: #fff !important;
}

html body.irac-rpe-checkout-page form.checkout.irac-rpe-checkout-ready > .col2-set,
html body.irac-rpe-checkout-page form.checkout.irac-rpe-checkout-ready > #order_review {
  border: 1px solid #dedede !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

html body.irac-rpe-checkout-page form.checkout.irac-rpe-checkout-ready > .col2-set::before,
html body.irac-rpe-checkout-page form.checkout.irac-rpe-checkout-ready > .col2-set::after,
html body.irac-rpe-checkout-page form.checkout.irac-rpe-checkout-ready > #order_review::before,
html body.irac-rpe-checkout-page form.checkout.irac-rpe-checkout-ready > #order_review::after {
  display: none !important;
}

html body.irac-rpe-checkout-page form.checkout.irac-rpe-checkout-ready .woocommerce-billing-fields > h3,
html body.irac-rpe-checkout-page form.checkout.irac-rpe-checkout-ready #order_review_heading.irac-rpe-order-heading {
  margin: 0 0 20px !important;
  padding: 0 0 14px !important;
  border: 0 !important;
  border-bottom: 1px solid #dedede !important;
  background: #fff !important;
  color: #050d32 !important;
  box-shadow: none !important;
}

html body.irac-rpe-checkout-page #order_review table.shop_table {
  border: 1px solid #dedede !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

html body.irac-rpe-checkout-page #order_review table.shop_table thead th {
  border-color: #2a3150 !important;
  background: #050d32 !important;
  color: #fff !important;
}

html body.irac-rpe-checkout-page #order_review table.shop_table tbody th,
html body.irac-rpe-checkout-page #order_review table.shop_table tbody td,
html body.irac-rpe-checkout-page #order_review table.shop_table tfoot tr:not(.order-total) th,
html body.irac-rpe-checkout-page #order_review table.shop_table tfoot tr:not(.order-total) td {
  border-color: #e5e5e5 !important;
  background: #fff !important;
  color: #2c3445 !important;
}

html body.irac-rpe-checkout-page #order_review table.shop_table tfoot th,
html body.irac-rpe-checkout-page #order_review table.shop_table tfoot td {
  padding: 14px 16px !important;
  vertical-align: middle !important;
}

html body.irac-rpe-checkout-page #order_review table.shop_table tfoot td {
  text-align: right !important;
}

html body.irac-rpe-checkout-page #order_review table.shop_table tfoot tr.order-total th,
html body.irac-rpe-checkout-page #order_review table.shop_table tfoot tr.order-total td {
  border-color: #d5ad20 !important;
  background: #e9c84a !important;
  color: #050d32 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

html body.irac-rpe-checkout-page #payment {
  margin: 22px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 1px solid #dedede !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

html body.irac-rpe-checkout-page #payment ul.payment_methods {
  margin: 0 !important;
  padding: 18px 0 8px !important;
  border: 0 !important;
  background: #fff !important;
}

html body.irac-rpe-checkout-page #payment ul.payment_methods li {
  margin: 0 !important;
  padding: 9px 0 !important;
  border: 0 !important;
  background: #fff !important;
}

html body.irac-rpe-checkout-page #payment ul.payment_methods li label {
  margin: 0 !important;
  color: #252d3e !important;
  font-weight: 600 !important;
}

html body.irac-rpe-checkout-page #payment div.payment_box,
html body.irac-rpe-checkout-page #payment div.payment_box.payment_method_cod {
  margin: 8px 0 10px !important;
  padding: 0 0 0 27px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #596171 !important;
  box-shadow: none !important;
  line-height: 1.55 !important;
}

html body.irac-rpe-checkout-page #payment div.payment_box::before,
html body.irac-rpe-checkout-page #payment div.payment_box::after {
  display: none !important;
  content: none !important;
}

html body.irac-rpe-checkout-page #payment div.form-row.place-order {
  margin: 10px 0 0 !important;
  padding: 18px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid #dedede !important;
  background: #fff !important;
}

html body.irac-rpe-checkout-page #payment .woocommerce-privacy-policy-text {
  margin: 0 0 15px !important;
  padding: 0 !important;
  color: #4e5666 !important;
  line-height: 1.65 !important;
}

html body.irac-rpe-checkout-page #payment .woocommerce-privacy-policy-text p {
  margin: 0 !important;
}

html body.irac-rpe-checkout-page #payment .woocommerce-terms-and-conditions-wrapper {
  margin: 0 0 16px !important;
  padding: 0 !important;
}

html body.irac-rpe-checkout-page #payment .woocommerce-form__label-for-checkbox {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

html body.irac-rpe-checkout-page #payment #place_order {
  border-radius: 0 !important;
}
