/* Global Container */
.ttwc-booking-engine {
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #1a1a1a;
}

.ttwc-engine-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: #111;
}

/* Layout Structure */
.ttwc-engine-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.ttwc-sidebar {
    flex: 0 0 320px;
    position: sticky;
    top: 20px;
}

.ttwc-main-content {
    flex-grow: 1;
}

/* Sidebar Card Styling */
.ttwc-booking-engine .ttwc-sidebar-card {
    background: #fff !important;
    border: 1px solid #e1e7ec !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
    box-shadow: none !important;
}

.ttwc-booking-engine .ttwc-sidebar-block {
    margin-bottom: 24px;
}

.ttwc-sidebar-block:last-child {
    margin-bottom: 0;
}

.ttwc-booking-engine .ttwc-sidebar-title {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    color: #1a1a1a !important;
}

/* Travelers Selector Refinement */
.ttwc-booking-engine .ttwc-selector-header p {
    font-size: 0.9rem !important;
    color: #64748b !important;
    margin-bottom: 24px !important;
    line-height: 1.5 !important;
}

.ttwc-booking-engine .ttwc-passenger-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 0 !important;
    border-bottom: none !important;
}

.ttwc-passenger-info {
    display: flex;
    flex-direction: column;
}

.ttwc-booking-engine .ttwc-passenger-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
}

.ttwc-booking-engine .ttwc-passenger-restriction {
    font-size: 0.75rem !important;
    color: #ef4444 !important;
    /* Red for restriction asterisk feel */
    display: block;
    margin-top: 2px;
}

.ttwc-passenger-age {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 2px;
}

.ttwc-passenger-qty {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ttwc-booking-engine .ttwc-qty-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 1.2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #475569 !important;
    transition: all 0.2s;
}

.ttwc-booking-engine .ttwc-qty-btn:hover:not(:disabled) {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

.ttwc-qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ttwc-booking-engine .ttwc-qty-input {
    width: 30px !important;
    text-align: center;
    border: none !important;
    font-weight: 700;
    font-size: 1rem;
    background: transparent !important;
    color: #1e293b;
    margin: 0;
    pointer-events: none;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Notice Box - Teal Alert Style */
.ttwc-booking-engine .ttwc-sidebar-info {
    background: #f0fdfa !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 16px !important;
    display: flex;
    gap: 12px;
    margin: 10px 0 16px 0 !important;
    align-items: flex-start;
}

.ttwc-sidebar-info:last-of-type {
    margin-bottom: 24px !important;
}

.ttwc-sidebar-info .dashicons {
    color: #0d9488;
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.ttwc-sidebar-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #0f766e;
    font-weight: 500;
    line-height: 1.4;
}

/* Class Selector - Horizontal Grid Styling */
.ttwc-class-selector {
    background: #f1f7f7 !important;
    /* Light teal background */
    display: flex !important;
    flex-wrap: wrap !important;
    padding: 8px !important;
    border-radius: 10px !important;
    gap: 8px !important;
    row-gap: 20px !important;
    /* Separation between lines */
    width: 100% !important;
    box-sizing: border-box !important;
}

.ttwc-class-tab {
    flex: 0 0 calc(50% - 4px);
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #475569;
    transition: all 0.2s;
    background: transparent;
    border: 1px solid transparent !important;
}

.ttwc-booking-engine .ttwc-class-tab.active {
    background: #fff !important;
    color: #1e293b !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #14b8a6 !important;
}

/* Amenities Box Refinement */
.ttwc-amenities-sidebar {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid #f1f5f9;
}

.ttwc-features-list-sidebar {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
}

.ttwc-features-list-sidebar li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 600;
}

.ttwc-features-list-sidebar li:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
}

.ttwc-features-list-sidebar .dashicons {
    color: #94a3b8;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Product Content */
.ttwc-product-group {
    margin-bottom: 60px;
}

.ttwc-group-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #111;
}

.ttwc-group-desc {
    color: #555;
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.6;
}

.ttwc-products-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Product Card - REFACTORED TO SPLIT LAYOUT */
.ttwc-product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.ttwc-product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: #EF4044;
}

.ttwc-card-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
}

.ttwc-card-left {
    flex-grow: 1;
}

.ttwc-product-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #111;
}

.ttwc-paxx-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.ttwc-paxx-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

.ttwc-badge-green {
    background: #f1f7f7;
    color: #008489;
}

.ttwc-badge-orange {
    background: #fff7ed;
    color: #f97316;
}

.ttwc-view-details {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ttwc-card-right {
    flex-shrink: 0;
    text-align: right;
    margin-left: 40px;
}

.ttwc-price-block {
    display: flex;
    align-items: center;
    gap: 24px;
}

.ttwc-price-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111;
}

.ttwc-book-btn {
    background: #EF4044;
    color: #fff;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.ttwc-book-btn:hover:not(:disabled) {
    background: #e03b3f;
    box-shadow: 0 4px 12px rgba(239, 64, 68, 0.3);
}

.ttwc-book-btn:disabled {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
}

/* Responsive Customization */
@media (max-width: 1024px) {
    .ttwc-engine-layout {
        flex-direction: column;
    }

    .ttwc-sidebar {
        flex: none;
        width: 100%;
        position: relative;
        top: 0;
    }

    .ttwc-card-wrapper {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    .ttwc-card-right {
        margin-left: 0;
        margin-top: 24px;
        width: 100%;
    }

    .ttwc-price-block {
        justify-content: space-between;
        width: 100%;
    }
}

/* Checkout Passenger Fields */
.ttwc-additional-passengers {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
}

.ttwc-additional-passengers h3 {
    margin-top: 0;
    font-size: 1.3rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.ttwc-passenger-block {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #eee;
}

.ttwc-passenger-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ttwc-passenger-block h4 {
    color: #555;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.ttwc-passenger-fields-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* Make standard billing fields look consistent if modified via filter */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper p.form-row {
    margin-bottom: 15px;
}

/* PREMIUM CHECKOUT LAYOUT (Mimic Block Design) */
@media (min-width: 1000px) {
    form.checkout.woocommerce-checkout {
        display: flex;
        flex-wrap: nowrap;
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Left Column: Customer Details */
    #customer_details {
        flex: 1 1 60%;
        width: 60%;
    }

    /* Right Column: Order Review */
    #order_review_heading,
    #order_review {
        width: 100%;
    }

    .woocommerce-checkout-review-order {
        flex: 1 1 35%;
        width: 35%;
        background: #fff;
        padding: 30px;
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        height: fit-content;
        position: sticky;
        top: 20px;
    }
}

/* Modern Input Styling */
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout textarea,
.woocommerce-checkout select {
    padding: 12px 15px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: all 0.2s;
    width: 100%;
}

.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
    border-color: #666;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.woocommerce-checkout h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
}

/* Passenger Fields Improvements */
.ttwc-additional-passengers {
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.ttwc-passenger-block {
    border-bottom: 1px solid #f0f0f0;
}

/* Button Styling (Place Order) */
#place_order {
    background-color: #EF4044;
    /* Brand Red */
    color: white;
    font-weight: 600;
    padding: 16px;
    border-radius: 6px;
    font-size: 16px;
    transition: background 0.3s;
}

#place_order:hover {
    background-color: #d12e32;
}

/* --- VIEW DETAILS MODAL --- */
.ttwc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.ttwc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ttwc-modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 94%;
    max-width: 860px;
    max-height: 90vh;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: ttwcModalEntry 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes ttwcModalEntry {
    from {
        transform: translate(-50%, -40%);
        opacity: 0;
        scale: 0.95;
    }

    to {
        transform: translate(-50%, -50%);
        opacity: 1;
        scale: 1;
    }
}

.ttwc-modal-header {
    padding: 28px 40px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.ttwc-modal-title {
    margin: 0 !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #0f172a;
    font-family: 'Outfit', sans-serif !important;
    letter-spacing: -0.02em;
}

.ttwc-modal-close {
    background: #f1f5f9;
    border: none;
    font-size: 32px;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ttwc-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.ttwc-modal-content {
    padding: 40px;
    overflow-y: auto;
    background: #fff;
}

.ttwc-modal-section {
    margin-bottom: 40px;
}

.ttwc-modal-section:last-child {
    margin-bottom: 0;
}

.ttwc-modal-section h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    margin-bottom: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ttwc-modal-section h4::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #f1f5f9;
}

.ttwc-modal-description-content {
    line-height: 1.8;
    color: #334155;
    font-size: 16px;
}

.ttwc-modal-description-content p {
    margin-bottom: 1.2em;
}

.ttwc-modal-info-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .ttwc-modal-header {
        padding: 20px 24px;
    }

    .ttwc-modal-title {
        font-size: 20px !important;
    }

    .ttwc-modal-content {
        padding: 24px;
    }

    .ttwc-modal-info-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.ttwc-modal-note-item {
    background: #f0fdfa;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: flex-start;
    border: 1px solid #ccfbf1;
}

.ttwc-modal-note-item span {
    color: #0d9488;
    font-size: 22px;
    flex-shrink: 0;
}

.ttwc-modal-note-item p {
    margin: 0 !important;
    font-size: 15px;
    color: #115e59;
    line-height: 1.6;
}

.ttwc-modal-amenities-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ttwc-modal-amenities-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
    color: #475569;
    line-height: 1.5;
}

.ttwc-modal-amenities-list li:last-child {
    border-bottom: none;
}

.ttwc-modal-amenities-list li span {
    color: #94a3b8;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: -2px;
}

body.ttwc-modal-open {
    overflow: hidden;
}

/* ============================================
   SINGLE PRODUCT PAGE - Train Ticket Styling
   Matches booking engine layout: sidebar + product card
   ============================================ */

/* --- WooCommerce Overrides for Single Product --- */
.single-product .product .ttwc-product-wrapper ~ .price,
.single-product .product .ttwc-product-wrapper ~ .quantity,
.single-product .product .ttwc-product-wrapper ~ .single_add_to_cart_button {
    display: none !important;
}

.single-product .product .price:not(.ttwc-card-price-block),
.single-product .product p.price {
    display: none !important;
}

.single-product .product .woocommerce-product-details__short-description {
    display: none !important;
}

.single-product .product .wp-post-image {
    display: none !important;
}

.single-product .product .summary > .price,
.single-product .product .entry-summary > .price {
    display: none !important;
}

.single-product .woocommerce-product-gallery {
    display: none !important;
}

.single-product .product .summary.entry-summary,
.single-product .product div.summary {
    width: 100% !important;
    float: none !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.single-product .product.type-product {
    display: block;
}

.single-product .product .product_title {
    display: none !important;
}

.single-product .product_meta {
    display: none !important;
}

.single-product .product .ttwc-product-wrapper {
    clear: both;
}

.single-product .product .woocommerce-tabs {
    clear: both;
    margin-top: 30px;
}

.single-product .product .related.products {
    clear: both;
    margin-top: 40px;
}

/* --- Main Wrapper: Two Column Layout --- */
.ttwc-product-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    color: #1a1a1a;
    max-width: 100%;
    margin: 0 0 30px 0;
}

/* =============================================
   LEFT COLUMN: Sidebar Selector
   Matches .ttwc-sidebar-card from booking engine
   ============================================= */
.ttwc-selector-section {
    flex: 0 0 320px;
    background: #fff;
    border: 1px solid #e1e7ec;
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 50px;
}

.ttwc-selector-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.ttwc-selector-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* Passenger Rows */
.ttwc-passenger-selectors {
    display: flex;
    flex-direction: column;
}

.ttwc-product-wrapper .ttwc-passenger-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: none;
}

.ttwc-product-wrapper .ttwc-passenger-info {
    display: flex;
    flex-direction: column;
}

.ttwc-product-wrapper .ttwc-passenger-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
}

.ttwc-product-wrapper .ttwc-passenger-age {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* Quantity Controls — Dark rounded buttons like booking engine */
.ttwc-passenger-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ttwc-btn-decrease,
.ttwc-btn-increase {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.ttwc-btn-decrease:hover:not(:disabled),
.ttwc-btn-increase:hover:not(:disabled) {
    background: #e2e8f0;
    color: #1e293b;
}

.ttwc-btn-decrease:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ttwc-btn-decrease span,
.ttwc-btn-increase span {
    display: block;
    line-height: 1;
    margin-top: -1px;
}

.ttwc-passenger-count {
    width: 30px !important;
    text-align: center;
    border: none !important;
    font-weight: 700;
    font-size: 1rem;
    background: transparent !important;
    color: #1e293b;
    margin: 0;
    pointer-events: none;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    -moz-appearance: textfield;
}

.ttwc-passenger-count::-webkit-outer-spin-button,
.ttwc-passenger-count::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Sidebar Notice — Teal info box */
.ttwc-sidebar-notice {
    background: #f0fdfa;
    border: none;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    gap: 10px;
    margin: 16px 0;
    align-items: flex-start;
}

.ttwc-sidebar-notice svg {
    color: #0d9488;
    flex-shrink: 0;
    margin-top: 1px;
}

.ttwc-sidebar-notice span {
    font-size: 0.85rem;
    color: #0f766e;
    font-weight: 500;
    line-height: 1.4;
}

/* Class Selector — Pill toggle like booking engine */
.ttwc-product-wrapper .ttwc-class-selector {
    margin-top: 0;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: block !important;
}

.ttwc-class-tabs {
    display: flex;
    flex-wrap: wrap;
    padding: 8px;
    border-radius: 10px;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    background: #f1f7f7;
}

.ttwc-product-wrapper .ttwc-class-tab {
    flex: 0 0 calc(50% - 4px);
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #475569;
    transition: all 0.2s;
    background: transparent;
    border: 1px solid transparent !important;
}

.ttwc-product-wrapper .ttwc-class-tab:hover {
    color: #1e293b;
}

.ttwc-product-wrapper .ttwc-class-tab.active {
    background: #fff !important;
    color: #1e293b !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #14b8a6 !important;
}

/* =============================================
   RIGHT COLUMN: Product Card
   Matches .ttwc-product-card from booking engine
   ============================================= */
.ttwc-summary-section {
    flex-grow: 1;
}

.ttwc-product-card-single {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
}

.ttwc-product-card-single:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: #EF4044;
}

/* Card Body — Left side of card */
.ttwc-card-body {
    flex-grow: 1;
}

.ttwc-card-product-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #111;
}

.ttwc-card-description {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
    max-width: 550px;
}

.ttwc-card-description p {
    margin: 0 0 6px 0;
}

.ttwc-card-description p:last-child {
    margin-bottom: 0;
}

/* Badges — like ttwc-paxx-badge from booking engine */
.ttwc-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.ttwc-paxx-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

.ttwc-badge-green {
    background: #f1f7f7;
    color: #008489;
}

.ttwc-passenger-total-badge .ttwc-passenger-total {
    font-weight: 800;
    margin-right: 4px;
}

/* View details link */
.ttwc-card-link {
    margin-top: 4px;
}

.ttwc-view-details {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ttwc-view-details:hover {
    color: #EF4044;
}

/* Card Pricing — Right side of card */
.ttwc-card-pricing {
    flex-shrink: 0;
    text-align: right;
    margin-left: 40px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.ttwc-card-price-block {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.ttwc-price-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111;
    line-height: 1;
}

.ttwc-currency {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
}

/* Book Now button — matches .ttwc-book-btn */
.ttwc-btn-add-to-cart {
    background: #EF4044 !important;
    color: #fff !important;
    padding: 12px 28px !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    text-transform: none !important;
    line-height: 1.2 !important;
    display: inline-block !important;
}

.ttwc-btn-add-to-cart:hover:not(:disabled) {
    background: #e03b3f !important;
    box-shadow: 0 4px 12px rgba(239, 64, 68, 0.3);
}

.ttwc-btn-add-to-cart:disabled {
    background: #ddd !important;
    color: #999 !important;
    cursor: not-allowed;
    box-shadow: none;
}

/* Price Breakdown — below the card */
.ttwc-price-breakdown {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fafbfc;
    border: 1px solid #e8ecf0;
    border-radius: 8px;
}

.ttwc-breakdown-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ttwc-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: #69707C;
    padding: 3px 0;
}

.ttwc-breakdown-item .ttwc-breakdown-label {
    font-weight: 600;
}

.ttwc-breakdown-item .ttwc-breakdown-price {
    font-weight: 700;
    color: #1a1a1a;
}

/* Error Message */
.ttwc-error-message {
    margin-top: 12px;
    padding: 10px 14px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    color: #DC2626;
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- RESPONSIVE: Single Product --- */
@media (max-width: 1024px) {
    .ttwc-product-wrapper {
        flex-direction: column;
    }

    .ttwc-selector-section {
        flex: none;
        width: 100%;
        position: relative;
        top: 0;
    }

    .ttwc-product-card-single {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    .ttwc-card-pricing {
        margin-left: 0;
        margin-top: 24px;
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 600px) {
    .ttwc-selector-section {
        padding: 20px 16px;
    }

    .ttwc-product-card-single {
        padding: 20px 16px;
    }

    .ttwc-card-pricing {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .ttwc-btn-add-to-cart {
        width: 100%;
        text-align: center;
        padding: 14px 20px !important;
    }
}

/* Cart breakdown in WooCommerce cart page */
.ttwc-cart-breakdown {
    font-size: 0.88rem;
    line-height: 1.7;
}