/* ==================================================
   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;
  }
}

/* ===== 1. Smooth Lift + Premium Shadow ===== */
.trip-inner {
    transition: all 0.35s cubic-bezier(.4,0,.2,1);
    border-radius: 18px;
    overflow: hidden;
}

.trip-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.18);
}

/* ===== 2. Image Soft Overlay (Luxury Feel) ===== */
.trip-thumbnail {
    position: relative;
}

.trip-thumbnail::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.18),
        rgba(0,0,0,0.05),
        rgba(0,0,0,0)
    );
    opacity: 0;
    transition: 0.4s ease;
}

.trip-inner:hover .trip-thumbnail::after {
    opacity: 1;
}

/* ===== 3. Title Highlight on Hover ===== */
.trip-inner h3,
.trip-inner .entry-title {
    transition: 0.3s ease;
}

.trip-inner:hover h3,
.trip-inner:hover .entry-title {
    color: #2b6cff; /* เปลี่ยนสีได้ตาม brand */
}

/* ===== 4. Price Emphasis ===== */
.trip-inner .price {
    transition: 0.3s ease;
}

.trip-inner:hover .price {
    transform: scale(1.05);
}

/* ===== 5. Subtle Image Zoom (Very Soft - Optional) ===== */
/* ถ้าไม่อยากให้ zoom เลย ลบบล็อกนี้ออก */
.trip-thumbnail img {
    transition: 0.6s ease;
}

.trip-inner:hover .trip-thumbnail img {
    transform: scale(1.02);
}

html {
    scroll-behavior: smooth;
}