/* === WTG BOOKING MASTER - CHECKOUT UI === */

/* Booking summary box */
.wtg-checkout-summary {
    background: #fff;
    border: 1px solid #e0e4ee;
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 34, 58, .06);
}
.wtg-cs-header {
    background: linear-gradient(135deg, #c20509 0%, #e63946 100%);
    color: #fff;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.wtg-cs-body {
    display: flex;
    gap: 18px;
    padding: 20px;
}
.wtg-cs-thumb {
    flex: 0 0 180px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f2f5;
    height: 140px;
}
.wtg-cs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wtg-cs-info { flex: 1; min-width: 0; }
.wtg-cs-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
    line-height: 1.3;
}
.wtg-cs-stars { color: #febb02; font-size: 16px; margin-left: 6px; }
.wtg-cs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px dashed #f0f2f5;
}
.wtg-cs-row:last-child { border-bottom: none; }
.wtg-cs-label {
    color: #666;
    font-weight: 500;
    min-width: 110px;
}
.wtg-cs-value { color: #222; }
.wtg-cs-highlight { color: #c20509 !important; font-weight: 700 !important; }
.wtg-cs-pill {
    background: #83b232;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.wtg-cs-extras {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e0e4ee;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 14px;
}
.wtg-cs-extra-item {
    display: flex;
    gap: 6px;
    font-size: 13px;
    color: #555;
}
.wtg-cs-extra-item .wtg-cs-label { min-width: auto; }
.wtg-cs-footer {
    background: #f8f9fb;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e0e4ee;
    font-size: 13px;
}
.wtg-cs-back {
    color: #83b232 !important;
    font-weight: 600;
    text-decoration: none;
}
.wtg-cs-back:hover { text-decoration: underline; }
.wtg-cs-note { color: #999; font-style: italic; }

/* Section heading trong form */
.wtg-section-heading {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 25px 0 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid #83b232;
}
.wtg-section-desc {
    font-size: 13px;
    color: #777;
    margin: 0 0 15px;
    font-style: italic;
}

/* Thank you box */
.wtg-thankyou-box {
    text-align: center;
    background: #fff;
    border: 1px solid #e0e4ee;
    border-radius: 12px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(15, 34, 58, .08);
}
.wtg-ty-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #83b232;
    color: #fff;
    font-size: 36px;
    line-height: 70px;
    margin: 0 auto 18px;
    font-weight: bold;
}
.wtg-thankyou-box h2 { color: #1a1a1a; margin: 0 0 12px; }
.wtg-ty-code {
    display: inline-block;
    background: #fff8f0;
    color: #c20509;
    border: 2px dashed #c20509;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 12px 0;
}
.wtg-ty-summary {
    margin-top: 24px;
    border-top: 1px dashed #e0e4ee;
    padding-top: 20px;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.wtg-ty-summary table { width: 100%; border-collapse: collapse; }
.wtg-ty-summary th {
    text-align: left;
    color: #666;
    font-weight: 500;
    padding: 8px 0;
    width: 35%;
    font-size: 14px;
}
.wtg-ty-summary td {
    padding: 8px 0;
    color: #222;
    font-size: 14px;
}

/* =============================================
   LAYOUT CHECKOUT: 2 CỘT + PAYMENT DƯỚI CÙNG
   ============================================= */

/* Billing + Additional fields gom vào 1 box trắng */
.woocommerce-checkout #customer_details {
    background: #fff;
    border-radius: 8px;
    padding: 28px 32px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #ebedf2;
}
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-additional-fields {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.woocommerce-checkout .woocommerce-additional-fields {
    margin-top: 24px !important;
    border-top: 1px dashed #e2e8f0 !important;
    padding-top: 20px !important;
}

/* Flatsome inner col resets */
.woocommerce-checkout form.woocommerce-checkout .row > .col:last-child .col-inner,
.woocommerce-checkout form.woocommerce-checkout .large-5 .col-inner {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Nút Place Order màu cam */
.woocommerce-checkout #payment button#place_order {
    background-color: #ff8a00 !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 12px 36px !important;
    border-radius: 4px !important;
    border: none !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}
.woocommerce-checkout #payment button#place_order:hover {
    background-color: #e07b00 !important;
    transform: translateY(-1px) !important;
}

/* Mobile */
@media (max-width: 768px) {
    .wtg-cs-body { flex-direction: column; }
    .wtg-cs-thumb { flex: none; width: 100%; height: 180px; }
    .wtg-cs-extras { grid-template-columns: 1fr; }
    .wtg-cs-row { flex-direction: column; align-items: flex-start; gap: 2px; }
    .wtg-cs-label { min-width: auto; font-size: 12px; }
    .wtg-cs-footer { flex-direction: column; gap: 8px; align-items: flex-start; }
    .woocommerce-checkout #customer_details {
        padding: 20px 18px;
    }
}

/* =============================================
   WTG HOTEL CUSTOM CHECKOUT LAYOUT (IMAGE MOCKUP 100%)
   ============================================= */

/* 2-Column CSS Grid */
.wtg-hotel-checkout form.woocommerce-checkout {
    display: grid !important;
    gap: 30px !important;
    align-items: start !important;
}
.wtg-hotel-checkout #customer_details {
    grid-column: 1 / 2 !important;
    float: none !important;
    width: 100% !important;
    background: #fff !important;
    border: 1px solid #ebedf2 !important;
    border-radius: 12px !important;
    padding: 30px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 0 !important;
}
.wtg-hotel-checkout #order_review {
    grid-column: 2 / 3 !important;
    float: none !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide standard checkout review tables & headings */
.wtg-hotel-checkout table.shop_table,
.wtg-hotel-checkout #order_review_heading,
.wtg-hotel-checkout .woocommerce-checkout-review-order-table {
    display: none !important;
}

/* Form inputs & rows styling */
.wtg-hotel-checkout #customer_details .form-row {
    margin-bottom: 20px !important;
}
.wtg-hotel-checkout #customer_details label {
    font-weight: 600 !important;
    color: #1a1a1a !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
    display: block !important;
}
.wtg-hotel-checkout #customer_details input[type="text"],
.wtg-hotel-checkout #customer_details input[type="email"],
.wtg-hotel-checkout #customer_details input[type="tel"],
.wtg-hotel-checkout #customer_details textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #dcdfe6 !important;
    border-radius: 6px !important;
    background-color: #fff !important;
    font-size: 14px !important;
    color: #303133 !important;
    transition: border-color 0.2s !important;
}
.wtg-hotel-checkout #customer_details input:focus,
.wtg-hotel-checkout #customer_details textarea:focus {
    border-color: #ff8a00 !important;
    outline: none !important;
}

/* Inline Gender selection */
.wtg-hotel-checkout .wtg-gender-row .woocommerce-input-wrapper {
    display: flex !important;
    gap: 30px !important;
    margin-top: 8px !important;
}
.wtg-hotel-checkout .wtg-gender-row label.radio {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    margin-bottom: 0 !important;
}
.wtg-hotel-checkout .wtg-gender-row input[type="radio"] {
    margin: 0 !important;
    width: 18px !important;
    height: 18px !important;
    accent-color: #ff8a00 !important;
}

/* wants invoice styling */
.wtg-hotel-checkout .wtg-invoice-row label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    font-size: 14px !important;
}
.wtg-hotel-checkout .wtg-invoice-row input[type="checkbox"] {
    margin: 0 !important;
    width: 18px !important;
    height: 18px !important;
    accent-color: #ff8a00 !important;
}

/* Payment relocation below form */
.wtg-hotel-checkout #payment {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    margin-top: 24px !important;
    grid-column: 1 / 2 !important;
    width: 100% !important;
}
.wtg-hotel-checkout #payment ul.payment_methods {
    border: none !important;
    padding: 0 !important;
    margin-bottom: 18px !important;
}
.wtg-hotel-checkout #payment button#place_order {
    background-color: #ff8a00 !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 14px 40px !important;
    border-radius: 6px !important;
    border: none !important;
    text-transform: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    float: left !important;
    min-width: 200px !important;
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.2) !important;
}
.wtg-hotel-checkout #payment button#place_order:hover {
    background-color: #e07b00 !important;
    box-shadow: 0 6px 16px rgba(255, 138, 0, 0.3) !important;
}

/* Summary sidebar card styles */
.hotel-checkout-card {
    background: #fff !important;
    border: 1px solid #ebedf2 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 20px !important;
}
.wtg-h-stars {
    color: #ffb800 !important;
    font-size: 18px !important;
    margin-bottom: 6px !important;
    letter-spacing: 2px !important;
}
.wtg-h-name {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1c2b38 !important;
    margin: 0 0 8px !important;
    line-height: 1.4 !important;
}
.wtg-h-address {
    font-size: 13px !important;
    color: #606266 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 6px !important;
    line-height: 1.4 !important;
    margin-bottom: 16px !important;
}
.wtg-h-address .dashicons {
    color: #909399 !important;
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    margin-top: 2px !important;
}
.wtg-h-image {
    border-radius: 10px !important;
    overflow: hidden !important;
    height: 160px !important;
    margin-bottom: 18px !important;
    background: #f0f2f5 !important;
}
.wtg-h-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Horizontal Date block */
.wtg-h-date-block {
    display: grid !important;
    grid-template-columns: 1fr 1fr 0.6fr !important;
    border: 1px solid #ebedf2 !important;
    border-radius: 8px !important;
    padding: 12px 10px !important;
    margin-bottom: 18px !important;
    background: #fafbfd !important;
    align-items: center !important;
}
.wtg-h-date-cell {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.wtg-h-date-cell.checkin {
    border-right: 1px dashed #dcdfe6 !important;
    padding-right: 8px !important;
}
.wtg-h-date-cell.checkout {
    border-right: 1px dashed #dcdfe6 !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
}
.wtg-h-date-cell.duration {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0 !important;
    text-align: center !important;
}
.wtg-h-date-cell .dashicons {
    color: #909399 !important;
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
}
.wtg-h-date-val {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #303133 !important;
    line-height: 1.2 !important;
}
.wtg-h-date-lbl {
    font-size: 11px !important;
    color: #909399 !important;
    line-height: 1.2 !important;
}

/* Bullet list details */
.wtg-h-details {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    font-size: 14px !important;
    color: #303133 !important;
}
.wtg-h-details li {
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
}

/* Sidebar Pricing rows */
.wtg-h-pricing {
    border-top: 1px dashed #e4e7ed !important;
    padding-top: 16px !important;
}
.wtg-h-price-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 10px !important;
    font-size: 14px !important;
}
.wtg-h-price-lbl {
    color: #606266 !important;
}
.wtg-h-price-val {
    color: #303133 !important;
    font-weight: 600 !important;
}
.wtg-h-price-row.total {
    margin-top: 14px !important;
    padding-top: 14px !important;
    border-top: 1px dashed #e4e7ed !important;
    font-size: 16px !important;
}
.wtg-h-price-row.total .wtg-h-price-lbl {
    font-weight: 700 !important;
    color: #1c2b38 !important;
}
.wtg-h-price-row.total .wtg-h-price-val {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #ff8a00 !important;
}

/* Responsive checkout grid */
@media (max-width: 991px) {
    .wtg-hotel-checkout form.woocommerce-checkout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .wtg-hotel-checkout #customer_details {
        grid-column: 1 / -1 !important;
    }
    .wtg-hotel-checkout #order_review {
        grid-column: 1 / -1 !important;
    }
    .wtg-hotel-checkout #payment {
        grid-column: 1 / -1 !important;
    }
}

