/**
 * TourMaster Checkout Layout Modifier CSS
 * Transforms the checkout layout to match the custom design
 *
 * New UI layout - Changes made:
 * - Removed custom header bar (language/currency selectors)
 * - Removed custom footer bar
 * - Removed timer alert styling
 * - Kept step indicator with 3 steps (Contact Details, Payment, Complete)
 * - Kept order summary styling
 * - Kept form styling and validation
 */

/* Import Oswald font for headers to match non-CT layout modifier */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@600&display=swap');

:root {
    --primary-color: #365c81;
    --primary-dark: #2b4967;
    --border-color: #e0e0e0;
    --text-dark: #333;
    --text-light: #666;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-bg: #fff3cd;
    --warning-border: #ffeaa7;
    /* Match header font with reference plugin while keeping CT colors */
    --header-font: 'Oswald', sans-serif;
}

.tourmaster-single-tour-content-wrap .gdlr-core-pbf-wrapper:first-child {
    padding: 0 !important;
}

/* Hide TourMaster header elements */
.tourmaster-template-payment .tourmaster-page-header,
.tourmaster-template-payment .tourmaster-featured-image,
.tourmaster-template-payment .tourmaster-page-title,
.tourmaster-template-payment .tourmaster-header,
.tourmaster-template-payment .tourmaster-top-bar,
.tourmaster-template-payment .tourmaster-navbar,
.tourmaster-template-payment .tourmaster-menu-bar,
.tourmaster-template-payment header.tourmaster-header,
.tourmaster-template-payment .site-header,
.tourmaster-template-payment .page-header {
    display: none !important;
}

/* Hide TravelTour theme logo on checkout */
.tourmaster-template-payment .traveltour-logo-inner {
    display: none !important;
}

/* Hide Avada/Fusion header rows on checkout (CSS fallback instead of JS remove) */
.tourmaster-template-payment .fusion-fullwidth.fusion-builder-row-1.fusion-flex-container,
.tourmaster-template-payment .fusion-tb-header {
    display: none !important;
}

/* Hide Responsive Menu Plugin mobile menu & additional content on checkout */
.tourmaster-template-payment .rmp-mobile-device-menu,
.tourmaster-template-payment .rmp-menu-additional-content {
    display: none !important;
}

/* Hide TravelTour mobile header on checkout */
.tourmaster-template-payment .traveltour-mobile-header-wrap {
    display: none !important;
}

@media (max-width: 767px) {
    .tourmaster-template-payment .rmp-menu-additional-content {
        display: none !important;
    }

    .tourmaster-tour-thumbnail img {
        height: 150px;
    }
}

/* Remove background image from payment head */
.tourmaster-payment-head.tourmaster-with-background {
    background-image: none !important;
    background: none !important;
}

/* Hide payment head overlays and title container */
.tourmaster-payment-head-overlay-opacity,
.tourmaster-payment-head-overlay,
.tourmaster-payment-head-top-overlay,
.tourmaster-payment-title-container {
    display: none !important;
}

/* New UI layout - Hide right button (continue/next button) */
.tourmaster-tour-booking-continue,
.tourmaster-tour-booking-continue.tourmaster-button {
    display: none !important;
}

/* CUSTOM LAYOUT - Reset and base modifications with CSS Grid */
.tourmaster-template-payment .tourmaster-page-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}


/* Match non-CT layout: show variable people row as flex for consistent spacing */
.tourmaster-tour-booking-people.tourmaster-variable {
    align-items: center;
    justify-content: space-between;
}

.tourmaster-tour-booking-bar-outer {
    box-shadow: none !important;
    width: 100% !important;
    border: 1px solid #e1e1e1;
    border-radius: 10px 10px 0 0;
}

.tourmaster-tour-booking-bar-total-price-title {
    font-weight: bold;
    font-size: 22px;
    color: #000;
}

.tourmaster-tour-booking-bar-total-price-wrap {
    background-color: #EAEFF2;
    /* Match reference: extra bottom spacing comes from inner elements, not wrapper */
    padding: 15px 15px 0 !important;
}

.tclm-benefits-section,
.tourmaster-tour-booking-bar-deposit-text {
    padding: 15px !important;
}

.tourmaster-tour-booking-bar-total-price {
    color: #000 !important;
    font-weight: bold;
}

/* CUSTOM LAYOUT - Step indicator modifications */
.tourmaster-payment-step-wrap {
    background: white;
    padding: 0;
    /* Match reference plugin spacing */
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.tourmaster-payment-step-wrap .tourmaster-payment-step-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    overflow: visible;
}

/* CUSTOM LAYOUT - Stepper track (circles and connectors) */
.tourmaster-payment-step-wrap .tclm-stepper-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    /* Match reference plugin to align stepper width */
    max-width: 450px;
    margin: 0 auto 5px auto;
    gap: 0;
    padding: 0 20px;
}

/* CUSTOM LAYOUT - Individual step container */
.tourmaster-payment-step-wrap .tclm-step {
    display: flex;
    align-items: center;
    justify-content: left;
    flex: 1;
    position: relative;
}

.tourmaster-payment-step-wrap .tclm-step.last-step {
    flex: 0;
}

/* CUSTOM LAYOUT - Step circle */
.tourmaster-payment-step-wrap .tclm-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    transition: all 300ms ease;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
}

/* CUSTOM LAYOUT - Completed step circle */
.tourmaster-payment-step-wrap .tclm-step-circle.tclm-step-completed {
    background-color: #1f2937;
    /* Hide numeric label when step is completed; ✓ is added via ::after */
    color: transparent;
    border-color: #1f2937;
}

/* CUSTOM LAYOUT - Completed step circle checkmark (matches non-CT reference) */
.tourmaster-payment-step-wrap .tclm-step-circle.tclm-step-completed::after {
    content: '\2713';
    position: absolute;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
}

/* CUSTOM LAYOUT - Current step circle */
.tourmaster-payment-step-wrap .tclm-step-circle.tclm-step-current {
    background-color: #1f2937;
    color: white;
    border-color: #1f2937;
}

/* CUSTOM LAYOUT - Upcoming step circle */
.tourmaster-payment-step-wrap .tclm-step-circle.tclm-step-upcoming {
    background-color: white;
    color: #d1d5db;
    border-color: #d1d5db;
}

/* CUSTOM LAYOUT - Connector line between steps */
.tourmaster-payment-step-wrap .tclm-step-connector {
    flex: 1;
    height: 4px;
    transition: all 300ms ease;
    z-index: 1;
}

/* CUSTOM LAYOUT - Completed connector line */
.tourmaster-payment-step-wrap .tclm-step-connector.tclm-connector-completed {
    background-color: #1f2937;
}

/* CUSTOM LAYOUT - Upcoming connector line */
.tourmaster-payment-step-wrap .tclm-step-connector.tclm-connector-upcoming {
    background-color: #d1d5db;
}

.tourmaster-tour-booking-bar-deposit-caption {
    line-height: 1.25;
}

.tourmaster-payment-method-wrap .tourmaster-payment-gateway .btn-wrapper {
    width: inherit;
    /* Match reference spacing under payment buttons */
    font-size: 14px;
    margin: 15px auto;
}

.tourmaster-contact-field.tourmaster-contact-field-country select,
.tourmaster-contact-field.tourmaster-contact-field-phone input {
    border-color: transparent;
    position: relative;
}


/* CUSTOM LAYOUT - Step labels container */
.tourmaster-payment-step-wrap .tclm-stepper-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 32px auto;
    padding: 0 20px;
}

/* CUSTOM LAYOUT - Individual step label */
.tourmaster-payment-step-wrap .tclm-step-label {
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    transition: all 300ms ease;
    flex: 1;
}

/* CUSTOM LAYOUT - Completed step label */
.tourmaster-payment-step-wrap .tclm-step-label.tclm-label-completed {
    color: #1f2937;
}

/* CUSTOM LAYOUT - Current step label */
.tourmaster-payment-step-wrap .tclm-step-label.tclm-label-current {
    color: #1f2937;
}

/* CUSTOM LAYOUT - Upcoming step label */
.tourmaster-payment-step-wrap .tclm-step-label.tclm-label-upcoming {
    color: #d1d5db;
}

/* CUSTOM LAYOUT - Payment form container (loaded via AJAX) */
.tclm-payment-form-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: none;
}

/* CUSTOM LAYOUT - Stripe Elements form styling */
.tclm-payment-form-container .goodlayers-payment-form {
    background-color: transparent;
    border: none;
    padding: 0;
}

.tclm-payment-form-container .goodlayers-payment-form-field {
    margin-bottom: 20px;
}

.tclm-payment-form-container .goodlayers-payment-field-head {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #1f2937;
}

/* CUSTOM LAYOUT - Stripe Elements card styling */
.tclm-payment-form-container #card-element,
.tclm-payment-form-container #ideal-bank-element {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: white;
    font-size: 16px;
    transition: border-color 300ms ease;
}

.tclm-payment-form-container #card-element:focus,
.tclm-payment-form-container #ideal-bank-element:focus {
    border-color: #1f2937;
    outline: none;
}

/* CUSTOM LAYOUT - Stripe form input styling */
.tclm-payment-form-container input[type="text"],
.tclm-payment-form-container input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 300ms ease;
}

.tclm-payment-form-container input[type="text"]:focus,
.tclm-payment-form-container input[type="email"]:focus {
    border-color: #1f2937;
    outline: none;
}

/* CUSTOM LAYOUT - Submit button styling */
.tclm-payment-form-container #submit-button,
.tclm-payment-form-container #mollie-submit-button {
    width: 100%;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 300ms ease;
    margin-top: 20px;
}

.tclm-payment-form-container #submit-button:hover,
.tclm-payment-form-container #mollie-submit-button:hover {
    background-color: var(--primary-dark);
}

.tclm-payment-form-container #submit-button:disabled,
.tclm-payment-form-container #mollie-submit-button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* CUSTOM LAYOUT - Error message styling */
.tclm-payment-form-container .payment-errors {
    color: #dc2626;
    font-size: 14px;
    margin-bottom: 15px;
    padding: 12px;
    background-color: #fee2e2;
    border-radius: 6px;
    display: none;
}

.tclm-payment-form-container .payment-errors.show {
    display: block;
}

/* CUSTOM LAYOUT - Loading spinner */
.tclm-payment-form-container img[src*="loadingSpinner"] {
    display: block;
    margin: 20px auto;
}

/* CUSTOM LAYOUT - Old styles cleanup */
.tourmaster-payment-step-wrap .tourmaster-payment-step-item.tourmaster-checked .tourmaster-payment-step-item-icon:before {
    content: "✓";
    font-size: 20px;
    color: white;
    font-weight: bold;
}

/* CUSTOM LAYOUT - Current/Active step (tourmaster-current class) - black circle with number */
.tourmaster-payment-step-wrap .tourmaster-payment-step-item.tourmaster-current .tourmaster-payment-step-item-icon {
    background: #000 !important;
    color: white !important;
}

.tourmaster-payment-step-wrap .tourmaster-payment-step-item.tourmaster-current .tourmaster-payment-step-item-icon .tourmaster-text {
    color: white !important;
    font-size: 16px;
    font-weight: bold;
    display: block !important;
}



/* New UI layout - Main content layout with two columns */
.tclm-checkout-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
    width: 100%;
}

/* Left column - form content */
.tclm-form-content {
    background: white;
    overflow: visible;
}

/* Right column - order summary */
.tclm-order-summary {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    position: sticky;
    top: 20px;
}

/* CUSTOM LAYOUT - Position sidebar in grid */
.tourmaster-template-payment .tourmaster-tour-booking-bar-wrap {
    float: none;
    margin: 0;
    position: static;
    width: 100%;
    grid-column: 2;
    grid-row: 1;
    display: block;
}

/* CUSTOM LAYOUT - Position form content in grid */
.tourmaster-template-payment .tourmaster-tour-payment-content {
    grid-column: 1;
    grid-row: 1;
}

/* CUSTOM LAYOUT - Form header styling */
.tclm-form-header {
    margin-bottom: 10px;
    padding-bottom: 0;
    border-bottom: none;
}

.tclm-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    padding: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

.tclm-security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #28a745;
    font-size: 14px;
    font-weight: 500;
}

.tclm-security-badge i {
    font-size: 16px;
    color: #28a745;
}

/* New UI layout - Tour booking bar styling */
.tourmaster-template-payment .tourmaster-tour-booking-bar-wrap .tourmaster-tour-booking-bar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tourmaster-template-payment .tourmaster-tour-payment-content {
    overflow: visible;
    padding: 0;
    width: 100%;
}



/* Form styling improvements */
.tourmaster-payment-contact-wrap,
.tourmaster-payment-traveller-info-wrap,
.tourmaster-payment-service-form-wrap,
.tourmaster-payment-method-wrap {
    padding: 30px;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    background: white;
}

.tourmaster-payment-contact-wrap {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.tourmaster-payment-method-wrap {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Form field improvements to match screenshot */
.tourmaster-payment-contact-wrap .tourmaster-contact-field,
.tourmaster-payment-additional-note-wrap .tourmaster-additional-note-field {
    margin-bottom: 0;
    position: relative;
}

.tourmaster-payment-contact-wrap .tourmaster-head,
.tourmaster-payment-additional-note-wrap .tourmaster-head {
    display: none;
    /* Hide labels as we'll use placeholders */
}

.tourmaster-payment-contact-wrap .tourmaster-tail,
.tourmaster-payment-additional-note-wrap .tourmaster-tail {
    width: 100%;
}

/* Form field styling */
.tourmaster-payment-contact-wrap .tourmaster-form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    padding: 0 !important;
    background: white !important;
    box-shadow: none !important;
}

.tourmaster-payment-contact-wrap .tourmaster-form-field:focus {
    z-index: 10;
}


.tourmaster-payment-contact-wrap .tourmaster-form-field .tourmaster-head {
    display: none;
}

.tourmaster-payment-contact-wrap .tourmaster-form-field .tourmaster-tail {
    position: relative;
    padding: 0;
    margin: 0;
}

.tourmaster-payment-contact-wrap .tourmaster-form-field input[type="text"],
.tourmaster-payment-contact-wrap .tourmaster-form-field input[type="email"],
.tourmaster-payment-contact-wrap .tourmaster-form-field input[type="tel"],
.tourmaster-payment-contact-wrap .tourmaster-form-field select,
.tourmaster-payment-contact-wrap .tourmaster-form-field textarea {
    border-width: 2px !important;
    padding: 0.75rem 0.875rem !important;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    color: var(--text-dark);
    font-family: inherit;
    margin: 0;
}

/* Make single-column fields span both columns */
.tourmaster-contact-field,
.tourmaster-contact-field-first_name,
.tourmaster-contact-field-last_name,
.tourmaster-contact-field-email {
    grid-column: 1 / -1;
}

.tourmaster-form-field.tourmaster-with-border input[type="text"]:focus,
.tourmaster-form-field.tourmaster-with-border input[type="email"]:focus,
.tourmaster-form-field.tourmaster-with-border input[type="tel"]:focus,
.tourmaster-form-field.tourmaster-with-border select:focus,
.tourmaster-form-field.tourmaster-with-border textarea:focus {
    outline: none;
}

/* Form field with checkmark */
.tourmaster-form-field.tclm-field-valid input,
.tourmaster-form-field.tclm-field-valid select,
.tourmaster-form-field.tclm-field-valid textarea {
    border-color: #999;
}

.tourmaster-form-field.tclm-field-valid .tourmaster-tail:after {
    content: "✓";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #28a745;
    font-weight: bold;
    font-size: 18px;
    pointer-events: none;
}

/* Validation states */
.tourmaster-form-field.tclm-field-error input,
.tourmaster-form-field.tclm-field-error select,
.tourmaster-form-field.tclm-field-error textarea {
    border-color: #dc3545;
}

.tourmaster-form-field.tclm-field-error:after {
    content: "This field is required";
    position: absolute;
    bottom: -20px;
    left: 0;
    color: #dc3545;
    font-size: 12px;
}

/* Success states */
.tourmaster-form-field.tclm-field-success input,
.tourmaster-form-field.tclm-field-success select,
.tourmaster-form-field.tclm-field-success textarea {
    border-color: #999;
}

/* Contact form wrapper styling */
.tourmaster-payment-contact-wrap {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
}

.tourmaster-payment-contact-wrap .tourmaster-payment-contact-title {
    display: none;
}

/* Make form header span full width */
.tourmaster-payment-contact-wrap .tclm-form-header {
    grid-column: 1 / -1;
}

/* Make timer alert span full width */
.tourmaster-payment-contact-wrap .tclm-timer-alert {
    grid-column: 1 / -1;
}

/* Country and Phone grouped container */
.tclm-country-phone-group {
    grid-column: 1 / -1;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tclm-country-phone-group .tourmaster-form-field {
    border: none !important;
    border-radius: 0 !important;
    margin: 0;
}

.tclm-country-phone-group .tourmaster-form-field:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
}

/* Additional notes section - grouped styling */
.tourmaster-payment-additional-note-wrap {
    border-radius: 4px;
    padding: 0 !important;
    background: white !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 0;
    grid-column: 1 /-1;
    width: 100%;
}

.tourmaster-payment-additional-note-wrap .tourmaster-payment-additional-note-title {
    display: none;
}

.tourmaster-payment-additional-note-wrap .tourmaster-additional-note-field {
    padding: 0;
    margin: 0;
}

.tourmaster-payment-additional-note-wrap textarea {
    border: none !important;
    padding: 0 !important;
    min-height: 100px;
}

/* Grouped notes container (Vegetarian Wishes + Remarks) */
.tclm-notes-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tclm-notes-field {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.tclm-notes-field .tourmaster-head {
    display: none;
}

.tclm-notes-field .tourmaster-tail {
    position: relative;
    padding: 0;
    margin: 0;
}

.tclm-notes-field input[type="text"],
.tclm-notes-field textarea {
    border: none !important;
    padding: 0.75rem 0.875rem !important;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    color: var(--text-dark);
    font-family: inherit;
    margin: 0;
    resize: vertical;
    min-height: 5rem;
}

.tclm-notes-field textarea {
    min-height: 80px;
}

.tclm-vegetarian-wishes input[type="text"] {
    min-height: auto;
}


.tclm-vegetarian-wishes .tourmaster-tail {
    outline-offset: calc(1px * -1);
    outline-color: #e6e6e6;
    outline-width: 1px;
    outline-style: solid;
    border-radius: 5px;
}

/* Apply consistent styling to custom textareas to match other inputs */
.tourmaster-template-payment textarea {
    padding: 0.75rem 0.875rem;
    font-size: 14px;
    border: 2px solid #e0e0e0;
    /* Match --border-color */
    border-radius: 4px;
    background: white;
    width: 100%;
    color: var(--text-dark, #333);
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.tclm-remarks .tourmaster-tail {
    outline-offset: calc(1px * -1);
    outline-color: #e6e6e6;
    outline-width: 1px;
    outline-style: solid;
    border-radius: 5px;
}

.tourmaster-contact-field-country select:focus,
.tourmaster-contact-field-phone input:focus {
    z-index: 10;
}

/* Group country and phone fields side by side */
.tourmaster-contact-field-country {
    border-color: transparent;
    grid-column: 1;
}

.tourmaster-contact-field-phone {
    border-color: transparent;
    grid-column: 2;
}

.tourmaster-contact-field-country .tourmaster-tail {
    overflow: visible;
}

.tourmaster-contact-field-country .tourmaster-tail .tourmaster-combobox-wrap {
    border: 1px solid #e6e6e6 !important;
    border-radius: 4px !important;
    display: block !important;
    overflow: visible !important;
}

.tourmaster-contact-field-phone .tourmaster-tail {
    outline-offset: calc(1px * -1);
    outline-color: #e6e6e6;
    outline-width: 1px;
    outline-style: solid;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    margin-top: -2px;
}

.tclm-grouped-fields .tourmaster-form-field .tourmaster-tail {
    position: relative;
}

/* Traveller form section styling */
.tourmaster-payment-traveller-info-wrap {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tourmaster-payment-traveller-info-wrap .tourmaster-payment-traveller-info-title {
    display: none;
}

/* Individual traveller input styling */
.tourmaster-payment-traveller-info-wrap .tourmaster-payment-traveller-input {
    border: 1px solid #999;
    border-radius: 4px;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: white;
}

.tourmaster-payment-traveller-info-wrap .tourmaster-payment-traveller-input:last-child {
    margin-bottom: 0;
}

/* Country dropdown styling */
.tourmaster-combobox-wrap {
    position: relative;
    border: 1px solid #e6e6e6 !important;
    border-radius: 4px !important;
    display: block !important;
    overflow: visible !important;
}

.tourmaster-combobox-wrap select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Payment method styling to match screenshot */
.tourmaster-payment-method-wrap {
    background: white;
    border-radius: 8px;
    box-shadow: none;
    border: none;
}

.tourmaster-payment-method-wrap .tourmaster-payment-method-title {
    text-align: left;
    border-bottom: none;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 0px;
}

.tourmaster-payment-method-wrap .tourmaster-payment-gateway {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.tourmaster-payment-method-wrap .tourmaster-online-payment-method {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
}

.tourmaster-payment-method-wrap .tourmaster-online-payment-method:hover,
.tourmaster-payment-method-wrap .tourmaster-online-payment-method.tclm-payment-active {
    border-color: #FA4065;
    background-color: #fef7f8;
}

.tourmaster-payment-method-wrap .tourmaster-online-payment-method input[type="radio"] {
    -webkit-appearance: radio !important;
    -moz-appearance: radio !important;
    appearance: radio !important;
    margin: 0;
    width: 20px !important;
    height: 20px !important;
    align-self: center;
    opacity: 1 !important;
    visibility: visible !important;
    accent-color: #FA4065 !important;
}

.tourmaster-payment-method-wrap .tourmaster-online-payment-method label {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
}

/* Payment button styling */
.tourmaster-payment-method-wrap .btn-wrapper {
    width: 100%;
    margin: 20px 0;
}

.tourmaster-payment-method-wrap .btn-submit {
    width: 100%;
    background: #FA4065;
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tourmaster-payment-method-wrap .btn-submit:hover {
    background: #e8395a;
}

/* Payment method specific styling */
.tourmaster-online-payment-method.tourmaster-payment-ideal select {
    margin-left: auto;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

/* Currency warning text */
.tourmaster-payment-method-wrap p {
    font-size: 12px;
    color: #666;
    font-style: italic;
    text-align: center;
    margin: 15px 0;
    line-height: 1.4;
}

/* Loading states */
.tclm-loading {
    opacity: 0.7;
    pointer-events: none;
}

.tclm-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: tclm-spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes tclm-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Field focus states */
.tclm-field-focused input,
.tclm-field-focused select,
.tclm-field-focused textarea {
    outline: none;
}

/* Mobile summary adjustments */
.tclm-mobile-summary {
    margin-bottom: 30px;
}

.tclm-mobile-summary .tourmaster-tour-booking-bar-summary {
    padding: 20px;
    padding-top: 0;
}

.tourmaster-tour-booking-bar-summary h4 {
    margin-bottom: 0;
}

/* Additional responsive improvements */
@media (max-width: 480px) {

    .tclm-language-currency {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .tclm-language-selector,
    .tclm-currency-selector {
        width: 100%;
        max-width: 200px;
    }

    .tourmaster-payment-contact-wrap,
    .tourmaster-payment-traveller-info-wrap,
    .tourmaster-payment-service-form-wrap,
    .tourmaster-payment-method-wrap {
        padding: 20px 15px;
    }

    .tourmaster-payment-step-wrap .tourmaster-payment-step-item {
        font-size: 14px;
    }
}

/* Order summary styling */
.tourmaster-tour-booking-bar-summary {
    padding: 0px !important;
    border: none;
    box-shadow: none;
}

.tourmaster-tour-booking-bar-summary-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}


/* Summary info styling */
.tourmaster-tour-booking-bar-summary-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.tourmaster-tour-booking-bar-summary-info .tourmaster-head {
    font-weight: 500;
    margin-bottom: 0;
}

.tourmaster-tour-booking-bar-summary-info i {
    color: #666;
    width: 16px;
}

/* Hide Package element completely */
.tourmaster-summary-package {
    display: none !important;
}

/* Pricing section */
.tclm-pricing-section {
    margin-top: 20px;
}

.tclm-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-dark);
}

.tclm-price-row.total {
    font-weight: 600;
    font-size: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.tclm-price-row .price {
    font-weight: 600;
    color: var(--text-dark);
}

.tclm-price-row.total .price {
    font-size: 18px;
}

.tclm-price-label {
    color: var(--text-light);
    font-size: 13px;
}

/* Deposit section styling */
.tclm-deposit-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.tclm-deposit-title {
    font-weight: 600;
    color: #856404;
    margin-bottom: 8px;
}

.tclm-deposit-amount {
    font-size: 18px;
    font-weight: 700;
    color: #856404;
}

.tclm-deposit-note {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

/* Trust indicators */
.tclm-trust-indicators {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-light);
}

.tclm-trust-indicator {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tclm-trust-indicator i {
    color: var(--success-color);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.tclm-trust-indicator-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tclm-trust-indicator-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 13px;
}

.tclm-trust-indicator-desc {
    font-size: 12px;
    color: var(--text-light);
}



/* Form section headers */
.tourmaster-payment-contact-title,
.tourmaster-payment-traveller-info-title,
.tourmaster-payment-service-form-title,
.tourmaster-payment-method-title {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #FA4065;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Security indicator */
.tclm-security-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #28a745;
    font-size: 14px;
    margin-bottom: 20px;
}

.tclm-security-indicator i {
    font-size: 16px;
}

/* New UI layout - Timer alert styling */
.tclm-timer-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 0px;
}

.tclm-timer-icon {
    font-size: 18px;
    color: #dc3545;
    flex-shrink: 0;
}

.tclm-timer-content {
    flex: 1;
}

.tclm-timer-title {
    display: none;
}

.tclm-timer-text {
    font-size: 13px;
    color: #721c24;
    margin: 0;
    font-weight: 500;
}

.tclm-timer-countdown {
    font-weight: bold;
    color: #721c24;
    font-size: 13px;
}

/* Timer warning state (less than 2 minutes) */
.tclm-timer-alert.tclm-timer-warning {
    background: #f8d7da;
    border-color: #f5c6cb;
}

.tclm-timer-alert.tclm-timer-warning .tclm-timer-icon {
    color: #dc3545;
    animation: pulse 1s infinite;
}

.tclm-timer-alert.tclm-timer-warning .tclm-timer-countdown {
    color: #721c24;
}

.tclm-timer-alert.tclm-timer-warning .tclm-timer-text {
    color: #721c24;
}

/* Timer expired state */
.tclm-timer-alert.tclm-timer-expired {
    background: #f8d7da;
    border-color: #f5c6cb;
}

.tclm-timer-alert.tclm-timer-expired .tclm-timer-icon {
    color: #721c24;
}

.tclm-timer-alert.tclm-timer-expired .tclm-timer-text {
    color: #721c24;
}

.tclm-timer-alert.tclm-timer-expired .tclm-timer-countdown {
    color: #721c24;
}

/* Pulse animation for warning state */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

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

    /* CUSTOM LAYOUT - Stack on tablet */
    .tourmaster-template-payment .tourmaster-page-content {
        grid-template-columns: 1fr;
    }

    .tourmaster-template-payment .tourmaster-tour-booking-bar-wrap {
        grid-column: 1;
        grid-row: 2;
        order: 2;
    }

    .tourmaster-template-payment .tourmaster-tour-payment-content {
        grid-column: 1;
        grid-row: 1;
        order: 1;
    }

    .tclm-checkout-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tclm-order-summary {
        position: static;
        order: -1;
    }
}

/* Pay button styling */
.tclm-pay-button-wrap {
    grid-column: 1 / -1 !important;
    display: flex !important;
    justify-content: flex-start !important;
    margin-top: 1rem !important;
    width: 100% !important;
}

/* CUSTOM LAYOUT - Hide pay buttons when credit card is selected */
.tclm-pay-button-wrap.tclm-hidden,
.tclm-mobile-bottom-pay-wrap.tclm-hidden,
body .tclm-pay-button-wrap.tclm-hidden,
body .tclm-mobile-bottom-pay-wrap.tclm-hidden,
#tourmaster-payment-template-wrapper .tclm-pay-button-wrap.tclm-hidden,
#tourmaster-payment-template-wrapper .tclm-mobile-bottom-pay-wrap.tclm-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.single-tour .tourmaster-single-header-container.tourmaster-container {
    position: relative;
}

.tourmaster-single-header.tourmaster-with-slider .tourmaster-single-header-title-wrap {
    left: -20px;
    bottom: 20px;
    right: 0px;
}

.tourmaster-single-header-title-wrap .tourmaster-single-header-title {
    font-size: 29px;
    font-weight: 700;
    margin-bottom: 0;
    margin-top: 22px;
}

.single-tour .tourmaster-single-header-container.tourmaster-container::before {
    content: '';
    position: absolute;
    left: -8px;
    right: 0;
    bottom: 8px;
    height: 110px;
    margin-left: -15px;
    width: 535px;
    background-color: rgb(137 135 136 / .35);
    border-radius: 15px;
}

.tclm-pay-button {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 0.75rem 1.75rem 0.75rem 1.75rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-width: 150px !important;
    display: inline-block !important;
    text-decoration: none !important;
    min-width: 150px !important;
}

.tclm-pay-button:hover {
    background-color: var(--primary-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(250, 64, 101, 0.3) !important;
}

.tclm-pay-button:active {
    transform: translateY(0) !important;
}

/* CUSTOM LAYOUT - Step 3 Payment Page Styling */
/* Left column contains services and payment method */
.tclm-step3-left-column {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.tclm-step3-section {
    background: white;
    padding: 0 30px 0 30px;
    border-radius: 4px;
}

.tclm-step3-section .tclm-payment-section {
    padding-top: 0;
}

.tclm-extras-section .tourmaster-payment-service-form-wrap {
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
}

.tclm-payment-section .tourmaster-payment-method-wrap {
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
}

/* CUSTOM LAYOUT - Service items full width */
.tclm-extras-section .tourmaster-payment-service-form-item-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tclm-extras-section .tourmaster-payment-service-form-item {
    display: flex !important;
    align-items: center !important;
    padding: 1.5rem !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    background: white !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* CUSTOM LAYOUT - Hide mandatory/required service items from selection panel (they show in sidebar only) */
.tclm-extras-section .tourmaster-payment-service-form-item[style*="display: none"] {
    display: none !important;
}

/* CUSTOM LAYOUT - Payment method items full width */
.tclm-payment-section .tourmaster-payment-gateway {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tclm-payment-section .tourmaster-online-payment-method {
    display: flex !important;
    align-items: center !important;
    padding: 1.5rem !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    background: white !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Hide contact detail and traveller detail on step 3 */
.tourmaster-payment-contact-detail-wrap,
.tourmaster-payment-traveller-info-wrap {
    display: none !important;
}

/* CUSTOM LAYOUT - Tour info styling in sidebar - Horizontal layout */
.tclm-tour-info-wrap {
    padding-bottom: 10px;
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    border-radius: 4px;
    overflow: hidden;
    align-items: flex-start;
}

.tourmaster-tour-booking-bar-coupon-wrap,
.tclm-tour-info-wrap,
.tclm-summary-details-wrap {
    padding: 15px;
}

/* CUSTOM LAYOUT - Hide base price breakdown, rooms, summary - only show Additional Services (extras) */
.tourmaster-price-breakdown-base-price-wrap,
.tourmaster-price-breakdown-room,
.tourmaster-price-breakdown-summary {
    display: none !important;
}

/* CUSTOM LAYOUT - Style the price breakdown wrapper for extras only */
.tourmaster-tour-booking-bar-price-breakdown-wrap {
    padding: 15px;
}

/* CUSTOM LAYOUT - Align extra prices same as Total price value */
.tourmaster-tour-booking-bar-price-breakdown-wrap .tourmaster-price-breakdown-additional-service-item .tourmaster-tail .tourmaster-price {
    text-align: right;
    min-width: 80px;
}

/* CUSTOM LAYOUT - Style the Additional Services (extras) section */
.tourmaster-price-breakdown-additional-service {
    margin: 0;
}

.tourmaster-price-breakdown-additional-service-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    padding: 0;
}

.tourmaster-price-breakdown .tourmaster-price-breakdown-additional-service-item {
    margin-bottom: 0;
    padding-top: 0;
}

.tourmaster-price-breakdown-additional-service-item {
    display: inline;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.tourmaster-price-breakdown-additional-service-item:last-child {
    border-bottom: none;
}

.tourmaster-price-breakdown-additional-service-item .tourmaster-head {
    color: #555;
}

.tourmaster-price-breakdown-additional-service-item .tourmaster-tail {
    color: #333;
    font-weight: 500;
}

.tourmaster-tour-booking-bar-coupon-wrap span {
    text-decoration: underline;
    font-weight: bold;
}

.tclm-tour-image-col {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
}

.tclm-tour-featured-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.tclm-tour-details-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0;
}

.tclm-tour-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
    padding: 0;
    line-height: 1.3;
}

.tclm-tour-rating {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tclm-rating-stars {
    color: #000;
    font-weight: 600;
    display: flex;
    gap: 0.2rem;
}

.tclm-rating-stars i {
    font-size: 0.9rem;
    color: #000;
}

.tclm-mobile-bottom-pay-wrap {
    margin-bottom: 25px;
    margin-left: 25px;
}

.tclm-review-count {
    color: #999;
    font-size: 0.8rem;
}

/* CUSTOM LAYOUT - Summary details with icons (tour dates, participants, change link) */
.tclm-summary-details-wrap {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tclm-summary-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.tclm-summary-detail-item i {
    color: #000;
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.tclm-detail-text {
    color: #333;
    font-weight: 500;
}

.tclm-change-link .tclm-detail-text {
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.tclm-change-link .tclm-detail-text:hover {
    opacity: 0.8;
}

.tourmaster-tour-booking-bar-date-edit {
    cursor: pointer;
}

/* CUSTOM LAYOUT - Benefits section (Free cancellation and Great value) */
.tclm-benefits-section {
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tourmaster-price-breakdown-additional-service .tourmaster-price-breakdown-additional-service-item:first-child {
    padding-top: 2px
}

.tourmaster-tour-booking-bar-price-breakdown-wrap,
.tourmaster-price-breakdown-additional-service-item,
.tourmaster-price-breakdown .tourmaster-price-breakdown-additional-service {
    border: 0;
    padding-bottom: 0;
}

.tourmaster-price-breakdown .tourmaster-price-breakdown-additional-service,
.tourmaster-tour-booking-bar-summary .tourmaster-price-breakdown,
.tourmaster-price-breakdown .tourmaster-price-breakdown-additional-service-title {
    padding-top: 0;
    margin-bottom: 0;
}


.tclm-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tclm-benefit-item i {
    color: #28a745;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.tclm-benefit-content {
    flex: 1;
}

.tclm-benefit-title {
    color: #333;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.tclm-benefit-description {
    color: #999;
    font-size: 13px;
    line-height: 1.4;
}


/* CUSTOM LAYOUT - Including discount text next to Total */
.tclm-including-discount {
    color: #28a745;
    font-size: 12px;
    font-weight: 500;
    display: block;
}

/* CUSTOM LAYOUT - Coupon text styling */
.tclm-coupon-text {
    display: inline-block;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tclm-coupon-text:hover {
    color: #333;
    text-decoration: underline;
}

/* CUSTOM LAYOUT - Trust badges section (outside main border) */
.tclm-trust-badges-section {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 15px;
    padding: 15px 0;
    align-items: flex-start;
}

.tclm-trust-badges-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.tclm-trust-badges-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.tclm-thuiswinkel-badge {
    max-width: 120px;
    height: auto;
}

.tclm-trust-badge-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tclm-trust-badge-item i {
    color: #28a745;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.tclm-trust-badge-content {
    flex: 1;
}

.tclm-trust-badge-title {
    color: #333;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 2px;
}

.tclm-trust-badge-description {
    color: #999;
    font-size: 12px;
    line-height: 1.4;
}

/* CUSTOM LAYOUT - Coupon input and button horizontal alignment */
.tourmaster-tour-booking-bar-coupon-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 0px;
    padding-top: 20px;
    padding-bottom: 0;
    border-top: 1px solid #e0e0e0;
}

.tclm-coupon-input {
    flex: 1;
    max-width: 150px;
    padding: 0.75rem 0.875rem !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    font-size: 14px;
    box-sizing: border-box;
    margin-top: 0 !important;
}

.tclm-coupon-input:focus {
    box-shadow: 0 0 0 3px rgba(250, 64, 101, 0.1) !important;
}

.tourmaster-tour-booking-bar-coupon-validate {
    display: inline-block;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 0 !important;
    white-space: nowrap;
}

.tourmaster-tour-booking-bar-coupon-validate:hover {
    background: var(--primary-dark);
}

/* CUSTOM LAYOUT - Coupon message styling */
.tourmaster-tour-booking-coupon-message {
    width: 100% !important;
    padding: 10px 15px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    margin-top: 10px !important;
}

.tourmaster-tour-booking-coupon-message.tourmaster-failed {
    background-color: rgba(220, 53, 69, 0.1) !important;
    background: rgba(220, 53, 69, 0.1) !important;
    border: 1px solid var(--error-color) !important;
    color: var(--error-color) !important;
}

.tourmaster-tour-booking-coupon-message.tourmaster-success {
    background-color: rgba(40, 167, 69, 0.1) !important;
    background: rgba(40, 167, 69, 0.1) !important;
    border: 1px solid var(--success-color) !important;
    color: var(--success-color) !important;
}

/* CUSTOM LAYOUT - Inline payment form container */
.tclm-payment-form-container {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
}

/* CUSTOM LAYOUT - Stripe form styling */
.tclm-payment-form-container .goodlayers-payment-form {
    border: none;
    background: transparent;
    padding: 0;
}

/* CUSTOM LAYOUT - Payment form field styling */
.tclm-payment-form-container .goodlayers-payment-form-field {
    margin-bottom: 20px;
}

/* CUSTOM LAYOUT - Payment field label styling */
.tclm-payment-form-container .goodlayers-payment-field-head {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* CUSTOM LAYOUT - Stripe card element styling */
.tclm-payment-form-container #card-element {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: white;
}

/* CUSTOM LAYOUT - iDeal bank element styling */
.tclm-payment-form-container #ideal-bank-element {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: white;
}

/* CUSTOM LAYOUT - Text and email input styling */
.tclm-payment-form-container input[type="text"],
.tclm-payment-form-container input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

/* CUSTOM LAYOUT - Submit button styling */
.tclm-payment-form-container #submit-button,
.tclm-payment-form-container #mollie-submit-button {
    width: 100%;
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 20px;
}

/* CUSTOM LAYOUT - Submit button hover state */
.tclm-payment-form-container #submit-button:hover,
.tclm-payment-form-container #mollie-submit-button:hover {
    background: var(--primary-dark);
}

/* CUSTOM LAYOUT - Submit button disabled state */
.tclm-payment-form-container #submit-button:disabled,
.tclm-payment-form-container #mollie-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* CUSTOM LAYOUT - Payment error message styling */
.tclm-payment-form-container .payment-errors {
    color: #dc3545;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    display: none;
}

/* CUSTOM LAYOUT - Payment error message visible state */
.tclm-payment-form-container .payment-errors.show {
    display: block;
}

/* CUSTOM LAYOUT - Error message styling */
.tclm-payment-form-container #error-message {
    color: #dc3545;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    display: none;
}

/* CUSTOM LAYOUT - Error message visible state */
.tclm-payment-form-container #error-message.show {
    display: block;
}

/* CUSTOM LAYOUT - Tour Card Gallery (Prev/Next buttons) - Base styles */
.tclm-tour-card-gallery {
    position: relative;
    overflow: hidden;
    touch-action: pan-x;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* CUSTOM LAYOUT - Tour Card Gallery - Tablet/Desktop only */
@media (min-width: 769px) {
    .tclm-tour-card-gallery {
        width: 100%;
        /* FIX: give the gallery a stable aspect ratio so the image can reliably
         * cover it without sub-pixel gaps. Adjust the ratio here if you want a
         * taller/shorter thumbnail (3 / 2 is a common tour card ratio).
         */
        aspect-ratio: 3 / 2;
    }
}

/* CUSTOM LAYOUT - Gallery main image display */
.tclm-tour-card-gallery-main {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent;
}

/* CUSTOM LAYOUT - Gallery image - Base styles */
.tclm-tour-card-gallery-image {
    cursor: pointer;
    border-radius: 0;
}

/* CUSTOM LAYOUT - Gallery image - Tablet/Desktop only */
@media (min-width: 769px) {
    .tclm-tour-card-gallery-image {
        object-fit: cover;
        object-position: center;
        display: block;
        width: 100%;
        height: 100%;
        min-height: 100%;
        transition: opacity 300ms ease, transform 300ms ease;
    }
}

.tclm-taxes-fees-included {
    visibility: hidden;
}

/* CUSTOM LAYOUT - Gallery prev/next buttons (hidden by default, visible on hover) */
.tclm-tour-card-gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    transition: opacity 200ms ease, background 200ms ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0;
}

/* CUSTOM LAYOUT - Show buttons on gallery hover */
.tclm-tour-card-gallery:hover .tclm-tour-card-gallery-btn {
    opacity: 1;
}

.tclm-tour-card-gallery-btn:hover {
    background: rgba(255, 255, 255, 0.6);
}

.tclm-tour-card-gallery-btn:active {
    background: rgba(255, 255, 255, 0.8);
}

/* CUSTOM LAYOUT - Previous button (left side) */
.tclm-tour-card-gallery-prev {
    left: 10px;
}

/* CUSTOM LAYOUT - Next button (right side) */
.tclm-tour-card-gallery-next {
    right: 10px;
}

/* ============================================================
   CUSTOM LAYOUT - Tour Page Multi-Grid Gallery
   ============================================================ */

/* CUSTOM LAYOUT - Header with multi-grid gallery */
.tourmaster-single-header-gallery {
    background: white !important;
    background-image: none !important;
    padding: 0 !important;
    min-height: auto !important;
    display: block;
    position: relative;
    z-index: 1;
    margin-top: 4em;
}

.tourmaster-single-header-gallery .tourmaster-single-header-background-overlay,
.tourmaster-single-header-gallery .tourmaster-single-header-top-overlay,
.tourmaster-single-header-gallery .tourmaster-single-header-overlay {
    display: none !important;
}

/* CUSTOM LAYOUT - Gallery wrapper inside header */
.tourmaster-single-header-gallery-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    cursor: pointer;
    /* Show hand cursor over header gallery area */
}

.single-tour .traveltour-header-background {
    pointer-events: none !important;
}

.tourmaster-tour-grid .tourmaster-tour-rating {
    margin-bottom: 10px;
}

.tourmaster-template-payment .traveltour-header-background-transparent {
    display: none !important;
}

/* CUSTOM LAYOUT - Header gallery icon (top-right) to match non-CT reference */
/* We reuse the same icon graphic from the reference plugin, without modifying it. */
.tourmaster-single-header-gallery-wrapper::after {
    content: '';
    position: absolute;
    top: 2em;
    right: 10px;
    width: 60px;
    height: 60px;
    /* Use gallery icon asset from the reference plugin */
    background-image: url('../../../tourmaster-checkout-layout-modifier/assets/gallery-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 10000;
}

/* Invisible clickable hit area over the icon; JS binds it to open the gallery */
.tclm-header-gallery-icon {
    position: absolute;
    border: none;
    top: 2em;
    right: 10px;
    width: 60px;
    height: 60px;
    /* Transparent clickable area over the icon (no red debug background) */
    background: transparent !important;
    cursor: pointer !important;
    z-index: 999999 !important;
    pointer-events: auto !important;
}

/* Hide the visual icon and click area on mobile (only first photo, no gallery) */
@media (max-width: 768px) {
    .tourmaster-single-header-gallery-wrapper::after {
        content: none !important;
    }

    .tclm-header-gallery-icon {
        display: none !important;
    }
}

/* CUSTOM LAYOUT - Gallery container in header */
.tourmaster-single-header-gallery-container {
    padding-top: 40px;
    padding-bottom: 40px;
    width: 100%;
}

/* CUSTOM LAYOUT - Main gallery container */
.tclm-tour-page-gallery {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    row-gap: 0;
    width: 100%;
    /*  max-width: 1200px; */
    margin: 0 auto;
    visibility: visible !important;
    opacity: 1 !important;
}

@media only screen and (max-width: 767px) {
    .tourmaster-tour-widget .tourmaster-tour-thumbnail {
        max-width: 150px !important;
    }
}

/* CUSTOM LAYOUT - Main large image (left side, spans 2 rows) */
.tclm-tour-page-gallery-main {
    grid-column: 1;
    grid-row: 1 / 3;
    overflow: hidden;
    border-radius: 4px;
    background: #f0f0f0;
    min-height: 400px;
}

.tclm-tour-page-gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 300ms ease;
}

.tclm-tour-page-gallery-main-img:hover {
    transform: scale(1.05);
}

/* CUSTOM LAYOUT - Grid of smaller images (right side, 2x2) */
.tclm-tour-page-gallery-grid {
    grid-column: 2;
    grid-row: 1 / 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* CUSTOM LAYOUT - Individual grid items */
.tclm-tour-page-gallery-grid-item {
    overflow: hidden;
    border-radius: 4px;
    background: #f0f0f0;
    min-height: 180px;
}

.tclm-tour-page-gallery-grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 300ms ease;
}

.tclm-tour-page-gallery-grid-img:hover {
    transform: scale(1.05);
}

/* CUSTOM LAYOUT - Mobile responsive (show only single main image, hide gallery grid) */
@media (max-width: 768px) {

    /* Remove white space at top on mobile */
    .tourmaster-single-header-gallery {
        margin-top: 0 !important;
        padding: 0 !important;
    }

    .tourmaster-single-header-gallery-container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .tclm-tour-page-gallery {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tclm-tour-page-gallery-main {
        grid-column: 1;
        grid-row: auto;
        aspect-ratio: 4 / 3;
        border-radius: 0;
    }

    /* Hide the gallery grid on mobile - show only main image */
    .tclm-tour-page-gallery-grid {
        display: none !important;
    }
}

/* ============================================================
   CUSTOM LAYOUT - Tour Page Gallery Lightbox
   ============================================================ */

/* CUSTOM LAYOUT - Lightbox overlay */
.tclm-tour-page-gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tclm-tour-page-gallery-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

/* CUSTOM LAYOUT - Lightbox container */
.tclm-tour-page-gallery-lightbox-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 900px;
    height: 77vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CUSTOM LAYOUT - Lightbox main image */
.tclm-tour-page-gallery-lightbox-main {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tclm-tour-page-gallery-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* CUSTOM LAYOUT - Lightbox buttons */
.tclm-tour-page-gallery-lightbox-close,
.tclm-tour-page-gallery-lightbox-prev,
.tclm-tour-page-gallery-lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background 200ms ease;
    z-index: 3;
}

.tclm-tour-page-gallery-lightbox-close:hover,
.tclm-tour-page-gallery-lightbox-prev:hover,
.tclm-tour-page-gallery-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* CUSTOM LAYOUT - Close button (top right) */
.tclm-tour-page-gallery-lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 32px;
    padding: 5px 12px;
}

/* CUSTOM LAYOUT - Prev button (left) */
.tclm-tour-page-gallery-lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* CUSTOM LAYOUT - Next button (right) */
.tclm-tour-page-gallery-lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* CUSTOM LAYOUT - Counter */
.tclm-tour-page-gallery-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 3;
}

/* CUSTOM LAYOUT - Mobile responsive lightbox */
@media (max-width: 768px) {
    .tclm-tour-page-gallery-lightbox-container {
        width: 95%;
        height: 95vh;
    }

    .tclm-tour-page-gallery-lightbox-close,
    .tclm-tour-page-gallery-lightbox-prev,
    .tclm-tour-page-gallery-lightbox-next {
        font-size: 18px;
        padding: 8px 12px;
    }

    .tclm-tour-page-gallery-lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 24px;
    }

    .tclm-tour-page-gallery-lightbox-prev,
    .tclm-tour-page-gallery-lightbox-next {
        left: 10px;
        right: 10px;
    }

    .tclm-tour-page-gallery-lightbox-next {
        left: auto;
        right: 10px;
    }
}

/* CUSTOM LAYOUT - Hide data container */
.tclm-tour-card-gallery-data {
    display: none;
}

@media (max-width: 768px) {
    .tourmaster-template-payment .tourmaster-page-content {
        padding: 0 15px;
        grid-template-columns: 1fr;
    }

    .tourmaster-payment-step-wrap .tourmaster-payment-step-inner {
        flex-direction: column;
        gap: 15px;
    }

    .tourmaster-payment-step-wrap .tourmaster-payment-step-item {
        padding: 10px 0;
    }

    .tourmaster-payment-step-wrap .tourmaster-payment-step-item:after {
        display: none;
    }

    /* CUSTOM LAYOUT - Hide prev/next buttons on mobile, use swipe only */
    .tclm-tour-card-gallery-btn {
        display: none !important;
    }

    /* CUSTOM LAYOUT - Mobile swipe indicator */
    .tclm-tour-card-gallery::after {
        content: "← Swipe →";
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 11px;
        opacity: 0.8;
        pointer-events: none;
        z-index: 10;
    }

    /* CUSTOM LAYOUT - Hide swipe indicator after first interaction */
    .tclm-tour-card-gallery.tclm-gallery-interacted::after {
        display: none;
    }

    .tclm-step3-section {
        padding: 0;
    }
}

.tourmaster-payment-paypal>img:hover {
    border-color: transparent !important;
}

/* MOBILE SAFARI - Prevent auto-zoom by using >=16px font size
   for all text inputs/selects/textareas on the checkout page */
.tourmaster-template-payment .tourmaster-payment-contact-wrap .tourmaster-contact-field input[type="text"],
.tourmaster-template-payment .tourmaster-payment-contact-wrap .tourmaster-contact-field input[type="email"],
.tourmaster-template-payment .tourmaster-payment-contact-wrap .tourmaster-contact-field input[type="tel"],
.tourmaster-template-payment .tourmaster-payment-contact-wrap .tourmaster-contact-field select,
.tourmaster-template-payment .tourmaster-payment-contact-wrap .tourmaster-form-field textarea,
.tourmaster-template-payment .tourmaster-payment-additional-note-wrap textarea,
.tourmaster-template-payment .tclm-notes-field input[type="text"],
.tourmaster-template-payment .tourmaster-contact-field textarea,
.tourmaster-template-payment .tclm-notes-field textarea {
    font-size: 16px !important;
}

/* CUSTOM LAYOUT - Unified error message styling with CT primary color (red) */
.tourmaster-payment-contact-wrap .tourmaster-form-error,
.tourmaster-payment-method-wrap .tourmaster-form-error,
.tclm-form-error-message,
.tourmaster-tour-booking-required-error,
.tourmaster-tour-payment-content .tourmaster-tour-booking-required-error,
.tourmaster-notification-box.tourmaster-failure,
.tourmaster-tour-booking-submit-error {
    background-color: #365c81 !important;
    background: linear-gradient(#365c81, #365c81) !important;
    color: white !important;
    padding: 12px 16px !important;
    border-radius: 4px !important;
    margin-top: 15px !important;
    margin-bottom: 10px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(54, 92, 129, 0.2) !important;
    margin-left: 0;
}

.tourmaster-payment-service-form-wrap .tourmaster-payment-service-form-title {
    border: 0;
    margin-bottom: 0px;
}