/*
Theme Name: Codesk Child
Theme URI: https://greendeskhub.com/
Description: Child theme for Codesk.
Author: Green Desk Hub
Template: codesk
Version: 1.0.0
*/

/* =========================================================
   GREEN DESK HUB - MEETING ROOM CARDS SHORTCODE
   Shortcode: [gdh_meeting_rooms]
   Layout: 2 cards per row because page has sidebar
========================================================= */

.gdh-meeting-rooms-section {
  max-width: 1180px;
  margin: 70px auto 80px;
  padding: 0 20px;
}

.gdh-meeting-rooms-intro {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.gdh-meeting-rooms-intro h2 {
  margin: 0 0 10px;
  color: #222;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
}

.gdh-meeting-rooms-intro p {
  margin: 0;
  color: #555;
  font-size: 17px;
  line-height: 1.8;
}

/* Main grid: 2 per row */
.gdh-meeting-room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
}

/* Center the 3rd card when there are 3 rooms */
@media (min-width: 992px) {
  .gdh-meeting-room-grid .gdh-meeting-room-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 30px) / 2);
    justify-self: center;
  }
}

/* Card */
.gdh-meeting-room-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid #edf1ed;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.07);
}

/* Image */
.gdh-room-image-link {
  display: block;
  overflow: hidden;
}

.gdh-room-image {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gdh-room-image-link:hover .gdh-room-image {
  transform: scale(1.04);
}

/* Body */
.gdh-room-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 30px 32px;
}

/* Badge */
.gdh-room-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #e8f7e9;
  color: #008000;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Title */
.gdh-room-title {
  margin: 0 0 12px;
  color: #222;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 800;
}

.gdh-room-title a {
  color: inherit;
  text-decoration: none;
}

.gdh-room-title a:hover {
  color: #008000;
}

/* Price */
.gdh-room-price {
  margin-bottom: 18px;
  color: #008000;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
}

.gdh-room-price .woocommerce-Price-amount {
  color: #008000;
}

.gdh-room-price-suffix {
  font-size: 16px;
  font-weight: 800;
}

/* Description */
.gdh-room-desc {
  margin: 0 0 18px;
  color: #555;
  font-size: 16px;
  line-height: 1.7;
}

/* Meta box */
.gdh-room-meta-box {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f4faf5;
}

.gdh-room-meta-box ul {
  margin: 0;
  padding-left: 18px;
}

.gdh-room-meta-box li {
  margin: 4px 0;
  color: #245132;
  font-size: 14px;
}

/* Features */
.gdh-room-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin-bottom: 24px;
}

.gdh-room-features span {
  position: relative;
  padding-left: 20px;
  color: #3b3b3b;
  font-size: 14px;
  line-height: 1.4;
}

.gdh-room-features span::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #008000;
  font-weight: 800;
}

/* Button */
.gdh-room-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  margin-top: auto;
  padding: 0 24px;
  border-radius: 8px;
  background: #008000;
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none !important;
}

.gdh-room-button:hover {
  background: #db4b00;
  color: #fff !important;
}

/* Tablet */
@media (max-width: 991px) {
  .gdh-meeting-room-grid {
    grid-template-columns: 1fr;
  }

  .gdh-meeting-room-grid .gdh-meeting-room-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
    justify-self: stretch;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .gdh-meeting-rooms-section {
    margin: 50px auto 60px;
    padding: 0 16px;
  }

  .gdh-meeting-rooms-intro h2 {
    font-size: 28px;
  }

  .gdh-meeting-rooms-intro p {
    font-size: 16px;
  }

  .gdh-room-image {
    height: 240px;
  }

  .gdh-room-card-body {
    padding: 24px 22px 28px;
  }

  .gdh-room-title {
    font-size: 23px;
  }

  .gdh-room-price {
    font-size: 22px;
  }

  .gdh-room-features {
    grid-template-columns: 1fr;
  }

  .gdh-room-button {
    width: 100%;
  }
}

/* =========================================================
   SINGLE MEETING ROOM / PRODUCT CLEANUP
========================================================= */
body.single-product .woocommerce-product-rating,
body.single-product .product_meta,
body.single-product .reviews_tab,
body.single-product #tab-reviews,
body.single-product .woocommerce-Tabs-panel--reviews{
  display: none !important;
}

body.single-product .woocommerce-tabs ul.tabs,
body.single-product .woocommerce-tabs .tabs,
body.single-product .wc-tabs-wrapper ul.tabs,
body.single-product .wc-tabs{
  display: none !important;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description > h2:first-child,
body.single-product .woocommerce-Tabs-panel--description > h2:first-child,
body.single-product #tab-description > h2:first-child{
  display: none !important;
}

body.single-product .woocommerce-tabs,
body.single-product .woocommerce-Tabs-panel--description,
body.single-product #tab-description{
  border-top: 0 !important;
  padding-top: 0 !important;
  margin-top: 20px !important;
}

body.single-product form.cart button.single_add_to_cart_button,
body.single-product form.cart .single_add_to_cart_button,
body.single-product form.cart button.yith-wcbk-add-to-cart-button,
body.single-product form.cart .yith-wcbk-add-to-cart-button,
body.single-product .product-single-inner .cart .button.yith-wcbk-add-to-cart-button{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 150px !important;
  height: 46px !important;
  min-height: 46px !important;
  line-height: 46px !important;
  padding: 0 24px !important;
  background: #008000 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-align: center !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  opacity: 1 !important;
}

body.single-product form.cart button.single_add_to_cart_button:hover,
body.single-product form.cart .single_add_to_cart_button:hover,
body.single-product form.cart button.yith-wcbk-add-to-cart-button:hover,
body.single-product form.cart .yith-wcbk-add-to-cart-button:hover,
body.single-product .product-single-inner .cart .button.yith-wcbk-add-to-cart-button:hover{
  background: #db4b00 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}


/* =========================================================
   CHECKOUT / MEETING ROOM BOOKING PAGE - FINAL CLEAN BLOCK
========================================================= */

body.woocommerce-checkout .woocommerce{
  max-width: 1180px;
  margin: 0 auto;
  padding: 55px 20px 80px;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 1fr);
  grid-template-areas:
    "notices notices"
    "customer heading"
    "customer review";
  column-gap: 48px;
  row-gap: 12px;
  align-items: start;
}

/* Allow checkout children to align inside the main grid */
body.woocommerce-checkout form.checkout{
  display: contents !important;
}

/* Notices / errors stay above both columns */
body.woocommerce-checkout .woocommerce-notices-wrapper,
body.woocommerce-checkout .woocommerce-NoticeGroup,
body.woocommerce-checkout .woocommerce-NoticeGroup-checkout,
body.woocommerce-checkout form.checkout > .woocommerce-error,
body.woocommerce-checkout form.checkout > .woocommerce-info,
body.woocommerce-checkout form.checkout > .woocommerce-message{
  grid-area: notices !important;
  width: 100% !important;
  margin: 0 0 14px !important;
}

/* Hide checkout success/add-to-cart message */
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-message{
  display: none !important;
}

/* Orange checkout errors */
body.woocommerce-checkout .woocommerce-error,
body.woocommerce-checkout form.checkout > .woocommerce-error,
body.woocommerce-checkout .woocommerce-NoticeGroup .woocommerce-error,
body.woocommerce-checkout .woocommerce-NoticeGroup-checkout .woocommerce-error{
  background: #fff4e6 !important;
  border: 1px solid #f59e0b !important;
  border-left: 5px solid #e86b00 !important;
  color: #9a3f00 !important;
  padding: 14px 18px !important;
  border-radius: 8px !important;
  list-style: none !important;
}

body.woocommerce-checkout .woocommerce-error li{
  color: #9a3f00 !important;
  margin: 0 !important;
}

body.woocommerce-checkout .woocommerce-error li::marker,
body.woocommerce-checkout .woocommerce-error::before,
body.woocommerce-checkout .woocommerce-error li::before{
  color: #e86b00 !important;
}

body.woocommerce-checkout .woocommerce-error a{
  color: #c05600 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}

/* Hide unnecessary checkout fields */
body.woocommerce-checkout .woocommerce-additional-fields,
body.woocommerce-checkout #order_comments_field{
  display: none !important;
}

/* Customer details column */
body.woocommerce-checkout #customer_details{
  grid-area: customer !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 42px 46px;
  background: #fff;
  border: 1px solid #dfeadf;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0,0,0,.06);
}

body.woocommerce-checkout #customer_details::before,
body.woocommerce-checkout #customer_details::after{
  display: none !important;
  content: none !important;
}

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

body.woocommerce-checkout #customer_details .col-2{
  display: none !important;
}

body.woocommerce-checkout .woocommerce-billing-fields{
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.woocommerce-checkout .woocommerce-billing-fields h3{
  margin: 0 0 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid #dfeadf;
  color: #008000;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 800;
}

body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
  width: 100% !important;
}

body.woocommerce-checkout .form-row,
body.woocommerce-checkout .form-row-first,
body.woocommerce-checkout .form-row-last,
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row{
  float: none !important;
  clear: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-checkout .woocommerce-billing-fields label{
  display: block;
  margin: 0 0 8px;
  color: #008000;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

body.woocommerce-checkout .woocommerce-billing-fields label .optional{
  display: none !important;
}

body.woocommerce-checkout .woocommerce-billing-fields input.input-text,
body.woocommerce-checkout .woocommerce-billing-fields select,
body.woocommerce-checkout .woocommerce-billing-fields textarea{
  width: 100% !important;
  height: 50px;
  margin: 0 !important;
  padding: 0 14px !important;
  background: #fff;
  border: 1px solid #d8e1da;
  border-radius: 6px;
  color: #222;
  font-size: 15px;
  box-shadow: none !important;
}

body.woocommerce-checkout .woocommerce-billing-fields input.input-text:focus,
body.woocommerce-checkout .woocommerce-billing-fields select:focus,
body.woocommerce-checkout .woocommerce-billing-fields textarea:focus{
  border-color: #008000;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,128,0,.09) !important;
}

/* Booking heading stays above the order table on the right */
body.woocommerce-checkout h3#order_review_heading{
  grid-area: heading !important;
  margin: 0 !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #dfeadf;
  color: #008000;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 800;
}

/* Booking table column */
body.woocommerce-checkout #order_review{
  grid-area: review !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-checkout #order_review .shop_table{
  width: 100%;
  margin: 0 0 14px !important;
  background: #fff;
  border: 1px solid #dfeadf !important;
  border-collapse: collapse !important;
  table-layout: auto;
}

body.woocommerce-checkout #order_review .shop_table th,
body.woocommerce-checkout #order_review .shop_table td{
  padding: 10px 14px !important;
  border-color: #e4ece4 !important;
  vertical-align: top;
  line-height: 1.3 !important;
}

body.woocommerce-checkout #order_review .shop_table thead th{
  padding-top: 9px !important;
  padding-bottom: 9px !important;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

body.woocommerce-checkout #order_review .shop_table .cart_item td{
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

body.woocommerce-checkout #order_review .shop_table .product-name{
  width: 70%;
  font-size: 14px !important;
}

body.woocommerce-checkout #order_review .shop_table .product-total{
  width: 30%;
  text-align: right;
  white-space: nowrap;
}

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

body.woocommerce-checkout .gdh-checkout-room-name{
  display: block;
  margin-bottom: 12px;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

body.woocommerce-checkout table.shop_table .gdh-booking-date,
body.woocommerce-checkout table.shop_table .gdh-booking-time,
body.woocommerce-checkout table.shop_table .variation,
body.woocommerce-checkout table.shop_table dl.variation{
  display: block !important;
  margin-top: 5px !important;
  margin-bottom: 0 !important;
  color: #008000;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

body.woocommerce-checkout table.shop_table tfoot th,
body.woocommerce-checkout table.shop_table tfoot td{
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

body.woocommerce-checkout #order_review .cart-subtotal th,
body.woocommerce-checkout #order_review .tax-rate th,
body.woocommerce-checkout #order_review .order-total th{
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  text-transform: none;
}

body.woocommerce-checkout #order_review .order-total th,
body.woocommerce-checkout #order_review .order-total td{
  color: #008000;
  font-size: 18px !important;
  font-weight: 900;
}

/* Payment section */
body.woocommerce-checkout #payment{
  margin-top: 10px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

body.woocommerce-checkout #payment .woocommerce-info,
body.woocommerce-checkout #payment .woocommerce-error,
body.woocommerce-checkout #payment .woocommerce-message{
  margin: 0 0 12px !important;
  padding: 13px 16px !important;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4 !important;
}

body.woocommerce-checkout .woocommerce-privacy-policy-text{
  margin-top: 10px !important;
  margin-bottom: 12px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

body.woocommerce-checkout #place_order{
  width: 100%;
  height: 50px !important;
  min-height: 50px;
  line-height: 50px !important;
  margin-top: 6px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: #008000 !important;
  color: #fff !important;
  border-radius: 6px;
  font-weight: 800;
  text-transform: uppercase;
}

body.woocommerce-checkout #place_order:hover{
  background: #db4b00 !important;
}

/* Mobile */
@media (max-width: 900px){
  body.woocommerce-checkout .woocommerce{
    display: block !important;
    padding: 35px 15px 60px;
  }

  body.woocommerce-checkout form.checkout{
    display: block !important;
  }

  body.woocommerce-checkout #customer_details,
  body.woocommerce-checkout #order_review_heading,
  body.woocommerce-checkout #order_review{
    width: 100% !important;
    margin-bottom: 24px !important;
  }

  body.woocommerce-checkout #customer_details{
    padding: 28px 22px;
  }
}

@media (max-width: 640px){
  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper{
    grid-template-columns: 1fr;
  }

  body.woocommerce-checkout #order_review .shop_table th,
  body.woocommerce-checkout #order_review .shop_table td{
    padding: 14px 12px !important;
  }
}

.gdh-room-price-suffix {
  font-size: 16px;
  font-weight: 600;
}

/* =========================================================
   GREEN DESK HUB
   THANK YOU / ORDER RECEIVED PAGE
   WooCommerce endpoint: /checkout/order-received/
   ========================================================= */

/* ---------------------------------------------------------
   1. Hide default WooCommerce thank-you sections
   --------------------------------------------------------- */

body.woocommerce-order-received .woocommerce-order > p.woocommerce-notice,
body.woocommerce-order-received .woocommerce-order > p,
body.woocommerce-order-received .woocommerce-order-overview,
body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-customer-details,
body.woocommerce-order-received .yith-wcbk-related-bookings,
body.woocommerce-order-received .woocommerce-table--order-details,
body.woocommerce-order-received .woocommerce-bacs-bank-details,
body.gdh-order-received-page .woocommerce-order > p.woocommerce-notice,
body.gdh-order-received-page .woocommerce-order > p,
body.gdh-order-received-page .woocommerce-order-overview,
body.gdh-order-received-page .woocommerce-order-details,
body.gdh-order-received-page .woocommerce-customer-details,
body.gdh-order-received-page .yith-wcbk-related-bookings,
body.gdh-order-received-page .woocommerce-table--order-details,
body.gdh-order-received-page .woocommerce-bacs-bank-details {
    display: none !important;
}


/* ---------------------------------------------------------
   2. Force Codesk / Elementor / WooCommerce wrappers wide
   --------------------------------------------------------- */

body.woocommerce-order-received .site,
body.woocommerce-order-received .site-content,
body.woocommerce-order-received .content-area,
body.woocommerce-order-received .container,
body.woocommerce-order-received .container-fluid,
body.woocommerce-order-received .main-container,
body.woocommerce-order-received .page-content,
body.woocommerce-order-received .entry-content,
body.woocommerce-order-received main,
body.woocommerce-order-received article,
body.gdh-order-received-page .site,
body.gdh-order-received-page .site-content,
body.gdh-order-received-page .content-area,
body.gdh-order-received-page .container,
body.gdh-order-received-page .container-fluid,
body.gdh-order-received-page .main-container,
body.gdh-order-received-page .page-content,
body.gdh-order-received-page .entry-content,
body.gdh-order-received-page main,
body.gdh-order-received-page article {
    width: 100% !important;
    max-width: 100% !important;
}

/* Fix Bootstrap/ theme column restriction if Codesk wraps the checkout */
body.woocommerce-order-received .row > [class*="col-"],
body.woocommerce-order-received [class*="col-lg-"],
body.woocommerce-order-received [class*="col-md-"],
body.woocommerce-order-received [class*="col-sm-"],
body.gdh-order-received-page .row > [class*="col-"],
body.gdh-order-received-page [class*="col-lg-"],
body.gdh-order-received-page [class*="col-md-"],
body.gdh-order-received-page [class*="col-sm-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}


/* ---------------------------------------------------------
   3. Main WooCommerce wrapper
   IMPORTANT: Do not make .woocommerce the grid.
   The grid must be on .gdh-thankyou-page only.
   --------------------------------------------------------- */

body.woocommerce-order-received .woocommerce,
body.gdh-order-received-page .woocommerce {
    display: block !important;
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 70px 24px 90px !important;
    background: transparent !important;
}

/* Main WooCommerce order wrapper */
body.woocommerce-order-received .woocommerce-order,
body.gdh-order-received-page .woocommerce-order {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}


/* ---------------------------------------------------------
   4. Main thank-you layout
   This is the actual two-card wrapper.
   --------------------------------------------------------- */

body.woocommerce-order-received .gdh-thankyou-page,
body.gdh-order-received-page .gdh-thankyou-page {
    width: 100% !important;
    max-width: 1100px !important;
    margin: 0 auto !important;

    display: grid !important;
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr) !important;
    gap: 28px !important;
    align-items: stretch !important;

    color: #008000;
}

/* Support other possible wrapper names if used later */
body.woocommerce-order-received .gdh-thankyou-grid,
body.woocommerce-order-received .gdh-thankyou-wrap,
body.woocommerce-order-received .gdh-thankyou-wrapper,
body.woocommerce-order-received .gdh-order-received-grid,
body.woocommerce-order-received .gdh-booking-received-grid,
body.gdh-order-received-page .gdh-thankyou-grid,
body.gdh-order-received-page .gdh-thankyou-wrap,
body.gdh-order-received-page .gdh-thankyou-wrapper,
body.gdh-order-received-page .gdh-order-received-grid,
body.gdh-order-received-page .gdh-booking-received-grid {
    width: 100% !important;
    max-width: 1100px !important;
    margin: 0 auto !important;

    display: grid !important;
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr) !important;
    gap: 28px !important;
    align-items: stretch !important;
}


/* ---------------------------------------------------------
   5. Card layout and card styling
   --------------------------------------------------------- */

body.woocommerce-order-received .gdh-thankyou-page > *,
body.gdh-order-received-page .gdh-thankyou-page > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.gdh-thankyou-card,
.gdh-thankyou-booking-card,
.gdh-booking-summary-card,
.gdh-booking-received-card,
.gdh-order-summary-card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    background: #ffffff !important;
    border: 1px solid rgba(0, 128, 0, 0.18) !important;
    border-radius: 14px !important;
    padding: 32px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 0 !important;
    height: 100% !important;
}


/* ---------------------------------------------------------
   6. Icon and headings
   --------------------------------------------------------- */

.gdh-thankyou-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #008000;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 18px;
}

.gdh-thankyou-card h1,
.gdh-thankyou-card h2,
.gdh-thankyou-booking-card h2,
.gdh-booking-summary-card h2,
.gdh-booking-received-card h2,
.gdh-order-summary-card h2 {
    color: #008000 !important;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 128, 0, 0.18);
    line-height: 1.2;

    word-break: normal !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
}

.gdh-thankyou-message {
    font-size: 17px;
    line-height: 1.6;
    margin: 16px 0 24px;
    color: #008000;
}


/* ---------------------------------------------------------
   7. Booking received summary boxes
   --------------------------------------------------------- */

.gdh-thankyou-summary,
.gdh-thankyou-meta,
.gdh-booking-meta,
.gdh-received-meta {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.gdh-thankyou-summary div,
.gdh-thankyou-meta div,
.gdh-booking-meta div,
.gdh-received-meta div {
    background: #f5faf5;
    border-radius: 10px;
    padding: 16px;
}

.gdh-thankyou-summary span,
.gdh-thankyou-totals span,
.gdh-thankyou-meta span,
.gdh-booking-meta span,
.gdh-received-meta span {
    display: block;
    color: #667566;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
    line-height: 1.3;
}

.gdh-thankyou-summary strong,
.gdh-thankyou-totals strong,
.gdh-thankyou-meta strong,
.gdh-booking-meta strong,
.gdh-received-meta strong {
    color: #008000;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.45;
    word-break: break-word;
}


/* ---------------------------------------------------------
   8. Booking list inside order summary card
   --------------------------------------------------------- */

.gdh-thankyou-booking-list {
    margin-top: 22px;
}

.gdh-thankyou-booking-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
    padding: 18px 0;
    border-bottom: 1px solid rgba(0, 128, 0, 0.16);
}

.gdh-thankyou-booking-item h3 {
    color: #222222;
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.35;
}

.gdh-thankyou-booking-item p {
    margin: 4px 0;
    color: #008000;
    font-size: 15px;
    line-height: 1.5;
}

.gdh-thankyou-booking-price {
    color: #008000;
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
}


/* ---------------------------------------------------------
   9. Totals and summary rows
   --------------------------------------------------------- */

.gdh-thankyou-totals {
    margin-top: 20px;
}

.gdh-thankyou-totals div,
.gdh-summary-row,
.gdh-order-summary-row {
    display: flex !important;
    justify-content: space-between !important;
    gap: 20px !important;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 128, 0, 0.16);
}

.gdh-thankyou-total-row span,
.gdh-thankyou-total-row strong {
    font-size: 20px;
    color: #008000;
    font-weight: 800;
}


/* ---------------------------------------------------------
   10. Buttons
   --------------------------------------------------------- */

.gdh-thankyou-actions,
.gdh-booking-actions {
    grid-column: 1 / -1;
    width: 100% !important;
    max-width: 1100px !important;
    margin: 6px auto 0 !important;

    display: flex !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.gdh-thankyou-btn,
.gdh-thankyou-actions a,
.gdh-booking-actions a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #008000;
    color: #ffffff !important;
    padding: 14px 26px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none !important;
    min-width: 200px;
    min-height: 48px;
    border: 2px solid #008000;
}

.gdh-thankyou-btn:hover,
.gdh-thankyou-actions a:hover,
.gdh-booking-actions a:hover {
    background: #006b00;
    border-color: #006b00;
    color: #ffffff !important;
}

.gdh-thankyou-btn-outline {
    background: transparent !important;
    color: #008000 !important;
    border: 2px solid #008000 !important;
}

.gdh-thankyou-btn-outline:hover {
    background: #008000 !important;
    color: #ffffff !important;
}


/* ---------------------------------------------------------
   11. Tablet
   --------------------------------------------------------- */

@media (max-width: 991px) {
    body.woocommerce-order-received .woocommerce,
    body.gdh-order-received-page .woocommerce {
        padding: 50px 18px 70px !important;
    }

    body.woocommerce-order-received .gdh-thankyou-page,
    body.woocommerce-order-received .gdh-thankyou-grid,
    body.woocommerce-order-received .gdh-thankyou-wrap,
    body.woocommerce-order-received .gdh-thankyou-wrapper,
    body.woocommerce-order-received .gdh-order-received-grid,
    body.woocommerce-order-received .gdh-booking-received-grid,
    body.gdh-order-received-page .gdh-thankyou-page,
    body.gdh-order-received-page .gdh-thankyou-grid,
    body.gdh-order-received-page .gdh-thankyou-wrap,
    body.gdh-order-received-page .gdh-thankyou-wrapper,
    body.gdh-order-received-page .gdh-order-received-grid,
    body.gdh-order-received-page .gdh-booking-received-grid {
        max-width: 640px !important;
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .gdh-thankyou-actions,
    .gdh-booking-actions {
        grid-column: auto;
        justify-content: flex-start !important;
    }
}


/* ---------------------------------------------------------
   12. Mobile
   --------------------------------------------------------- */

@media (max-width: 767px) {
    body.woocommerce-order-received .woocommerce,
    body.gdh-order-received-page .woocommerce {
        padding: 40px 15px 60px !important;
    }

    body.woocommerce-order-received .gdh-thankyou-page,
    body.gdh-order-received-page .gdh-thankyou-page {
        margin: 0 auto !important;
        gap: 20px !important;
    }

    .gdh-thankyou-card,
    .gdh-thankyou-booking-card,
    .gdh-booking-summary-card,
    .gdh-booking-received-card,
    .gdh-order-summary-card {
        padding: 22px !important;
    }

    .gdh-thankyou-summary,
    .gdh-thankyou-meta,
    .gdh-booking-meta,
    .gdh-received-meta {
        grid-template-columns: 1fr !important;
    }

    .gdh-thankyou-booking-item {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .gdh-thankyou-booking-price {
        white-space: normal;
    }

    .gdh-thankyou-actions,
    .gdh-booking-actions {
        flex-direction: column !important;
        justify-content: flex-start !important;
    }

    .gdh-thankyou-btn,
    .gdh-thankyou-actions a,
    .gdh-booking-actions a {
        width: 100% !important;
        text-align: center !important;
    }
}

/* =========================================================
   GDH THANK YOU PAGE - FINAL UI FIXES
   ========================================================= */

/* ---------------------------------------------------------
   1. Tick icon + "Booking Received" on one line
   --------------------------------------------------------- */

body.woocommerce-order-received .gdh-thankyou-card,
body.gdh-order-received-page .gdh-thankyou-card {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) !important;
    column-gap: 16px !important;
    row-gap: 18px !important;
    align-items: start !important;
}

body.woocommerce-order-received .gdh-thankyou-card .gdh-thankyou-icon,
body.gdh-order-received-page .gdh-thankyou-card .gdh-thankyou-icon {
    grid-column: 1 !important;
    grid-row: 1 !important;
    margin: 0 !important;
}

body.woocommerce-order-received .gdh-thankyou-card h1,
body.gdh-order-received-page .gdh-thankyou-card h1 {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
    margin: 0 !important;
    padding-bottom: 14px !important;
}

body.woocommerce-order-received .gdh-thankyou-card .gdh-thankyou-message,
body.woocommerce-order-received .gdh-thankyou-card .gdh-thankyou-summary,
body.gdh-order-received-page .gdh-thankyou-card .gdh-thankyou-message,
body.gdh-order-received-page .gdh-thankyou-card .gdh-thankyou-summary {
    grid-column: 1 / -1 !important;
}


/* ---------------------------------------------------------
   2. Summary boxes: prevent overflow
   --------------------------------------------------------- */

.gdh-thankyou-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.gdh-thankyou-summary div {
    min-width: 0 !important;
    overflow: hidden !important;
}

/* Default summary values should be allowed to wrap */
.gdh-thankyou-summary strong {
    display: block !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}

/* Payment Method box - smaller and cleaner */
.gdh-thankyou-summary div:nth-child(4) strong {
    font-size: 15px !important;
    line-height: 1.45 !important;
    font-weight: 700 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
}

/* Total box only - keep KSH and amount on one line */
.gdh-thankyou-summary div:nth-child(3) strong {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 5px !important;
    white-space: nowrap !important;
    font-size: 16px !important;
}

/* If currency/amount are inside spans, undo old display:block */
.gdh-thankyou-summary div:nth-child(3) strong span,
.gdh-thankyou-summary div:nth-child(3) strong .amount,
.gdh-thankyou-summary div:nth-child(3) strong .woocommerce-Price-amount {
    display: inline !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

/* If the value has a <br>, remove the visual break */
.gdh-thankyou-summary div:nth-child(3) strong br {
    display: none !important;
}


/* ---------------------------------------------------------
   3. Right card: keep all cost values on one line
   --------------------------------------------------------- */

.gdh-thankyou-totals div,
.gdh-summary-row,
.gdh-order-summary-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
}

/* Left labels */
.gdh-thankyou-totals div > :first-child,
.gdh-summary-row > :first-child,
.gdh-order-summary-row > :first-child {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

/* Right cost values */
.gdh-thankyou-totals div > :last-child,
.gdh-summary-row > :last-child,
.gdh-order-summary-row > :last-child {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    white-space: nowrap !important;
    text-align: right !important;
    min-width: 95px !important;
}

/* Undo old display:block on currency spans inside totals */
.gdh-thankyou-totals div > :last-child span,
.gdh-summary-row > :last-child span,
.gdh-order-summary-row > :last-child span,
.gdh-thankyou-totals div > :last-child .amount,
.gdh-summary-row > :last-child .amount,
.gdh-order-summary-row > :last-child .amount,
.gdh-thankyou-totals div > :last-child .woocommerce-Price-amount,
.gdh-summary-row > :last-child .woocommerce-Price-amount,
.gdh-order-summary-row > :last-child .woocommerce-Price-amount {
    display: inline !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

/* Remove visual line breaks inside price values */
.gdh-thankyou-totals div > :last-child br,
.gdh-summary-row > :last-child br,
.gdh-order-summary-row > :last-child br {
    display: none !important;
}

/* Product price at the top right */
.gdh-thankyou-booking-price {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 6px !important;
    white-space: nowrap !important;
}


/* ---------------------------------------------------------
   4. Contact Us button visibility
   --------------------------------------------------------- */

.gdh-thankyou-btn-outline,
.gdh-thankyou-actions a:last-child,
.gdh-booking-actions a:last-child {
    background: #ffffff !important;
    color: #008000 !important;
    border: 2px solid #008000 !important;
}

.gdh-thankyou-btn-outline:hover,
.gdh-thankyou-actions a:last-child:hover,
.gdh-booking-actions a:last-child:hover {
    background: #008000 !important;
    color: #ffffff !important;
    border-color: #008000 !important;
}


/* ---------------------------------------------------------
   5. Mobile adjustment
   --------------------------------------------------------- */

@media (max-width: 767px) {
    body.woocommerce-order-received .gdh-thankyou-card,
    body.gdh-order-received-page .gdh-thankyou-card {
        grid-template-columns: 48px minmax(0, 1fr) !important;
        column-gap: 14px !important;
    }

    .gdh-thankyou-summary div:nth-child(4) strong {
        font-size: 14px !important;
    }
}

/* =========================================================
   GDH PESAPAL ORDER PAY PAGE - COMPACT SAFE LAYOUT
   Applies to: /checkout/order-pay/
   ========================================================= */

/* Main WooCommerce wrapper */
body.woocommerce-order-pay .woocommerce,
body.woocommerce-checkout.woocommerce-order-pay .woocommerce {
    display: block !important;
    width: 100% !important;
    max-width: 760px !important;
    margin: 0 auto !important;
    padding: 35px 20px 45px !important;
    min-height: 0 !important;
}

/* Elementor shortcode wrapper should not create extra height */
body.woocommerce-order-pay .elementor-widget-shortcode,
body.woocommerce-order-pay .elementor-widget-shortcode .elementor-widget-container,
body.woocommerce-order-pay .elementor-shortcode {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

/* Order details card */
body.woocommerce-order-pay ul.order_details,
body.woocommerce-order-pay .woocommerce-order-overview {
    display: block !important;
    float: none !important;
    list-style: none !important;

    width: 100% !important;
    max-width: 520px !important;
    margin: 0 auto 28px !important;
    padding: 26px 32px !important;

    background: #ffffff !important;
    border: 1px solid rgba(0, 128, 0, 0.18) !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06) !important;
}

body.woocommerce-order-pay ul.order_details li,
body.woocommerce-order-pay .woocommerce-order-overview li {
    display: block !important;
    float: none !important;
    width: 100% !important;

    margin: 0 !important;
    padding: 13px 0 !important;

    border-right: 0 !important;
    border-bottom: 1px solid rgba(0, 128, 0, 0.16) !important;

    color: #008000 !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    text-transform: none !important;
}

body.woocommerce-order-pay ul.order_details li:first-child,
body.woocommerce-order-pay .woocommerce-order-overview li:first-child {
    padding-top: 0 !important;
}

body.woocommerce-order-pay ul.order_details li:last-child,
body.woocommerce-order-pay .woocommerce-order-overview li:last-child {
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
}

body.woocommerce-order-pay ul.order_details li strong,
body.woocommerce-order-pay .woocommerce-order-overview li strong {
    color: #008000 !important;
    font-weight: 800 !important;
    display: inline !important;
}

/* Pesapal wrapper */
body.woocommerce-order-pay #order_review,
body.woocommerce-order-pay form#order_review,
body.woocommerce-order-pay #payment,
body.woocommerce-order-pay #pesapal-iframe-holder {
    display: block !important;
    width: 100% !important;
    max-width: 660px !important;
    margin: 0 auto !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Pesapal iframe: smaller controlled height */
body.woocommerce-order-pay iframe#pesapal-iframe,
body.woocommerce-order-pay #pesapal-iframe-holder iframe {
    display: block !important;
    width: 100% !important;
    max-width: 660px !important;

    height: 455px !important;
    min-height: 455px !important;
    max-height: 455px !important;

    margin: 0 auto !important;
    border: 0 !important;
    overflow: hidden !important;
}

/* Reduce theme/Elementor page height */
body.woocommerce-order-pay .site-content,
body.woocommerce-order-pay .content-area,
body.woocommerce-order-pay .entry-content,
body.woocommerce-order-pay main,
body.woocommerce-order-pay article {
    height: auto !important;
    min-height: 0 !important;
}

/* Remove excess bottom space before footer */
body.woocommerce-order-pay .elementor-section,
body.woocommerce-order-pay .elementor-container,
body.woocommerce-order-pay .elementor-column,
body.woocommerce-order-pay .elementor-widget-wrap {
    min-height: 0 !important;
}

/* Mobile */
@media (max-width: 767px) {
    body.woocommerce-order-pay .woocommerce,
    body.woocommerce-checkout.woocommerce-order-pay .woocommerce {
        max-width: 100% !important;
        padding: 30px 15px 45px !important;
    }

    body.woocommerce-order-pay ul.order_details,
    body.woocommerce-order-pay .woocommerce-order-overview {
        max-width: 100% !important;
        padding: 22px !important;
        margin-bottom: 24px !important;
    }

    body.woocommerce-order-pay iframe#pesapal-iframe,
    body.woocommerce-order-pay #pesapal-iframe-holder iframe {
        height: 540px !important;
        min-height: 540px !important;
        max-height: 540px !important;
    }
}