/* ==================================================
   KLOOK STYLE — Minimal Premium Checkout (SAFE)
   DOM verified / No layout break
================================================== */

/* --------------------------------------------------
   1. REMOVE "Open at" ROW (clock icon meta)
-------------------------------------------------- */
.woocommerce-checkout-review-order-table
.reservation-detail:has(svg) {
  display: none !important;
}

/* --------------------------------------------------
   2. PRODUCT TITLE — calm & premium
-------------------------------------------------- */
.woocommerce-checkout-review-order-table .product-name {
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #1f2937;
}

/* --------------------------------------------------
   3. DATE LINE — clear & important
-------------------------------------------------- */
.woocommerce-checkout-review-order-table
.reservation-detail .value {
  font-size: 13.5px;
  line-height: 1.5;
  color: #374151;
}

/* ทำให้บรรทัดแรก (วันที่) เด่นกว่าข้อมูลอื่น */
.woocommerce-checkout-review-order-table
.reservation-detail:first-of-type .value {
  font-weight: 600;
  color: #111827;
}

/* --------------------------------------------------
   4. PRICE AREA — clean hierarchy
-------------------------------------------------- */
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 12px 0;
  vertical-align: middle;
}

/* Subtotal เบาลง */
.woocommerce-checkout-review-order-table .cart-subtotal {
  color: #6b7280;
  font-size: 13.5px;
}

/* Total ชัดแบบ Klook */
.woocommerce-checkout-review-order-table .order-total {
  font-weight: 700;
  font-size: 15px;
  border-top: 1px solid #e5e7eb;
  padding-top: 14px;
}

/* --------------------------------------------------
   5. RIGHT BOX — subtle premium feel
-------------------------------------------------- */
.woocommerce-checkout-review-order-table {
  background: #ffffff;
}

/* --------------------------------------------------
   6. FORM LEFT — อ่านง่ายขึ้น (soft polish)
-------------------------------------------------- */
.woocommerce-checkout label {
  font-weight: 500;
  line-height: 1.5;
  color: #374151;
}

.woocommerce-checkout input,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
  border-radius: 8px;
  padding: 12px 14px;
}

/* --------------------------------------------------
   7. OPTIONAL: tiny trust micro-copy under total
-------------------------------------------------- */
.woocommerce-checkout-review-order-table .order-total td::after {
  content: "✓ Professional driver · ✓ Licensed vehicle";
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}

/* ================================
   Order Received – PRO OTA Style
   ================================ */

/* Layout */
.woocommerce-order {
  max-width: 980px;
  margin: 50px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1f2937;
}

/* Success message */
.woocommerce-notice--success {
  background: #f8fafc;
  border-left: 4px solid #0f766e;
  padding: 18px 22px;
  font-size: 15px;
  margin-bottom: 35px;
}

/* Headings */
.woocommerce-order h2 {
  margin-top: 48px;
  margin-bottom: 18px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

/* ===== Payment / Bank Details Card ===== */
.woocommerce-order .woocommerce-bacs-bank-details {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 40px;
}

.woocommerce-bacs-bank-details h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.woocommerce-bacs-bank-details li {
  font-size: 15px;
  line-height: 1.6;
}

/* ===== Order Table ===== */
.woocommerce-order table {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.woocommerce-order table th {
  background: #f9fafb;
  font-weight: 600;
  font-size: 14px;
  padding: 14px;
}

.woocommerce-order table td {
  padding: 14px;
  font-size: 14px;
}

/* Total emphasis */
.woocommerce-order .order-total th,
.woocommerce-order .order-total td {
  font-size: 17px;
  font-weight: 700;
  border-top: 2px solid #e5e7eb;
}

#printable-area .invoice-company {
  border-bottom: 2px solid #111827;
  padding-bottom: 20px;
}

@media (max-width: 768px) {
  * {
    animation: none !important;
    transition: none !important;
  }
}


/* ===============================
   MOBILE ORDER DETAILS CLEAN UI
================================ */
@media (max-width: 768px) {

  /* Remove table look */
  .woocommerce-table,
  .woocommerce-table tr,
  .woocommerce-table td,
  .woocommerce-table th {
    display: block;
    width: 100%;
    border: none;
  }

  /* Card container */
  .woocommerce-table {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
  }

  /* Each row = card row */
  .woocommerce-table tr {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #e5e7eb;
  }

  .woocommerce-table tr:last-child {
    border-bottom: none;
  }

  /* Label */
  .woocommerce-table th {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 4px;
  }

  /* Value */
  .woocommerce-table td {
    font-size: 15px;
    font-weight: 500;
    color: #111827;
  }

  /* Package title */
  .woocommerce-order-details .product-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
  }

  /* Total emphasis */
  .order-total td {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    text-align: right;
  }

  .order-total th {
    font-size: 14px;
    text-transform: uppercase;
  }

  /* Remove clutter */
  .woocommerce-table thead {
    display: none;
  }
}

.trip-inner img,
.trip-thumbnail img,
.trip-card img,
.togo-trip-item img {
  transition: none !important;
  transform: none !important;
}


/* 🔥 kill zoom gallery หน้า single trip */
.togo-st-gallery img,
.togo-st-gallery-item img {
    transform: none !important;
    transition: none !important;
}

/* 🔥 kill hover zoom */
.togo-st-gallery-item:hover img,
.togo-st-gallery:hover img {
    transform: none !important;
}

.trip-search-form .field-location__result .near-me,
.trip-search-form .field-location__result .near-me__icon,
.trip-search-form .field-location__result .near-me__text {
  display: none !important;
}

/* Sticky booking box on desktop */
/* Sticky booking box – desktop only */
@media (min-width: 1024px) {

  #booking {
    position: sticky !important;
    top: 100px !important;
    width: 100% !important;
    max-width: 100% !important;
    align-self: flex-start !important;
    z-index: 50 !important;
    overflow: visible !important;
  }

  #booking > .elementor-widget-container,
  #booking .togo-st-form-booking,
  #booking .togo-st-form-booking__main {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (min-width: 1024px) {
  .togo-st-form-booking__main,
  .togo-st-form-booking__content,
  [class*="booking"] [class*="option"],
  [class*="booking"] [class*="availability"] {
    scroll-margin-top: 120px !important;
  }

  html {
    scroll-padding-top: 120px !important;
  }
}

/* Change accent color only inside Togo customer reviews */
.togo-st-reviews {
  --e-global-color-accent: #0d6efd;
}

/* Mini review beside trip title */
.togo-st-mini-review,
.togo-st-mini-review .togo-st-mini-review-score {
  color: #0d6efd !important;
}

.togo-st-mini-review svg,
.togo-st-mini-review svg path {
  fill: #0d6efd !important;
  stroke: #0d6efd !important;
}


@media (max-width: 767px) {
  .elementor-widget-togo-search-form button,
  .elementor-widget-togo-search-form button[type="submit"],
  .elementor-widget-togo-search-form .search-submit {
    font-size: 16px !important;
    font-weight: 600 !important;
  }
}

/* Make desktop search icon bolder only */
@media (min-width: 1024px) {
  .elementor-widget-togo-search-form button svg,
  .togo-search-form button svg,
  .togo-search-form .search-submit svg {
    width: 16px !important;
    height: 16px !important;
  }

  .elementor-widget-togo-search-form button svg path,
  .togo-search-form button svg path,
  .togo-search-form .search-submit svg path {
    stroke-width: 3px !important;
  }
}

/* Responsive Destinations mega menu position */
@media (min-width: 1024px) and (max-width: 1366px) {
  .site-header li:has(> a[href*="destinations"]) > .sub-menu,
  .site-header li:has(> a[href*="destinations"]) > .mega-menu,
  .site-header li:has(> a[href*="destinations"]) .mega-menu {
    transform: translateX(-14vw) !important;
  }
}

@media (min-width: 1367px) {
  .site-header li:has(> a[href*="destinations"]) > .sub-menu,
  .site-header li:has(> a[href*="destinations"]) > .mega-menu,
  .site-header li:has(> a[href*="destinations"]) .mega-menu {
    transform: translateX(-18vw) !important;
  }
}

/* Sticky checkout right column */
@media (min-width: 1024px) {
  .woocommerce-checkout form.checkout > .col2-set + *,
  .woocommerce-checkout .checkout-sidebar,
  .woocommerce-checkout .order-summary,
  .woocommerce-checkout .woocommerce-checkout-review-order {
    position: sticky !important;
    top: 100px !important;
    align-self: flex-start !important;
    z-index: 20;
  }

  .woocommerce-checkout form.checkout,
  .woocommerce-checkout .checkout,
  .woocommerce-checkout .checkout-wrapper {
    overflow: visible !important;
  }
}


/* Fix coupon remove link overlapping amount - Cart page */
.woocommerce-cart .cart-discount,
.woocommerce-cart .coupon,
.woocommerce-cart [class*="discount"] {
  position: relative;
}

.woocommerce-cart .cart-discount td,
.woocommerce-cart .cart-discount .amount,
.woocommerce-cart .cart-discount .woocommerce-remove-coupon,
.woocommerce-cart a.woocommerce-remove-coupon,
.woocommerce-cart a[href*="remove_coupon"] {
  float: none !important;
  position: static !important;
  transform: none !important;
}

.woocommerce-cart .cart-discount td {
  text-align: right !important;
  white-space: normal !important;
  min-width: 120px !important;
}

.woocommerce-cart .cart-discount .amount {
  display: block !important;
  width: 100% !important;
  text-align: right !important;
  margin-bottom: 4px !important;
}

.woocommerce-cart .cart-discount .woocommerce-remove-coupon,
.woocommerce-cart a.woocommerce-remove-coupon,
.woocommerce-cart a[href*="remove_coupon"] {
  display: block !important;
  clear: both !important;
  width: auto !important;
  max-width: 100% !important;
  margin-top: 4px !important;
  margin-left: 0 !important;
  text-align: right !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

/* Coupon discount layout: amount on right, remove link below, no trash icon */
.woocommerce-cart .cart_totals .cart-discount td {
  text-align: right !important;
  white-space: normal !important;
}

/* Discount amount */
.woocommerce-cart .cart_totals .cart-discount .amount {
  display: block !important;
  text-align: right !important;
  margin-bottom: 4px !important;
}

/* Remove coupon link */
.woocommerce-cart .cart_totals .cart-discount .woocommerce-remove-coupon,
.woocommerce-cart .cart_totals .cart-discount a[href*="remove_coupon"] {
  display: block !important;
  text-align: right !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  color: #777 !important;
  text-decoration: none !important;
  margin-top: 2px !important;
}

/* Hide trash icon near coupon remove */
.woocommerce-cart .cart_totals .cart-discount i,
.woocommerce-cart .cart_totals .cart-discount svg,
.woocommerce-cart .cart_totals .cart-discount .remove-icon,
.woocommerce-cart .cart_totals .cart-discount [class*="trash"],
.woocommerce-cart .cart_totals .cart-discount [class*="delete"] {
  display: none !important;
}

/* Hide Opening Hours & Capacity */
.item-availability__info > .opening-hours{
    display: none !important;
}