/*
Theme Name: Ticketbox Elementor Child
Theme URI: https://tixbox.vn
Author: Antigravity
Author URI: https://tixbox.vn
Description: Child theme for Hello Elementor, containing the custom Ticketbox WooCommerce layout and Homepage.
Version: 1.0.0
Template: hello-elementor
Text Domain: ticketbox-elementor-child
*/

:root {
    --bg-dark: #F3F4F6;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F9FAFB;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --primary-green: #00BF69;
    --primary-green-hover: #00A65A;
    --border-color: #E5E7EB;
    --tb-font: 'Be Vietnam Pro', sans-serif;
    --neo-gradient: linear-gradient(90deg, #ffffff 0%, #fae8c8 50%, #c4f4d3 100%);
    --neo-font-title: 'Be Vietnam Pro', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--tb-font);
    margin: 0;
}

/* ==========================================================
   TICKETBOX GLOBAL STYLES (Header, Footer, Layout)
   ========================================================== */
* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-green);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-green-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--text-primary);
}

/* Header */
.header {
    background: linear-gradient(135deg, #00B14F 0%, #008A3E 100%);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    padding: 20px 0;
    transition: all 0.3s ease;
}

body.admin-bar .header {
    top: 32px;
    /* Offset for WP Admin Bar */
}

.header.scrolled {
    background: linear-gradient(135deg, rgba(0, 177, 79, 0.95) 0%, rgba(0, 138, 62, 0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo img {
    height: 40px;
    display: block;
}

.search-bar {
    position: relative;
    width: 300px;
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    /* Darker icon color for light background */
}

.search-bar input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: #f5f5f5;
    /* Trắng xám */
    color: #333;
    /* Dark text */
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    border-color: var(--primary-green);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Base Desktop Nav Wrapper */
.tb-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.85); /* Readability on green background */
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
    font-weight: 600;
}

.header-icons {
    display: flex;
    align-items: center;
    margin-left: 10px;
    margin-right: 15px;
}

.tb-header-cart {
    position: relative;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.tb-header-cart:hover {
    color: var(--primary-green);
    background: rgba(255, 255, 255, 0.1);
}

.tb-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF3B30;
    /* Vibrant notification red */
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    /* match header bg to create cutoff effect */
}

.user-actions {
    display: flex;
    gap: 15px;
}

/* Global Footer */
.footer {
    background-color: var(--bg-card);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 992px) {

    .header-left .search-bar,
    .header-right .main-nav {
        display: none;
    }
}

/* ==========================================================
   TICKETBOX HOMEPAGE (front-page.php)
   ========================================================== */
.ticketbox-home-wrapper {
    background-color: var(--bg-dark);
    width: 100%;
    min-height: 100vh;
    padding-top: 100px;
    /* offset for sticky header */
}

.tb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tb-section {
    padding: 40px 0;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--neo-font-title);
    color: var(--text-primary);
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-all {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.view-all i {
    margin-left: 5px;
    font-size: 0.8rem;
}

/* Top Swiper Banners */
.tb-banner-swiper {
    width: 100%;
    padding-bottom: 40px;
    /* Space for pagination */
    position: relative;
}

.banner-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.banner-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.banner-item:hover img {
    transform: scale(1.02);
}

/* Xem chi tiết button overlay */
.btn-xem-chi-tiet {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--primary-green);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.3s ease;
    z-index: 10;
}

.btn-xem-chi-tiet:hover {
    background: var(--primary-green-hover);
    color: #fff;
}

/* Swiper custom pagination & nav */
.tb-banner-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.tb-banner-swiper .swiper-pagination-bullet-active {
    background: var(--primary-green);
    opacity: 1;
}

.tb-banner-swiper .swiper-button-next,
.tb-banner-swiper .swiper-button-prev {
    color: rgba(255, 255, 255, 0.7);
    transform: scale(0.6);
    transition: 0.3s;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -40px;
    /* Offset because of padding-bottom */
}

.tb-banner-swiper .swiper-button-next:hover,
.tb-banner-swiper .swiper-button-prev:hover {
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
}

.tb-banner-swiper .swiper-button-next:after,
.tb-banner-swiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: 900;
}

/* Standard 4-Column Grid */
.tb-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tb-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.tb-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: #555;
}

.tb-card .card-img {
    height: 180px;
    overflow: hidden;
}

.tb-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tb-card .card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 180px);
}

.event-date {
    font-size: 0.85rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.event-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.tb-card .card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: auto;
}

.event-price {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* Hot Events in Week */
.hot-week-section {
    background: linear-gradient(180deg, #E5E7EB 0%, var(--bg-dark) 100%);
    padding: 60px 0;
}

.top-numbers-grid .top-number-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.top-number-card .card-img {
    height: 140px;
}

.top-number-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.top-number-card:hover .card-img img {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.number-overlay {
    position: absolute;
    bottom: -15px;
    left: -10px;
    font-size: 8rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--primary-green);
    background-image: linear-gradient(to bottom, rgba(0, 191, 105, 0.8), transparent);
    -webkit-background-clip: text;
    background-clip: text;
    z-index: 2;
    line-height: 1;
    font-family: Arial, sans-serif;
}

/* Custom Demo Footer */
.tb-custom-footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px;
    margin-top: 60px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--primary-green);
}

.app-buttons img {
    display: block;
    margin-bottom: 15px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {

    .tb-grid-4,
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Mobile overrides for swiper */
    .tb-banner-swiper .swiper-button-next,
    .tb-banner-swiper .swiper-button-prev {
        display: none;
        /* Hide arrows on mobile for clean look */
    }
}

@media (max-width: 576px) {

    .tb-grid-4,
    .footer-columns {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   Single Event / Single Product Page (V2 Redesign)
   ========================================================== */
.ticketbox-single-event-v2 {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--tb-font);
    padding-bottom: 80px;
}

/* 1. Hero Section Split Grid */
.tb-hero-split-section {
    position: relative;
    width: 100vw;
    margin-top: -80px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    min-height: 550px;
    /* Pull under transparent header */
    padding-top: 120px;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    background: #E5E7EB;
    overflow: hidden;
}

/* Blurred background layer */
.tb-hero-background-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.9);
    transform: scale(1.1);
    z-index: 0;
}

.tb-hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    z-index: 1;
}

.tb-hero-split-grid {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 40px;
    align-items: center;
}

.tb-hero-meta-col {
    flex: 1;
}

.tb-breadcrumbs a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
}

.tb-breadcrumbs i {
    margin-right: 5px;
    font-size: 0.8rem;
}

.tb-hero-categories {
    margin-top: 20px;
    margin-bottom: 15px;
}

.tb-hero-categories a {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.3s;
}

.tb-hero-categories a:hover {
    background: var(--primary-green);
}

.tb-hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    font-family: var(--neo-font-title);
    line-height: 1.25;
    margin-bottom: 25px;
    background: var(--neo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tb-hero-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.tb-attr-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    color: #fff;
}

.tb-attr-item i {
    font-size: 1.2rem;
}

.tb-hero-pricing {
    background: var(--bg-card);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-green);
    padding: 15px 25px;
    border-radius: 0 8px 8px 0;
    display: inline-block;
    margin-bottom: 30px;
}

.tb-hero-pricing .price-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 5px 0;
}

.tb-hero-pricing .price-val {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 15px;
}

.tb-hero-pricing .price-val .woocommerce-Price-amount {
    color: var(--primary-green);
}

.tb-trust-badges {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.tb-trust-badges span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tb-hero-btn-primary {
    display: inline-block;
    background: var(--primary-green);
    color: #fff;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    animation: tbPulse 2s infinite;
}

.tb-btn-affiliate {
    animation: tbPulse 2s infinite;
}

@keyframes tbPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 177, 79, 0.7); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(0, 177, 79, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 177, 79, 0); }
}

.tb-hero-btn-primary:hover {
    background: var(--primary-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 191, 105, 0.2);
}

.tb-hero-image-col {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.tb-hero-featured-img {
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    object-fit: cover;
}

/* Swiper Gallery on Product Hero */
.tb-hero-swiper {
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.tb-hero-swiper .swiper-slide img.tb-hero-featured-img {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.tb-hero-swiper .swiper-button-next,
.tb-hero-swiper .swiper-button-prev {
    color: var(--primary-green);
    background: rgba(255,255,255,0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.tb-hero-swiper .swiper-button-next::after,
.tb-hero-swiper .swiper-button-prev::after {
    font-size: 1rem;
}
.tb-hero-swiper .swiper-pagination-bullet-active {
    background: var(--primary-green);
}


/* 2. Modular Body Content */
.tb-modular-content-section {
    padding-top: 40px;
}

.tb-content-grid {
    display: flex;
    gap: 30px;
}

.tb-content-left { width: 65%; }

.tb-content-right { width: 35%; margin-top: 83px; display: flex; flex-direction: column; gap: 20px; }

/* Module Tabs (Giới Thiệu / Lịch Diễn) */
.tb-module-tabs {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.tb-module-tabs .tab-link {
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    transition: 0.3s;
}

.tb-module-tabs .tab-link.active {
    color: var(--primary-green);
}

.tb-module-tabs .tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-green);
    border-radius: 3px 3px 0 0;
}

/* Base Card Module */
.tb-module-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.module-title-green {
    font-family: var(--neo-font-title);
    color: var(--primary-green);
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.inner-title-gold {
    color: #F59E0B;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
}

.tb-rich-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.tb-rich-text p {
    margin-bottom: 15px;
}

/* Sticky Widget Settings */
.tb-sticky-widget {
    position: sticky;
    top: 100px;
    z-index: 10;
}

/* Lịch diễn Module specifics */
.module-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.module-header-flex .module-title-green {
    margin-bottom: 0;
    border: none;
    padding: 0;
}

.module-actions i {
    color: var(--text-secondary);
    margin-left: 15px;
    font-size: 1.2rem;
    cursor: pointer;
}

.module-actions i:hover {
    color: #fff;
}

/* Organizer Module */
.tb-organizer-flex {
    display: flex;
    gap: 20px;
    align-items: center;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
}

.org-avatar {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.org-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.org-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.org-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.org-info p i {
    color: #F59E0B;
    margin-right: 8px;
}

/* WooCommerce Native Injection styling */
.tb-woo-cart-injection {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
}

.tb-woo-cart-injection .price {
    font-size: 1.6rem;
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.tb-woo-cart-injection form.cart {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ==========================================================
   Amusement Park Date Picker Styling
   ========================================================== */
.tb-ticket-date-picker {
    width: 100%;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-card-hover);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.tb-ticket-date-picker label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.tb-ticket-date-picker input[type="date"] {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.tb-ticket-date-picker input[type="date"]:focus {
    border-color: var(--primary-green);
}

.woocommerce div.product .tb-woo-cart-injection button.single_add_to_cart_button,
.woocommerce-page div.product .tb-woo-cart-injection button.single_add_to_cart_button,
.tb-woo-cart-injection button.button.alt,
.tb-woo-cart-injection button.single_add_to_cart_button {
    background-color: var(--primary-green) !important;
    color: #fff !important;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    flex-grow: 1;
    transition: 0.3s;
}

.woocommerce div.product .tb-woo-cart-injection button.single_add_to_cart_button:hover,
.woocommerce-page div.product .tb-woo-cart-injection button.single_add_to_cart_button:hover,
.tb-woo-cart-injection button.button.alt:hover,
.tb-woo-cart-injection button.single_add_to_cart_button:hover {
    background-color: var(--primary-green-hover) !important;
}

/* ==========================================================
   Advanced Amusement Park Variables UI (Phase 12)
   ========================================================== */
.tb-amusement-app {
    margin-top: 20px;
    padding-bottom: 20px;
}

.tb-ui-label {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* Package Buttons Grid */
.tb-pkg-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.tb-pkg-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    white-space: normal;
}

.tb-pkg-btn:hover {
    border-color: var(--text-secondary);
}

.tb-pkg-btn.active {
    border-color: #f38622;
    /* SunWorld Orange */
    background: rgba(243, 134, 34, 0.1);
    color: #f38622;
    font-weight: 600;
}

/* Multi-Qty Rows */
.tb-qty-rows {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.tb-qty-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.tb-qty-name {
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    height: 100%;
}

/* Force green color for prices per user request */
.tb-qty-price,
.tb-qty-price .amount,
.tb-qty-price .price {
    color: var(--primary-green) !important;
    font-weight: 700;
}

.tb-qty-price {
    text-align: right;
    font-size: 1.25rem;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.tb-qty-price * {
    line-height: normal !important;
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.tb-qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-card);
    overflow: hidden;
    width: max-content;
}

.tb-qty-minus,
.tb-qty-plus {
    background: transparent;
    color: var(--text-primary);
    border: none;
    width: 44px !important;
    height: 44px !important;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.tb-qty-minus:hover,
.tb-qty-plus:hover {
    background: var(--bg-card-hover);
}

.tb-qty-input {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    height: 44px !important;
    background: transparent;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    color: var(--text-primary);
    text-align: center;
    font-weight: 600;
    -moz-appearance: textfield;
    appearance: textfield;
    padding: 0 !important;
}

/* --- Fix Mobile Overflows for Booking App --- */
.tb-amusement-app,
.tb-amusement-app * {
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .tb-date-trigger-btn {
        padding: 12px 15px;
        font-size: 1rem;
    }

    .tb-qty-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "name name"
            "price controls";
        gap: 12px;
        padding: 12px;
    }

    .tb-qty-name {
        grid-area: name;
        font-size: 1rem;
        align-items: flex-start;
    }

    .tb-qty-price {
        grid-area: price;
        justify-content: flex-start;
        text-align: left;
        font-size: 1rem;
    }

    .tb-module-card {
        padding: 15px;
    }

    .tb-qty-controls {
        grid-area: controls;
        justify-self: flex-end;
    }

    .tb-pkg-btn {
        width: 100%;
        text-align: center;
    }
}

.tb-qty-input::-webkit-outer-spin-button,
.tb-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

/* Cart Footer inside Custom App */
.tb-cart-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.tb-cart-total-info {
    display: flex;
    flex-direction: column;
}

.tb-total-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tb-total-tax {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.tb-cart-actions {
    display: flex;
    gap: 10px;
    flex-grow: 1;
    justify-content: flex-end;
}

#btn-add-multi {
    background: #aaa;
    /* Disabled state color */
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: not-allowed;
    transition: 0.3s;
}

#btn-add-multi.active {
    background: #f38622;
    /* SunWorld Orange */
    cursor: pointer;
}

#btn-add-multi.active:hover {
    background: #d87116;
}


/* Mobile Responsive View (Based on screenshot 2) */
@media (max-width: 992px) {
    .tb-hero-split-grid {
        flex-direction: column-reverse;
        /* Usually image is on top for mobile hero */
        text-align: center;
    }

    .tb-hero-attributes {
        justify-content: center;
    }

    .tb-hero-pricing {
        border-left: none;
        border-top: 4px solid var(--primary-green);
        border-radius: 0 0 8px 8px;
    }

    .tb-hero-image-col {
        width: 100%;
        justify-content: center;
    }

    .tb-hero-title {
        font-size: 2.2rem;
    }

    .tb-content-grid {
        display: flex;
        flex-direction: column;
    }

    .tb-content-left, .tb-content-right { 
        display: contents; 
    }
    
    #lich-dien { order: 1; }
    .tb-module-tabs { order: 2; }
    #gioi-thieu { order: 3; }
    #ban-to-chuc { order: 4; }
    #danh-gia { order: 5; }
    #luu-y-ve { order: 6; }
}

/* ==========================================================
   GLOBAL SUBPAGE WRAPPER (Cart, Checkout, Account...)
   ========================================================== */
/* FORCIBLY SHOW OUR CUSTOM HEADER EVEN IF ELEMENTOR HEADER FOOTER BUILDER TRIES TO HIDE IT */
body.turbo-hide-theme-header header.header {
    display: block !important;
}

body:not(.home) .header {
    background: linear-gradient(135deg, #00B14F 0%, #008A3E 100%) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 12px 0 !important;
}

.tb-global-page-wrapper {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: calc(100vh - 100px);
    /* minus footer approx */
    padding-top: 140px;
    /* clear the transparent fixed header */
    padding-bottom: 80px;
    font-family: var(--tb-font);
}

.tb-page-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.tb-page-title {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--neo-font-title);
    color: var(--primary-green);
    margin: 0;
    text-transform: uppercase;
}

.tb-page-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* ----------------------------------------------------------
   WOOCOMMERCE CART DARK MODE OVERRIDES (FORCED SPECIFICITY)
   ---------------------------------------------------------- */
body .woocommerce-cart .woocommerce,
body .woocommerce-checkout .woocommerce,
body .woocommerce-page .woocommerce {
    color: var(--text-primary) !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 40px !important;
}

body .woocommerce-cart form.woocommerce-cart-form {
    flex: 1 1 60% !important;
    min-width: 0 !important;
    /* prevent table blowout */
}

body .woocommerce-cart .cart-collaterals {
    flex: 1 1 30% !important;
    float: none !important;
    width: auto !important;
}

body .woocommerce table.shop_table {
    border: none !important;
    border-collapse: collapse !important;
    width: 100% !important;
    margin-bottom: 30px !important;
    background: transparent !important;
}

body .woocommerce table.shop_table th {
    background-color: var(--bg-card-hover) !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    padding: 15px !important;
    border-radius: 8px 8px 0 0 !important;
    border: none !important;
    text-align: left !important;
}

body .woocommerce table.shop_table td {
    padding: 20px 15px !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-top: none !important;
    background-color: transparent !important;
    vertical-align: middle !important;
    text-align: left !important;
}

body .woocommerce table.shop_table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Product Image Hard Fix */
body .woocommerce table.shop_table td.product-thumbnail {
    width: 120px !important;
    min-width: 120px !important;
}

body .woocommerce table.shop_table td.product-thumbnail img {
    width: 90px !important;
    max-width: 90px !important;
    height: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}

/* Product names */
.woocommerce table.shop_table .product-name a {
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    font-size: 1.05rem;
}

.woocommerce table.shop_table .product-name a:hover {
    color: var(--primary-green);
}

/* Prices */
.woocommerce table.shop_table .product-price,
.woocommerce table.shop_table .product-subtotal {
    color: var(--primary-green) !important;
    font-weight: 700;
}

/* Remove absolute button styling from qty */
.woocommerce .quantity .qty {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px;
    width: 70px;
    text-align: center;
}

/* Cart Buttons */
.woocommerce .cart .button,
.woocommerce .cart input.button {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.woocommerce .cart .button:hover,
.woocommerce .cart input.button:hover {
    background-color: var(--bg-card-hover);
    color: var(--text-primary);
}

/* Checkout Button Hard Fix */
body .woocommerce a.button.alt,
body .woocommerce button.button.alt,
body .woocommerce input.button.alt,
body .woocommerce #respond input#submit.alt,
body .woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background-color: var(--primary-green) !important;
    color: #fff !important;
    padding: 15px 30px !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-transform: none !important;
    transition: 0.3s !important;
    display: block !important;
    text-align: center !important;
    border: none !important;
}

body .woocommerce a.button.alt:hover,
body .woocommerce button.button.alt:hover,
body .woocommerce input.button.alt:hover,
body .woocommerce #respond input#submit.alt:hover,
body .woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: var(--primary-green-hover) !important;
    transform: translateY(-2px) !important;
    color: #fff !important;
}

/* Cart Totals Box */
.woocommerce .cart-collaterals .cart_totals {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 100%;
}

.woocommerce .cart-collaterals .cart_totals h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.woocommerce .cart-collaterals .cart_totals table {
    width: 100%;
    margin-bottom: 25px;
}

.woocommerce .cart-collaterals .cart_totals table th {
    padding: 15px 0;
    color: var(--text-secondary);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

.woocommerce .cart-collaterals .cart_totals table td {
    padding: 15px 0;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.woocommerce .cart-collaterals .cart_totals table tr.order-total td strong {
    color: var(--primary-green);
    font-size: 1.3rem;
}

/* Input Fields (Coupons) */
.woocommerce .cart .coupon input.input-text {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 15px;
    border-radius: 8px;
}

/* Warnings and Messages */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-top-color: var(--primary-green);
    border-radius: 8px;
}

.woocommerce-message::before {
    color: var(--primary-green);
}

/* --- PHASE 14: DATE FIRST & CUSTOM CALENDAR UI --- */

.tb-date-section {
    margin-bottom: 25px;
}

.tb-date-trigger-btn {
    width: 100%;
    padding: 15px 20px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.tb-date-trigger-btn:hover {
    border-color: var(--primary-green);
    background: #fcfcfc;
}

.tb-date-trigger-btn.selected {
    border-color: var(--primary-green);
    background: #f0fdf4;
    color: var(--primary-green);
}

/* Calendar Modal Overlay */
.tb-calendar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Calendar Modal Box */
.tb-calendar-modal {
    width: 100%;
    max-width: 380px;
    background: var(--primary-green);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

/* Header */
.tb-cal-top-header {
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 20px 15px;
    letter-spacing: 0.5px;
}

/* Inner Body Box */
.tb-cal-body {
    background: #fff;
    margin: 0 10px 10px 10px;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

/* Nav */
.tb-cal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tb-cal-nav button {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #333;
    padding: 5px 10px;
}

.tb-cal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
}

/* Weekdays */
.tb-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 10px;
}

/* Grid Days */
.tb-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px 2px;
}

.tb-cal-day {
    background: none;
    border: none;
    height: 38px;
    width: 38px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

.tb-cal-day:hover:not(.disabled) {
    background: #ffe8d6;
    /* Light Orange as requested */
    color: #d87116;
    /* Darker orange text on hover */
}

.tb-cal-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.tb-cal-day.selected {
    background: var(--primary-green);
    color: #fff !important;
}

/* Bottom Confirm Button */
.tb-cal-footer {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.tb-cal-confirm-btn {
    background: #FF2B6D;
    /* Ticketbox Pink/Red */
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.tb-cal-confirm-btn:hover {
    background: #e0245f;
}

/* ==========================================================================
   Shop Page (Product Archive) Styles
   ========================================================================== */
.tb-page-title {
    margin-bottom: 25px;
}

.tb-shop-top-bar {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 30px !important;
}

.woocommerce-result-count {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0 !important;
    float: none !important;
}

form.woocommerce-ordering {
    margin: 0 !important;
    float: none !important;
}

form.woocommerce-ordering select {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-width: 220px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

form.woocommerce-ordering select:focus {
    border-color: var(--primary-green);
}

/* Pagination */
.tb-shop-pagination nav.woocommerce-pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border: none;
}

.tb-shop-pagination nav.woocommerce-pagination ul li {
    margin: 0 5px;
    border: none;
}

.tb-shop-pagination nav.woocommerce-pagination ul li a,
.tb-shop-pagination nav.woocommerce-pagination ul li span.current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
    border: 1px solid var(--border-color);
    padding: 0 15px;
}

.tb-shop-pagination nav.woocommerce-pagination ul li a:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.tb-shop-pagination nav.woocommerce-pagination ul li span.current {
    background-color: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
}

/* ==========================================================================
   Checkout Page Styles
   ========================================================================== */
.woocommerce-checkout .tb-page-title {
    margin-bottom: 30px;
}

/* Rename "Chi tiết thanh toán" via CSS */
.woocommerce-billing-fields h3 {
    visibility: hidden;
    position: relative;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.woocommerce-billing-fields h3::after {
    content: "Thông tin cá nhân";
    visibility: visible;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Checkout Layout Structure */
form.checkout.woocommerce-checkout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

form.checkout.woocommerce-checkout::before,
form.checkout.woocommerce-checkout::after {
    display: none;
}

#customer_details {
    flex: 1 1 calc(60% - 20px);
    width: 100%;
    float: none !important;
}

#customer_details .col-1 {
    width: 100% !important;
    float: none !important;
}

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

.woocommerce-additional-fields {
    display: none !important;
}

/* 3-Column Grid Container */
.woocommerce-billing-fields__field-wrapper {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 15px;
}

.woocommerce form .form-row.tb-checkout-col-3,
.woocommerce form .form-row.tb-checkout-full {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
}

.tb-checkout-col-3 {
    grid-column: span 1;
}

.tb-checkout-full {
    grid-column: span 3;
}

/* Inputs Label & Fields */
.woocommerce-billing-fields__field-wrapper label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.woocommerce-billing-fields__field-wrapper input[type="text"],
.woocommerce-billing-fields__field-wrapper input[type="email"],
.woocommerce-billing-fields__field-wrapper input[type="tel"] {
    background-color: var(--bg-card-hover) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    padding: 12px 15px !important;
    border-radius: 6px !important;
    font-size: 1rem !important;
    width: 100% !important;
    transition: 0.3s !important;
    box-shadow: none !important;
}

.woocommerce-billing-fields__field-wrapper input:focus {
    border-color: var(--primary-green) !important;
    outline: none !important;
}

/* Required Asterisk & Optional Text */
.woocommerce-billing-fields__field-wrapper label abbr.required {
    color: var(--primary-green);
    text-decoration: none;
    border: none;
}

.woocommerce-billing-fields__field-wrapper label .optional {
    display: none !important;
}

/* Checkbox Style */
.tb-vat-checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.tb-vat-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Order Review / Summary Panel */
#order_review_heading {
    display: none;
}

.woocommerce-checkout-review-order {
    flex: 1 1 calc(40% - 20px);
    width: 100%;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.woocommerce table.shop_table {
    border-collapse: separate;
    border-radius: 8px;
    border: none;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    border-top: 1px solid var(--border-color);
    padding: 15px 10px;
    color: var(--text-primary);
}

.woocommerce table.shop_table thead th {
    border-top: none;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.85rem;
}

.woocommerce table.shop_table tfoot th {
    color: var(--text-secondary);
    font-weight: normal;
}

.woocommerce table.shop_table tbody td.product-name {
    color: var(--text-primary);
    font-weight: 600;
}

.woocommerce table.shop_table .product-image,
.woocommerce table.shop_table .product-thumbnail {
    display: none !important;
    /* Ensure no image is shown */
}

/* Secure checkout button styling */
.woocommerce #payment #place_order {
    background-color: var(--primary-green);
    color: #fff;
    font-weight: 700;
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    margin-top: 20px;
}

.woocommerce #payment #place_order:hover {
    background-color: var(--primary-green-hover);
    transform: translateY(-2px);
}

.woocommerce #payment {
    background: transparent;
    border-radius: 0;
}

.woocommerce #payment div.payment_box {
    background-color: var(--bg-card-hover);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.woocommerce #payment div.payment_box::before {
    border-bottom-color: var(--border-color);
}

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

    .tb-checkout-col-3,
    .tb-checkout-full {
        grid-column: span 1;
    }

    #customer_details,
    .woocommerce-checkout-review-order {
        flex: 1 1 100%;
    }
}

/* Promo Code Box Styling */
.woocommerce-form-coupon-toggle .woocommerce-info {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top-color: var(--primary-green);
    color: var(--text-primary);
    border-radius: 8px;
}

.woocommerce-form-coupon-toggle .woocommerce-info::before {
    color: var(--primary-green);
}

.woocommerce-form-coupon-toggle .showcoupon {
    color: var(--primary-green);
    font-weight: 600;
}

.woocommerce-form-coupon-toggle .showcoupon:hover {
    color: var(--primary-green-hover);
    text-decoration: underline;
}

form.checkout_coupon {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

form.checkout_coupon p {
    color: var(--text-secondary);
}

form.checkout_coupon input.input-text {
    background-color: var(--bg-card-hover) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    padding: 12px 15px !important;
    border-radius: 6px !important;
    width: 100%;
}

form.checkout_coupon button.button {
    background-color: var(--border-color) !important;
    color: var(--text-primary) !important;
    padding: 12px 25px !important;
    border-radius: 6px !important;
    transition: 0.3s !important;
    margin-top: 10px;
}

form.checkout_coupon button.button:hover {
    background-color: var(--primary-green) !important;
    color: #fff !important;
}

/* Terms & Conditions Checkbox Validation Styling */
.tb-terms-row {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.tb-terms-row label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.tb-terms-row input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.tb-terms-row abbr.required {
    color: var(--primary-green);
    text-decoration: none;
    border: none;
    margin-left: 4px;
}

/* Adjust Flex Layout to move Payment under Customer Details */
form.checkout.woocommerce-checkout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

#customer_details {
    order: 1;
}

.woocommerce-checkout-review-order {
    order: 2;
}

#payment {
    order: 3;
    flex: 1 1 calc(60% - 20px);
    margin-top: -20px;
}

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

    .tb-checkout-col-3,
    .tb-checkout-full {
        grid-column: span 1;
    }

    #customer_details,
    .woocommerce-checkout-review-order,
    #payment {
        flex: 1 1 100%;
        margin-top: 0;
    }
}

/* ==========================================================================
   Typography & Checkout Terms Adjustments
   ========================================================================== */

/* Unbold Cart Item Variations */
.woocommerce table.shop_table .variation dt,
.woocommerce table.shop_table .variation dd,
.woocommerce table.shop_table .variation dd p {
    font-weight: normal !important;
}

/* Light Orange Date Highlight */
.tb-highlight-date {
    color: #FFB347 !important;
    font-weight: 600;
}

/* Terms Notes Box Styling */
.tb-terms-container {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.tb-terms-notices {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.tb-terms-notices strong {
    color: var(--primary-green);
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}

.tb-terms-row {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
}

/* ==========================================================================
   Homepage Refinements (Highlights & Portraits)
   ========================================================================== */

/* Highlighted Section Background */
.tb-highlighted-section {
    background: linear-gradient(135deg, rgba(82, 190, 107, 0.1) 0%, rgba(20, 20, 20, 0) 100%);
    padding: 60px 0;
    margin-top: 40px;
    margin-bottom: 0px;
    /* Fix overlap issue */
    border-top: 1px solid rgba(82, 190, 107, 0.15);
    border-bottom: 1px solid rgba(82, 190, 107, 0.15);
    border-radius: 12px;
    position: relative;
    z-index: 10;
}

/* Portrait Posters for Hot Events */
.top-number-card .card-img {
    padding-bottom: 140% !important;
    /* 5:7 portrait aspect ratio */
    border-radius: 8px;
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

/* Force WooCommerce / SVG Placeholders to fill the container */
.top-number-card .card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
}

/* ==========================================================================
   Single Blog Post Styling
   ========================================================================== */

.tb-single-post .tb-container {
    padding-top: 40px;
    padding-bottom: 80px;
}

.tb-post-container-center {
    max-width: 800px;
    margin: 0 auto;
}

/* Header & Meta */
.tb-post-header {
    text-align: center;
    margin-bottom: 40px;
}

.tb-post-badge {
    margin-bottom: 20px;
}

.tb-post-badge a {
    display: inline-block;
    background: rgba(0, 191, 105, 0.15);
    color: var(--primary-green);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 191, 105, 0.3);
}

.tb-post-badge a:hover {
    background: var(--primary-green);
    color: #fff;
}

.tb-post-title {
    font-size: 2.8rem;
    line-height: 1.3;
    margin-bottom: 20px;
    font-family: var(--neo-font-title);
    background: var(--neo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.tb-post-meta {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.meta-divider {
    opacity: 0.5;
}

/* Thumbnail */
.tb-post-thumbnail {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.tb-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content */
.tb-post-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.tb-post-content p {
    margin-bottom: 25px;
}

.tb-post-content h2,
.tb-post-content h3,
.tb-post-content h4 {
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.tb-post-content a {
    color: var(--primary-green);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.tb-post-content a:hover {
    border-bottom-color: var(--primary-green);
}

.tb-post-content blockquote {
    border-left: 4px solid var(--primary-green);
    padding-left: 20px;
    margin-left: 0;
    font-style: italic;
    color: var(--text-secondary);
    background: var(--bg-card-hover);
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

/* Comments Section Override */
.post-comments-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.post-comments-section .comments-title,
.post-comments-section .comment-reply-title {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.post-comments-section .comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-comments-section .comment-body {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.post-comments-section .comment-meta {
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.post-comments-section .comment-meta img.avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.post-comments-section .comment-meta a {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
}

.post-comments-section .comment-content p {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
    margin-top: 10px;
}

/* Comment Form */
.post-comments-section .comment-respond {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: 40px;
}

.post-comments-section .comment-respond textarea,
.post-comments-section .comment-respond input[type="text"],
.post-comments-section .comment-respond input[type="email"],
.post-comments-section .comment-respond input[type="url"] {
    width: 100%;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 15px;
    border-radius: 6px;
    font-family: var(--tb-font);
    margin-bottom: 20px;
}

.post-comments-section .comment-respond textarea:focus,
.post-comments-section .comment-respond input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(0, 191, 105, 0.2);
}

.post-comments-section .comment-respond .submit {
    background: var(--primary-green) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
}

.post-comments-section .comment-respond .submit:hover {
    background: var(--primary-green-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 191, 105, 0.2);
}

.post-comments-section .logged-in-as {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.post-comments-section .logged-in-as a {
    color: var(--primary-green);
    text-decoration: none;
}

/* ==========================================================================
   26. WOOCOMMERCE MY ACCOUNT DARK REDESIGN
   ========================================================================== */

/* Main Container Layout: 2 Columns */
.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

/* Left Sidebar Menu */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 280px;
    flex-shrink: 0;
}

/* Right Content Area */
.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0;
}

/* User Profile Header in Sidebar */
.user-profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.user-profile-header img.profile-avatar {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.profile-meta {
    display: flex;
    flex-direction: column;
}

.profile-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.profile-name {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-top: 5px;
}

/* Sidebar Navigation Menu */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin-bottom: 10px;
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: 0.3s ease;
    border-radius: 8px;
    text-decoration: none;
}

.woocommerce-MyAccount-navigation ul li a i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.woocommerce-MyAccount-navigation ul li.is-active>a,
.woocommerce-MyAccount-navigation ul li a:hover {
    color: var(--primary-green);
}

/* Sub-menu (Thông tin tài khoản) */
.woocommerce-MyAccount-navigation ul .sub-menu {
    padding-left: 45px;
    margin-top: 5px;
}

.woocommerce-MyAccount-navigation ul .sub-menu a {
    padding: 8px 0;
    font-size: 0.95rem;
}

.woocommerce-MyAccount-navigation ul .sub-menu a.active {
    color: var(--primary-green);
}

/* Account Content Wrapper & Headings */
.woocommerce-MyAccount-content h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.woocommerce-EditAccountForm {
    max-width: 600px;
    margin: 0 auto;
    /* Center the form in the right pane */
}

/* Avatar Upload Section */
.account-avatar-wrapper {
    margin-bottom: 40px;
}

.avatar-circle {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    background: var(--bg-card);
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-upload-icon {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--primary-green);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg-card);
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.3s;
}

.avatar-upload-icon:hover {
    background: var(--primary-green-hover);
    transform: scale(1.1);
}

.avatar-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Custom Form Fields */
.account-form-fields .form-row {
    margin-bottom: 25px;
    display: block;
    width: 100%;
}

.account-form-fields label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.account-form-fields .input-text,
.account-form-fields select {
    width: 100%;
    background: var(--bg-card-hover) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    padding: 14px 20px !important;
    border-radius: 8px !important;
    font-family: var(--tb-font);
    font-size: 1rem;
    transition: 0.3s;
}

.account-form-fields .input-text:focus,
.account-form-fields select:focus {
    border-color: var(--primary-green) !important;
    box-shadow: 0 0 0 2px rgba(0, 191, 105, 0.2) !important;
    outline: none;
}

.account-form-fields span em {
    display: inline-block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: normal;
    margin-top: 8px;
}

/* Special Inputs: Phone */
.phone-input-group {
    display: flex;
    align-items: center;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.phone-prefix {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    height: 100%;
    min-height: 50px;
    cursor: pointer;
}

.phone-prefix i {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.phone-input-group .input-text {
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    flex: 1;
}

.phone-input-group .input-text:focus {
    box-shadow: none !important;
}

.phone-input-group:focus-within {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(0, 191, 105, 0.2);
}

.clear-input {
    color: var(--text-secondary);
    padding: 0 15px;
    cursor: pointer;
}

/* Special Inputs: Email */
.email-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.email-input-group .input-text {
    padding-right: 45px !important;
    background: var(--bg-card) !important;
    color: var(--text-secondary) !important;
}

.email-input-group i {
    position: absolute;
    right: 15px;
    font-size: 1.2rem;
}

.text-green {
    color: var(--primary-green);
}

/* Gender Radio Buttons */
.gender-options {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

.radio-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal !important;
    color: var(--text-secondary) !important;
}

.radio-label input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #555;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    position: relative;
    outline: none;
    transition: 0.2s;
    margin: 0;
}

.radio-label input[type="radio"]:checked {
    border-color: var(--primary-green);
}

.radio-label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary-green);
    border-radius: 50%;
}

/* Gender Radio Buttons */
fieldset.tixbox-gender-wrap {
    border: none;
    padding: 0;
    margin-top: 15px;
}

fieldset.tixbox-gender-wrap legend {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.radio-label input[type="radio"]:checked+span {
    color: var(--text-primary);
    font-weight: 600;
}

/* Submit Button */
.woocommerce-EditAccountForm .button {
    width: 100%;
    margin-top: 30px;
    height: 54px;
    font-size: 1.1rem;
    border-radius: 8px !important;
    background-color: var(--primary-green) !important;
    color: #fff !important;
    border: none !important;
    transition: 0.3s;
}

.woocommerce-EditAccountForm .button:hover {
    background-color: var(--primary-green-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 191, 105, 0.2);
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100%;
        border-bottom: 1px solid #333;
        padding-bottom: 20px;
    }

    .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .woocommerce-MyAccount-navigation ul li {
        margin-bottom: 0;
    }
}

/* ==========================================================================
   27. BLOG ARCHIVE STYLING
   ========================================================================== */

.blog-card {
    transition: 0.3s ease;
    overflow: hidden;
}

.blog-card a {
    text-decoration: none;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.blog-card .card-img {
    overflow: hidden;
}

.blog-card .card-img img {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-card:hover .card-img img {
    transform: scale(1.08);
}

.tb-pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 0 5px;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 600;
}

.tb-pagination .page-numbers:hover,
.tb-pagination .page-numbers.current {
    background: var(--primary-green);
    color: #fff;
}

/* WooCommerce Edit Account Fixes */
.woocommerce-edit-account fieldset {
    border: none !important;
    padding: 0 !important;
}

.woocommerce-edit-account .woocommerce-Button.button.btn-primary {
    background-color: var(--primary-green) !important;
    color: #fff !important;
}

/* ==========================================================================
   28. GLOBAL TYPOGRAPHY FIXES (Vietnamese Support)
   ========================================================================== */
.ticketbox-single-event-v2,
.ticketbox-single-event-v2 h1,
.ticketbox-single-event-v2 h2,
.ticketbox-single-event-v2 h3,
body.single-product {
    font-family: var(--tb-font) !important;
}

/* ==========================================================================
   29. MOBILE NAVIGATION OVERLAY (Off-Canvas Menu)
   ========================================================================== */

/* Hide Mobile Elements on Desktop by Default */
.tb-mobile-menu-toggle,
.tb-mobile-menu-close,
.tb-mobile-overlay {
    display: none;
}

/* Mobile Responsive Adjustments */
@media (max-width: 991px) {

    /* Show Hamburger Icon */
    .tb-mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px;
        order: 2;
        /* Move to the right of the cart */
    }

    /* Reverse order of the cart icon so it sits on the left of the hamburger */
    .header-icons {
        order: 1;
        margin-right: 15px;
    }

    /* Hide standard nav structures on mobile */
    .header-right .main-nav,
    .header-right .user-actions {
        display: none;
    }

    /* Off-Canvas Navigation Wrapper */
    .tb-nav-wrapper {
        position: fixed;
        top: 0;
        right: -300px;
        /* Hidden off-screen by default */
        width: 300px;
        height: 100vh;
        background: var(--bg-card);
        z-index: 10000;
        padding: 80px 30px 30px 30px;
        display: flex;
        flex-direction: column;
        gap: 30px;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.05);
        transition: right 0.3s ease-in-out;
    }

    /* Active State for Slide-in */
    .tb-nav-wrapper.active {
        right: 0;
    }

    /* Close Button */
    .tb-mobile-menu-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: transparent;
        border: none;
        color: var(--text-primary);
        font-size: 1.8rem;
        cursor: pointer;
    }

    .tb-mobile-menu-close:hover {
        color: var(--primary-green);
    }

    /* Show Mobile Nav Links */
    .tb-nav-wrapper .main-nav {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .tb-nav-wrapper .main-nav a {
        font-size: 1.2rem;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-primary);
        text-decoration: none;
    }

    .tb-nav-wrapper .main-nav a:hover,
    .tb-nav-wrapper .main-nav a.active {
        color: var(--primary-green);
        border-bottom-color: var(--primary-green);
    }

    /* Show Mobile User Actions */
    .tb-nav-wrapper .user-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }

    .tb-nav-wrapper .user-actions .btn {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 1rem;
    }

    /* Background Blur Overlay */
    .tb-mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
        z-index: 9990;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .tb-mobile-overlay.active {
        display: block;
        opacity: 1;
    }
}

/* --- PHASE 35: WOOCOMMERCE REVIEWS & RATING STYLING (DARK MODE) --- */

.tb-hero-rating .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    line-height: 1.2em;
}

.tb-hero-rating .woocommerce-product-rating p,
.tb-hero-rating .woocommerce-product-rating div {
    margin: 0;
}

.tb-hero-rating .star-rating {
    float: left;
    overflow: hidden;
    position: relative;
    height: 1.2em;
    line-height: 1.2em;
    font-size: 1.1em;
    width: 6.2em;
    font-family: star;
}

.tb-hero-rating .star-rating::before {
    content: "\73\73\73\73\73";
    color: rgba(255, 255, 255, 0.2);
    float: left;
    top: 0;
    left: 0;
    position: absolute;
}

.tb-hero-rating .star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

.tb-hero-rating .star-rating span::before {
    content: "\53\53\53\53\53";
    top: 0;
    position: absolute;
    left: 0;
    color: #ffc107;
    /* Bright Yellow Stars */
}

.tb-hero-rating .woocommerce-review-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
    margin-top: 2px;
}

.tb-hero-rating .woocommerce-review-link:hover {
    color: var(--primary-green);
}

/* Reviews Wrapper inside Module */
.tb-reviews-wrapper {
    margin-top: 15px;
    color: var(--text-primary);
}

.tb-reviews-wrapper h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* List of Comments */
.tb-reviews-wrapper ol.commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.tb-reviews-wrapper ol.commentlist li.review {
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.tb-reviews-wrapper .comment_container {
    display: flex;
    gap: 15px;
}

.tb-reviews-wrapper .comment_container img.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.tb-reviews-wrapper .comment-text {
    flex: 1;
    border: none !important;
    padding: 0 !important;
}

.tb-reviews-wrapper .comment-text .meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.tb-reviews-wrapper .comment-text .meta strong {
    color: var(--text-primary);
    font-size: 1rem;
    margin-right: 5px;
}

.tb-reviews-wrapper .comment-text .description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.tb-reviews-wrapper .star-rating {
    float: right;
    color: #ffc107;
    font-size: 0.9rem;
}

/* Review Form */
.tb-reviews-wrapper #review_form_wrapper {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.tb-reviews-wrapper .comment-reply-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: block;
    color: var(--primary-green);
}

.tb-reviews-wrapper .comment-form-rating {
    margin-bottom: 15px;
}

.tb-reviews-wrapper .comment-form-rating label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.tb-reviews-wrapper .stars {
    display: inline-block;
}

.tb-reviews-wrapper .stars a {
    color: var(--border-color);
    text-decoration: none;
    font-size: 1.2rem;
}

.tb-reviews-wrapper .stars a.active,
.tb-reviews-wrapper .stars a:hover {
    color: #ffc107;
}

.tb-reviews-wrapper .comment-form-comment textarea,
.tb-reviews-wrapper .comment-form-author input,
.tb-reviews-wrapper .comment-form-email input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-family: var(--tb-font);
}

.tb-reviews-wrapper .comment-form-comment textarea:focus,
.tb-reviews-wrapper .comment-form-author input:focus,
.tb-reviews-wrapper .comment-form-email input:focus {
    border-color: var(--primary-green);
    outline: none;
}

.tb-reviews-wrapper .form-submit input.submit,
.tb-reviews-wrapper #review_form_wrapper #submit {
    background: var(--primary-green) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 25px !important;
    border-radius: 6px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

.tb-reviews-wrapper .form-submit input.submit:hover,
.tb-reviews-wrapper #review_form_wrapper #submit:hover {
    background: #009a54 !important;
}

/* Sticky Mobile Booking Bar */
.tb-mobile-sticky-bar {
    display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
    .tb-mobile-sticky-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 9999;
        padding: 10px 15px;
        align-items: center;
        justify-content: space-between;
    }
    .tb-mobile-sticky-bar .sticky-price-col {
        display: flex;
        flex-direction: column;
    }
    .tb-mobile-sticky-bar .sticky-label {
        font-size: 0.8rem;
        color: var(--text-secondary);
    }
    .tb-mobile-sticky-bar .sticky-price {
        font-size: 1.2rem;
        font-weight: bold;
        color: var(--primary-green);
    }
    .tb-mobile-sticky-bar .sticky-btn-col {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }
    .tb-btn-affiliate-sticky {
        background: var(--primary-green);
        color: #fff;
        padding: 10px 20px;
        border-radius: 8px;
        font-weight: bold;
        text-decoration: none;
        animation: tbPulse 2s infinite;
    }
}
/* --- NEW BOOKING UI REDESIGN --- */
.tb-booking-card-wrapper {
    background: transparent;
    padding: 0;
    margin-top: -25px;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.tb-booking-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.tb-booking-section {
    margin-bottom: 15px;
}
.tb-booking-section-title {
    font-size: 0.9rem;
    color: #444;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Date Row */
.tb-date-selection-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.tb-date-input-wrap {
    border: 1px solid #ccc;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    color: #333;
}
.tb-quick-dates {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.tb-quick-date-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 6px 12px;
    border-radius: 6px;
    color: #333;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.tb-quick-date-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}
.tb-quick-date-btn.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: #fff;
}

/* Packages */
.tb-pkg-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.tb-pkg-pill {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 8px 15px;
    border-radius: 8px;
    color: #333;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}
.tb-pkg-pill:hover {
    border-color: var(--primary-green);
}
.tb-pkg-pill.active {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: rgba(33, 195, 119, 0.08);
}

/* Quantities */
.tb-qty-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tb-qty-row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 0;
}

.tb-qty-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    padding-right: 10px;
}
.tb-qty-name-col {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}
.tb-qty-price-col {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 0.95rem;
}
.tb-qty-ctrl-col {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.tb-ctrl-btn {
    background: #ff7343;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    flex: 0 0 32px !important;
    border-radius: 50% !important;
    font-size: 1.2rem !important;
    cursor: pointer;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}
.tb-ctrl-btn:hover {
    opacity: 0.85;
}
.tb-ctrl-btn.tb-qty-minus.disabled {
    background: #ffc1a8;
    cursor: default;
}

.tb-ctrl-input {
    width: 35px !important;
    height: 32px !important;
    border: none !important;
    text-align: center !important;
    font-weight: 600 !important;
    color: #333 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    -moz-appearance: textfield;
}

/* Footer */
.tb-booking-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 15px;
}
.tb-footer-lbl {
    font-size: 0.9rem;
    color: #555;
}
.tb-footer-total {
    color: var(--primary-green);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 5px;
}
.tb-footer-tax {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}
.tb-footer-actions {
    display: flex;
    gap: 15px;
}
.tb-btn-add-cart, .tb-btn-buy-now {
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
    color: #fff;
}
.tb-btn-add-cart {
    background: #f9c03b;
}
.tb-btn-buy-now {
    background: var(--primary-green);
}
.tb-btn-add-cart:hover, .tb-btn-buy-now:hover {
    opacity: 0.9;
}
.tb-btn-buy-now.loading, .tb-btn-add-cart.loading {
    opacity: 0.7;
    pointer-events: none;
}











/* Vouchers UI */
.tb-vouchers-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.tb-vouchers-container::-webkit-scrollbar {
    display: none;
}
.tb-voucher-item {
    display: flex;
    align-items: center;
    background: #f0fdf4;
    border: 1px dashed var(--primary-green);
    border-radius: 8px;
    padding: 10px 12px;
    min-width: 200px;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.tb-voucher-icon {
    color: var(--primary-green);
    font-size: 1.4rem;
}
.tb-voucher-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.tb-voucher-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-green);
}
.tb-voucher-desc {
    font-size: 0.75rem;
    color: #555;
    margin-top: 2px;
}
.tb-voucher-action {
    display: flex;
    align-items: center;
}
.tb-btn-copy-voucher {
    background: var(--primary-green);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}
.tb-btn-copy-voucher:hover {
    opacity: 0.85;
}


/* Mobile Fixes for Booking UI */
@media (max-width: 768px) {
    /* Hide the redundant primary button on mobile since we have the sticky bar */
    .tb-hero-btn-primary {
        display: none !important;
    }
    /* Prevent sticky bar from overlapping content */
    .ticketbox-single-event-v2 {
        padding-bottom: 80px;
    }
    .tb-footer-actions {
        gap: 8px;
    }
    .tb-footer-actions button {
        font-size: 0.95rem;
        padding: 12px 5px;
    }
    /* Prevent cut off on quantity buttons */
    .tb-booking-card-wrapper {
        padding: 0 4px;
        overflow-x: hidden;
    }
    .tb-qty-ctrl-col {
        gap: 8px;
    }
    .tb-ctrl-btn {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
        flex: 0 0 30px !important;
    }
    .tb-ctrl-input {
        width: 30px !important;
    }
}


/* Mobile Hero Overflows and Headings Fixes */
@media (max-width: 991px) {
    .tb-hero-split-section {
        width: 100vw !important;
        max-width: 100vw !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .tb-hero-title {
        font-size: 1.5rem !important;
        word-wrap: break-word;
        word-break: break-word;
        padding: 0 10px;
    }
}

/* Headings: T�y ch?n v�, Gi?i thi?u, Ban t? ch?c, ��nh gi� */
.tb-content-left h2,
.tb-content-left h3,
.tb-content-left .elementor-heading-title,
.module-title-green {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}


/* Mobile Hero Fixes for Slider and Titles */
@media (max-width: 991px) {
    .tb-hero-image-col {
        width: 100% !important;
        max-width: 100vw;
        overflow: hidden;
    }
    .tb-hero-swiper {
        width: 100% !important;
        max-width: 100% !important;
    }
    .tb-hero-featured-img {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 8px !important;
    }
}

/* Force headings to not be ALL CAPS, medium weight, smaller size */
.tb-content-left h1, .tb-content-left h1 *,
.tb-content-left h2, .tb-content-left h2 *,
.tb-content-left h3, .tb-content-left h3 *,
.tb-content-left h4, .tb-content-left h4 *,
.tb-content-left .elementor-heading-title, .tb-content-left .elementor-heading-title *,
.module-title-green, .module-title-green * {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Tab titles if Elementor tabs are used */
.elementor-tab-title, .elementor-tab-title * {
    text-transform: none !important;
    font-weight: 600 !important;
}


/* Mobile Hero Extreme Overflow Fixes */
@media (max-width: 991px) {
    .tb-hero-split-section {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .tb-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .tb-hero-split-grid {
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    .tb-hero-meta-col, .tb-hero-image-col {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .tb-hero-pricing {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}


/* Mobile Hero Alignments and Pricing Fixes */
@media (max-width: 991px) {
    /* Align all elements in meta column centrally and evenly */
    .tb-hero-meta-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    
    .tb-hero-meta-col > * {
        margin-bottom: 0 !important;
    }

    .tb-hero-title {
        font-size: 1.6rem !important;
        line-height: 1.3;
    }

    .tb-hero-rating {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 5px;
    }

    .woocommerce-product-rating {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        margin-bottom: 0 !important;
    }

    .tb-hero-attributes {
        display: flex;
        flex-direction: column; /* Stack date and location */
        align-items: center;
        gap: 8px;
    }

    /* Fix Pricing box edges and text size */
    .tb-hero-pricing {
        width: 100% !important;
        padding: 15px !important;
        text-align: center;
        border-radius: 8px !important;
        margin-top: 10px;
    }
    
    .tb-hero-pricing .price-label {
        margin-bottom: 5px !important;
    }

    .tb-hero-pricing .price-val {
        font-size: 1.3rem !important;
        justify-content: center;
        flex-wrap: wrap; /* Allow price to wrap if too long */
        gap: 5px !important;
    }

    .tb-hero-pricing .price-val .woocommerce-Price-amount {
        font-size: 1.3rem !important;
    }
    
    .tb-trust-badges {
        align-items: center;
    }
}


/* --- NEW STICKY BOTTOM BAR --- */
.tb-sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.08);
    z-index: 9999;
    padding: 10px 20px;
    border-top: 1px solid #eaeaea;
}
.tb-sticky-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.tb-sticky-price-col {
    display: flex;
    flex-direction: column;
    min-width: 100px;
}
.tb-sticky-price-col .tb-sticky-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 2px;
}
.tb-sticky-price-col .tb-sticky-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green);
}
.tb-sticky-price-col .tb-sticky-price .woocommerce-Price-amount {
    color: var(--primary-green);
}
.tb-sticky-vouchers {
    flex: 1;
    overflow: hidden;
}
.tb-sticky-vouchers-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.tb-sticky-vouchers-scroll::-webkit-scrollbar {
    display: none;
}
.tb-sticky-voucher-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f9f9f9;
    border: 1px dashed var(--primary-green);
    color: #333;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}
.tb-sticky-voucher-item button {
    background: var(--primary-green);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.75rem;
    cursor: pointer;
}
.tb-sticky-btn-col {
    min-width: 160px;
}
.tb-sticky-btn-col .tb-btn-affiliate-sticky {
    display: block;
    width: 100%;
    background: var(--primary-green);
    color: #fff;
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: 0.3s;
}
.tb-sticky-btn-col .tb-btn-affiliate-sticky:hover {
    background: #007d40;
    color: #fff;
}
@media (max-width: 768px) {
    .tb-sticky-bottom-bar {
        padding: 10px 15px;
    }
    .tb-sticky-bar-inner {
        flex-wrap: wrap;
        gap: 8px;
    }
    .tb-sticky-price-col {
        order: 1;
    }
    .tb-sticky-btn-col {
        order: 2;
        min-width: auto;
        flex: 1;
    }
    .tb-sticky-btn-col .tb-btn-affiliate-sticky {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    .tb-sticky-vouchers {
        order: 3;
        width: 100%;
        margin-top: 5px;
    }
    .tb-sticky-voucher-item {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}


/* Fix alignments */
.woocommerce-product-rating .star-rating {
    margin: 0 !important;
    display: flex;
    align-items: center;
}
.woocommerce-product-rating .woocommerce-review-link {
    line-height: 1;
    display: flex;
    align-items: center;
    margin-top: 2px;
}
.tb-attr-item {
    align-items: center !important;
}
.tb-attr-item i {
    display: flex;
    align-items: center;
}
.tb-attr-item span {
    line-height: 1;
    margin-top: 2px;
}

/* Badges for Cards */
.tb-card .card-img, .top-number-card .card-img {
    position: relative;
}

.tb-badge-location {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff5722;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.tb-badge-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff5722;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}




/* --- TABLE OF CONTENTS --- */
.tb-toc-details {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    background: #fff;
    margin: 30px 0;
    padding: 0;
}
.tb-toc-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #1a1a1a;
    list-style: none;
}
.tb-toc-summary::-webkit-details-marker {
    display: none;
}
.tb-toc-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}
.tb-toc-icon {
    font-size: 0.9rem;
    color: #666;
    transition: transform 0.3s;
}
.tb-toc-details[open] .tb-toc-icon {
    transform: rotate(-180deg);
}
.tb-toc-content {
    padding: 0 20px 20px 20px;
}
.tb-toc-content ul {
    list-style: none !important;
    padding-left: 0;
    margin: 0;
}
.tb-toc-content > ul {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}
.tb-toc-content li {
    margin-bottom: 12px;
    line-height: 1.5;
}
.tb-toc-content a {
    text-decoration: none;
    color: #444;
    transition: color 0.2s;
}
.tb-toc-content a:hover {
    color: var(--primary-green, #00B14F);
}
