/* Amadex Flight Search - Enhanced Styles */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

.amadex-search,
.amadex-results-page,
.amadex-modal {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}
.amadex-call-now-banner {
    display: none;
}

a.amadex-price-box-call.amadex-call-btn {
    justify-content: center;
}
/* Search Form Styles */
.amadex-search {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 20px 0;
}

.amadex-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.amadex-field {
    display: flex;
    flex-direction: column;
}

.amadex-field label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.amadex-field input,
.amadex-field select {
    padding: 8px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.amadex-field input:focus,
.amadex-field select:focus {
    outline: none;
    border-color: #007cba;
}

.amadex-trip-types {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.amadex-trip-types label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    cursor: pointer;
}

.amadex-button {
    background: linear-gradient(135deg, #007cba, #005a87);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    grid-column: 1 / -1;
    justify-self: center;
    min-width: 200px;
}

.amadex-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.3);
}

/* Results Page Styles */
.amadex-results-page {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Search Bar Wrapper - Full Width */
.amadex-search-bar-wrapper {
    width: 100%;
    margin: 0 auto;
    background-color: #EEF9F2;
    padding: 24px 0;
    position: relative !important;
    z-index: 25 !important;
}

.amadex-search-bar-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 10px 20px;
    background: #eef9f2;
    border-radius: 20px;
    position: relative;
    z-index: 26;
}

/* Align search bar container with results container on tablets and larger screens */
@media only screen and (min-width: 768px) {
    .amadex-search-bar-wrapper {
        width: 100%;
    }
    
    .amadex-search-bar-container {
        max-width: 1500px;
        padding: 10px 20px;
    }
}

/* Fix conflict with dst-adivaha-wrapper */
.dst-adivaha-wrapper.js-dst-adivaha-wrapper.container.dst-wrapper.wp-block-ds-blocks-dst-wrapper {
    z-index: 10 !important;
}

.dst-adivaha-wrapper.js-dst-adivaha-wrapper.container.dst-wrapper.wp-block-ds-blocks-dst-wrapper.is-fixed {
    z-index: 15 !important;
}

/* Ensure search bar stays above dst-wrapper */
.amadex-search-bar-wrapper ~ .dst-adivaha-wrapper,
.dst-adivaha-wrapper ~ .amadex-search-bar-wrapper {
    position: relative;
}

/* Search Header */
.amadex-search-header {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.amadex-search-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.amadex-route {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.amadex-dates,
.amadex-passengers,
.amadex-class {
    font-size: 14px;
    color: #666;
}

.amadex-search-again-btn {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Results Content - Full Width with Red Background */
.amadex-results-content-wrapper {
    width: 100%;
    background-color: #EEF9F2;
    padding: 24px 0;
}

.amadex-results-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Filters Sidebar - Desktop Only (Hidden on Mobile 320px-767px) */
.amadex-filters-sidebar {
    padding: 15px;
    position: sticky;
    top: 24px;
    height: fit-content;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #FFFFFF 0% 0% no-repeat padding-box;
    box-shadow: 0px 0px 15px #00000029;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-sizing: border-box;
    /* Hide scrollbar while maintaining scroll functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.amadex-filters-sidebar::-webkit-scrollbar {
    display: none;
}

/* Hide filters sidebar on mobile devices (320px - 767px) */
@media only screen and (min-width: 320px) and (max-width: 767px) {
    .amadex-filters-sidebar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Exception: Show sidebar only inside mobile filter modal */
    .amadex-mobile-filter-modal .amadex-filters-sidebar {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
        position: static !important;
        left: auto !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-direction: column !important;
    }
}

/* Ensure filters sidebar is visible on desktop (768px and above) */
@media only screen and (min-width: 768px) {
    .amadex-filters-sidebar {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: sticky !important;
        height: fit-content !important;
        max-height: calc(100vh - 80px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        width: auto !important;
        padding: 15px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}

.amadex-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.amadex-filters-label {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    margin-bottom: 0!important;
}



.amadex-results-count {
    display: block;
    font-size: 13px;
    color: #6B7280;
    margin-top: 4px;
    display: none;
}

.amadex-clear-filters {
    background: #F0FDF4;
    border: 1px solid #C4E5D3;
    color: #0E7D3F;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amadex-clear-filters:hover {
    background: #0E7D3F;
    color: #ffffff;
}

.amadex-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.amadex-filter-tags:empty {
    display: none;
}

.amadex-filter-tag {
    background: #F0FFF7 0% 0% no-repeat padding-box;
    border: 1px solid #0E7D3F;
    border-radius: 13px;
    color: #000000;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.amadex-filter-tag svg {
    width: 10px;
    height: 10px;
    stroke: rgb(14 125 63);
    background: #FFF;
}

.amadex-filter-tag:hover {
    background: #0E7D3F;
    color: #ffffff;
}

.amadex-filter-group-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.amadex-filter-group {
    border-top: 1px solid #E6E6E6;
    padding: 20px 0;
}

.amadex-filter-group h4 {
    margin: 0;
    color: #000000;
    font-size: 16px;
   font-weight:700;
}
    

.amadex-filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.amadex-filter-option {
    display: block;
    /* background: #ffffff;
    border: 1px solid #E2E8F0; */
    border-radius: 18px;
    padding: 5px 14px 5px 48px;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 40px;
}

.amadex-filter-option input[type="checkbox"] {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #D1D5DB;
    appearance: none;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amadex-filter-option input[type="checkbox"]::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    top: 2px;
    left: 5px;
    opacity: 0;
}

/* .amadex-filter-option.is-checked {
    border-color: #0E7D3F;
    box-shadow: 0 10px 25px rgba(14,125,63,0.15);
} */

span.amadex-filter-price {
    display: none !important;
}

.amadex-filter-option input[type="checkbox"]:checked {
    background: #0E7D3F;
    border-color: #0E7D3F;
}

.amadex-filter-option input[type="checkbox"]:checked::after {
    opacity: 1;
}

.amadex-filter-option .amadex-filter-label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #111827;
    line-height:30px;
}

.amadex-filter-option .amadex-filter-time,
.amadex-filter-option .amadex-filter-price {
    font-size: 13px;
    color: #6B7280;
    font-weight: 500;
    display: block;
}

.amadex-filter-option.is-checked .amadex-filter-label,
.amadex-filter-option.is-checked .amadex-filter-time,
.amadex-filter-option.is-checked .amadex-filter-price {
    color: #0E7D3F;
}

.amadex-filter-chip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

.amadex-filter-time-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

div#amadex-stops-filter {
    display: flex;
    flex-wrap: nowrap;
}

@media (max-width: 768px) {
    .amadex-filter-time-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.amadex-time-card {
    padding: 50px 6px 10px;
    min-height: 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 15px;
    border: 1px solid #D1D5DB;
    position: relative;
    background: #ffffff;
}

.amadex-time-card input[type="checkbox"] {
    opacity: 0;
    pointer-events: none;
}

.amadex-time-icon {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    border-radius: 14px;
    /* background: #F3F4F6;
    color: #0E7D3F; */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.amadex-time-icon svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    stroke: none;
}

.amadex-time-card .amadex-filter-label {
    font-size: 14px;
    font-weight: 400;
    color: #111827;
    line-height: 1.5;
}

.amadex-time-card .amadex-filter-time {
    font-size: 12px;
    font-weight: 500;
    color: #6B7280;
    display: none;
}

.amadex-time-card.is-checked {
    background: #0E7D3F;
    color: #ffffff;
    border-color: #0E7D3F;
    /* box-shadow: 0 14px 26px rgba(14,125,63,0.25); */
}

.amadex-time-card.is-checked .amadex-time-icon {
    /* background: rgba(255,255,255,0.2); */
    color: #ffffff;
}

.amadex-time-card.is-checked .amadex-filter-label,
.amadex-time-card.is-checked .amadex-filter-time {
    color: #ffffff;
}

.amadex-filter-options.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.amadex-price-values,
.amadex-duration-values {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #0E7D3F;
    font-weight: 600;
    justify-content: space-between;
}

span#amadex-duration-min-display {
    margin-top: 14px;
    color: #000000;
    font-weight: 400;
}

span#amadex-duration-max-display  {
    margin-top: 14px;
    color: #000000;
    font-weight: 400;
}
.amadex-price-divider {
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #0E7D3F 0%, #34D399 100%);
    border-radius: 999px;
}

.amadex-price-range,
.amadex-duration-range {
    padding: 8px 0 0;
}

.amadex-price-slider,
.amadex-duration-slider {
    position: relative;
    padding: 12px 0;
    height: 32px;
}

.amadex-price-slider input[type="range"],
.amadex-duration-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 32px;
    margin: 0;
    background: transparent;
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
}

.amadex-price-slider input[type="range"]::-webkit-slider-thumb,
.amadex-duration-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #0E7D3F;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    pointer-events: auto;
}

.amadex-price-slider input[type="range"]::-moz-range-thumb,
.amadex-duration-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #0E7D3F;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    pointer-events: auto;
}

.amadex-price-slider-track,
.amadex-duration-slider-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    border-radius: 999px;
    background: #0E7D3F;
}

/* --- Modern Flight Card Layout --- */
/* Promotional Containers Styles */
.amadex-promotional-container {
    margin-bottom: 20px;
    transition: all 0.3s ease;
    
    /* CSS Variables for Precision Size Controls - Set inline by renderer */
    width: var(--pc-width, 100%);
    height: var(--pc-height, auto);
    min-width: var(--pc-min-width, 0);
    max-width: var(--pc-max-width, none);
    min-height: var(--pc-min-height, 0);
    max-height: var(--pc-max-height, none);
}

.amadex-promotional-container.amadex-promo-width-full {
    width: var(--pc-width, 100%);
}

.amadex-promotional-container.amadex-promo-width-compact {
    width: var(--pc-width, 65%);
    margin-left: auto;
    margin-right: auto;
}

.amadex-promotional-container.amadex-promo-width-mini {
    width: var(--pc-width, 45%);
    margin-left: auto;
    margin-right: auto;
}

.amadex-promo-content {
    background: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: var(--pc-border-radius, 8px);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    
    /* CSS Variables for Padding - Set inline by renderer */
    /* Priority: individual > X/Y > uniform */
    /* If individual padding values are set, use them; otherwise fall back to uniform padding */
    padding-top: var(--pc-padding-top, var(--pc-padding, 20px));
    padding-right: var(--pc-padding-right, var(--pc-padding, 20px));
    padding-bottom: var(--pc-padding-bottom, var(--pc-padding, 20px));
    padding-left: var(--pc-padding-left, var(--pc-padding, 20px));
    
    /* CSS Variables for Gap (Grid Spacing) - Set inline by renderer */
    column-gap: var(--pc-gap-column, 20px);
    row-gap: var(--pc-gap-row, 20px);
    gap: var(--pc-gap-column, 20px) var(--pc-gap-row, 20px);
    
    /* Compactness adjustment - reduces spacing when compactness > 50% */
    /* Compactness is 0-1 scale (0 = spacious, 1 = compact) */
    /* Formula: multiplier = 1.2 - (compactness * 0.6) */
    /* At 0% (0.0): 1.2x spacing (spacious) */
    /* At 50% (0.5): 1.0x spacing (normal) */
    /* At 100% (1.0): 0.6x spacing (compact) */
    --compactness-factor: var(--pc-compactness, 0.5);
    --compactness-multiplier: calc(1.2 - var(--compactness-factor) * 0.6);
    
    /* Apply compactness to gap only (padding is controlled directly via CSS variables) */
    column-gap: calc(var(--pc-gap-column, 20px) * var(--compactness-multiplier));
    row-gap: calc(var(--pc-gap-row, 20px) * var(--compactness-multiplier));
}

.amadex-promotional-container:hover .amadex-promo-content {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Price Alert Container */
.amadex-promo-type-price_alert .amadex-promo-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #0e7d3f;
}

.amadex-promo-type-price_alert .amadex-promo-title {
    color: #0e7d3f;
    margin-bottom: 8px;
    font-size: calc(18px * var(--pc-typography-scale, 1.0));
    font-weight: 600;
}

.amadex-promo-type-price_alert .amadex-promo-description {
    color: #6b7280;
    margin-bottom: 0;
    font-size: calc(14px * var(--pc-typography-scale, 1.0));
}

.amadex-promo-type-price_alert .amadex-promo-form {
    display: flex;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.amadex-promo-email-input,
.amadex-promo-phone-input {
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
}

.amadex-promo-email-input:focus,
.amadex-promo-phone-input:focus {
    outline: none;
    border-color: #0e7d3f;
    box-shadow: 0 0 0 3px rgba(14, 125, 63, 0.1);
}

/* Airline Ad Container */
.amadex-promo-type-airline_ad .amadex-promo-content {
    background: linear-gradient(135deg, #fef3c7 0%, #ffffff 100%);
    border-left: 4px solid #f59e0b;
}

.amadex-promo-airline-logo {
    flex-shrink: 0;
}

.amadex-promo-airline-logo img {
    max-width: 80px;
    max-height: 60px;
    object-fit: contain;
}

.amadex-promo-offer {
    color: #f59e0b;
    font-weight: 600;
    margin-top: 5px;
    margin-bottom: 0;
    font-size: 14px;
}

/* Product Cross-Sell Container */
.amadex-promo-type-product_cross_sell .amadex-promo-content {
    background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
    border-left: 4px solid #0284c7;
}

.amadex-promo-image {
    flex-shrink: 0;
}

.amadex-promo-image img {
    max-width: 100px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 6px;
}

/* Callback Container */
.amadex-promo-type-callback .amadex-promo-content {
    background: linear-gradient(135deg, #fce7f3 0%, #ffffff 100%);
    border-left: 4px solid #db2777;
    flex-direction: column;
    align-items: stretch;
}

.amadex-promo-type-callback .amadex-promo-form {
    margin-left: 0;
    margin-top: 15px;
}

.amadex-promo-message {
    margin-top: 10px;
    padding: 10px;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 6px;
    color: #166534;
    font-size: 14px;
}

/* Ad Slot Container */
.amadex-promo-type-ad .amadex-promo-content {
    padding: 15px;
    text-align: center;
    flex-direction: column;
}

.amadex-promo-ad-image {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 6px;
}

.amadex-promo-ad-link {
    display: block;
    text-decoration: none;
}

.amadex-promo-ad-link:hover {
    opacity: 0.9;
}

/* Promotional Button */
.amadex-promo-button {
    padding: 10px 20px;
    background: #0e7d3f;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.amadex-promo-button:hover {
    background: #0a5d2e;
    transform: translateY(-1px);
}

.amadex-promo-button:active {
    transform: translateY(0);
}

.amadex-promo-link {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

/* Promotional Text */
.amadex-promo-text {
    flex: 1;
}

.amadex-promo-title {
    margin: 0 0 8px 0;
    font-size: calc(18px * var(--pc-typography-scale, 1.0));
    font-weight: 600;
    color: #1f2937;
}

.amadex-promo-description {
    margin: 0;
    font-size: calc(14px * var(--pc-typography-scale, 1.0));
    color: #6b7280;
    line-height: 1.5;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .amadex-promotional-container.amadex-promo-width-compact,
    .amadex-promotional-container.amadex-promo-width-mini {
        width: 100%;
    }
    
    .amadex-promo-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .amadex-promo-type-price_alert .amadex-promo-form {
        margin-left: 0;
        flex-direction: column;
    }
    
    .amadex-promo-email-input,
    .amadex-promo-phone-input {
        min-width: 100%;
        width: 100%;
    }
    
    .amadex-promo-button {
        width: 100%;
    }
    
    .amadex-promo-image,
    .amadex-promo-airline-logo {
        align-self: center;
    }
}

/* ============================================
 * Template-Based Promotional Containers
 * ============================================
 */

/* Native Inline Card Template */
.amadex-template-native-inline-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}

.amadex-template-native-inline-card .amadex-template-image {
    flex-shrink: 0;
}

.amadex-template-native-inline-card .amadex-template-image img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 6px;
}

.amadex-template-native-inline-card .amadex-template-text {
    flex: 1;
}

.amadex-template-native-inline-card .amadex-template-action {
    flex-shrink: 0;
}

/* Itinerary Promo Template */
.amadex-template-itinerary-promo {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    align-items: center;
}

.amadex-template-itinerary-promo .amadex-template-destination,
.amadex-template-itinerary-promo .amadex-template-dates {
    margin-top: 8px;
    font-size: 13px;
}

.amadex-template-itinerary-promo .amadex-template-dates {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.amadex-template-itinerary-promo .amadex-template-price {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Three Agent Cards Template */
.amadex-template-three-agent-cards .amadex-template-header {
    grid-column: 1 / -1;
    margin-bottom: 20px;
    text-align: center;
}

.amadex-template-three-agent-cards .amadex-template-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.amadex-template-card {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.amadex-template-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.amadex-template-card-image {
    margin-bottom: 10px;
}

.amadex-template-card-image img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.amadex-template-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.amadex-template-card-description {
    font-size: 13px;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

/* Two Column Feature Template */
.amadex-template-two-column-feature .amadex-template-header {
    grid-column: 1 / -1;
    margin-bottom: 20px;
    text-align: center;
}

.amadex-template-two-column-feature .amadex-template-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.amadex-template-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.amadex-template-column-image img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.amadex-template-column-content {
    line-height: 1.6;
}

/* Hero Spotlight Template */
.amadex-template-hero-spotlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px;
    padding: 40px 20px;
    position: relative;
}

.amadex-template-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    opacity: 0.1;
}

.amadex-template-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amadex-template-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.amadex-template-hero-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.amadex-template-hero-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.amadex-template-hero-description {
    font-size: 18px;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.amadex-template-hero-button {
    font-size: 18px;
    padding: 15px 40px;
}

/* Promo Carousel Template */
.amadex-template-promo-carousel .amadex-template-header {
    margin-bottom: 20px;
    text-align: center;
}

.amadex-template-carousel-wrapper {
    position: relative;
}

.amadex-template-carousel-slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.amadex-template-carousel-slides::-webkit-scrollbar {
    display: none;
}

.amadex-template-carousel-slide {
    min-width: 100%;
    scroll-snap-align: start;
    padding: 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: center;
}

.amadex-template-carousel-image img {
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
    border-radius: 8px;
}

.amadex-template-carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.amadex-template-carousel-prev,
.amadex-template-carousel-next {
    background: #0e7d3f;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.amadex-template-carousel-prev:hover,
.amadex-template-carousel-next:hover {
    background: #0a5d2e;
}

.amadex-template-carousel-dots {
    display: flex;
    gap: 8px;
}

/* Video Promo Tile Template */
.amadex-template-video-promo-tile {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}

.amadex-template-video-thumbnail {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}

.amadex-template-video-thumbnail img {
    width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.amadex-template-video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

.amadex-template-video-thumbnail:hover .amadex-template-video-play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.amadex-template-video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.amadex-template-video-link {
    text-decoration: none;
    display: block;
}

/* Responsive Styles for Templates */
@media (max-width: 1024px) {
    .amadex-template-itinerary-promo {
        grid-template-columns: 1fr 1fr;
    }
    
    .amadex-template-three-agent-cards .amadex-template-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .amadex-template-native-inline-card,
    .amadex-template-itinerary-promo,
    .amadex-template-video-promo-tile {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .amadex-template-three-agent-cards .amadex-template-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .amadex-template-two-column-feature .amadex-template-columns {
        grid-template-columns: 1fr;
    }
    
    .amadex-template-hero-spotlight {
        min-height: 300px;
        padding: 30px 15px;
    }
    
    .amadex-template-hero-title {
        font-size: 28px;
    }
    
    .amadex-template-hero-description {
        font-size: 16px;
    }
    
    .amadex-template-carousel-slide {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .amadex-template-video-thumbnail img {
        width: 100%;
        height: auto;
    }
}

/* ============================================
 * Skyscanner-Inspired Container Types
 * Standard display banners and native formats
 * ============================================
 */

/* Standard Display Banners - Fixed Dimensions */

/* 320×50 - Mobile Leaderboard */
.amadex-container-type-320x50 {
    width: 320px !important;
    height: 50px !important;
    max-width: 320px !important;
    min-width: 300px !important;
    max-height: 60px !important;
    min-height: 50px !important;
    margin: 0 auto;
}

.amadex-container-type-320x50 .amadex-promo-content {
    padding: 5px 10px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 100%;
}

.amadex-container-type-320x50 .amadex-promo-title {
    font-size: 12px !important;
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amadex-container-type-320x50 .amadex-promo-description {
    display: none;
}

.amadex-container-type-320x50 .amadex-promo-button {
    padding: 6px 12px !important;
    font-size: 11px !important;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 320×100 - Mobile Large Banner */
.amadex-container-type-320x100 {
    width: 320px !important;
    height: 100px !important;
    max-width: 320px !important;
    min-width: 300px !important;
    max-height: 120px !important;
    min-height: 90px !important;
    margin: 0 auto;
}

.amadex-container-type-320x100 .amadex-promo-content {
    padding: 8px 12px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 100%;
}

.amadex-container-type-320x100 .amadex-promo-title {
    font-size: 14px !important;
    margin: 0 0 4px 0 !important;
}

.amadex-container-type-320x100 .amadex-promo-description {
    font-size: 11px !important;
    margin: 0 !important;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.amadex-container-type-320x100 .amadex-promo-button {
    padding: 8px 16px !important;
    font-size: 12px !important;
    flex-shrink: 0;
}

/* 300×250 - Medium Rectangle */
.amadex-container-type-300x250 {
    width: 300px !important;
    height: 250px !important;
    max-width: 320px !important;
    min-width: 280px !important;
    max-height: 270px !important;
    min-height: 230px !important;
    margin: 0 auto;
}

.amadex-container-type-300x250 .amadex-promo-content {
    padding: 15px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    text-align: center;
}

.amadex-container-type-300x250 .amadex-promo-title {
    font-size: 16px !important;
    margin: 0 0 8px 0 !important;
}

.amadex-container-type-300x250 .amadex-promo-description {
    font-size: 13px !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.amadex-container-type-300x250 .amadex-promo-image img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.amadex-container-type-300x250 .amadex-promo-button {
    width: 100%;
    padding: 10px !important;
    font-size: 13px !important;
}

/* 728×90 - Leaderboard */
.amadex-container-type-728x90 {
    width: 728px !important;
    height: 90px !important;
    max-width: 750px !important;
    min-width: 700px !important;
    max-height: 95px !important;
    min-height: 85px !important;
    margin: 0 auto;
}

.amadex-container-type-728x90 .amadex-promo-content {
    padding: 10px 20px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 100%;
}

.amadex-container-type-728x90 .amadex-promo-title {
    font-size: 18px !important;
    margin: 0 0 4px 0 !important;
}

.amadex-container-type-728x90 .amadex-promo-description {
    font-size: 13px !important;
    margin: 0 !important;
    line-height: 1.3;
}

.amadex-container-type-728x90 .amadex-promo-button {
    padding: 10px 24px !important;
    font-size: 14px !important;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 300×600 - Half Page */
.amadex-container-type-300x600 {
    width: 300px !important;
    height: 600px !important;
    max-width: 320px !important;
    min-width: 280px !important;
    max-height: 620px !important;
    min-height: 580px !important;
    margin: 0 auto;
}

.amadex-container-type-300x600 .amadex-promo-content {
    padding: 20px !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
}

.amadex-container-type-300x600 .amadex-promo-title {
    font-size: 20px !important;
    margin: 0 0 12px 0 !important;
}

.amadex-container-type-300x600 .amadex-promo-description {
    font-size: 14px !important;
    margin: 0 0 15px 0 !important;
    line-height: 1.5;
    flex: 1;
}

.amadex-container-type-300x600 .amadex-promo-image img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.amadex-container-type-300x600 .amadex-promo-button {
    width: 100%;
    padding: 12px !important;
    font-size: 14px !important;
    margin-top: auto;
}

/* Native & Custom Formats */

/* Native Inline Card */
.amadex-container-type-native-inline {
    width: 100% !important;
    max-width: 1200px !important;
    height: auto !important;
    margin: 0 auto;
}

.amadex-container-type-native-inline .amadex-promo-content {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Itinerary Style Native */
.amadex-container-type-itinerary-native {
    width: 100% !important;
    max-width: 800px !important;
    height: auto !important;
    min-height: 120px !important;
    margin: 0 auto;
}

.amadex-container-type-itinerary-native .amadex-promo-content {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Brand Banner */
.amadex-container-type-brand-banner {
    width: 100% !important;
    max-width: 1200px !important;
    height: auto !important;
    min-height: 200px !important;
    max-height: 600px !important;
    margin: 0 auto;
}

.amadex-container-type-brand-banner .amadex-promo-content {
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    padding: 40px !important;
    text-align: center;
}

.amadex-container-type-brand-banner .amadex-promo-title {
    font-size: 32px !important;
    margin: 0 0 15px 0 !important;
}

.amadex-container-type-brand-banner .amadex-promo-description {
    font-size: 18px !important;
    margin: 0 0 25px 0 !important;
}

.amadex-container-type-brand-banner .amadex-promo-button {
    padding: 15px 40px !important;
    font-size: 16px !important;
}

/* Carousel */
.amadex-container-type-carousel {
    width: 100% !important;
    max-width: 1200px !important;
    height: auto !important;
    min-height: 200px !important;
    max-height: 500px !important;
    margin: 0 auto;
}

.amadex-container-type-carousel .amadex-promo-content {
    border-radius: 12px;
    overflow: hidden;
}

/* Hero Takeover */
.amadex-container-type-hero-takeover {
    width: 100% !important;
    height: auto !important;
    min-height: 400px !important;
    max-height: 800px !important;
    margin: 0;
}

.amadex-container-type-hero-takeover .amadex-promo-content {
    border-radius: 0;
    padding: 60px 40px !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.amadex-container-type-hero-takeover .amadex-promo-title {
    font-size: 48px !important;
    margin: 0 0 20px 0 !important;
    font-weight: 700;
}

.amadex-container-type-hero-takeover .amadex-promo-description {
    font-size: 22px !important;
    margin: 0 0 30px 0 !important;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.amadex-container-type-hero-takeover .amadex-promo-button {
    padding: 18px 50px !important;
    font-size: 18px !important;
}

/* In-Banner Video */
.amadex-container-type-in-banner-video {
    width: 100% !important;
    max-width: 1200px !important;
    height: auto !important;
    min-height: 200px !important;
    max-height: 600px !important;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
}

.amadex-container-type-in-banner-video .amadex-promo-content {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    padding: 0 !important;
}

.amadex-container-type-in-banner-video .amadex-promo-content::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

/* Responsive Styles for Container Types */
@media (max-width: 1024px) {
    .amadex-container-type-728x90 {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        height: 90px !important;
    }
    
    .amadex-container-type-300x600 {
        width: 100% !important;
        max-width: 400px !important;
        height: auto !important;
        min-height: 400px !important;
    }
    
    .amadex-container-type-hero-takeover {
        min-height: 350px !important;
    }
    
    .amadex-container-type-hero-takeover .amadex-promo-title {
        font-size: 36px !important;
    }
    
    .amadex-container-type-hero-takeover .amadex-promo-description {
        font-size: 18px !important;
    }
}

@media (max-width: 767px) {
    .amadex-container-type-320x50,
    .amadex-container-type-320x100 {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }
    
    .amadex-container-type-300x250 {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
        min-height: 250px !important;
    }
    
    .amadex-container-type-728x90 {
        height: auto !important;
        min-height: 90px !important;
    }
    
    .amadex-container-type-300x600 {
        height: auto !important;
        min-height: 300px !important;
    }
    
    .amadex-container-type-hero-takeover {
        min-height: 300px !important;
        padding: 40px 20px !important;
    }
    
    .amadex-container-type-hero-takeover .amadex-promo-title {
        font-size: 28px !important;
    }
    
    .amadex-container-type-hero-takeover .amadex-promo-description {
        font-size: 16px !important;
    }
    
    .amadex-container-type-brand-banner {
        padding: 30px 20px !important;
    }
    
    .amadex-container-type-brand-banner .amadex-promo-title {
        font-size: 24px !important;
    }
    
    .amadex-container-type-brand-banner .amadex-promo-description {
        font-size: 16px !important;
    }
}

/* ============================================
   PREMIUM PROMOTIONAL CONTAINER ANIMATIONS
   Million-Dollar Quality Animations
   ============================================ */

/* Mobile performance optimizations */
@media (max-width: 767px) {
    .amadex-animation-mobile-disabled,
    .amadex-animation-mobile-disabled *,
    .amadex-animation-mobile-disabled::before,
    .amadex-animation-mobile-disabled::after {
        animation: none !important;
    }
}

/* 1. SHINE/SHIMMER - Enhanced premium light sweep effect with intensity */
@keyframes amadex-shine {
    0% {
        transform: translateX(-160%) skewX(-20deg);
        opacity: 0;
    }
    10% {
        opacity: calc(0.2 + (0.7 * var(--amadex-intensity, 0.5)));
    }
    35% {
        opacity: 0;
    }
    100% {
        transform: translateX(260%) skewX(-20deg);
        opacity: 0;
    }
}

.amadex-promotional-container.amadex-animation-shine {
    --amadex-intensity: 0.5;
    position: relative !important;
    overflow: hidden !important;
}

.amadex-promotional-container.amadex-animation-shine::after {
    content: "";
    position: absolute;
    inset: 0;
    width: calc(40% + (40% * var(--amadex-intensity, 0.5)));
    background: rgba(255, 255, 255, calc(0.5 + (0.5 * var(--amadex-intensity, 0.5))));
    mix-blend-mode: overlay;
    transform: translateX(-160%) skewX(-20deg);
    animation: amadex-shine 2.4s linear infinite;
    pointer-events: none;
    z-index: 10;
    will-change: transform, opacity;
}

/* 2. PULSE - Enhanced smooth breathing effect with intensity */
@keyframes amadex-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(calc(1 + (0.15 * var(--amadex-intensity, 0.5))));
        opacity: calc(1 - (0.1 * var(--amadex-intensity, 0.5)));
    }
}

.amadex-promotional-container.amadex-animation-pulse {
    --amadex-intensity: 0.5;
    animation: amadex-pulse var(--amadex-duration, 2s) cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    animation-delay: var(--amadex-delay, 0s);
    will-change: transform;
}

/* 3. FADE IN - Enhanced elegant entrance with intensity */
@keyframes amadex-fade-in {
    0% {
        opacity: 0;
        transform: translateY(calc(20px * var(--amadex-intensity, 0.5)));
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.amadex-promotional-container.amadex-animation-fade_in {
    --amadex-intensity: 0.5;
    animation: amadex-fade-in var(--amadex-duration, 0.8s) cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    animation-delay: var(--amadex-delay, 0s);
    will-change: transform, opacity;
}

/* 4. SLIDE IN LEFT - Enhanced dynamic entrance with intensity */
@keyframes amadex-slide-in-left {
    0% {
        opacity: 0;
        transform: translateX(calc(-300px * var(--amadex-intensity, 0.5)));
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.amadex-animation-slide_in_left {
    --amadex-intensity: 0.5;
    animation: amadex-slide-in-left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    will-change: transform, opacity;
}

/* 5. SLIDE IN RIGHT - Enhanced dynamic entrance with intensity */
@keyframes amadex-slide-in-right {
    0% {
        opacity: 0;
        transform: translateX(calc(300px * var(--amadex-intensity, 0.5)));
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.amadex-animation-slide_in_right {
    --amadex-intensity: 0.5;
    animation: amadex-slide-in-right 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    will-change: transform, opacity;
}

/* 6. BOUNCE - Enhanced playful entrance with intensity */
@keyframes amadex-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(calc(-40px * var(--amadex-intensity, 0.5)));
    }
    60% {
        transform: translateY(calc(-20px * var(--amadex-intensity, 0.5)));
    }
}

.amadex-animation-bounce {
    --amadex-intensity: 0.5;
    animation: amadex-bounce 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    will-change: transform;
}

/* 7. GLOW - Enhanced pulsing glow effect with intensity */
@keyframes amadex-glow {
    0%, 100% {
        box-shadow: 0 0 calc(3px + (7px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.2 + (0.3 * var(--amadex-intensity, 0.5)))),
                    0 0 calc(6px + (14px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.15 + (0.25 * var(--amadex-intensity, 0.5)))),
                    0 0 calc(9px + (21px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.1 + (0.2 * var(--amadex-intensity, 0.5))));
    }
    50% {
        box-shadow: 0 0 calc(6px + (14px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.4 + (0.5 * var(--amadex-intensity, 0.5)))),
                    0 0 calc(12px + (28px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.3 + (0.4 * var(--amadex-intensity, 0.5)))),
                    0 0 calc(18px + (42px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.2 + (0.3 * var(--amadex-intensity, 0.5))));
    }
}

.amadex-animation-glow {
    --amadex-intensity: 0.5;
}

.amadex-promotional-container.amadex-animation-glow .amadex-promo-content {
    animation: amadex-glow var(--amadex-duration, 2s) cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    animation-delay: var(--amadex-delay, 0s);
    will-change: box-shadow;
}

/* 8. ROTATE - Enhanced continuous rotation with intensity (speed) */
.amadex-animation-rotate {
    --amadex-intensity: 0.5;
    animation: amadex-rotate calc(30s - (27s * var(--amadex-intensity, 0.5))) linear infinite;
    will-change: transform;
}

@keyframes amadex-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.amadex-animation-rotate .amadex-promo-content {
    animation: none; /* Prevent double animation */
}

/* 9. BLINK - Enhanced attention-grabbing blink with intensity */
@keyframes amadex-blink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: calc(0.5 - (0.5 * var(--amadex-intensity, 0.5)));
    }
}

.amadex-animation-blink {
    --amadex-intensity: 0.5;
    animation: amadex-blink 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: opacity;
}

/* 10. GRADIENT SHIFT - Animated gradient background */
@keyframes amadex-gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.amadex-promotional-container.amadex-animation-gradient_shift .amadex-promo-content {
    background: linear-gradient(-45deg, #f8f9fa, #ffffff, #e8f5e9, #f8f9fa);
    background-size: 400% 400%;
    animation: amadex-gradient-shift var(--amadex-duration, 4s) ease infinite !important;
    animation-delay: var(--amadex-delay, 0s);
}

/* 11. FLOAT - Enhanced gentle up/down movement with intensity */
@keyframes amadex-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(calc(-25px * var(--amadex-intensity, 0.5)));
    }
}

.amadex-promotional-container.amadex-animation-float {
    --amadex-intensity: 0.5;
    animation: amadex-float var(--amadex-duration, 3s) cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    animation-delay: var(--amadex-delay, 0s);
    will-change: transform;
}

/* 12. SHAKE - Enhanced shake effect with intensity */
@keyframes amadex-shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(calc(-15px * var(--amadex-intensity, 0.5)));
    }
    20%, 40%, 60%, 80% {
        transform: translateX(calc(15px * var(--amadex-intensity, 0.5)));
    }
}

.amadex-animation-shake {
    --amadex-intensity: 0.5;
    animation: amadex-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
    will-change: transform;
}

/* 13. ZOOM IN - Enhanced scale entrance with intensity */
@keyframes amadex-zoom-in {
    0% {
        transform: scale(calc(0.95 - (0.45 * var(--amadex-intensity, 0.5))));
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.amadex-animation-zoom_in {
    --amadex-intensity: 0.5;
    animation: amadex-zoom-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    will-change: transform, opacity;
}

/* 14. GLAZING - Enhanced premium frosted glass effect with intensity */
@keyframes amadex-glazing-shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: calc(0.3 + (0.5 * var(--amadex-intensity, 0.5)));
    }
    100% {
        transform: translateX(200%) translateY(200%) rotate(45deg);
        opacity: 0;
    }
}

.amadex-promotional-container.amadex-animation-glazing {
    --amadex-intensity: 0.5;
    position: relative !important;
    overflow: hidden !important;
}

.amadex-promotional-container.amadex-animation-glazing::before {
    content: "" !important;
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, calc(0.3 + (0.5 * var(--amadex-intensity, 0.5)))) 50%,
        transparent 70%
    );
    animation-name: amadex-glazing-shine !important;
    animation-duration: var(--amadex-duration, 3s) !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
    animation-delay: var(--amadex-delay, 0s);
    pointer-events: none;
    z-index: 11;
    will-change: transform, opacity;
}

/* Handle case where duration is set to "infinite" (should be iteration-count, not duration) */
.amadex-promotional-container.amadex-animation-glazing[style*="--amadex-duration: infinite"]::before {
    animation-duration: 3s !important;
}

.amadex-promotional-container.amadex-animation-glazing .amadex-promo-content {
    backdrop-filter: blur(calc(5px + (10px * var(--amadex-intensity, 0.5))));
    background: rgba(255, 255, 255, calc(0.85 + (0.15 * var(--amadex-intensity, 0.5))));
    position: relative;
    z-index: 1;
}

/* 15. WAVE - Enhanced ocean-like wave motion with intensity */
@keyframes amadex-wave {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(calc(-10px * var(--amadex-intensity, 0.5))) rotate(calc(2deg * var(--amadex-intensity, 0.5)));
    }
    50% {
        transform: translateY(calc(-16px * var(--amadex-intensity, 0.5))) rotate(0deg);
    }
    75% {
        transform: translateY(calc(-10px * var(--amadex-intensity, 0.5))) rotate(calc(-2deg * var(--amadex-intensity, 0.5)));
    }
}

.amadex-animation-wave {
    --amadex-intensity: 0.5;
    animation: amadex-wave 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: transform;
}

/* 16. NEON GLOW - Enhanced cyberpunk-style neon border glow with intensity */
@keyframes amadex-neon-glow {
    0%, 100% {
        box-shadow: 0 0 calc(5px + (15px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.3 + (0.5 * var(--amadex-intensity, 0.5)))),
                    0 0 calc(10px + (30px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.3 + (0.5 * var(--amadex-intensity, 0.5)))),
                    0 0 calc(15px + (45px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.3 + (0.5 * var(--amadex-intensity, 0.5)))),
                    0 0 calc(20px + (60px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.3 + (0.5 * var(--amadex-intensity, 0.5)))),
                    inset 0 0 calc(5px + (15px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.2 + (0.4 * var(--amadex-intensity, 0.5))));
    }
    50% {
        box-shadow: 0 0 calc(10px + (30px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.6 + (0.4 * var(--amadex-intensity, 0.5)))),
                    0 0 calc(20px + (60px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.6 + (0.4 * var(--amadex-intensity, 0.5)))),
                    0 0 calc(30px + (90px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.6 + (0.4 * var(--amadex-intensity, 0.5)))),
                    0 0 calc(40px + (120px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.5 + (0.3 * var(--amadex-intensity, 0.5)))),
                    inset 0 0 calc(10px + (30px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.4 + (0.4 * var(--amadex-intensity, 0.5))));
    }
}

.amadex-animation-neon_glow {
    --amadex-intensity: 0.5;
}

.amadex-animation-neon_glow .amadex-promo-content {
    border: 2px solid rgba(14, 125, 63, calc(0.6 + (0.4 * var(--amadex-intensity, 0.5))));
    animation: amadex-neon-glow 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: box-shadow;
}

/* 15. SHIMMER SWEEP - Enhanced shimmer with multiple light sweeps */
@keyframes amadex-shimmer-sweep {
    0% {
        transform: translateX(-200%) skewX(-25deg);
        opacity: 0;
    }
    15% {
        opacity: calc(0.3 + (0.5 * var(--amadex-intensity, 0.5)));
    }
    30% {
        opacity: 0;
    }
    50% {
        transform: translateX(0%) skewX(-25deg);
        opacity: 0;
    }
    65% {
        opacity: calc(0.3 + (0.5 * var(--amadex-intensity, 0.5)));
    }
    80% {
        opacity: 0;
    }
    100% {
        transform: translateX(200%) skewX(-25deg);
        opacity: 0;
    }
}

.amadex-promotional-container.amadex-animation-shimmer_sweep {
    --amadex-intensity: 0.5;
    position: relative !important;
    overflow: hidden !important;
}

.amadex-promotional-container.amadex-animation-shimmer_sweep::after {
    content: "";
    position: absolute;
    inset: 0;
    width: calc(50% + (30% * var(--amadex-intensity, 0.5)));
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, calc(0.4 + (0.6 * var(--amadex-intensity, 0.5)))),
        transparent
    );
    mix-blend-mode: overlay;
    transform: translateX(-200%) skewX(-25deg);
    animation: amadex-shimmer-sweep 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 10;
    will-change: transform, opacity;
}

/* 16. CTA PULSE - Specialized pulse for call-to-action buttons */
@keyframes amadex-cta-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(14, 125, 63, calc(0.4 + (0.6 * var(--amadex-intensity, 0.5))));
    }
    50% {
        transform: scale(calc(1 + (0.1 * var(--amadex-intensity, 0.5))));
        box-shadow: 0 0 0 calc(10px + (20px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, 0);
    }
}

.amadex-animation-cta_pulse .amadex-promo-button {
    --amadex-intensity: 0.5;
    animation: amadex-cta-pulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: transform, box-shadow;
}

/* 17. SLIDE IN SETTLE - Slide in with gentle bounce settle */
@keyframes amadex-slide-in-settle {
    0% {
        opacity: 0;
        transform: translateX(calc(-150px * var(--amadex-intensity, 0.5))) translateY(calc(-30px * var(--amadex-intensity, 0.5)));
    }
    60% {
        opacity: 1;
        transform: translateX(0) translateY(calc(10px * var(--amadex-intensity, 0.5)));
    }
    80% {
        transform: translateX(0) translateY(calc(-5px * var(--amadex-intensity, 0.5)));
    }
    100% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
}

.amadex-animation-slide_in_settle {
    --amadex-intensity: 0.5;
    animation: amadex-slide-in-settle 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    will-change: transform, opacity;
}

/* 18. NUMBER COUNTER - Animated number counting (requires JS) */
.amadex-animation-number_counter {
    --amadex-intensity: 0.5;
}

.amadex-animation-number_counter .amadex-counter-number {
    display: inline-block;
    animation: amadex-counter-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    will-change: transform;
}

@keyframes amadex-counter-pop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 19. HOVER MICROINTERACTION - Subtle interactive effects on hover */
.amadex-animation-hover_microinteraction .amadex-promo-content {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.amadex-animation-hover_microinteraction .amadex-promo-content:hover {
    transform: translateY(calc(-4px * var(--amadex-intensity, 0.5))) scale(calc(1 + (0.02 * var(--amadex-intensity, 0.5))));
    box-shadow: 0 calc(8px + (12px * var(--amadex-intensity, 0.5))) calc(16px + (24px * var(--amadex-intensity, 0.5))) rgba(0, 0, 0, calc(0.15 + (0.1 * var(--amadex-intensity, 0.5))));
}

.amadex-animation-hover_microinteraction .amadex-promo-button {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.amadex-animation-hover_microinteraction .amadex-promo-button:hover {
    transform: translateY(calc(-2px * var(--amadex-intensity, 0.5))) scale(calc(1 + (0.05 * var(--amadex-intensity, 0.5))));
    box-shadow: 0 calc(4px + (8px * var(--amadex-intensity, 0.5))) calc(12px + (16px * var(--amadex-intensity, 0.5))) rgba(14, 125, 63, calc(0.3 + (0.2 * var(--amadex-intensity, 0.5))));
}

.amadex-animation-hover_microinteraction .amadex-promo-button:active {
    transform: translateY(0) scale(0.98);
}

/* 20. SEASONAL ORNAMENT EDGES - Decorative animated borders */
@keyframes amadex-ornament-sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: calc(0.6 + (0.4 * var(--amadex-intensity, 0.5)));
        transform: scale(calc(1.1 + (0.1 * var(--amadex-intensity, 0.5))));
    }
}

.amadex-animation-seasonal_ornament_edges {
    --amadex-intensity: 0.5;
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.amadex-animation-seasonal_ornament_edges::before {
    content: "";
    position: absolute;
    inset: -2px;
    border: 2px solid;
    border-image: linear-gradient(
        45deg,
        rgba(14, 125, 63, calc(0.3 + (0.4 * var(--amadex-intensity, 0.5)))),
        rgba(246, 133, 31, calc(0.3 + (0.4 * var(--amadex-intensity, 0.5)))),
        rgba(14, 125, 63, calc(0.3 + (0.4 * var(--amadex-intensity, 0.5))))
    ) 1;
    border-radius: inherit;
    animation: amadex-ornament-rotate 4s linear infinite;
    pointer-events: none;
    z-index: -1;
}

.amadex-animation-seasonal_ornament_edges::after {
    content: "✦";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(14, 125, 63, calc(0.6 + (0.4 * var(--amadex-intensity, 0.5))));
    font-size: 12px;
    animation: amadex-ornament-sparkle 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes amadex-ornament-rotate {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

/* Mobile Animation Disable */
@media (max-width: 768px) {
    .amadex-promotional-container.amadex-animation-mobile-disabled,
    .amadex-promotional-container.amadex-animation-mobile-disabled::before,
    .amadex-promotional-container.amadex-animation-mobile-disabled::after,
    .amadex-promotional-container.amadex-animation-mobile-disabled .amadex-promo-content {
        animation: none !important;
    }
    
    /* Reset transforms on mobile when animations disabled */
    .amadex-promotional-container.amadex-animation-mobile-disabled {
        transform: none !important;
    }
    
    .amadex-promotional-container.amadex-animation-mobile-disabled::before,
    .amadex-promotional-container.amadex-animation-mobile-disabled::after {
        display: none !important;
    }
    
    /* Disable hover effects on mobile */
    .amadex-animation-hover_microinteraction .amadex-promo-content:hover {
        transform: none !important;
    }
}

.amadex-flight-card {
    background: #FFFFFF;
    border: 1.5px solid #0E7D3F;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    /* Map background pattern */
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><path d="M50,20 Q100,10 150,20 T250,20" stroke="%23E5E7EB" stroke-width="0.5" fill="none" opacity="0.3"/><path d="M30,80 Q80,70 130,80 T230,80" stroke="%23E5E7EB" stroke-width="0.5" fill="none" opacity="0.3"/><path d="M40,140 Q90,130 140,140 T240,140" stroke="%23E5E7EB" stroke-width="0.5" fill="none" opacity="0.3"/><path d="M60,180 Q110,170 160,180 T260,180" stroke="%23E5E7EB" stroke-width="0.5" fill="none" opacity="0.3"/><circle cx="80" cy="60" r="8" fill="%23E5E7EB" opacity="0.2"/><circle cx="120" cy="100" r="6" fill="%23E5E7EB" opacity="0.2"/><circle cx="140" cy="150" r="7" fill="%23E5E7EB" opacity="0.2"/></svg>');
    background-size: 400px 400px;
    background-position: center;
    background-repeat: repeat;
}

/* Viewers Badge - Social Proof Indicator */
.amadex-viewers-badge {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(14, 125, 63, 0.95);
    color: #FFFFFF;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    white-space: nowrap;
    animation: amadexBadgeFadeIn 0.4s ease-out;
    pointer-events: none;
    max-width: 140px;
}

@keyframes amadexBadgeFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Badge Position Variants - Positioned relative to boarding-pass-content */
.amadex-viewers-badge-top-left {
    top: 8px;
    left: 8px;
    border-radius: 6px;
}

.amadex-viewers-badge-top-right {
    top: 8px;
    right: 8px;
    border-radius: 6px;
}

.amadex-viewers-badge-bottom-left {
    bottom: 8px;
    left: 8px;
    border-radius: 6px;
}

.amadex-viewers-badge-bottom-right {
    bottom: 8px;
    right: 8px;
    border-radius: 6px;
}

/* Badge Icon */
.amadex-viewers-badge-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0.9;
}

.amadex-viewers-badge-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
}

/* Badge Count */
.amadex-viewers-badge-count {
    font-weight: 700;
    font-size: 12px;
    color: #FFFFFF;
}

/* Badge Text */
.amadex-viewers-badge-text {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.95;
    text-transform: lowercase;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive adjustments for badge */
@media screen and (max-width: 768px) {
    .amadex-viewers-badge {
        padding: 5px 8px;
        font-size: 10px;
        max-width: 120px;
        gap: 3px;
    }
    
    .amadex-viewers-badge-icon svg {
        width: 12px;
        height: 12px;
    }
    
    .amadex-viewers-badge-count {
        font-size: 11px;
    }
    
    .amadex-viewers-badge-text {
        font-size: 9px;
    }
    
    .amadex-viewers-badge-top-left,
    .amadex-viewers-badge-top-right {
        top: 6px;
    }
    
    .amadex-viewers-badge-top-left,
    .amadex-viewers-badge-bottom-left {
        left: 6px;
    }
    
    .amadex-viewers-badge-top-right,
    .amadex-viewers-badge-bottom-right {
        right: 6px;
    }
    
    .amadex-viewers-badge-bottom-left,
    .amadex-viewers-badge-bottom-right {
        bottom: 6px;
    }
}

@media screen and (max-width: 480px) {
    .amadex-viewers-badge {
        padding: 4px 6px;
        font-size: 9px;
        max-width: 100px;
    }
    
    .amadex-viewers-badge-text {
        display: none; /* Hide text on very small screens, show only number */
    }
    
    .amadex-viewers-badge-icon svg {
        width: 11px;
        height: 11px;
    }
    
    .amadex-viewers-badge-count {
        font-size: 10px;
    }
    
    .amadex-viewers-badge-top-left,
    .amadex-viewers-badge-top-right {
        top: 4px;
    }
    
    .amadex-viewers-badge-top-left,
    .amadex-viewers-badge-bottom-left {
        left: 4px;
    }
    
    .amadex-viewers-badge-top-right,
    .amadex-viewers-badge-bottom-right {
        right: 4px;
    }
    
    .amadex-viewers-badge-bottom-left,
    .amadex-viewers-badge-bottom-right {
        bottom: 4px;
    }
}

button.amadex-price-box-select.amadex-select-flight-btn {
    display: none;
}

/* Boarding Pass Header */
.amadex-boarding-pass-header {
    background: linear-gradient(to right, #F6851F 0%, #F9B647 100%);
    color: #FFFFFF;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.amadex-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.amadex-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    padding-left: 20px;
    position: relative;
}

/* Add vertical divider line in header before right section */
.amadex-header-right::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: rgba(255, 255, 255, 0.3);
}

.amadex-boarding-pass-header .amadex-header-plane-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.amadex-boarding-pass-text {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    white-space: nowrap;
}

.amadex-header-subtitle {
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.05em;
    opacity: 0.95;
    text-transform: none;
}

.amadex-verified-flight-text {
    white-space: nowrap;
}

/* Boarding Pass Content */
.amadex-boarding-pass-content {
    position: relative;
    display: flex;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
}

.amadex-barcode-svg {
    width: 100%;
    height: 100%;
    max-height: 180px;
    transform: rotate(90deg);
    transform-origin: center;
}

/* Perforated Line - Cutout Holes Effect (Matching Boarding Pass Design) */
.amadex-perforated-line {
    position: relative;
    flex-shrink: 0;
    width: 6px;
    margin: 0 8px;
    background: transparent;
    z-index: 2;
    overflow: visible;
    align-self: stretch;
}

/* Create the main line with cutout holes using radial gradient mask */
.amadex-perforated-line::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #0E7D3F;
    transform: translateX(-50%);
    /* Create circular cutout holes - spacing matches boarding pass design */
    mask-image: 
        radial-gradient(circle at center, transparent 4px, black 4px, black 5px, transparent 5px);
    mask-size: 2px 12px;
    mask-repeat: repeat-y;
    mask-position: center;
    -webkit-mask-image: 
        radial-gradient(circle at center, transparent 4px, black 4px, black 5px, transparent 5px);
    -webkit-mask-size: 2px 12px;
    -webkit-mask-repeat: repeat-y;
    -webkit-mask-position: center;
}

/* Add white circular cutouts to simulate actual holes */
.amadex-perforated-line::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFFFFF;
    transform: translateX(-50%);
    /* Create evenly spaced holes along the line - 12px spacing */
    box-shadow: 
        0 12px 0 0 #FFFFFF,
        0 24px 0 0 #FFFFFF,
        0 36px 0 0 #FFFFFF,
        0 48px 0 0 #FFFFFF,
        0 60px 0 0 #FFFFFF,
        0 72px 0 0 #FFFFFF,
        0 84px 0 0 #FFFFFF,
        0 96px 0 0 #FFFFFF,
        0 108px 0 0 #FFFFFF,
        0 120px 0 0 #FFFFFF,
        0 132px 0 0 #FFFFFF,
        0 144px 0 0 #FFFFFF,
        0 156px 0 0 #FFFFFF,
        0 168px 0 0 #FFFFFF,
        0 180px 0 0 #FFFFFF,
        0 192px 0 0 #FFFFFF,
        0 204px 0 0 #FFFFFF,
        0 216px 0 0 #FFFFFF,
        0 228px 0 0 #FFFFFF,
        0 240px 0 0 #FFFFFF,
        0 252px 0 0 #FFFFFF,
        0 264px 0 0 #FFFFFF,
        0 276px 0 0 #FFFFFF,
        0 288px 0 0 #FFFFFF,
        0 300px 0 0 #FFFFFF,
        0 312px 0 0 #FFFFFF,
        0 324px 0 0 #FFFFFF,
        0 336px 0 0 #FFFFFF,
        0 348px 0 0 #FFFFFF,
        0 360px 0 0 #FFFFFF;
}

.amadex-flight-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 18px; */
}

.amadex-flight-card-header:empty {
    display: none;
}
.amadex-leg-path-line svg#Group_199 {
    width: 35%;
}
.amadex-flight-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #FFF8ED;
    border: 1px solid #F8D7A4;
    font-weight: 600;
    color: #111827;
    font-size: 13px;
}

.amadex-flight-badge .badge-icon {
    width: 16px;
    height: 16px;
    color: #111827;
    flex-shrink: 0;
}

.amadex-flight-seats {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #B80000;
    background: #B42318;
    background: #FFEEEE 0% 0% no-repeat padding-box;
    border-radius: 0px 0px 10px 10px;
}

/* .amadex-flight-seats.is-low {
    background: #B42318;
    border-color: #B42318;
} */

.amadex-flight-seats .seat-icon {
    width: 14px;
    height: 14px;
    color: #ffffff;
    flex-shrink: 0;
}

.amadex-flight-card-main {
    display: flex;
    gap: 0;
    align-items: stretch;
    width: 100%;
    padding-left: 15px; /* Removed barcode space */
    padding-right: 20px; /* Space for right edge */
    position: relative;
    z-index: 2;
    min-height: 0; /* Prevent flex items from overflowing */
}

.amadex-flight-card-info {
    flex: 1 1 75%;
    min-width: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: stretch; /* Match height of price section */
}

.amadex-flight-airline-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #0E7D3F;
}

.amadex-flight-airline-chip img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    padding: 6px;
    border: 1px solid #E2E2E2;
}

.amadex-flight-legs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 0;
}

.amadex-flight-leg {
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-right: 1px solid #E6E6E6;
    padding-right: 10px;
}

/* .amadex-flight-price-note - moved to allow price label to display */


.amadex-flight-leg:last-child {
    border-right: none;
    padding-right: 0;
}

.amadex-leg-title {
    font-weight: 700;
    font-size: 15px;
    color: #000000;
    line-height: 1.5;
}

.amadex-leg-airline-logo {
    margin: 8px 0;
    flex-shrink: 0;
}

.amadex-leg-airline-logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    /* border: 1px solid #E2E2E2; */
    object-fit: contain;
}

.amadex-leg-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin: 6px 0;
    width: 100%;
}

/* Group airline logo and departure time block together */
.amadex-leg-route > .amadex-leg-airline-logo + .amadex-leg-time-block {
    margin-left: 0; /* No extra margin, gap handles spacing */
}

.amadex-leg-route > .amadex-leg-airline-logo {
    margin-right: 4px;
}

@media (max-width: 640px) {
    .amadex-leg-route {
        gap: 8px;
    }
}

.amadex-leg-time-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 60px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .amadex-leg-time-block {
        min-width: 50px;
    }
}

.amadex-leg-time {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.2;
}

.amadex-leg-code {
    font-size: 13px;
    color: #6B7280;
    margin-top: 4px;
}

.amadex-leg-path {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 8px;
    min-height: 80px;
    max-width: 180px;
}

@media (max-width: 768px) {
    .amadex-leg-path {
        margin: 0 4px;
        gap: 6px;
        min-height: 70px;
    }
}

@media (max-width: 640px) {
    .amadex-leg-path {
        max-width: 140px;
        gap: 5px;
        min-height: 65px;
    }
    
    .amadex-leg-path-line {
        max-width: 140px;
    }
    
    .amadex-leg-path-line .amadex-path-line {
        max-width: 140px;
    }
}

.amadex-leg-duration {
    text-align: center;
    font-weight: 500;
    font-size: 13px;
    color: #0E7D3F;
    line-height: 1.2;
    margin-bottom: 4px;
}

.amadex-leg-duration span {
    display: block;
    white-space: nowrap;
}

.amadex-leg-path small {
    font-size: 12px;
    color: #707070;
}

.amadex-leg-duration small {
    font-size: 12px;
    color: #9CA3AF;
}

.amadex-leg-path-line {
    width: 100%;
    max-width: 140px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 4px 0;
    position: relative;
    height: 2px;
}

.amadex-leg-path-line .amadex-path-line {
    width: 100%;
    max-width: 140px;
    height: 2px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.amadex-leg-path-line .amadex-plane-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #ffffff;
    padding: 2px;
    z-index: 3;
    transition: transform 0.3s ease;
}

.amadex-leg-path-line:hover .amadex-plane-icon {
    transform: translateY(-50%) scale(1.1);
}

.amadex-leg-info-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    margin-top: 2px;
}

@media (max-width: 640px) {
    .amadex-leg-info-row {
        gap: 3px;
        margin-top: 1px;
    }
}

.amadex-layover-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #707070;
    cursor: pointer;
    margin: 0;
    gap: 4px;
    white-space: nowrap;
}

.amadex-layover-trigger.non-stop {
    color: #0E7D3F;
    font-weight: 500;
}

/* .amadex-layover-trigger.non-stop {
    border-style: solid;
    border-color: rgba(14, 125, 63, 0.35);
    color: #0E7D3F;
} */

.amadex-layover-trigger:focus {
    outline: 2px solid rgba(14, 125, 63, 0.45);
    outline-offset: 2px;
}

.amadex-layover-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    min-width: 320px;
    max-width: 90vw;
    max-height: 80vh;
    background: #FFFFFF;
    color: #111827;
    border-radius: 12px;
    padding: 0;
    font-size: 12px;
    line-height: 1.5;
    box-shadow: 0 8px 24px rgba(14, 125, 63, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10000;
    overflow: hidden;
}

.amadex-layover-tooltip::before {
    display: none; /* Hide arrow for centered tooltip */
}

.amadex-layover-tooltip-header {
    background: #EEF9F2;
    padding: 12px 16px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    gap: 8px;
}

.amadex-layover-tooltip-header-icon {
    width: 16px;
    height: 16px;
    color: #0E7D3F;
}

.amadex-layover-tooltip-body {
    padding: 12px 16px;
    overflow-y: auto;
    max-height: calc(80vh - 60px); /* Account for header */
}

.amadex-layover-trigger:hover .amadex-layover-tooltip,
.amadex-layover-trigger:focus .amadex-layover-tooltip,
.amadex-layover-trigger.active .amadex-layover-tooltip {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.amadex-layover-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
}

.amadex-layover-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.amadex-layover-row.has-plane-change,
.amadex-layover-row.has-terminal-change {
    background: #EEF9F2;
    padding: 12px 12px;
    border-radius: 8px;
    margin: 4px 0;
    border: 1px solid rgba(14, 125, 63, 0.15);
}

.amadex-layover-row-header {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.amadex-layover-index {
    font-weight: 700;
    color: #0E7D3F;
    font-size: 15px;
}

.amadex-layover-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #0E7D3F;
    color: #FFFFFF;
    font-weight: 600;
}

.amadex-layover-badge.plane-change {
    background: #F6851F;
    color: #FFFFFF;
}

.amadex-layover-badge.terminal-change {
    background: #3B82F6;
    color: #FFFFFF;
}

.amadex-layover-badge-icon {
    width: 12px;
    height: 12px;
}

.amadex-layover-row-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.amadex-layover-duration {
    font-size: 15px;
    color: #B91C1C;
    font-weight: 600;
}

.amadex-layover-city {
    font-size: 12px;
    color: #111827;
    font-weight: 500;
}

.amadex-layover-terminal {
    display: inline-block;
    font-size: 15px;
    color: rgba(193, 31, 31, 1);
    font-weight: 500;
    margin-left: 4px;
}

.amadex-layover-dots {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 12px;
    pointer-events: none;
    transform: translateY(-50%);
    z-index: 2;
}

.amadex-layover-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border: 2px solid #707070;
    border-radius: 50%;
    transform: translateX(-50%) translateY(-50%);
    top: 50%;
    box-shadow: 0 0 0 2px #ffffff;
    z-index: 2;
}

.amadex-leg-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #000000;
    margin-top: 12px;
    font-weight: 500;
    width: 100%;
}

@media (max-width: 768px) {
    .amadex-leg-meta {
        gap: 6px;
        margin-top: 10px;
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .amadex-leg-meta {
        gap: 4px;
    margin-top: 8px;
        font-size: 12px;
        flex-direction: column;
        align-items: flex-start;
    }
}

.amadex-leg-aircraft-info {
    font-size: 11px;
    color: #9CA3AF;
    font-weight: 500;
    text-align: center;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(156, 163, 175, 0.1);
    white-space: nowrap;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.amadex-leg-aircraft-info:hover {
    background: rgba(14, 125, 63, 0.1);
    color: #0E7D3F;
}

.amadex-leg-aircraft-info.amadex-aircraft-loading {
    opacity: 0.6;
    cursor: wait;
}

@media (max-width: 640px) {
    .amadex-leg-aircraft-info {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* Aircraft Details Tooltip/Popup */
.amadex-aircraft-tooltip {
    position: absolute;
    z-index: 10000;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    max-width: 320px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(-4px);
}

.amadex-aircraft-tooltip-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.amadex-aircraft-tooltip-hover {
    /* Hover tooltip styling for desktop */
}

.amadex-aircraft-tooltip-click {
    /* Click popup styling for mobile */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.amadex-aircraft-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #E5E7EB;
    background: #F9FAFB;
    border-radius: 8px 8px 0 0;
}

.amadex-aircraft-tooltip-code {
    font-size: 11px;
    font-weight: 600;
    color: #6B7280;
    letter-spacing: 0.5px;
}

.amadex-aircraft-tooltip-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.amadex-aircraft-tooltip-close:hover {
    color: #374151;
}

.amadex-aircraft-tooltip-body {
    padding: 12px;
}

.amadex-aircraft-tooltip-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.amadex-aircraft-tooltip-description {
    font-size: 12px;
    color: #6B7280;
    line-height: 1.5;
}

/* Mobile: Hide close button for hover tooltips, show for click popups */
@media (max-width: 768px) {
    .amadex-aircraft-tooltip-hover .amadex-aircraft-tooltip-close {
        display: none;
    }
    
    .amadex-aircraft-tooltip-click {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.95);
        max-width: 90%;
    }
    
    .amadex-aircraft-tooltip-click.amadex-aircraft-tooltip-visible {
        transform: translate(-50%, -50%) scale(1);
    }
}

.amadex-operating-carrier {
    font-size: 12px;
    color: #9CA3AF;
    font-weight: 400;
    font-style: italic;
}

.amadex-leg-airline {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    font-size: 14px;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .amadex-leg-airline {
        font-size: 12px;
        width: 100%;
    }
}

.amadex-leg-included {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6B7280;
    font-weight: 400;
}

.amadex-baggage-label {
    margin-right: 4px;
    color: #000000;
}

.amadex-baggage-icons-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.amadex-baggage-svg {
    flex-shrink: 0;
    display: inline-block;
    width: 10px;
    height: 14.545px;
}

.amadex-baggage-svg:last-of-type {
    width: 11.666px;
    height: 14.243px;
}

.amadex-leg-included.no-baggage {
    opacity: 0.5;
}

.amadex-leg-included.no-baggage .amadex-baggage-icons-wrapper {
    opacity: 0.5;
}

.amadex-leg-included.no-baggage .amadex-baggage-svg path {
    fill: #9CA3AF !important;
}

.amadex-baggage-cross {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    flex-shrink: 0;
}

.amadex-baggage-cross svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.amadex-baggage-cross {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.amadex-baggage-cross svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.amadex-baggage-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: inline-block;
}

.amadex-flight-info-footer {
    margin-top: 0;
}

.amadex-flight-detail-link {
    background:none;
    box-shadow:none;
    border: none;
    color: #0E7D3F;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    outline: none!important;
}

.amadex-flight-detail-link span {
    font-size: 25px;
    margin-bottom: 3px;
}

.amadex-flight-card-price {
    flex: 0 0 25%;
    min-width: 200px;
    max-width: 250px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: stretch; /* Match height of info section */
    justify-content: flex-start; /* Align content to top */
}
.amadex-search-summary-modern button.amadex-search-btn:hover {
    color: #fff;
    background-color: #0E7D3F;
    box-shadow: 0 8px 24px rgba(14, 125, 63, 0.35), 0 4px 12px rgba(14, 125, 63, 0.2);
}

.amadex-flight-class {
    font-weight: 600;
    font-size: 14px;
    color: #000000;
  
}

.amadex-flight-price-wrapper {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1.2;
}

.amadex-flight-price-wrapper .amadex-flight-price-note {
    font-size: 12px;
    color: #707070;
    font-weight: 400;
    display: inline-block;
}

.amadex-flight-price {
    font-size: 32px;
    font-weight: 700;
    color: #0B3D1F;
    display: inline-block;
}

.amadex-flight-price-note {
    font-size: 14px;
    color: #707070;
    font-weight: 400;
    display: inline-block;
}

.amadex-flight-card-price > .amadex-flight-price-note {
    font-size: 12px;
    color: #9CA3AF;
    margin-bottom: 8px;
    display: block;
}

.amadex-book-now-btn {
    width: 100%;
    border: 2px solid #0E7D3F;
    color: #0E7D3F;
    font-weight: 700;
    border-radius: 16px;
    padding: 12px 18px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.amadex-book-now-btn:hover {
    background: #0E7D3F;
    color: #ffffff;
}

.amadex-price-box-select {
    width: 100%;
    border: none;
    background: transparent;
    color: #0E7D3F;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
}

.amadex-price-box-call {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #0E7D3F;
    color: #ffffff;
    border-radius: 999px;
    padding: 12px 18px;
    text-decoration: none;
    font-weight: 600;
}

.amadex-price-box-call .amadex-phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.amadex-price-box-call .amadex-phone-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.amadex-call-icon-wrap {
    width: 28px;
    height: 32px;
    border-radius: 50%;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.amadex-book-now-btn:hover {
    background: #EEF9F2;
    color: #0e7d3f;
}

.amadex-call-icon-wrap img {
    width: 18px;
    height: 18px;
    display: block;
}

.amadex-call-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Call Banner Wrapper - maintains exact same dimensions as Book Now button */
.amadex-call-banner-wrapper {
    width: 100%;
    min-height: 48px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    padding: 12px 18px;
    box-sizing: border-box;
    margin-top: 8px;
    overflow: hidden;
    position: relative;
}

.amadex-call-banner-wrapper > * {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure banner content matches button styling - DESKTOP: Collapsed to button size */
@media (min-width: 1024px) {
    .amadex-call-banner-wrapper {
        position: relative;
    }
    
    .amadex-call-banner-wrapper .tgn-banner {
        width: 100% !important;
        margin: 0 !important;
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
    }
    
    .amadex-call-banner-wrapper .tgn-card {
        width: 100% !important;
        max-width: 100% !important;
        position: relative;
    }
    
    .amadex-call-banner-wrapper .tgn-drawer {
        position: relative !important;
        overflow: visible !important;
    }
    
    /* Desktop: Position expanded panel to the left side as popup */
    .amadex-call-banner-wrapper .tgn-expanded {
        position: absolute !important;
        right: calc(100% + 12px) !important;
        top: 0 !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        max-height: calc(100vh - 200px) !important;
        min-width: 380px;
        max-width: 420px;
        width: auto !important;
        opacity: 0 !important;
        pointer-events: none !important;
        z-index: 99999 !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        border-radius: 12px;
        transition: opacity 0.3s ease !important;
    }
    
    .amadex-call-banner-wrapper .tgn-drawer.tgn-open .tgn-expanded,
    .amadex-call-banner-wrapper .tgn-open .tgn-expanded {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    /* Arrow pointer pointing to the right (towards the button) */
    .amadex-call-banner-wrapper .tgn-expanded::before {
        content: '';
        position: absolute;
        right: -6px;
        top: 20px;
        width: 12px;
        height: 12px;
        background: rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(2px);
        border-right: 1px solid rgba(255, 255, 255, 0.35);
        border-bottom: 1px solid rgba(255, 255, 255, 0.35);
        transform: rotate(-45deg);
        z-index: 1;
    }
    
    /* Prevent overflow issues */
    .amadex-call-banner-wrapper .tgn-panel {
        max-height: calc(100vh - 200px) !important;
        overflow-y: auto;
    }
}

/* Mobile: Keep drawer behavior as is */
@media (max-width: 1023px) {
    .amadex-call-banner-wrapper {
        min-height: 48px;
    }
    
    .amadex-call-banner-wrapper .tgn-expanded {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        left: auto !important;
    }
}

@media (max-width: 640px) {
    .amadex-call-banner-wrapper {
        padding: 10px 16px;
        min-height: 44px;
        border-radius: 14px;
    }
}

@media (max-width: 1024px) {
    .amadex-flight-card-main {
        flex-direction: column;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .amadex-boarding-pass-content {
        padding: 0 0 0 0;
    }
    
    .amadex-perforated-line {
        display: none; /* Hide perforated line on mobile/tablet when layout is vertical */
    }
    
    .amadex-flight-card-price {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        border-left: none;
        border-top: 1px solid #E4E4E7;
        padding-top: 16px;
        padding-left: 0;
        align-self: stretch;
    }
    
    .amadex-flight-card-info {
        flex: 1 1 100%;
        align-self: stretch;
    }
    
    .amadex-book-now-btn,
    .amadex-price-box-select,
    .amadex-price-box-call,
    .amadex-call-banner-wrapper {
        width: 100%;
        min-height: 48px;
    }
}

@media (max-width: 640px) {
    .amadex-boarding-pass-header {
        padding: 10px 16px 28px 16px; /* Extra bottom padding for subtitle */
        font-size: 11px;
        flex-wrap: wrap;
        align-items: flex-start;
        position: relative;
    }
    
    /* Top row: TRAVELAY PASS (left) and VERIFIED FLIGHT (right) */
    .amadex-header-left {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-start;
        align-items: center;
        padding-right: 10px;
    }
    
    .amadex-header-right {
        flex: 0 0 auto;
        padding-left: 0;
        justify-content: flex-end;
        align-items: center;
    }
    
    .amadex-header-right::before {
        display: none; /* Hide divider on mobile */
    }
    
    .amadex-boarding-pass-header .amadex-header-plane-icon {
        width: 14px;
        height: 14px;
    }
    
    /* TRAVELAY PASS text - keep inline, remove subtitle from inline flow */
    .amadex-boarding-pass-text {
        font-size: 11px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
    }
    
    /* Subtitle - position absolutely relative to header, span full width below both sections */
    .amadex-header-subtitle {
        font-size: 9px;
        display: block;
        position: absolute;
        left: 16px; /* Match header padding */
        right: 16px; /* Match header padding */
        bottom: 8px; /* Position at bottom of header */
        width: auto;
        margin: 0;
        text-align: center;
        padding-top: 6px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        white-space: normal;
        box-sizing: border-box;
    }
    
    .amadex-verified-flight-text {
        font-size: 11px;
        white-space: nowrap;
    }
    
    .amadex-boarding-pass-content {
        padding: 0 0 0 0;
    }
    
    .amadex-flight-card-main {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .amadex-flight-card-price {
        padding-top: 12px;
    }
    
    .amadex-perforated-line {
        display: none; /* Hide on mobile */
    }
}

/* Enhanced responsive styles for flight leg section */
@media (max-width: 768px) {
    .amadex-leg-title {
        font-size: 13px;
    }
    
    .amadex-leg-time {
        font-size: 16px;
    }
    
    .amadex-leg-code {
        font-size: 12px;
    }
    
    .amadex-leg-duration {
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .amadex-flight-leg {
        padding: 12px 0;
    }
    
    .amadex-leg-route {
        gap: 6px;
        margin: 8px 0;
    }
    
    .amadex-leg-time {
        font-size: 15px;
    }
    
    .amadex-leg-code {
        font-size: 11px;
        margin-top: 2px;
    }
    
    .amadex-leg-duration {
        font-size: 11px;
    }
    
    .amadex-layover-trigger {
        font-size: 11px;
    }
}

.amadex-filter-search {
    position: relative;
    margin-bottom: 14px;
}

.amadex-filter-search input {
    width: 100%;
    border-radius: 16px;
    background: #F3F3F3 0% 0% no-repeat!important;
    border-radius: 20px!important;
    padding: 12px 46px 12px 16px;
    font-size: 14px;
    color: #000!important;
    background: #fff;
    transition: border-color 0.2s ease;
}

.amadex-filter-search input:focus {
    border-color: #0E7D3F;
    outline: none;
}

.amadex-filter-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
}

.amadex-filter-list-scroll {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
}

.amadex-filter-list-scroll::-webkit-scrollbar {
    width: 4px;
}

.amadex-filter-list-scroll::-webkit-scrollbar-thumb {
    background: rgba(14,125,63,0.4);
    border-radius: 999px;
}

.amadex-switch {
    position: relative;
    display: inline-flex;
    width: 40px!important;
    height: 22px;
}

.amadex-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.amadex-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E5E7EB;
    border-radius: 999px;
    transition: 0.2s;
}

.amadex-switch-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: 0.2s;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.amadex-switch input:checked + .amadex-switch-slider {
    background-color: #0E7D3F;
}

.amadex-switch input:checked + .amadex-switch-slider::before {
    transform: translateX(18px);
}

/* Main Results Area */
.amadex-results-main {
    width: 100%;
    max-width: 100%;
    background: #eef9f2;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.amadex-booking-progress {
    display: flex!important;
    align-items: center;
    gap: 16px;
    margin: 0 auto 32px;
    width: 100%;
    max-width: 100%;
    justify-content: center;
}

.booking-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9CA3AF;
    font-weight: 500;
    font-size: 14px;
}

.booking-step.is-active {
    color: #0E7D3F;
}

.booking-step.is-complete {
    color: #0E7D3F;
    opacity: 0.8;
}

.booking-step-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.booking-step-divider {
    flex: 1;
    height: 1.5px;
    background: #0e7d3f;
}

.booking-step-label {
    white-space: nowrap;
    font-size: 16px !important;
    color: #707070;
}

.amadex-flight-card.is-oneway-card .amadex-flight-legs {
    grid-template-columns: 1fr;
}

/* Segment Tabs Container for Multi-City Trips - Enhanced Design */
.amadex-segment-tabs-container {
    margin: 0 auto 24px;
    padding: 0;
    width: 100%;
}

.amadex-segment-tabs-wrapper {
    width: 100%;
}

.amadex-segment-tabs-header {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
    align-items: stretch;
    margin-bottom: 0;
}

.amadex-segment-tab {
    background: #ffffff;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    min-width: 190px;
    flex: 1 1 190px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.amadex-segment-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.amadex-segment-tab:hover {
    border-color: #0E7D3F;
    box-shadow: 0 6px 16px rgba(14, 125, 63, 0.2);
    transform: translateY(-4px);
}

.amadex-segment-tab:hover::before {
    background: #0E7D3F;
}

.amadex-segment-tab.is-active {
    background: linear-gradient(135deg, #0E7D3F 0%, #0d6e35 100%);
    border-color: #0E7D3F;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(14, 125, 63, 0.3);
    transform: translateY(-2px);
}

/* .amadex-segment-tab.is-active::before {
    background: #ffffff;
    opacity: 0.3;
} */

/* Selected segment indicator */
.amadex-segment-tab.segment-selected {
    border-color: #0e7d3f;
    background: #F0FDF4;
}

.amadex-segment-tab.segment-selected.is-active {
    background: linear-gradient(135deg, #0e7d3f 0%, #0e7d3f 100%);
    border-color: #0e7d3f;
}

.segment-selected-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #0e7d3f;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.amadex-segment-tab.is-active .segment-selected-indicator {
    background: #ffffff;
    color: #0e7d3f;
}

/* Selected flight card */
.amadex-flight-card.flight-selected {
    border: 2px solid #0e7d3f;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    background: #F0FDF4;
}

.amadex-flight-card.flight-selected::before {
    content: '✓ Selected';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #0e7d3f;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    display: none;
}

/* Selected segment indicator */
.amadex-segment-tab.segment-selected {
    border-color: #0e7d3f;
    background: #F0FDF4;
}

.amadex-segment-tab.segment-selected.is-active {
    background: linear-gradient(135deg, #0e7d3f 0%, #0e7d3f 100%);
    border-color: #0e7d3f;
}

.segment-selected-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #0e7d3f;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    z-index: 5;
}

.amadex-segment-tab.is-active .segment-selected-indicator {
    background: #ffffff;
    color: #0e7d3f;
}

.amadex-segment-tab-content {
    position: relative;
}

/* Selected flight card */
.amadex-flight-card.flight-selected {
    border: 2px solid #0e7d3f !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
    background: #FFF !important;
    position: relative;
}

.amadex-flight-card.flight-selected::after {
    content: '✓ Selected';
    position: absolute;
    top: 10px;
    right: 4px;
    background: #0e7d3f;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    margin-top:30px;
}

/* Multi-city feedback message */
.amadex-multicity-feedback {
    background: linear-gradient(135deg, #0e7d3f 0%, #059669 100%);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 12px;
    margin: 16px 0;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    display: none;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.amadex-segment-tab-content {
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.amadex-segment-tab-route {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.amadex-segment-tab-origin,
.amadex-segment-tab-destination {
    color: #111827;
    font-weight: 600;
    text-align: center;
}

.amadex-segment-tab.is-active .amadex-segment-tab-origin,
.amadex-segment-tab.is-active .amadex-segment-tab-destination {
    color: #ffffff;
}

.amadex-segment-tab-arrow {
    color: #6B7280;
    font-size: 20px;
    font-weight: 400;
}

.amadex-segment-tab.is-active .amadex-segment-tab-arrow {
    color: rgba(255, 255, 255, 0.9);
}

.amadex-segment-tab-date {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
    line-height: 1.5;
}

.amadex-segment-tab.is-active .amadex-segment-tab-date {
    color: rgba(255, 255, 255, 0.95);
}

.amadex-segment-tab-duration {
    font-size: 13px;
    color: #9CA3AF;
    font-weight: 500;
    margin-top: 4px;
}

.amadex-segment-tab.is-active .amadex-segment-tab-duration {
    color: rgba(255, 255, 255, 0.85);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .amadex-segment-tab {
        min-width: 240px;
        flex: 1 1 240px;
    }
}

@media (max-width: 768px) {
    .amadex-segment-tabs-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .amadex-segment-tab {
        width: 100%;
        min-width: 100%;
        flex: 1 1 100%;
    }
    
    .amadex-segment-tab-content {
        padding: 16px 20px;
    }
    
    .amadex-segment-tab-route {
        font-size: 16px;
    }
}

/* Results Sort Bar - Desktop Only (Hidden on Mobile 320px-767px) */
.amadex-results-sort-bar {
    margin: 0;
    width: 100%;
    /* background: #ffffff; */
    border-radius: 999px;
    padding: 12px 0;
    /* box-shadow: 0 18px 45px rgba(14, 125, 63, 0.12); */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Hide results sort bar on mobile devices (320px - 767px) */
@media only screen and (min-width: 320px) and (max-width: 767px) {
    .amadex-results-sort-bar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .amadex-flight-leg {
        border-right:none!important;
    }
}

/* Ensure results sort bar is visible on desktop (768px and above) */
@media only screen and (min-width: 768px) {
    .amadex-results-sort-bar {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        height: auto !important;
        overflow: visible !important;
        width: 100% !important;
        padding: 12px 0 !important;
        margin: 0 auto 15px !important;
    }
}

.amadex-sort-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #FFFFFF 0% 0% no-repeat padding-box;
    box-shadow: 0px 0px 0px #00000029;
    border-radius: 18px;
    padding: 6px 15px;
}

.sort-tab {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 999px;
    font-weight: 500;
    color: #111827;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    font-size: 15px;
}

.sort-tab.is-active {
    background: none;
    color: #0E7D3F;
}

.amadex-results-available {
    font-weight: 500;
    color: #000000;
    white-space: nowrap;
    font-size: 15px;
}

.amadex-results-controls {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    display: none;
}

.amadex-sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.amadex-sort-controls label {
    font-weight: 600;
    color: #333;
    width: 33%;
}

.amadex-sort-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}

.amadex-price-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.amadex-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.amadex-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.amadex-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.amadex-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.amadex-toggle input:checked + .amadex-toggle-slider {
    background-color: #007cba;
}

.amadex-toggle input:checked + .amadex-toggle-slider:before {
    transform: translateX(26px);
}

.amadex-toggle-label {
    font-size: 14px;
    color: #666;
}

/* Loading State */
.amadex-loading {
    text-align: center;
    padding: 60px 20px;
}

.amadex-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Results State - Positioned at top after header */
.amadex-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    margin: 20px 0;
    order: 1; /* Ensure it appears early in flex order if parent is flex */
    width: 100%;
}

.amadex-new-search-btn {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
}

/* Flight List */
.amadex-flights-list {
    width: 100%;
    padding: 0;
    background: #EEF9F2;
    display: flex;
    flex-direction: column;
}

/* Ensure no-results appears at top after header */
.amadex-flights-list .amadex-no-results {
    order: 1;
    margin-top: 0;
    margin-bottom: 20px;
}

.amadex-flight-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px;
    transition: background-color 0.2s ease;
}

.amadex-flight-item:hover {
    background-color: #f8f9fa;
}

.amadex-flight-item:last-child {
    border-bottom: none;
}

.amadex-flight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.amadex-flight-airline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #007cba;
}

.amadex-flight-airline-logo {
    width: 60px;
    height: 60px;
    /* background: #f0f0f0; */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.amadex-flight-price {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.amadex-flight-segments {
    margin-bottom: 15px;
}

.amadex-flight-segment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    /* border-bottom: 1px solid #f0f0f0; */
}

.amadex-flight-segment:last-child {
    border-bottom: none;
}

.amadex-segment-airports {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.amadex-segment-airport {
    text-align: center;
    min-width: 80px;
}

.amadex-segment-airport-code {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.amadex-segment-airport-name {
    font-size: 12px;
    color: #666;
}

.amadex-segment-duration {
    font-size: 14px;
    color: #666;
    text-align: center;
    min-width: 100px;
}

.amadex-segment-connection {
    font-size: 12px;
    color: #666;
    text-align: center;
    min-width: 100px;
}

.amadex-flight-details {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.amadex-flight-detail {
    display: flex;
    align-items: center;
    gap: 5px;
}

.amadex-flight-detail-icon {
    width: 16px;
    height: 16px;
    background: #f0f0f0;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.amadex-flight-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.amadex-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.amadex-btn-primary {
    background: #28a745;
    color: #fff;
}

.amadex-btn-primary:hover {
    background: #218838;
}

.amadex-btn-secondary {
    background: #007cba;
    color: #fff;
    text-decoration: none !important;
}

.amadex-btn-secondary:hover {
    background: #005a87;
}
div#amadex-load-more-wrap {
    text-align: center;
    background: #0E7D3F 0% 0% no-repeat padding-box;
    border: 1px solid #0E7D3F;
    border-radius: 20px;
}
/* .amadex-load-more-wrap:hover {
   background:#fff!important;
} */
button#amadex-load-more:hover{
    color:#fff;
}
button#amadex-clear-filters {
    background: none;
    border: none;
    box-shadow: none;
    font-size: 16px;
    padding: 0;
    color: #0E7D3F;
    /* text-decoration:underline; */
}
button#amadex-load-more {
    font-size: 20px;
    padding: 10px 20px;
}
.amadex-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.amadex-results-showing {
    padding: 10px 0;
}
span#amadex-results-count {
    color: green;
    font-weight: 700;
}
.amadex-btn-outline {
    background: transparent;
    color: #fff;
}

/* .amadex-btn-outline:hover {
    background: #fff;
    color: #0e7d3f;
} */

/* Modal Styles */
.amadex-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.amadex-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 40%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.amadex-modal-header {
    background: #007cba;
    color: #fff;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.amadex-flight-details-header {
    background: #fff !important;
    color: #111827 !important;
    padding: 20px 24px !important;
    border-bottom: 1px solid #E5E7EB !important;
    position: relative;
}

.amadex-flight-details-header h3 {
    color: #111827 !important;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.amadex-flight-details-close {
    background: #0E7D3F !important;
    color: #fff !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* .amadex-flight-details-close:hover {
    background: #0b6a34 !important;
    transform: scale(1.1);
} */

.amadex-modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.amadex-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.amadex-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.amadex-modal-body {
    padding: 20px;
}

/* Flight Detail Modal - Modern Pixel Perfect Design */

.amadex-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: amadex-fadeIn 0.3s ease-out;
}

.amadex-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes amadex-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.amadex-flight-details-modal-wrapper {
    background: #ffffff;
    border-radius: 24px;
    max-width: 700px;
    width: 95%;
    max-height: 60vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: amadex-slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin: auto;
}

@keyframes amadex-slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.amadex-flight-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 0;
    background: #ffffff;
    position: relative;
}

.amadex-flight-details-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
}

.amadex-flight-details-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #E5E7EB;
    color: #6B7280;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 20px;
    right: 24px;
}

/* .amadex-flight-details-close:hover {
    background: #F9FAFB;
    border-color: #111827;
    color: #111827;
    transform: rotate(90deg) scale(1.05);
} */

.amadex-flight-details-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #E5E7EB transparent;
}

.amadex-flight-details-body::-webkit-scrollbar {
    width: 8px;
}

.amadex-flight-details-body::-webkit-scrollbar-track {
    background: transparent;
}

.amadex-flight-details-body::-webkit-scrollbar-thumb {
    background: #E5E7EB;
    border-radius: 4px;
}

.amadex-flight-details-body::-webkit-scrollbar-thumb:hover {
    background: #D1D5DB;
}

div#amadex-flight-details-modal {
    max-width: 100%;
}

.amadex-flight-tabs {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    border-bottom: 2px solid #F3F4F6;
    margin: 0;
    padding: 0 28px;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 5;
}

.amadex-flight-tab {
    flex: 0 1 auto;
    border: none;
    background: transparent;
    color: #000000;
    font-weight: 600;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    position: relative;
    outline: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    outline: none!important;
}

.amadex-flight-tab:hover {
    color: #0E7D3F;
    background: rgba(14, 125, 63, 0.05);
}

.amadex-flight-tab.is-active {
    color: #0E7D3F;
    border-bottom-color: #0E7D3F;
    background: transparent;
    font-weight: 700;
}

.amadex-flight-tab-panels {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 28px;
}

.amadex-flight-tab-panel {
    display: none;
    animation: amadex-fadeInPanel 0.3s ease-out;
}

@keyframes amadex-fadeInPanel {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.amadex-flight-tab-panel.is-active {
    display: block;
}

.amadex-flight-overview-card {
    background: #F3F8F4;
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border: 1px solid #E5E7EB;
    margin-bottom: 16px;
}

.amadex-flight-summary-left {
    flex: 1;
}

.amadex-flight-route-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.amadex-flight-overview-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

.amadex-flight-overview-meta span {
    display: inline-flex;
    align-items: center;
}

.amadex-flight-chip {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(14, 125, 63, 0.1);
    color: #0E7D3F;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

.amadex-flight-overview-card h4 {
    margin: 0;
    font-size: 20px;
    color: #111827;
}

.amadex-flight-date {

    color: #000;
    font-size: 14px;
}

.amadex-flight-overview-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
    font-weight: 600;
    color: #111827;
}

.amadex-flight-airline-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.amadex-airline-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #E5E7EB;
}

.amadex-airline-pill img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.amadex-airline-cabin {
    font-weight: 600;
    color: #0E7D3F;
}

.amadex-flight-info-pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 12px 0 4px;
}

.amadex-info-pill {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 12px 16px;
}

.amadex-info-pill .label {
    display: block;
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 4px;
}

.amadex-info-pill strong {
    font-size: 15px;
    color: #111827;
}

.amadex-flight-segment-list {
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    padding: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Detailed Segment Display */
/* .amadex-segment-detailed {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 0;
    background: #ffffff;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.amadex-segment-detailed:last-child {
    margin-bottom: 0;
} */

.amadex-segment-airline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #EEF9F2 0% 0%;
    border-radius: 20px 20px 0px 0px;
}

.amadex-segment-meta-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.amadex-segment-aircraft {
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
    padding: 4px 10px;
    background: #F9FAFB;
    border-radius: 6px;
}

.amadex-segment-airline-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.amadex-segment-airline-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 18px;
}

.amadex-segment-airline-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.amadex-segment-airline-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
}

.amadex-segment-flight-number {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

.amadex-segment-travel-class {
    font-size: 14px;
    color: #0E7D3F;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(14, 125, 63, 0.1);
    border-radius: 6px;
}

.amadex-segment-timeline-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px;
    position: relative;
}

.amadex-segment-timeline-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    position: relative;
    padding-bottom: 20px;
}

.amadex-segment-departure,
.amadex-segment-arrival,
.amadex-segment-departure-section,
.amadex-segment-arrival-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.amadex-segment-airport-code {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin-top: 4px;
}

.amadex-segment-airport-name {
    font-size: 14px;
    color: #111827;
    font-weight: 500;
    line-height: 1.3;
}

.amadex-segment-city-name {
    font-size: 14px;
    color: #111827;
    font-weight: 500;
    margin-top: 2px;
}

.amadex-segment-time-main {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.amadex-day-diff {
    font-size: 12px;
    color: #0E7D3F;
    font-weight: 600;
    vertical-align: super;
    margin-left: 2px;
}

.amadex-segment-airport-full {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.amadex-segment-airport-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.amadex-segment-date-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    margin-top: 6px;
}

.amadex-date-text {
    color: #6B7280;
    font-weight: 500;
    line-height: 1.4;
}

.amadex-terminal-text {
    color: #6B7280;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.amadex-segment-duration-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    position: relative;
    padding: 0 8px;
    flex-shrink: 0;
}

.amadex-segment-line-vertical {
    width: 2px;
    flex: 1;
    background: #8b8ca4;
    min-height: 34px;
    border-radius: 1px;
}

.amadex-segment-duration-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    /* padding: 8px 12px;
    background: #F0FDF4;
    border: 1px solid #0E7D3F;
    border-radius: 8px; */
    white-space: nowrap;
}

.amadex-duration-text {
    font-size: 13px;
    font-weight: 600;
    color: #707070;
    line-height: 1.2;
    border: none;
}

.amadex-segment-plane-icon {
    width: 16px;
    height: 16px;
    color: #0E7D3F;
    flex-shrink: 0;
}

.amadex-layover-info {
    margin-top: 16px;
    padding: 8px 16px;
    background: #FFF9EB;
    border: 1px dashed #F59E0B;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.amadex-layover-label {
    color: #92400E;
    font-weight: 600;
}

.amadex-layover-duration {
    color: #92400E;
    font-weight: 600;
}

/* Baggage Info Section */
.amadex-baggage-info-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0 0 0;
    padding: 20px;
    border-radius: 15px;
    background: transparent linear-gradient(90deg, #EFEFEF 0%, #EFEFEF00 100%) 0% 0% no-repeat padding-box;
}

.amadex-baggage-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid #E5E7EB;
}

.amadex-baggage-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.amadex-baggage-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.amadex-baggage-label {
    font-size: 15px;
    color: #111827;
    font-weight: 600;
}

.amadex-baggage-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
}

.amadex-baggage-status-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.amadex-baggage-status-text {
    white-space: nowrap;
    font-weight: 600;
}

.amadex-baggage-included {
    background: #F0FDF4;
    border: 1px solid #86EFAC;
}

.amadex-baggage-included .amadex-baggage-status-text {
    color: #0E7D3F !important;
}

.amadex-baggage-chargeable {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
}

.amadex-baggage-chargeable .amadex-baggage-status-text {
    color: #DC2626 !important;
}

.amadex-baggage-details {
    font-size: 14px;
    color: #6B7280;
    font-weight: 400;
    line-height: 1.5;
    margin-top: 4px;
}

/* Legacy support for old column layout */
.amadex-baggage-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 12px;
    border-right: 1px solid #E5E7EB;
}

.amadex-baggage-column:first-child {
    padding-left: 0;
}

.amadex-baggage-column:last-child {
    border-right: none;
    padding-right: 0;
}

.amadex-baggage-header {
    font-size: 14px;
    color: #111827;
    font-weight: 600;
    margin-bottom: 4px;
}

.amadex-baggage-content {
    font-size: 14px;
    color: #111827;
    font-weight: 500;
    line-height: 1.4;
}

/* Amenities Section */
.amadex-amenities-section {
    margin: 0;
    padding: 16px 20px;
    /* background: #F9FAFB;
    border-top: 1px solid #E5E7EB; */
}

.amadex-amenities-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.amadex-amenities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.amadex-amenity-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    /* background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 6px; */
    font-size: 13px;
}

.amadex-amenity-icon {
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.amadex-amenity-icon svg,
.amadex-wifi-icon,
.amadex-ac-power-icon,
.amadex-usb-power-icon,
.amadex-personal-device-icon,
.amadex-live-tv-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
}

.amadex-ac-power-icon {
    width: 14px;
    height: 16px;
}

.amadex-usb-power-icon {
    width: 12px;
    height: 16px;
}

.amadex-personal-device-icon {
    width: 14px;
    height: 16px;
}

.amadex-live-tv-icon {
    width: 16px;
    height: 14px;
}

.amadex-amenity-name {
    font-size: 13px;
    color: #111827;
    font-weight: 500;
    line-height: 1.4;
}

.amadex-segment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.amadex-segment-time {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 120px;
}

.amadex-segment-time .time {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.amadex-segment-time .code {
    font-size: 14px;
    color: #0E7D3F;
    font-weight: 600;
}

.amadex-segment-time .city {
    font-size: 13px;
    color: #6B7280;
}

.amadex-segment-middle {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    color: #6B7280;
    font-weight: 600;
}

.amadex-segment-middle .segment-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #0E7D3F, rgba(14,125,63,0));
    border-radius: 999px;
}

.amadex-layover-row {
    padding: 0;
    background: #202924;
    border-radius: 12px;
    font-size: 13px;
    color: #92400E;
    justify-content: center;
}

.amadex-flight-footer-bar {
    position: sticky;
    bottom: 0;
    background: #fff;
    border: none;
    /* margin-top: 24px; */
    z-index: 10;
    border-radius: 0;
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    box-shadow: 0px 0px 15px #00000029;
    border: 1px solid #0E7D3F !important;
    border-radius: 20px 20px 0px 0px;
}

.amadex-flight-price-wrap {
    color: #ffffff;
}

.amadex-flight-price-wrap .amadex-price-label {
    color: #000000;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    font-weight: 700;
}

.amadex-price-row .amadex-flight-price {
    color: #000000;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.amadex-discount-badge {
    background:#77dfa530;
    color: #0E7D3F;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    border: 1px dashed #0E7D3F;
}


.amadex-flight-continue-btn:hover {
    background: #F0FDF4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #000000;
}

.amadex-flight-price-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.amadex-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
}


.amadex-flight-price {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
}

.amadex-discount-pill {
    background: #0E7D3F;
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.amadex-flight-continue-btn {
    background: #0E7D3F!important;
    color: #fff!important;
    border: none;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    width: 30%;
}
.amadex-flight-continue-btn:hover {
    background: #0b6a34;
}

.amadex-fare-rules-card {
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 20px;
    background: #fff;
}

.amadex-fare-rules-card h4 {
    margin: 0 0 6px;
}

.amadex-fare-intro {
    margin: 0 0 18px;
    color: #6B7280;
}

.amadex-fare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.amadex-fare-grid .label {
    font-size: 12px;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.amadex-fare-rule-list {
    margin: 0;
    padding-left: 18px;
    color: #4B5563;
    line-height: 1.6;
}

.amadex-empty-details {
    text-align: center;
    color: #6B7280;
    padding: 40px 0;
}

/* Connecting Flight Banner */
.amadex-connecting-banner {
    background: #FFF9EB;
    border: 1px dashed #F59E0B;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.amadex-connecting-text {
    font-size: 14px;
    font-weight: 600;
    color: #92400E;
}

.amadex-connecting-time {
    font-size: 14px;
    font-weight: 600;
    color: #92400E;
}

/* Fare Rules Buttons */
.amadex-fare-rules-route-section {
    margin-bottom: 30px;
}

.amadex-fare-rules-route-section:last-child {
    margin-bottom: 0;
}

.amadex-fare-rules-route-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
}

.amadex-fare-rules-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.amadex-fare-rule-btn {
    padding: 10px 18px;
    border: 2px solid #0E7D3F;
    background: #ffffff;
    color: #0E7D3F;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amadex-fare-rule-btn:hover {
    background: #F0FDF4;
}

.amadex-fare-rule-btn.active {
    background: #0E7D3F;
    color: #ffffff;
}

.amadex-fare-rules-content {
    margin-top: 16px;
}

.amadex-fare-rule-text {
    display: none;
    font-size: 14px;
    line-height: 1.6;
    color: #4B5563;
    padding: 16px;
    background: #F9FAFB;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.amadex-fare-rule-text.active {
    display: block;
}

/* Update Flight Footer Bar */
.amadex-flight-price-wrap {
    color: #ffffff;
}

.amadex-flight-price {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
}

.amadex-flight-continue-btn:hover {
    background: #F0FDF4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ==================== Sticky Call Now Banner ==================== */
/* Pulse Animation Keyframes */
@keyframes amadex-pulse {
    0% {
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(14, 125, 63, 0.7);
    }
    50% {
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15), 0 0 0 10px rgba(14, 125, 63, 0);
    }
    100% {
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(14, 125, 63, 0);
    }
}

@-webkit-keyframes amadex-pulse {
    0% {
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(14, 125, 63, 0.7);
    }
    50% {
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15), 0 0 0 10px rgba(14, 125, 63, 0);
    }
    100% {
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(14, 125, 63, 0);
    }
}

/* Base banner styles - hidden by default */
.amadex-call-now-banner {
    display: none;
}

/* Floating banner - hidden on desktop, shown only on mobile */
.amadex-call-now-floating {
    display: none !important;
}

/* Pulse effect for floating banner - hidden on desktop */
.amadex-call-now-pulse.amadex-call-now-floating {
    display: none !important;
}

/* Explicitly hide on desktop/large devices (MacBook, large screens) */
@media (min-width: 769px) {
    .amadex-call-now-banner.amadex-call-now-floating,
    .amadex-call-now-banner.amadex-call-now-floating.amadex-call-now-pulse,
    .amadex-call-now-floating,
    .amadex-call-now-pulse.amadex-call-now-floating {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
    }
}

/* Hide on very large screens (MacBook Pro, large desktops) */
@media (min-width: 1024px) {
    .amadex-call-now-banner.amadex-call-now-floating,
    .amadex-call-now-banner.amadex-call-now-floating.amadex-call-now-pulse {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Mobile-only banner - shows only on mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    /* Floating banner - show on mobile devices */
    .amadex-call-now-floating {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: #fff;
        border-radius: 20px 20px 0 0 !important;
        padding: 12px 16px;
        z-index: 99999 !important;
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
        margin: 0 !important;
        max-width: 100% !important;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform;
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        transition: background-color 0.2s ease, transform 0.2s ease;
    }
    .amadex-call-now-banner.amadex-call-now-floating.amadex-call-now-pulse{
        border-radius: 20px;
    }
    
    .amadex-call-now-floating:hover,
    .amadex-call-now-floating:active {
        background: #0a5d2e;
    }
    
    .amadex-call-now-floating:active {
        transform: translateY(2px);
    }
    
    /* Pulse effect for floating banner on mobile */
    .amadex-call-now-pulse.amadex-call-now-floating {
        display: block !important;
        animation: amadex-pulse 2s ease-in-out infinite;
        -webkit-animation: amadex-pulse 2s ease-in-out infinite;
    }
    
    .amadex-call-now-mobile-only,
    .amadex-call-now-banner:not(.amadex-call-now-floating) {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: #0E7D3F;
        border-radius: 20px 20px 0 0 !important;
        padding: 12px 16px;
        z-index: 99999 !important;
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
        margin: 0 !important;
        max-width: 100% !important;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform;
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        transition: background-color 0.2s ease, transform 0.2s ease;
    }
    
    .amadex-call-now-mobile-only:hover,
    .amadex-call-now-mobile-only:active,
    .amadex-call-now-banner:not(.amadex-call-now-floating):hover,
    .amadex-call-now-banner:not(.amadex-call-now-floating):active {
        background: #0a5d2e;
    }
    
    .amadex-call-now-mobile-only:active,
    .amadex-call-now-banner:not(.amadex-call-now-floating):active {
        transform: translateY(2px);
    }

    
    .amadex-call-now-pulse.amadex-call-now-mobile-only,
    .amadex-call-now-pulse.amadex-call-now-banner:not(.amadex-call-now-floating) {
        animation: amadex-pulse 2s ease-in-out infinite;
        -webkit-animation: amadex-pulse 2s ease-in-out infinite;
    }

    .amadex-call-banner-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        max-width: 100%;
        margin: 0 auto;
        flex-wrap: wrap;
    }

    .amadex-call-banner-left {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1 1 auto;
        min-width: 0;
    }

    .amadex-call-icon-circle {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .amadex-call-icon-circle svg {
        width: 20px;
        height: 20px;
        color: #0E7D3F;
    }

    .amadex-call-phone-number {
        font-size: 16px;
        font-weight: 700;
        color: #ffffff;
        text-decoration: none;
        white-space: nowrap;
        transition: opacity 0.2s ease;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .amadex-call-phone-number:hover {
        opacity: 0.9;
        color: #ffffff;
        text-decoration: none;
    }

    .amadex-call-banner-middle {
        order: 3;
        width: 100%;
        flex: 1 1 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
    }

    .amadex-call-cta-text {
        background: #ffffff;
        color: #0E7D3F;
        padding: 6px 16px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
        text-align: center;
        width: 100%;
        max-width: 280px;
    }

    .amadex-call-banner-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-shrink: 0;
    }

    .amadex-call-service-image {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        overflow: hidden;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 3px solid rgba(255, 255, 255, 0.3);
    }

    .amadex-call-service-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
}

/* Extra small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    .amadex-call-now-banner {
        padding: 10px 12px;
        border-radius: 0 !important;
    }

    .amadex-call-banner-content {
        gap: 8px;
    }

    .amadex-call-icon-circle {
        width: 36px;
        height: 36px;
    }

    .amadex-call-icon-circle svg {
        width: 18px;
        height: 18px;
    }

    .amadex-call-phone-number {
        font-size: 14px;
    }

    .amadex-call-cta-text {
        padding: 5px 12px;
        font-size: 11px;
    }

    .amadex-call-service-image {
        width: 50px;
        height: 50px;
    }
}
.amadex-modern-form div#destination-field {
    padding-left: 40px!important;
}
/* Add padding to prevent content from being hidden behind banner */
/* JavaScript will handle this dynamically for better browser compatibility */
/* Base padding for floating banners - only on mobile */
@media (max-width: 768px) {
    body.amadex-has-call-banner {
        padding-bottom: 90px;
    }
}

@media (max-width: 480px) {
    body.amadex-has-call-banner {
        padding-bottom: 80px;
    }
}

/* Remove padding on desktop/large devices where banner is hidden */
@media (min-width: 769px) {
    body.amadex-has-call-banner {
        padding-bottom: 0 !important;
    }
    
    /* Ensure banner doesn't take up space on desktop */
    .amadex-call-now-banner.amadex-call-now-floating,
    .amadex-call-now-banner.amadex-call-now-floating.amadex-call-now-pulse {
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }
}


/* ==================== Galaxy S24 Ultra & Large Phones (412px - 430px) ==================== */
@media (max-width: 430px) {
    /* Flight Cards */
    .amadex-flight-card {
        padding: 14px 12px !important;
        border-radius: 16px !important;
    }
    
    .amadex-flight-card-main {
        gap: 12px !important;
    }
    
    .amadex-flight-card-price {
        padding: 12px 0 !important;
    }
    
    .amadex-flight-price {
        font-size: 20px !important;
    }
    
    /* Flight Details Modal */
    .amadex-flight-details-modal-wrapper {
        width: 96% !important;
        max-width: 96% !important;
        margin: 10px !important;
        border-radius: 16px !important;
    }
    
    .amadex-flight-details-header {
        padding: 14px 12px !important;
    }
    
    .amadex-flight-details-header h3 {
        font-size: 18px !important;
    }
    
    .amadex-flight-tabs {
        padding: 8px 6px !important;
        gap: 6px !important;
    }
    
    .amadex-flight-tab {
        padding: 8px 12px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
    }
    
    .amadex-flight-footer-bar {
        padding: 12px 14px !important;
        border-radius: 0 0 16px 16px !important;
    }
    
    .amadex-flight-price-wrap {
        gap: 4px !important;
    }
    
    .amadex-price-label {
        font-size: 11px !important;
    }
    
    .amadex-flight-price {
        font-size: 20px !important;
    }

    .amadex-modal-body {
    padding: 12px;
}
    
    .amadex-flight-continue-btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }
    
    /* Flight Segments */
    .amadex-flight-segment-list {
        padding: 12px !important;
    }
    
    .amadex-segment-airline-header {
        padding: 10px 12px !important;
    }
    
    .amadex-segment-airline-logo {
        width: 40px !important;
        height: 40px !important;
    }
    
    .amadex-segment-airline-name {
        font-size: 13px !important;
    }
    
    .amadex-segment-point {
        padding: 10px 12px !important;
    }
    
    .amadex-segment-point-time {
        font-size: 16px !important;
    }
    
    .amadex-segment-point-airport {
        font-size: 12px !important;
    }
    
    /* Connecting Banner */
    .amadex-connecting-banner {
        padding: 10px 12px !important;
        margin: 12px 0 !important;
        border-radius: 10px !important;
        font-size: 12px !important;
    }
    
    /* Baggage Info */
    .amadex-baggage-info-section {
        padding: 12px !important;
        gap: 12px !important;
    }
    
    .amadex-baggage-item {
        padding: 10px 12px !important;
    }
    
    .amadex-baggage-label {
        font-size: 12px !important;
    }
    
    .amadex-baggage-value {
        font-size: 14px !important;
    }
    
    /* Call Now Banner */
    .amadex-call-now-banner {
        padding: 12px 14px !important;
        border-radius: 20px !important;
    }
    
    .amadex-call-banner-content {
        gap: 10px !important;
    }
    
    .amadex-call-phone-number {
        font-size: 15px !important;
    }
    
    .amadex-call-cta-text {
        font-size: 11px !important;
        padding: 6px 12px !important;
    }
}

/* ==================== Galaxy S24 Ultra Specific (412px) ==================== */
@media (max-width: 412px) {
    .amadex-flight-card {
        padding: 12px 10px !important;
    }
    
    .amadex-flight-details-modal-wrapper {
        width: 98% !important;
        max-width: 98% !important;
        margin: 5px !important;
    }
    
    .amadex-flight-tabs {
        padding: 6px 4px !important;
        gap: 4px !important;
    }
    
    .amadex-flight-tab {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
    
    .amadex-flight-price {
        font-size: 18px !important;
    }
    
    .amadex-flight-continue-btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
    
    .amadex-segment-point-time {
        font-size: 15px !important;
    }
    
    .amadex-call-now-banner {
        padding: 10px 12px !important;
    }
    
    .amadex-call-phone-number {
        font-size: 14px !important;
    }
}

@media (max-width: 640px) {
    .amadex-flight-tabs {
        flex-direction:row;
    }
    
    .amadex-flight-overview-card {
        flex-direction: column;
        gap: 10px;
    }
    
    .amadex-flight-footer-bar {
        flex-direction: column;
        align-items: center;
    }
    
    .amadex-flight-continue-btn {
        width: 100%;
        text-align: center;
    }
}

/* Booking Form */
.amadex-booking-form h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
}

.amadex-form-group {
    margin-bottom: 20px;
}

.amadex-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.amadex-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
}

.amadex-form-group input:focus {
    outline: none;
    border-color: #007cba;
}

.amadex-booking-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* Responsive Design - Tablets and Larger Screens (768px and above) */
@media only screen and (min-width: 768px) {
    /* Ensure consistent container widths and alignment */
    .amadex-search-bar-wrapper {
        width: 100%;
    }
    
    .amadex-results-content-wrapper {
        width: 100%;
    }
    
    .amadex-results-content {
        max-width: 1500px;
        grid-template-columns: 320px 1fr;
        gap: 28px;
        padding: 0 20px;
    }
    
    /* Ensure main results area fills available space */
    .amadex-results-main {
        width: 100%;
        max-width: 100%;
    }
    
    /* Ensure booking progress bar aligns properly */
    .amadex-booking-progress {
        width: 100%;
        max-width: 100%;
    }
    
    /* Ensure sort bar aligns properly */
    .amadex-results-sort-bar {
        width: 100%;
    }
}

/* Responsive Design - Large Screens (1024px and above) */
@media only screen and (min-width: 1024px) {
    /* Maintain consistent max-width and alignment */
    .amadex-results-content {
        max-width: 1500px;
        grid-template-columns: 320px 1fr;
        gap: 28px;
        padding: 0 20px;
    }
    
    .amadex-search-bar-container {
        max-width: 1500px;
        padding: 10px 20px;
    }
}

/* Responsive Design - Extra Large Screens (1280px and above) */
@media only screen and (min-width: 1280px) {
    /* Ensure layout remains stable on very large screens */
    .amadex-results-content {
        max-width: 1500px;
    }
    
    .amadex-search-bar-container {
        max-width: 1500px;
    }
}

/* Responsive Design - Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .amadex-form {
        grid-template-columns: 1fr;
    }
    
    .amadex-search-bar-wrapper {
        padding: 16px 0;
        width: 100%;
    }
    
    .amadex-search-bar-container {
        padding: 0 15px;
    }
    
    .amadex-results-content-wrapper {
        padding: 16px 0;
        width: 100%;
    }
    
    .amadex-results-content {
        grid-template-columns: 1fr;
        padding: 0 15px;
        max-width: 100%;
    }
    
    .amadex-filters-sidebar {
        position: static;
        margin-bottom: 20px;
    }
    
    .amadex-search-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .amadex-search-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .amadex-results-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .amadex-flight-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .amadex-flight-actions {
        flex-direction: column;
    }
    
    .amadex-segment-airports {
        flex-direction: column;
        gap: 10px;
    }
    
    .amadex-modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* Utility Classes */
.amadex-hidden {
    display: none !important;
}

.amadex-text-center {
    text-align: center;
}

.amadex-text-success {
    color: #28a745;
}

.amadex-text-error {
    color: #dc3545;
}

.amadex-mb-20 {
    margin-bottom: 20px;
}

.amadex-mt-20 {
    margin-top: 20px;
}

/* Test Form Styles */
.amadex-test-form {
    background: #f8f9fa;
    border: 2px solid #007cba;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.amadex-test-form h3 {
    color: #007cba;
    margin-top: 0;
}

#test-results {
    margin-top: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

#test-results pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Call Now Popup Styles */
/* ==================== New Adobe XD Popup Design ==================== */
.amadex-call-modal-content {
    max-width: 750px;
    width: 95%;
    margin: 2% auto;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
    margin-top: 20rem;
    position: relative;
}

.amadex-call-popup-new {
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Limited Time Offer Banner */
.amadex-popup-banner {
    background: rgb(253 225 175);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
    font-weight: 600;
    font-size: 14px;
    border-radius: 15px;
}

.amadex-banner-text {
    font-weight: 600;
}

.amadex-banner-countdown {
    font-weight: 600;
    color: #000;
}

.amadex-banner-countdown #amadex-countdown {
    font-weight: 700;
    color: #AA2300;
}

/* Two Column Layout */
.amadex-popup-content-wrapper {
    display: flex;
    flex-direction: row;
    min-height: 400px;
}

/* Left Column: Flight Details */
.amadex-popup-left-column {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: transparent linear-gradient(90deg, #FFEFDB 0%, #FBE8D000 100%) 0% 0% no-repeat padding-box;
    border-radius: 20px;
}

.amadex-popup-deal-heading {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.amadex-deal-label {
    font-size: 18px;
    font-weight: 500;
    color: #000;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.amadex-deal-destination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.amadex-deal-destination {
    font-size: 30px;
    font-weight: 700;
    color: #000;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.amadex-deal-price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.amadex-price-label-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.amadex-price-amount-large {
    font-size: 28px;
    font-weight: 700;
    color: #0E7D3F;
    line-height: 1;
}

/* Flight Itinerary Box */
.amadex-popup-flight-box {
    border: none;
    border-radius: 12px;
    padding: 20px;
    /* background: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='305' height='134' viewBox='0 0 305 134'%3E%3Cg id='Subtraction_1' data-name='Subtraction 1' transform='translate(-16)' fill='%23fff' stroke-linecap='round' stroke-dasharray='3'%3E%3Cpath d='M301,134H36a20,20,0,0,1-20-20V75.5h.629a8.749,8.749,0,0,0,0-17.5H16V20A20,20,0,0,1,36,0H301a20,20,0,0,1,20,20V58h-2.63a8.749,8.749,0,0,0,0,17.5H321V114a20,20,0,0,1-20,20Z' stroke='none'/%3E%3C/g%3E%3C/svg%3E"); */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    overflow: hidden;
    border: 1px dashed #0e7d3f;
    box-shadow: 0px 0px 15px #615c5c45;
    background: #fff;
}

/* .amadex-popup-flight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='305' height='134' viewBox='0 0 305 134'%3E%3Cg id='Subtraction_1' data-name='Subtraction 1' transform='translate(-16)' fill='none' stroke='%2322c55e' stroke-width='2' stroke-linecap='round' stroke-dasharray='3 3'%3E%3Cpath d='M301,134H36a20,20,0,0,1-20-20V75.5h.629a8.749,8.749,0,0,0,0-17.5H16V20A20,20,0,0,1,36,0H301a20,20,0,0,1,20,20V58h-2.63a8.749,8.749,0,0,0,0,17.5H321V114a20,20,0,0,1-20,20Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 0;
} */

.amadex-popup-flight-box > * {
    position: relative;
    z-index: 1;
}

.amadex-flight-box-header {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    background: #F6F6F6 0% 0% no-repeat padding-box;
    border-radius: 11px;
    padding: 10px 12px;
    width: auto;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

.amadex-flight-box-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.amadex-flight-box-segment {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.amadex-flight-box-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.amadex-flight-box-code {
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.amadex-flight-box-city {
    font-size: 14px;
    color: #666;
}

.amadex-flight-box-date {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.amadex-flight-box-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
}

.amadex-flight-box-arrow svg {
    width: 100px;
    height: 100px;
}

.amadex-segment-duration-line svg {
    transform: rotate(90deg);
}

/* Call Button */
.amadex-popup-call-button-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #0e7d3f;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.amadex-popup-call-button-large:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.amadex-call-icon-svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.amadex-call-button-text {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Right Column: Customer Service & Trust */
.amadex-popup-right-column {
    flex: 0 0 320px;
}

.amadex-customer-service-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.amadex-customer-service-placeholder {
    width: 120px;
    height: 120px;
    background: #e5e5e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* Trust Badges */
.amadex-popup-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.amadex-trust-badge-years {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.amadex-trust-badge-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
}

.amadex-trust-years-text {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    line-height: 1.2;
}

.amadex-trust-badge-label {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-align: center;
    background: #22c55e;
    padding: 4px 12px;
    border-radius: 4px;
    color: #ffffff;
    margin-top: -8px;
    position: relative;
    z-index: 1;
}

.amadex-trust-badge-trustpilot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.amadex-trustpilot-logo {
    font-size: 16px;
    font-weight: 700;
    color: #00b67a;
    letter-spacing: 0.5px;
}

.amadex-trustpilot-stars {
    display: flex;
    gap: 2px;
    align-items: center;
}

.amadex-star {
    color: #00b67a;
    font-size: 18px;
    line-height: 1;
}

.amadex-star-partial {
    opacity: 0.5;
}

.amadex-trustpilot-rating {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

/* Call Modal Close Button */
.amadex-call-modal-content .amadex-modal-close {
    color: #161313;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s 
ease;
    position: absolute;
    top: -10px;
    right: 4px;
    z-index: 10;
}

.amadex-call-modal-content .amadex-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}

/* Responsive Design for New Popup */
@media (max-width: 768px) {
    /* Prevent body scroll when modal is open */
    body.amadex-modal-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    .amadex-modal {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20vh;
    }
    
    .amadex-call-modal-content {
        max-width: 95%;
        width: 95%;
        margin: 0 auto;
        border-radius: 20px;
        max-height: 96vh;
        overflow-y: auto;
        position: relative;
        -webkit-overflow-scrolling: touch;
    }
    
    .amadex-call-modal-content .amadex-modal-close {
        width: 32px;
        height: 32px;
        top: 10px;
        right: 10px;
        padding: 6px;
        background: rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .amadex-call-modal-content .amadex-modal-close svg {
        width: 16px;
        height: 16px;
    }
    
    .amadex-popup-content-wrapper {
        flex-direction: row;
        min-height: auto;
        flex-wrap: nowrap;
    }
    
    .amadex-popup-left-column {
        padding: 20px 16px;
        gap: 16px;
       flex-direction: column;
    }
    
    .amadex-popup-right-column {
        flex: 1;
        padding: 20px 16px;
        border-radius: 0 0 20px 20px;
    }
    
    /* Banner adjustments */
    .amadex-popup-banner {
        padding: 10px 16px;
        font-size: 10px;
        flex-wrap: nowrap;
        gap: 8px;
    }
    
    .amadex-banner-text {
        font-size: 13px;
        font-weight: 600;
    }
    
    .amadex-banner-countdown {
        font-size: 13px;
        font-weight: 600;
    }
    
    .amadex-banner-countdown #amadex-countdown {
        font-size: 14px;
        font-weight: 700;
        color: #DC2626;
    }
    
    /* Deal heading adjustments */
    .amadex-popup-deal-heading {
        gap: 8px;
    }
    
    .amadex-deal-label {
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0.3px;
    }
    
    .amadex-deal-destination-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .amadex-deal-destination {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.2;
        flex: 1;
        min-width: 0;
    }
    
    .amadex-deal-price-section {
        align-items: flex-end;
        gap: 2px;
    }
    
    .amadex-price-amount-large {
        font-size: 24px;
        font-weight: 700;
        line-height: 1;
    }
    
    /* Flight box adjustments */
    .amadex-popup-flight-box {
        padding: 8px;
        border-radius: 12px;
    }
    
    .amadex-flight-box-header {
        font-size: 12px;
        padding: 8px 12px;
        width: auto;
        margin-bottom: 12px;
        text-align: center;
        display: inline-block;
        margin-left: auto;
        margin-right: auto;
    }
    
    .amadex-flight-box-route {
        flex-direction: row;
        gap: 8px;
        align-items: flex-start;
    }
    
    .amadex-flight-box-segment {
        flex: 1;
        gap: 4px;
        min-width: 0;
    }
    
    .amadex-flight-box-label {
        font-size: 11px;
        font-weight: 500;
        color: #666;
        margin-bottom: 2px;
    }
    
    .amadex-flight-box-code {
        font-size: 18px;
        font-weight: 700;
        color: #000;
        line-height: 1.2;
    }
    
    .amadex-flight-box-city {
        font-size: 13px;
        color: #666;
        font-weight: 400;
        line-height: 1.3;
        margin-top: 2px;
    }
    
    .amadex-flight-box-date {
        font-size: 11px;
        color: #666;
        margin-top: 4px;
        line-height: 1.3;
    }
    
    .amadex-flight-box-arrow {
        width: 40px;
        height: auto;
        flex-shrink: 0;
        padding: 0 4px;
        align-self: center;
    }
    
    .amadex-flight-box-arrow svg {
        width: 100%;
        max-width: 80px;
        height: auto;
    }
    
    /* Call button adjustments */
    .amadex-popup-call-button-large {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        font-weight: 700;
        border-radius: 16px;
        gap: 10px;
    }
    
    .amadex-call-icon-svg {
        width: 18px;
        height: 18px;
    }
    
    .amadex-call-button-text {
        font-size: 12px;
        font-weight: 700;
        min-height: auto;
    }
    
    /* Right column adjustments */
    .amadex-popup-right-column {
        padding: 20px 16px;
        gap: 20px;
    }
    
    .amadex-customer-service-img {
        max-width: 180px;
        margin: 0 auto;
    }
    
    .amadex-popup-trust-badges {
        gap: 16px;
    }
    
    .amadex-trust-badge-circle {
        width: 70px;
        height: 70px;
    }
    
    .amadex-trust-years-text {
        font-size: 12px;
    }
    
    .amadex-trust-badge-label {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .amadex-trustpilot-logo {
        font-size: 14px;
    }
    
    .amadex-star {
        font-size: 16px;
    }
    
    .amadex-trustpilot-rating {
        font-size: 11px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .amadex-modal {
        padding: 5px;
        padding-top: 20vh;
    }


    .amadex-popup-banner {
        position: absolute;
        bottom: 1rem;
        width: 90%;
        margin: auto;
    }

.amadex-modal-body {
min-height: 380px;
}
    
    .amadex-call-modal-content {
        max-width: 98%;
        width: 98%;
        margin: 0 auto;
        border-radius: 16px;
        max-height: 98vh;
    }
    
    .amadex-call-modal-content .amadex-modal-close {
        width: 28px;
        height: 28px;
        top: 8px;
        right: 8px;
        padding: 5px;
        background: rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(0, 0, 0, 0.15);
    }
    
    .amadex-call-modal-content .amadex-modal-close svg {
        width: 14px;
        height: 14px;
    }
    
    .amadex-popup-left-column {
        padding: 16px 12px;
        gap: 14px;
    }
    
    .amadex-popup-right-column {
        padding: 0;
        align-items: center;
        display: flex;
    }
    
    .amadex-popup-banner {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .amadex-banner-countdown #amadex-countdown {
        font-size: 13px;
    }
    
    .amadex-deal-label {
        font-size: 13px;
    }
    
    .amadex-deal-destination {
        font-size: 14px;
    }
    
    .amadex-price-amount-large {
        font-size: 14px;
    }
    
    .amadex-popup-flight-box {
        padding: 8px;
    }
    
    .amadex-flight-box-header {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .amadex-flight-box-code {
        font-size: 10px;
    }
    
    .amadex-flight-box-city {
        font-size: 10px;
    }
    
    .amadex-flight-box-date {
        font-size: 10px;
    }
    
    .amadex-flight-box-arrow {
        width: 30px;
        padding: 0 2px;
    }
    
    .amadex-popup-call-button-large {
        padding: 12px 10px;
        font-size: 15px;
    }
    
    .amadex-customer-service-img {
        max-width: 175px;
    }
    
    .amadex-trust-badge-circle {
        width: 60px;
        height: 60px;
    }
    
    .amadex-trust-years-text {
        font-size: 11px;
    }
}

/* Airline Logo Styles */
.amadex-flight-airline-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.amadex-flight-airline-logo span {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-align: center;
}

/* Passengers & Cabin Trigger Styles */
.amadex-passengers-cabin-field {
    position: relative;
}

.amadex-passengers-cabin-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amadex-passengers-cabin-trigger:hover {
    border-color: #007cba;
}

.amadex-pax-icon {
    font-size: 18px;
}

.amadex-pax-summary {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.amadex-cabin-summary {
    font-size: 14px;
    color: #666;
}

.amadex-trigger-arrow {
    margin-left: auto;
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.amadex-passengers-cabin-trigger.active .amadex-trigger-arrow {
    transform: rotate(180deg);
}

/* Passengers & Cabin Modal Styles */
.amadex-passengers-cabin-modal-content {
    max-width: 500px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.amadex-passengers-cabin-modal-content .amadex-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
}

.amadex-passengers-cabin-modal-content .amadex-modal-close:hover {
    color: #333;
}

.amadex-passengers-cabin-modal-content .amadex-modal-body {
    padding: 30px;
}

/* Cabin Section */
.amadex-cabin-section {
    margin-bottom: 30px;
}

.amadex-cabin-section h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.amadex-cabin-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.amadex-cabin-btn {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amadex-cabin-btn:hover {
    border-color: #007cba;
}

.amadex-cabin-btn.active {
    background: #007cba;
    border-color: #007cba;
    color: #fff;
}

/* Travelers Section */
.amadex-travelers-section {
    margin-bottom: 25px;
}

.amadex-travelers-section h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.amadex-traveler-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.amadex-traveler-row:last-child {
    border-bottom: none;
}

.amadex-traveler-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.amadex-traveler-label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.amadex-traveler-age {
    font-size: 13px;
    color: #666;
}

.amadex-traveler-counter {
    display: flex;
    align-items: center;
    gap: 15px;
}

.amadex-counter-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    background: #fff;
    color: #333;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.amadex-counter-btn:hover:not(:disabled) {
    border-color: #007cba;
    background: #f0f8ff;
}

.amadex-counter-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.amadex-counter-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    min-width: 30px;
    text-align: center;
}

.amadex-unaccompanied-minor {
    margin-top: 15px;
    text-align: center;
}

.amadex-unaccompanied-link {
    color: #007cba;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.amadex-unaccompanied-link:hover {
    text-decoration: underline;
}

/* Done Button */
.amadex-modal-actions {
    margin-top: 25px;
}

.amadex-done-btn {
    width: 100%;
    padding: 15px;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amadex-done-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* Responsive for Modal */
@media (max-width: 768px) {
    .amadex-passengers-cabin-modal-content {
        max-width: 95%;
        margin: 20px auto;
    }
    
    .amadex-cabin-options {
        grid-template-columns: 1fr;
    }
    
    .amadex-passengers-cabin-modal-content .amadex-modal-body {
        padding: 20px;
    }
}