@font-face {
    font-family: 'BentonSansCondensedLight';
    src: url('/wp-content/themes/solief/resources/assets/fonts/BentonSansCondLight.otf');
}

@font-face {
    font-family: 'BentonSansRegularFnt';
    src: url('/wp-content/themes/solief/resources/assets/fonts/BentonSansRegular.otf');
}

@font-face {
    font-family: 'BentonSansRegular';
    src: url('/wp-content/themes/solief/resources/assets/fonts/BentonSansCondensedRegular.otf');
}

@font-face {
    font-family: 'BentonSansCondensedMedium';
    src: url('/wp-content/themes/solief/resources/assets/fonts/BentonSansCondensedMedium.ttf');
}

@font-face {
    font-family: 'Miller-TextRoman';
    src: url('/wp-content/themes/solief/resources/assets/fonts/Miller-TextRoman.otf');
}

/* ============================================================= */
/* Search page CSS      */
/* ============================================================= */

/* Screen reader only class - hides content visually but keeps it accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.template-passenger-result .above-the-fold-inner, .template-passenger-details .above-the-fold-inner {
    height: 475px;
}

/* Passenger Details Page Template Specific */
.passenger-details-section {
    padding: 2rem 0;
    min-height: 600px;
}

/* Desktop - default padding when no banner */

/* Tablet */
@media (max-width: 767px) and (min-width: 481px) {
    .passenger-details-section {
        padding-top: 100px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .passenger-details-section {
        padding-top: 80px;
    }
}

.passenger-submit {
    align-items: center !important;
}

.search-button, .clear-fields {
    font-size: 18px!important;
}

.clear-fields {
    text-align: right;
    font-weight: bold;
    min-height: 0px !important;
    cursor: pointer;
    width: 100%;
    margin-left: auto;
    background-color: unset;
    border: none;
    outline: none;
    text-decoration: underline;
    display: none;
}

.clear-fields:focus {
    outline: none;
    border: none;
}

.passenger-search-section .basic-search-container {
    padding: 40px;
}

.passenger-search-section .advanced-search-container {
    background-color: #ffffff;
    padding: 40px;
}

.passenger-search-section .advanced-search-label {
    font-size: 18px !important;
    font-family: BentonSansRegularFnt;
    line-height: 30px;
    font-weight: 600;
    color: rgb(0, 0, 0);
    margin-bottom: 0.5rem;
}

.passenger-search-section .exact-match-label {
    margin-bottom: 10px;
}

/* Custom checkbox styling */
.passenger-search-section .checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.passenger-search-section .checkbox-wrapper input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #0A0909;
    border-radius: 3px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.passenger-search-section .checkbox-wrapper input[type="checkbox"]:checked {
    background-color: #fff;
    border-color: #0A0909;
}

.passenger-search-section .checkbox-wrapper input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 8px;
    border: solid #0A0909;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Remove focus styles when clicking with mouse */
.passenger-search-section .checkbox-wrapper input[type="checkbox"]:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* Only show focus styles when using keyboard (Tab) */
.passenger-search-section .checkbox-wrapper input[type="checkbox"]:focus-visible {
    outline: 3px solid #000;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2);
}

.passenger-search-section .checkbox-wrapper span {
    color: #0A0909;
    font-size: 14px;
}

.passenger-search-section .search-by-name-label{
    font-size: 40px;
}

.passenger-search-section .search-by-name-label,
.passenger-search-section .advanced-search-label-parent {
    margin-bottom: 20px;
}

.passenger-search-section .expert-genealogy-label {
    margin-top: 20px;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 20px;
}

/* Focus styles for form controls (selects only) */
.passenger-search-section .form-control select:focus-visible,
.passenger-search-section select:focus-visible {
    outline: 3px solid #000;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2);
    border-color: #000;
}
.passenger-search-section .form-control select:focus,
.passenger-search-section select:focus {
    outline: none;
    box-shadow: none;
    border-color: initial;
}

.passenger-search-section .year-range-container {
    position: relative;
    font-family: Arial, sans-serif;
}

/* Label */
.passenger-search-section .range-label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

/* Background track (ALWAYS visible) */
.passenger-search-section .range-track {
    width: 100%;
    height: 6px;
    background: #e5e5e5;
    border-radius: 3px;
    margin-top: 20px;
    position: relative;
}

/* Range Inputs overlaying the bar */
.passenger-search-section .range-input {
    position: absolute;
    top: 44px;
    left: 0;
    width: 100%;
    height: unset;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    border: none;
    outline: none;
}

/* Remove focus outline for mouse clicks */
.passenger-search-section .range-input:focus:not(:focus-visible) {
    outline: none;
    border: none;
}

/* Focus outline for accessibility - visible ring around thumb (keyboard only) */
.passenger-search-section .range-input:focus-visible {
    outline: none;
    border: none;
}

/* Remove default track */
.passenger-search-section .range-input::-webkit-slider-runnable-track {
    height: unset;
    background: transparent;
    border: none;
    outline: none;
}

/* Remove focus from track */
.passenger-search-section .range-input:focus::-webkit-slider-runnable-track {
    outline: none;
    border: none;
}

/* Knobs - with visible focus state */
.passenger-search-section .range-input::-webkit-slider-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    background: #333;
    border-radius: 50%;
    cursor: pointer;
    -webkit-appearance: none;
    border: none;
    outline: none;
    transition: all 0.2s ease;
}

/* Remove focus indicator on thumb when clicking with mouse */
.passenger-search-section .range-input:focus:not(:focus-visible)::-webkit-slider-thumb {
    outline: none;
    box-shadow: none;
}

/* Visible focus indicator on thumb (keyboard only) */
.passenger-search-section .range-input:focus-visible::-webkit-slider-thumb {
    outline: 3px solid #000;
    outline-offset: 2px;
    background: #000;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.3);
}

/* Firefox - with visible focus state */
.passenger-search-section .range-input::-moz-range-track {
    background: transparent;
    border: none;
}

.passenger-search-section .range-input::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    background: #333;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.2s ease;
}

/* Remove focus indicator on thumb for Firefox when clicking with mouse */
.passenger-search-section .range-input:focus:not(:focus-visible)::-moz-range-thumb {
    outline: none;
    box-shadow: none;
}

/* Visible focus indicator on thumb for Firefox (keyboard only) */
.passenger-search-section .range-input:focus-visible::-moz-range-thumb {
    outline: 3px solid #000;
    outline-offset: 2px;
    background: #000;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.3);
}

/* Values below */
.passenger-search-section .range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 700;
}

/* =================================================================== */
/* PASSENGER RESULT PAGE LAYOUT STYLES */
/* ================================================================== */

.results-info-header {
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 20px 0px;
}

.result-outer-card {
    padding: 13px;
}
#search-results-container {
    margin-top: 10px;
}
.passenger-result-parent .result-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 515px;
    padding: 30px;
    box-sizing: border-box;
}

.passenger-result-parent .result-item .section {
    color: #000;
    min-height: 85px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;
    margin-bottom: 10px;
    word-break: break-word;
}

.key-label {
    text-transform: capitalize;
    font-size: 16px;
}

.template-passenger-result .table-loader-container {
    position: relative;
}

.passenger-result-parent .result-table th {
    font-weight: 700;
    position: relative;
    background: #fff;
    color: #000;
    padding: 0 23px 8px;
    font-size: 14px;
    text-align: left;
    font-family: 'BentonSansRegular';
    text-transform: uppercase;
    line-height: 22px;
}

.passenger-result-parent .action-icon-group-grid .quick-view-icon img,
.passenger-result-parent .action-icon-group-grid .passenger-record-icon img {
    margin-right: 4px;
    height: 18px;
    width: 18px;
}

.passenger-result-parent .action-icon-group-list .quick-view-icon img,
.passenger-result-parent .action-icon-group-list .passenger-record-icon img {
    height: 16px;
    width: 16px;
}

.quick-view-icon, .passenger-record-icon {
    cursor: pointer;
}

/* Quick View Button Reset - Remove default button styles */
.quick-view-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
    outline: none;
}

.quick-view-btn:focus {
    outline: none;
}

/* Grid View - No border for Quick View */
.action-icon-group-grid .quick-view-btn {
    border: none !important;
    padding: 0 !important;
}

    
.passenger-result-parent .quick-view-icon span,
.passenger-result-parent .passenger-record-icon span {
    font-size: 14px;
    text-decoration: underline;
    padding-bottom: 0px;
    color: #000;
}

.passenger-result-parent .quick-view-icon span:hover,
.passenger-result-parent .passenger-record-icon span:hover {
    text-decoration: unset;
}
.action-icons-list{
        display: flex;
    align-items: center;
    justify-content: center;
}

.passenger-result-parent .result-table td {
    font-weight: 500 !important;
    vertical-align: middle;
}

.passenger-result-parent .result-table td span{
    font-size: 16px;
}

.passenger-result-parent .result-table td span  {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    max-height: 3em;
    line-height: 1.5em;
}

/* Specific styles for list view items - Override general table styles */
.passenger-result-parent .result-table td span.arrival-collection,
.passenger-result-parent .result-table td span.passenger-name,
.passenger-result-parent .result-table td span.residence-place {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    max-height: none !important;
}

.passenger-result-parent .result-table td span.arrival-location {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-height: 3em !important;
    line-height: 1.5em !important;
    white-space: normal !important;
}

.passenger-result-parent .result-table td span.arrival-year {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.passenger-name-field{
    border-bottom: 2px solid #757575;
    padding-bottom: 10px;
}

.grid-view-content .passenger-name {
    font-size: 26px;
    margin-top: -6px;
}

/* Grid view specific styles */
.grid-view-content .arrival-collection, 
.grid-view-content .passenger-name, 
.grid-view-content .residence-place {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.grid-view-content .arrival-location{
     display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em;
    line-height: 1.5em;
}
.results-bottom-pagination{
    margin-bottom: 30px;
}

.arrival-location-info{
    border-bottom: 1px solid #757575;
    padding-bottom: 20px;
}

.link-passenger{
    color: unset !important;
    transition: color 0.2s;
    /* text-decoration: underline; */
}

td .link-passenger{
    text-decoration: underline;
}

.action-icon-group-list{
    display: flex;
}

.action-icon-group-list .quick-view-icon,
.action-icon-group-list .passenger-record-icon{
    border: 1px solid #000;
    padding: 2px 7px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-icon-group-list .quick-view-icon:hover,
.action-icon-group-list .passenger-record-icon:hover{
    background-color: #fff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.action-icon-group-list .quick-view-icon{
    margin-right: 4px;
}

/* Back to Search Link */
.back-to-search-section {
    padding: 2rem 0;
}

.back-to-search-link {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    text-decoration: underline;
}
.back-to-search-link:hover {
    text-decoration: underline;
}

.back-to-search-link i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* View Toggle - Matching EIMR Design */
.view-toggle {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.view-toggle button {
    background-color: #ddd !important;
    border: none;
    color: #000;
    padding: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 38px;
    height: 38px;
}

.view-toggle #grid-view {
    color: #fff;
    margin-right: 10px;
}

.view-toggle #list-view {
    color: #fff;
}

.view-toggle button.active {
    background-color: #dedede !important;
    color: #fff;
    border: 0px;
}

/* View toggle image handling - matching EIMR */
.view-toggle #grid-view.active img.inactive,
.view-toggle #list-view.active img.inactive {
    display: none !important;
}

.view-toggle #grid-view.active img.active,
.view-toggle #list-view.active img.active {
    display: block !important;
}

.view-toggle #grid-view img.inactive,
.view-toggle #list-view img.inactive {
    display: block;
}

.view-toggle #grid-view img.active,
.view-toggle #list-view img.active {
    display: none;
}

.view-toggle #grid-view img {
    width: 16px;
    margin: auto;
}

.view-toggle #list-view img {
    width: 20px;
    margin: auto;
}

/* Fast view switching - Show/Hide content without re-rendering */

#search-results-container.list-view .grid-view-content {
    display: none !important;
}

#search-results-container.grid-view .list-view-content {
    display: none !important;
}

#search-results-container.grid-view .grid-view-content {
    display: block !important;
}

#search-results-container.list-view .list-view-content {
    display: block !important;
    margin-top: 30px;
}

/* Ensure grid layout displays properly */
#search-results-container.grid-view .grid-view-content.row {
    display: flex !important;
    flex-wrap: wrap;
}

/* ==================== FILTER TOGGLE BUTTON STYLES ==================== */

/* Filter Toggle Wrapper - Shows button initially */
.filter-toggle-wrapper {
    margin: 15px 0;
}

/* Filter Toggle Section - Positioning context for dropdowns */
.filter-toggle-section {
    position: relative;
}

/* Filter Toggle Button */
button.btn-filter-toggle {
    background: #fff;
    border: 2px solid #333333c9;
    color: #000;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

button.btn-filter-toggle:hover,
button.btn-save-search-toggle:hover {
    background: #f8f9fa;
    border-color: #64686a;
}
button.btn-filter-toggle:focus{
    outline: none;
    border: 2px solid #333333c9;
}

button.btn-filter-toggle i {
    font-size: 13px;
    -webkit-text-stroke: 1px currentColor;
    -webkit-text-fill-color: transparent;
}

/* Save Search Toggle Button - Same style as Filters */
button.btn-save-search-toggle {
    background: #fff;
    border: 2px solid #333333c9;
    color: #000;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
button.btn-save-search-toggle:focus {
    outline: none;
    border: 2px solid #333333c9;
}

button.btn-save-search-toggle i {
    font-size: 13px;
}

/* Filter Section - Hidden by default, shown when expanded */
.facets-filters-section {
    display: none;
    background: #f8f9fa;
    border: 1px solid #333;
    border-radius: 9px;
        box-shadow: 0px 0px 20px 1px #cccccc8c;
    /* margin: 15px 0; */
    margin-top: 20px;
}

.facets-filters-section.expanded {
    display: block; 
}

/* Filter Text Container - Shows "Filters" text when box is open */
.filter-text-container {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-text-container i {
    font-size: 14px;
}

/* Facet Content Row */
.facet-content-row {
    margin-top: 15px;
    width: 100%;
}

.facet-categories-container {
    width: 100%;
        padding: 20px 0;
}

/* Filter Close Button */
.btn-filter-close {
    background: #fff;
    float: right;
}

.btn-filter-close i {
    font-size: 16px;
}

/* Mobile Responsiveness for Filter Toggle */
@media (max-width: 768px) {
    #record .product-sidebar-wrapper{
        margin: 0px 0!important;
    }
    .facet-categories-column{
        padding: 0px 10px!important;
    }
    .arrival-certificate-image-column{
        padding: 0px!important;
    }
    .facet-title, .facet-simple-option .facet-option-label, 
    .facet-dropdown-title {
    font-size: 12px!important;
   }
    .facet-items{
        min-width: 200px!important;
    }
    .filter-text-container {
        font-size: 14px;
    }
    
    .btn-filter-toggle {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .results-header .row > div:first-child {
        text-align: left !important;
        margin-bottom: 0.75rem;
    }
    
    .results-header .row > div:nth-child(2) {
        text-align: center !important;
        margin-bottom: 0.75rem;
    }
    
    .results-header .row > div:last-child {
        text-align: center !important;
        margin-bottom: 0;
    }
    
    .filter-toggle-container {
        margin: 0.5rem 0;
        justify-content: flex-start;
    }
    
    .filter-header .row > div {
        text-align: right !important;
    }
}

/* ==================== SAVE SEARCH SECTION ==================== */

/* Save Search Section - Hidden by default */
.save-search-section {
    display: none;
    background: #f8f9fa;
    border: 1px solid #333;
    border-radius: 9px;
    max-width: 400px;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 9;
    box-shadow: 0px 0px 20px 1px #cccccc8c;
    margin-top: 20px;
}

.save-search-section.expanded {
    display: block !important;
}

.save-search-content {
    padding: 20px;
}

/* Save Search Header with Close Button */
.save-search-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: -10px;
    margin-top: -10px;
        position: absolute;
    right: 7px;
}

.btn-save-search-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.btn-save-search-close:hover {
    transform: scale(1.2);
}

.btn-save-search-close:focus {
    outline: none;
}

/* Save Search Form */
.save-search-form {
    margin-bottom: 13px;
    padding-bottom: 13px;
    border-bottom: 1px solid #dee2e6;
}

.search-name-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
        text-align: left;
}

.search-name-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-name-input {
    flex: 1;
        padding: 1px 15px;
    border: 1px solid #333;
    border-radius: 1px;
    font-size: 14px;
    color: #333;
    transition: border-color .3s ease;
    background: #fff;
}

.search-name-input:focus {
    outline: none;
    border-color: #666;
    box-shadow: none;
}

.search-name-input::placeholder {
    color: #999;
}

.search-name-input.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.search-name-input.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Save Search Error Messages - Force left alignment */
#save-search-errors {
    text-align: left !important;
    display: block;
    width: 100%;
        margin-top: 10px;
    margin-bottom: 0;
    padding: 6px 13px;
}

#save-search-errors p {
    text-align: left !important;
    margin: 0;
    word-wrap: break-word;
    white-space: normal;
    display: block;
    width: 100%;
        font-size: 12px;
}
.saved-searches-no-data {
    font-size: 13px;
}
button.btn-save-search {
        background: #000;
    color: #fff;
    border: none;
    padding: 0px 19px;
    font-size: 13px;
    font-weight: 600;
    transition: all .3s ease;
    white-space: nowrap;
}

.btn-save-search:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-save-search:active {
    transform: translateY(0);
}

/* Divider between form and list - Hidden, using border-bottom on form instead */
.saved-searches-divider {
    display: none;
}

/* Saved Searches List Section */
.saved-searches-list-section {
    margin-top: 0;
    text-align: left;
}

.saved-searches-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 7px;
}
    .saved-searches-list {
        max-height: 220px; /* 5 items x 44px each (adjust as needed) */
        overflow-y: auto !important;
        list-style: none;
        padding: 0;
        margin: 0;
        display: block;
    }

    .saved-searches-list li {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 44px;
        height: 44px;
        padding: 0 12px;
        border-bottom: 1px solid #eee;
        display: flex;
        align-items: center;
    }

/* Scroll indicator - shows when more items available */
.saved-searches-scroll-indicator {
       text-align: center;
    padding: 9px;
    font-size: 12px;
    color: #000;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    font-weight: 500;
    animation: pulse-indicator 1.5s ease-in-out infinite;
    padding-bottom: 0;
}

.saved-searches-scroll-indicator i {
    font-size: 10px;
    margin-right: 4px;
}

@keyframes pulse-indicator {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Individual saved search item */
.saved-search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 5px;
    transition: background-color 0.2s ease;
    cursor: pointer;
    list-style: none;
}

.saved-search-item:nth-child(even) {
    background-color: #fff;
}

.saved-search-name {
    font-size: 14px;
    color: #333;
    flex: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
     width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-delete-search {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1;
    transition: all 0.2s ease;
}

.btn-delete-search i {
    -webkit-text-stroke: 1px currentColor;
    -webkit-text-fill-color: transparent;
    text-stroke: 1px currentColor;
    text-fill-color: transparent;
}

.btn-delete-search:hover {
    transform: scale(1.2);
}

.saved-searches-list::-webkit-scrollbar {
    width: 8px;
}

.saved-searches-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.saved-searches-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.saved-searches-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Delete Confirmation Modal */
.delete-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-confirmation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.delete-confirmation-dialog {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.delete-confirmation-header {
    padding: 20px 20px 10px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.delete-confirmation-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    flex: 1;
}

.delete-confirmation-close {
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    color: #000;
    margin-left: 20px;
    transition: color 0.2s;
}

.delete-confirmation-close:hover {
    color: #666;
}

.passenger-result-parent .list-view-content.has-no-max-records {
    height: 370px;
}

.delete-confirmation-body {
    padding: 20px;
}

.delete-confirmation-message {
    margin: 0;
    font-size: 16px;
    color: #000;
    line-height: 1.6;
    white-space: nowrap;
}

.delete-confirmation-footer {
    padding: 10px 20px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-delete-confirm-no,
.btn-delete-confirm-yes {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-delete-confirm-yes {
    background: #c82333 !important;
    color: #ffffff !important;
}

/* Empty state message */
.saved-searches-empty {
    text-align: center;
    padding: 30px 15px;
    color: #999;
    font-size: 14px;
    font-style: italic;
}

/* ==================== FACETS SECTION ==================== */

/* Facet Categories Container */

.filter-toggle-container {
    margin-top: 20px;
}

.save-search-toggle-container {
    margin-top: 20px;
    text-align: right;
    position: relative;
}

.facet-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin-bottom: 0;
}

.facet-categories-container {
    width: 100%;
}

/* Individual Facet Category - Rounded border buttons */
.facet-category {
    position: relative;
    border-radius: 20px;
    padding: 1px 22px;
    cursor: pointer;
    font-weight: lighter;
    transition: all .3s;
    white-space: nowrap;
    flex: 0 0 auto;
    height: 36px;
}

.facet-category:hover {
    border-color: #64686a;
    background: #f8f9fa;
}

.facet-category.active {
    background: #64686a;
    border-color: #64686a;
    color: #fff;
}
.facet-label-flex {
    margin-left: 10px;
    flex-direction: column;
}
.facet-parameters.collection-facet {
    padding: 0;
}
label.facet-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 2px 10px;
    border-radius: 6px;
    transition: all 0.3s;
    border: 1px solid transparent;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;   
     margin: 4px 10px;
}

label.facet-label input[type="checkbox"] {
    margin-top: 7px;
    flex-shrink: 0;
    margin-right: 8px;
    accent-color: #0A0909;
    cursor: pointer;
}

.facet-label span {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Facet Title */
.facet-title {
    margin: 0;
    cursor: pointer;
    font-size: 13px;
}

/* Facet Items Dropdown - Positioned absolutely to not push other elements */
.facet-items {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9;
    min-width: 385px;
    max-width: 385px;
    margin-top: 5px;
    max-height: 400px;
    overflow: hidden;
}

.facet-items.show {
    display: flex;
    flex-direction: column;
}

/* Facet Dropdown Title */
.facet-dropdown-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    padding: 13px 15px;
    border-bottom: 2px solid #e0e0e0;
    flex-shrink: 0;
    margin: 0;
}

/* Facet Parameters Container - Scrollable */
.facet-parameters {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    max-height: 280px;
    width: 100%;
    box-sizing: border-box;
    padding: 13px;
}
/* Facet Actions - Static at bottom */
.facet-actions {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background: #fff;
    flex-shrink: 0;
    flex-grow: 0;
    margin: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.facet-items-dropdown.show {
    display: block;
}

/* Facet Item Option */
.facet-item {
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
    font-size: 13px;
}

.facet-item.selected {
    border-color: #28a745;
    background: #f0fff4;
    color: #28a745;
}

/* Facet Apply and Cancel button styling */
.facet-apply-btn,
.apply-facet-parameters {
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.facet-cancel-btn,
.cancel-facet-parameters {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.facet-cancel-btn:hover,
.cancel-facet-parameters:hover {
    background: #5a6268;
}

/* Collection Facets - Level 1 & Level 2 */
.collection-facet-item {
    position: relative;
}

.facet-level-1 {
    padding: 10px 12px;
    margin: 5px 0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    transition: all 0.3s;
}

.facet-level-1:hover {
    border-color: #64686a;
    background: #f8f9fa;
}

.facet-level-1.selected {
    border-color: #28a745;
    background: #f0fff4;
}

.facet-level-2-container {
    display: none;
    padding-left: 15px;
    margin-top: 5px;
}

.facet-level-1.expanded .facet-level-2-container {
    display: block;
}

.facet-level-2 {
    padding: 8px 10px;
    margin: 3px 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    background: #fff;
    transition: all 0.3s;
}

.facet-level-2:hover {
    border-color: #64686a;
    background: #f8f9fa;
}

.facet-level-2.selected {
    border-color: #28a745;
    background: #f0fff4;
    color: #28a745;
}

/* Grey out sub facets when parent checkbox is selected */
.collection-level-1 label input[type="checkbox"]:checked ~ .collection-level-2-container,
.collection-level-1:has(> label > input[type="checkbox"]:checked) .collection-level-2-container {
    opacity: 0.5;
    pointer-events: none;
}

.collection-level-1 label input[type="checkbox"]:checked ~ .collection-level-2-container .collection-level-2,
.collection-level-1:has(> label > input[type="checkbox"]:checked) .collection-level-2-container .collection-level-2 {
    background: #f5f5f5;
}

.collection-level-1 label input[type="checkbox"]:checked ~ .collection-level-2-container label,
.collection-level-1:has(> label > input[type="checkbox"]:checked) .collection-level-2-container label {
    color: #545252;
}
.collection-level-2-container {
    margin-left: 11px;
}
.facet-item.collection-level-1 .facet-label{
    border-bottom: 1px solid #ccc;
    border-radius: 0px;
    border: 0px;
}
.facet-item.collection-level-2 .facet-label{
    border-bottom: 0px;
    border-radius: 0px;
}
/* Dropdown for facet parameters */
.parameters-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 250px;
    max-width: 350px;
    max-height: 400px;
    overflow-y: auto;
}

.parameters-dropdown.show {
    display: block;
}

/* Facet Simple Grid - Display options in a grid/flex layout */
.facet-simple-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Facet option in dropdown - Rounded pill style */
.facet-simple-option {
        display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 17px;
    border-radius: 20px;
    cursor: pointer;
    transition: all .3s;
    white-space: nowrap;
    font-size: 13px;
    border: 1px solid;
}

.facet-simple-option:hover {
    border: 1px solid;
}

.facet-simple-option .facet-option-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.facet-simple-option .facet-option-count {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

/* Collection facet label selected state */
.facet-label.selected {
        background: #cccccc40;
    border-color: #000;
    box-shadow: 0 2px 8px rgb(149 157 150 / 20%);
}

/* Selected Filters Display */
.selected-filters-display {
         border-top: 2px solid #e9ecef;
    padding: 17px 28px;
}

.selected-filters-tags,
#selected-filters-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.filter-tag,
.selected-filter-tag {
        background: #64686a;
    color: #fff;
    border-radius: 20px;
    padding: 0px 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: all .3s ease;
    border: 2px solid #64686a;
}

.filter-tag .filter-label,
.selected-filter-tag .filter-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.filter-tag .facet-name,
.selected-filter-tag .facet-name {
    font-weight: 600;
    opacity: 0.9;
}

.filter-tag .filter-value,
.selected-filter-tag .filter-value {
    font-weight: 400;
}

.filter-tag .remove-filter,
.selected-filter-tag .remove-filter {
        background: #fff;
    border: none;
    font-size: 15px;
    margin: 2px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .2s ease;
}


/* End of result page */
 /* Passenger details page css */

/* Passenger details page minimum height for better loader display */
.passenger-detail-page-template main .container {
    min-height: 800px;
}

/* Header Styles */
.back-link:hover {
    color: #d62828;
}

.mobile-note {
    font-size: 0.875rem;
    color: #737373;
}

/* Tabs Styles */
.passenger-detail-page-tabs {
    margin-bottom: 2rem;
}

.passenger-detail-page-tabs .tabs-list {
    display: flex;
    justify-content: space-between;
    width: 100%;
    list-style: none;
    overflow-x: auto;
    padding-bottom: 0;
    margin: 0;
    padding-left: 0;
}

.passenger-detail-page-tabs .tabs-list li {
    flex: 1;
    text-align: center;
}

.passenger-detail-page-tabs .tab-trigger {
    background: none;
    border: 0px;
    border-bottom: 2px solid transparent;
    padding: 0.95rem 0;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    color: #000000;
    transition: none;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

/* Hide mobile line breaks on desktop */
.passenger-detail-page-tabs .tab-trigger .mobile-break {
    display: none;
}

.passenger-detail-page-tabs .tab-trigger:hover {
    color: #333;
}
.passenger-detail-page-tabs .tab-trigger:focus {
   outline: none;
   border: 0px;
}

.passenger-detail-page-tabs .tab-trigger.active {
    color: #333;
    font-weight: bold;
    border-bottom: 3px solid #333 !important;
}

.passenger-detail-page-tabs .tab-content {
    display: none;
    padding-top: 2rem;
}
.passenger-record-container .product-name, .product-sidebar-wrapper .product-name {
    font-family: miller-text, serif;
}
.passenger-detail-page-tabs .tab-content.active {
    display: block;
}

/* Hide record tab content areas until fully loaded (but show title and corrections link) */
#record .passenger-record-container {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#record.loaded .passenger-record-container {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 768px) {
     .passenger-details-section {
        padding-top: 120px;
    }
     .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-note {
        display: block;
    }

    .tab-trigger.mobile-hidden {
        display: inline-block;
    }
}

@media (max-width: 767px) {
    .mobile-note {
        display: none;
    }

    .tab-trigger.mobile-hidden {
        display: none;
    }

     .passenger-detail-page-tabs .tab-trigger{
        font-size: 14px!important;
        white-space: normal!important;
        line-height: 1.3!important;
        padding: 8px 12px!important;
        min-height: 50px!important;
        display: flex!important;
        align-items: center!important;
        justify-content: center!important;
        text-align: center!important;
    }
    
    /* Show mobile line breaks on mobile */
    .passenger-detail-page-tabs .tab-trigger .mobile-break {
        display: inline!important;
    }

    .image-counter {
        padding: 4px 8px!important;
        font-size: 12px!important;
        left: 10px!important;
    }

    .zoom-controls, .zoom-controls-custom {
    top: 12px!important;
    right: 10px!important;
    }

    .arrival-collection-display{
        margin-bottom: 8px!important;
    line-height: 22px!important;
    }
    .carousel-container {
    height: 400px !important;
    }

    #thumbnailContainer.thumbnails .thumbnail,
.thumbnail-carousel-wrapper .thumbnails .thumbnail,
.thumbnails.carousel-mode .thumbnail {
    width: 60px!important ;
    height: 50px !important;
}

#passenger-details-section .quantity-section{
    margin-top: -4px;
}

#passenger-details-section .passenger-details {
    margin-bottom: 0px;
}

#related-products-arrival-grid{
    justify-content: flex-start;
}

#related-products-arrival-grid .cust-related-product,
 #related-products-arrival-grid .related-product-image,
 #related-products-arrival-grid .related-product-details {
    padding: 0px!important;
}

#related-products-arrival-grid .rel-prod-name{
font-size: 22px!important;
    margin-bottom: 0px!important;
    margin-top: 15px!important;
}

.arrival-records-container .arrival-records-header h3 {
    line-height: 38px;
    padding-bottom: 8px;
    margin-bottom: 0px!important;
}

.arrival-records-header{
    margin-bottom: 0px!important;
}

.passenger-details-section .result-table{
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.arrival-records-header{
     text-align: left!important;
}

.arrival-records-container {
      margin-top: -35px!important;
}

button.btn-save-search-toggle {
    padding: 10px 10px;
    font-size: 11px;
    float: right;
}
button.btn-filter-toggle {
    padding: 10px 10px;
    font-size: 11px;
}
label.facet-label {
        margin: 0px 0px;
}
.details-column {
    gap: 1rem;
}
.detail-item {
    height: 70px;
}
}

/* Image Gallery */
.carousel-container {
    position: relative;
    aspect-ratio: 4/5;
    background-color: #d4d4d4;
    overflow: hidden;
    user-select: none;
}

.carousel-container:hover .carousel-arrow {
    opacity: 1;
}

.carousel-arrow:focus,
.carousel-arrow:focus-visible {
    opacity: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    opacity: 0;
    z-index: 9;
    border-radius: 50%;
}

.carousel-arrow:hover {
    background-color: #ffffff;
}

.carousel-arrow:focus,
.carousel-arrow:focus-visible {
    background-color: #ffffff;
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.carousel-arrow.prev {
    left: 1rem;
}

.carousel-arrow.next {
    right: 1rem;
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
}

/* Thumbnails */
.thumbnails {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}

/* Override thumbnails grid layout when used as carousel */
#thumbnailContainer.thumbnails,
.thumbnail-carousel-wrapper .thumbnails,
.thumbnails.carousel-mode {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 10px 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    grid-template-columns: none !important;
    transition: transform 0.3s ease;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
}

/* Override thumbnail sizing for carousel mode */
#thumbnailContainer.thumbnails .thumbnail,
.thumbnail-carousel-wrapper .thumbnails .thumbnail,
.thumbnails.carousel-mode .thumbnail {
    flex: 0 0 auto;
    width: 104px;
    aspect-ratio: unset;
    box-shadow:none;
    position: relative;
    cursor: pointer;
    transition: all .3s ease;
    border: 1px solid #000;
    height: 100px;
    /* Button reset styles */
    background: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    display: block;
}

.thumbnail:hover {
    border-color: #737373;
}

.thumbnail:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
    border-color: #0073aa;
}

.thumbnail[aria-pressed="true"],
.thumbnail.active {
    border-color: #0073aa;
    border-width: 2px;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Product Info */
.product-sidebar-wrapper .product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.product-name {
    font-size: 32px;
    margin-bottom: 20px;
}
.price {
    font-size: 2rem;
    color: #333;
}
.member-price br {
    display: none;
}
/* Certificate Meta Data in Product Info */

.product-meta-data .info-row {
    margin: 8px 0;
        line-height: 1.6;
    text-transform: capitalize;
    font-size: 1.4rem;
}

.product-meta-data .info-row strong {
    color: #000;
    font-weight: 600;
}

.product-meta-data .info-row .meta-value {
    color: #333;
    margin-left: 4px;
}
.member-price {
    font-size: 1.4rem;
}
/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
        font-size: 1.4rem;
}

.qty-btn {
    width: 30px;
    height: 32px;
    border: 1px solid #333;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .2s;
    font-size: 22px;
        background-color: #fff;
}

.qty-btn:hover {
    background-color: #f5f5f5;
}

.qty-input {
    width: 40px;
    height: 40px;
    border: 0;
    text-align: center;
    font-size: 1.8rem;
    align-items: center;
    padding: 0;
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Hide spinner arrows for Chrome, Safari, Edge, Opera */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.qty-input:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

.wishlist-link {
    font-size: 0.875rem;
    color: #333;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}

.wishlist-link:hover {
    color: #d62828;
}

/* Hide product info initially until loaded */
.product-sidebar-wrapper {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-sidebar-wrapper.loaded {
    opacity: 1;
    visibility: visible;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #000;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 1000;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.placeholder-text {
    color: #737373;
}

/* Passenger Details Grid */
#details {
    background-color: #EEEDED;
    padding: 25px;
    border-radius: .25rem;
    box-shadow: 3px 4px 5px 0px rgba(0,0,0,.25);
        margin: 30px 0;
}
.details-grid {
    display: grid;
    gap: 2rem;
        margin-top: 20px;
}

@media (min-width: 1024px) {
    .details-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.details-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Add border to second column */
.details-column:nth-child(2) {
    padding-right: 2rem;
}

.details-column-right-border {
    border-right: 2px solid #8e8b8b;
}

.avatar-column {
    position: relative;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 15px;
    font-weight: 500;
}

.detail-value {
    font-size: 17px;
    color: #000;
    font-weight: bold;
    line-height: 1.4;
}

.passenger-avatar {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background-color: #a3a3a3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
}

@media (max-width: 767px) {
    .passenger-avatar {
        position: static;
        margin-top: 1rem;
    }
}

/* Passenger Record Certificate Overlay Styles */
.passenger-record-container {
    width: 100%;
    margin-top: 30px;
}

.certificate-image-wrapper {
    position: relative;
    width: 100%;
    display: inline-block;
    min-height: 300px;
}

.certificate-background {
    position: relative;
    width: 100%;
    display: inline-block;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.certificate-background.loaded {
    opacity: 1;
}

/* Certificate product image from database */
.certificate-product-image {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.certificate-product-image.loaded {
    opacity: 1;
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.certificate-overlay.loaded {
    opacity: 1;
}

.certificate-data {
    position: relative;
    width: 100%;
    max-width: 90%;
    padding: 3% 4%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: "Times New Roman", Times, serif;
}

.certificate-field {
    width: 100%;
    margin: 0.5% 0;
    font-size: clamp(16px, 1.05vw, 20px);
    color: #1c1c1c;
    line-height: 1.4;
    font-weight: 501;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex-shrink: 0;
    font-weight: bold;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.certificate-field .field-label {
    color: #000;
}

.certificate-field .field-value {
    color: #000;
}

.certificate-field .field-value.loading {
    color: #7f8c8d;
    animation: certificatePulse 1.5s ease-in-out infinite;
}

.certificate-field .field-value.error {
    color: #e74c3c;
    font-style: italic;
}
.product-btn-group .btn-add-to-cart {
    margin-top: 30px;
}
.product-btn-group .btn-add-to-cart img {
    height: 13px;
    margin-right: 14px;
}

@keyframes certificatePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Responsive adjustments for certificate overlay */
@media (min-width: 1600px) {
    .certificate-overlay {
        top: 0;
    }
}

@media (min-width: 2000px) {
    .certificate-overlay {
        top: 0;
    }
}

@media (min-width: 1920px) {
    .certificate-overlay {
        top: 0;
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .certificate-background {
        height: 350px;
    }
    
    .certificate-data {
        max-width: 85%;
        padding: 3% 4%;
    }
    
    .certificate-field {
        font-size: clamp(14px, 1.2vw, 16px);
        line-height: 1.4;
        margin: 0.2rem 0;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .certificate-background {
        height: 320px;
    }
    
    .certificate-data {
        max-width: 88%;
        padding: 2.5% 3.5%;
    }
    
    .certificate-field {
        font-size: clamp(13px, 1.5vw, 16px);
        line-height: 1.4;
        margin: 0.25rem 0;
    }
}

@media (max-width: 768px) {
    .passenger-record-container {
        padding: 1rem;
    }
    
    .certificate-background {
        height: 300px;
    }
    
    .certificate-data {
        max-width: 92%;
        padding: 2% 3%;
    }
    
    .certificate-field {
        font-size: clamp(11px, 2vw, 14px);
        line-height: 1.4;
        margin: 0.2rem 0;
    }
}

@media (max-width: 576px) {
    .certificate-background {
        height: auto;
        min-height: 300px;
    }
    
    .certificate-data {
        max-width: 95%;
        padding: 3% 4%;
    }
    
    .certificate-field {
        font-size: clamp(11px, 2.5vw, 14px);
        line-height: 1.4;
        margin: 0.2rem 0;
    }
}

@media (max-width: 480px) {
    .certificate-overlay {
        top: 0;
        left: 0;
    }
    
    .certificate-background {
        height: auto;
        min-height: 230px;
    }
    
    .certificate-data {
        max-width: 95%;
        padding: 3% 4%;
    }
    
    .certificate-field {
        font-size: clamp(10px, 2.8vw, 13px);
        line-height: 1.4;
        margin: 0.15rem 0;
    }
}

@media (max-width: 375px) {
    .certificate-background {
        height: auto;
        min-height: 250px;
    }
    
    .certificate-data {
        max-width: 95%;
        padding: 8px;
        margin-top: 3px;
    }
    
    .certificate-field {
        font-size: 11px;
        line-height: 15px;
        margin: 0.1rem 0;
    }
}

/* Image Carousel Styles */
.carousel-container {
    position: relative !important;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    width: 100%;
    height: 550px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
        border: 2px solid #000;
}

.carousel-container.loaded {
    opacity: 1;
}

/* Main Image Area */
.main-image-container {
    position: relative !important;
    width: 100%;
    height: 500px;
    background: #f8f9fa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
    cursor: default;
    /* Touch support for mobile pan/drag */
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.main-image-container img.zoomable {
    cursor: grab;
}

.main-image-container img.zoomable:active {
    cursor: grabbing;
}

/* Zoom Controls - Force Visibility */
.zoom-controls, .zoom-controls-custom {
        position: absolute !important;
    top: 15px;
    right: 15px;
    display: flex !important;
    gap: 5px;
    z-index: 9 !important;
    border-radius: 6px;
    backdrop-filter: blur(10px);
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.zoom-btn, .zoom-btn-custom {
        background: #fff !important;
    border: none !important;
    padding: 0px 8px !important;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all .2s ease;
    min-width: 40px;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 0px 2px 4px 1px #888686;
        width: 35px;
    height: 35px;
}

.zoom-btn:hover, .zoom-btn-custom:hover {
    transform: scale(1.05);
    box-shadow: 0px 2px 4px 1px #888686 !important
}

.zoom-btn:active, .zoom-btn-custom:active {
    transform: scale(0.95);
}

.zoom-level, .zoom-level-custom {
        padding: 5px 0px !important;
    font-size: 15px;
    min-width: 60px;
        height: 35px;
    text-align: center;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #fff;
    border-radius: 4px;
}

/* Image Counter */
.image-counter {
    position: absolute;
        top: 10px;
    left: 15px;
    background: #fff;
    color: #000;
    padding: 5px 15px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    width: fit-content;
    display: inline-block;
    white-space: nowrap;
    box-shadow: 0px 2px 4px 1px #888686;
}

/* Hide spinner arrows on image counter input */
#manifestImageNumber {
    width: 50px;
    text-align: center;
    border: 1px solid #000;
    padding: 2px 5px;
    border-radius: 3px;
    -moz-appearance: textfield;
}
/* Remove spinner arrows from image number input */
#manifestImageNumber::-webkit-outer-spin-button,
#manifestImageNumber::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Thumbnail Navigation Area */
.thumbnail-navigation {
    position: relative;
    padding: 20px;
}

.thumbnail-carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.thumbnail-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    transition: transform 0.3s ease;
    gap: 12px;
    padding: 10px 0;
    width: max-content;
    min-width: 100%;
}

.thumbnail:hover {
    border-color: #007cba;
    box-shadow: 0 4px 10px rgba(0, 124, 186, 0.3);
    transform: translateY(-2px);
}

.thumbnail.active {
       /* border: 4px solid #000; */
    /* border-width: 3px; */
    transform: scale(1.05);
    outline-offset: 5px;
    outline: 3px solid #333;
}

.thumbnail img {
    width: 100%;
rm: translateY(-50%) scale(1.1);
}
.thumbnail-nav-btn:focus {
    outline: none;
}

.thumbnail-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.thumbnail-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.thumbnail-nav-btn:disabled:hover {
    transform: translateY(-50%) scale(1);
    background: rgba(0, 0, 0, 0.7);
}

.thumbnail-nav-prev {
    left: -22px;
}

.thumbnail-nav-next {
    right: -22px;
}

/* Main Navigation Arrows for Main Image */
.main-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.main-nav-prev {
    left: 20px;
}

.main-nav-next {
    right: 20px;
}

.main-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.main-nav-btn:disabled:hover {
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-image-container {
        height: 400px;
    }
    
    .thumbnail {
        width: 100px;
        height: 60px;
    }
    
    .thumbnail-navigation {
        padding: 15px;
    }
    
    .zoom-controls {
        top: 10px;
        right: 10px;
        padding: 6px;
    }
    
    .zoom-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .main-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .thumbnail-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Navigation Arrows */
.thumbnail-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 36px;
    font-weight: 700;
    transition: all .3s ease;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
}
.thumbnail-nav-btn:focus {
    outline: none;
}
.thumbnail img {
    width: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

@media (max-width: 480px) {
    .main-image-container {
        height: 300px;
    }
    
    .thumbnail {
        width: 80px;
        height: 60px;
    }
    
    .thumbnail-navigation {
        padding: 10px;
    }
    
    .zoom-controls {
        padding: 4px;
        gap: 3px;
    }
    
    .zoom-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 35px;
    }
    
    .zoom-level {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 50px;
    }
}

/* Full Page Loader */
.carousel-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.carousel-loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.carousel-loader-text {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    text-align: center;
}

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

/* Corrections Modal Styles */
.corrections-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.corrections-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);


}

.corrections-modal-content {
    position: relative;
    background: #fff;
    max-width: 670px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    animation: modalSlideIn 0.3s ease-out;
    border-radius: 8px;
    overflow: hidden;
    border: none;
}

.corrections-modal-content:focus-visible {
    border: 2px solid #000;
    outline: 2px solid #000;
}
.corrections-modal-content:focus {
    border: none;
    outline: none;
}

/* Accessibility: Show border for #commonModalMessage on keyboard focus (tab/shift-tab) */
#commonModalMessage {
    border: none !important;
    outline: none !important;
}
#commonModalMessage:focus-visible {
    border: 2px solid #d9534f !important;
    outline: 2px solid #d9534f !important;
}
#commonModalMessage:focus {
    border: none !important;
    outline: none !important;
}
/* Fallback for browsers without :focus-visible */
@supports not selector(:focus-visible) {
    #commonModalMessage:focus {
        border: 2px solid #d9534f !important;
        outline: 2px solid #d9534f !important;
    }
}
/* Common Modal Message Accessibility Border Fix */
#commonModalMessage {
    border: none !important;
    outline: none !important;
}
#commonModalMessage:focus-visible {
    border: 2px solid #000 !important;
    outline: 2px solid #000 !important;
}
#commonModalMessage:focus {
    border: none !important;
    outline: none !important;
}

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

/* Modal Header */
.corrections-modal-header {
    padding: 15px 30px ;
    background: #fff;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #757575;
}

.corrections-modal-content h3 {
    margin: 0 0;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    color: #000;
}

.corrections-modal-body {
    padding: 20px 30px 30px;
    color: #000;
    line-height: 1.6;
    font-size: 14px;
}

.corrections-modal-body p {
    margin-bottom: 15px;
        font-size: 16px;
}

.corrections-modal-body a {
    color: #1e40af;
    text-decoration: underline;
}

.corrections-modal-body a:hover {
    color: #1e3a8a;
}

.corrections-modal-close {
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    color: #000;
    margin-left: 20px;
    transition: color 0.2s;
}

.corrections-modal-close:hover {
    color: #666;
}

/* Email Certificate Modal Styles */
.email-modal-content .form-group {
    margin-bottom: 20px;
}

.email-modal-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.email-modal-content .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.email-modal-content .form-control:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.email-modal-content .form-control.error {
    border-color: #dc3545;
}

.email-modal-content .btn-submit-email:disabled {
    background-color: #6b7280;
    cursor: not-allowed;
}

.email-error {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

.email-error.show {
    display: block;
}

/* Focus Animation for Main Image */
.carousel-main-image.focused {
    animation: focusPulse 1s ease-in-out;
}

@keyframes focusPulse {
    0% { 
        box-shadow: 0 0 0 0 rgba(0, 124, 186, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(0, 124, 186, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 124, 186, 0);
    }
}

/* Arrival Records Table Styles */
span#arrival-collection-display {
    font-weight: 600;
}
.arrival-records-container {
    padding-top: 25px;
    background-color: #fff;
}

.arrival-records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.arrival-records-close-btn {
    background-color: #6c757d;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.arrival-records-close-btn:hover {
    background-color: #545b62;
}

.arrival-records-content {
    width: 100%;
}

.arrival-records-loading {
    text-align: center;
    padding: 60px 20px;
}

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

.arrival-records-loading p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.arrival-records-error {
    text-align: center;
    padding: 40px 20px;
}

.arrival-records-error .error-message {
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 16px;
}

.arrival-records-table-wrapper {
    width: 100%;
}

.records-count {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ddd;
}

.records-count p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
}

.arrival-records-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    background-color: transparent;
}

.arrival-records-table th,
.arrival-records-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

.arrival-records-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 10;
}

.arrival-records-table tbody tr {
    transition: background-color 0.3s;
}

.arrival-records-table tbody tr:hover {
    background-color: #f8f9fa;
}

.arrival-records-table .record-name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.record-actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.record-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
    min-width: auto;
}

.record-actions .btn-outline-primary {
    color: #007cba;
    border-color: #007cba;
    background-color: transparent;
}

.record-actions .btn-outline-primary:hover {
    background-color: #007cba;
    color: #fff;
}

.record-actions .btn-primary {
    background-color: #007cba;
    border-color: #007cba;
    color: #fff;
}

.record-actions .btn-primary:hover {
    background-color: #005a94;
    border-color: #005a94;
}

.record-actions .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.record-actions .btn-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
}

.record-actions .btn-sm {
    font-size: 12px;
    padding: 4px 8px;
}

.record-actions .me-1 {
    margin-right: 4px;
}

/*save-record button style*/
.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    min-height: auto;
}

.record-title {
    font-size: 36px;
    font-weight: 600;
    margin: 0;
    color: #4a4343;
    line-height: 1.2;
}

/* Use same style as btn-save-search-toggle for consistency */
.save-record-btn {
    background: #fff;
    border: 2px solid #333333c9;
    color: #000;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all .3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.save-record-btn:hover {
    background: #f8f9fa;
    border-color: #64686a;
}

.save-record-btn:focus {
    outline: none;
    border: 2px solid #333333c9;
}

.save-record-btn i,
.heart-icon {
    font-size: 15px;
    line-height: 1;
}


/* Responsive Design */
@media (max-width: 768px) {
    .arrival-records-container {
        margin-top: 20px;
        padding: 15px;
    }
    
    .arrival-records-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        text-align: center;
    }
    
    .arrival-records-header h3 {
        font-size: 20px;
    }
    
    .table-responsive {
        font-size: 14px;
    }
    
    .arrival-records-table th,
    .arrival-records-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    .record-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .record-actions .btn {
        font-size: 11px;
        padding: 4px 8px;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .arrival-records-table {
        font-size: 12px;
    }
    
    .arrival-records-table th,
    .arrival-records-table td {
        padding: 6px 4px;
    }
    
    .arrival-records-table th {
        font-size: 11px;
    }
}

/* =================================================================
   ARRIVAL RECORDS TABLE ACTION ICONS STYLING
   Ensure consistent styling with passenger result page icons
   ================================================================= */

/* Table Action Icons Container */
.record-actions .action-icons-list {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    align-items: center;
}

/* Table Icon Items - Same as list view */
.record-actions .action-icons-list .icon-item {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.record-actions .action-icons-list .icon-item:hover {
    transform: scale(1.1);
}

/* Ensure proper spacing between icon and button */
.record-actions .action-icons-list + .btn,
.record-actions .btn {
    margin-left: 8px;
}

/* Zoom Controls */

.zoom-btn-custom:hover {
    background-color: #f0f0f0;
}

.zoom-btn-custom:active {
    background-color: #e0e0e0;
}

.zoom-reset {
    background: #ff6b6b;
    border: none;
    padding: 10px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.zoom-reset svg {
    width: 18px;
    height: 18px;
}

.zoom-reset:hover {
    background-color: #c11111;
}

.zoom-reset:active {
    background-color: #ff3838;
}

.zoom-download {
  
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s;
    align-items: center;
        color: #000;
    text-align: center;
}

.zoom-download svg {
    width: 18px;
    height: 18px;
}

.zoom-download:hover {
        text-decoration: none;
    outline: none;
}

.zoom-download:active {
    background-color: #e0e0e0;
}

/* Download button loading state */
.zoom-download.downloading {
    opacity: 0.7 !important;
    cursor: wait !important;
    pointer-events: none !important;
    background-color: #f0f0f0 !important;
}

.download-spinner {
    display: inline-block;
    animation: spin 1s linear infinite !important;
}

.zoom-download.downloading .download-spinner {
    animation: spin 1s linear infinite !important;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Hide carousel until loaded */
.carousel-container {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
        
.carousel-container.loaded {
    opacity: 1;
}
        /* Error message styling */
.passenger-detail-error {
    margin: 20px 0;
    color: #721c24;
    padding: 15px;
}

.passenger-detail-error .error-message {
    margin: 0;
}
.passenger-detail-error p {
    margin: 0;
    font-weight: 500;
}

 /* Product sidebar wrapper to match carousel height */
.product-sidebar-wrapper {
        /* aspect-ratio: 2/5; */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
}
#record .product-sidebar-wrapper {
    margin: 40px 0;
}
/* Arrival Records Container - Match List View Styling */
.arrival-records-container .arrival-records-header h3 {
    font-size: 29px;
    font-weight: 400;
    color: #000;
}

/* Apply same styles as passenger result table */
.arrival-records-container .result-table {
    display: block;
    width: 100%;
}

.arrival-records-container .result-table thead {
    display: table;
    width: calc(100% - 17px); /* Account for scrollbar width */
    table-layout: fixed;
}

.arrival-records-container .result-table th {
    font-weight: 700;
    position: relative;
    background: #fff;
    color: #000;
    font-size: 14px;
    text-align: left;
    font-family: 'BentonSansRegular';
    text-transform: uppercase;
    line-height: 22px;
    padding: 4px 13px 11px;
}

.arrival-records-container .result-table tbody {
    border: 2px solid #000;
    display: block;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
}

.arrival-records-container .result-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.arrival-records-container .result-table td {
    font-weight: 500 !important;
    vertical-align: middle;
    padding: 13px 13px;
}

.arrival-records-container .result-table td span {
    font-size: 16px;
}

/* Ellipsis styling for specific columns */
.arrival-records-container .result-table td span.arrival-collection, 
.arrival-records-container .result-table td span.residence-place  {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
}

.arrival-records-container .result-table td span.arrival-location {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-height: 3em !important;
    line-height: 1.5em !important;
    white-space: normal !important;
}

.arrival-records-container .result-table td span.arrival-year {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.arrival-records-container .action-icon-group-list .quick-view-icon img,
.arrival-records-container .action-icon-group-list .passenger-record-icon img {
    height: 16px;
    width: 16px;
}

.arrival-records-container .action-icon-group-list {
    display: flex;
}

.arrival-records-container .action-icon-group-list .quick-view-icon,
.arrival-records-container .action-icon-group-list .passenger-record-icon {
    border: 1px solid #000;
    padding: 0px 4px;
    border-radius: 4px;
}

.arrival-records-container .action-icon-group-list .quick-view-icon {
    margin-right: 4px;
}

.arrival-records-container td .link-passenger {
    text-decoration: underline;
    color: #000;
    font-weight: bold;
}

.arrival-records-container td .link-passenger:hover {
    color: #757575;
}

/* View Full Image Link */
.view-full-image-link a {
    color: #000;
    text-decoration: none;
}

.view-full-image-link a:hover {
    color: #c11111;
    text-decoration: none;
}

.view-full-image-link a i {
    text-decoration: none;
}

.view-full-image-link a:hover span {
    text-decoration: underline;
    text-decoration-skip-ink: none;
}

.view-full-image-link a:hover i {
    text-decoration: none !important;
}

/* Full Image Modal */
.full-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    cursor: zoom-out;
}

.full-image-modal.show {
    opacity: 1;
}

.full-image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    cursor: default;
}

.full-image-display {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.full-image-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 10001;
}

.full-image-close:hover {
    color: #c11111;
}

.full-image-close i {
    pointer-events: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .full-image-modal-content {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .full-image-display {
        max-height: 95vh;
    }
    
    .full-image-close {
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        font-size: 24px;
    }
}

/*End passenger details page */

/* ============================================================= */
/* QUICK VIEW IN RESULT PAGE             */
/* ============================================================= */

.quick-view-modal-content {
    background: #fff;
    max-width: 670px;
    overflow: hidden;
}

/* Header */
.quick-view-header {
    padding: 25px 30px 15px;
    background: #fff;
    position: relative;
}

.quick-view-header > .header-close {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #757575;
}

.quick-view-header h3 {
    margin: 0 0 5px;
    font-size: 28px;
    font-weight: 700;
    padding-bottom: 10px;
    flex: 1;
    font-family: 'BentonSansRegular';
}

.quick-view-subtitle {
    font-size: 14px;
    color: #000;
    font-family: 'BentonSansRegular';
}

.quick-view-close {
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    color: #000;
    margin-left: 20px;
}

.quick-view-close:hover {
    color: #666;
}

/* Body */
.quick-view-body {
    padding: 0px 30px;
}

.quick-view-grid {
    display: grid;
    grid-template-columns: 45% 55%; /* Left 45%, Right 55% */
    column-gap: 30px;
}

.quick-view-modal-content .left-column {
    border-right: 1px solid #000;
    padding-right: 30px;
}

/* Right column is two smaller columns */
.quick-view-modal-content .right-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
}

/* Field styling */
.quick-view-modal-content .field-group {
    margin-bottom: 22px;
}

.quick-view-modal-content .field-group label {
    display: block;
    font-size: 14px;
    color: #000;
    margin-bottom: 0px;
    line-height: 14px;
    font-family: 'BentonSansRegular';
}

.quick-view-modal-content .field-group p {
    font-weight: 700;
    color: #000;
    font-family: 'BentonSansRegular';
    line-height: 28px;
}

.quick-view-modal-content .left-column .field-group p{
    font-size: 18px;
}

.quick-view-modal-content .right-column .field-group p{
    font-size: 16px;
}

/* Footer Button */
.quick-view-modal-content .passenger-record-btn {
    padding: 2px 10px;
    border: 1px solid #000;
    background: transparent;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 14px;
}

.quick-view-modal-content .passenger-record-btn:hover {
    text-decoration: underline;
}

.view-arrival-parent{
    position: relative;
    margin-bottom: 60px;
}

.quick-view-actions{
    position: absolute;
    top: 88%;
    left: 72%;
}

/* End of Quick View in result page */

/* Mobile Responsive */

@media (max-width: 767px) {

    .passenger-search-section .advanced-search-container,
    .passenger-search-section .basic-search-container {
        padding: 10px !important;
    }

    .passenger-search-section .search-by-name-label,
    .passenger-search-section .advanced-search-label-parent,
    .expert-genealogy-label {
        margin-bottom: 10px!important;
    }

    .clear-fields {
        margin-bottom: 10px;
        text-align: center !important;
    }

    .quick-view-grid {
        display: flex !important;
        flex-direction: column !important;
        column-gap: 0 !important;
        row-gap: 20px;
    }

    .quick-view-modal-content .left-column {
        border-right: unset !important;
        border-bottom: 1px solid #000;
        padding-right: 0 !important;
    }

    .quick-view-modal-content .right-column {
        /* display: block;
        grid-template-columns: none; */
        column-gap: 0;
        padding-top: 10px;
    }

    .quick-view-actions {
        position: unset;
        text-align: center;
    }

    .quick-view-modal-content .passenger-record-btn {
        padding: 3px 17px !important;
    }
.quick-view-modal-content .field-group {
    margin-bottom: 12px;
}
.quick-view-header {
    padding: 16px 30px 11px;
}
    .pagination-mobile {
        justify-content: center;
    }
    #search-results-container.list-view .list-view-content {
        margin-top:0px
    }
    .selected-filters-display {
    padding: 16px 13px;
}
.save-search-section {
    max-width: 280px;
            margin-top: 60px;
}
.search-name-input {
    width: 160px;
}
}

.form-back-to-top-container {
    margin-right: 30px;
}

#form-back-to-top-btn {
    display: none;
    position: fixed;
    bottom: 0px;
    right: 20px;
    z-index: 1000;
    background: #D9D9D9;
    border: none;
    padding: 8px 30px;
    border-radius: 2px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
}

#form-back-to-top-btn span {
    font-weight: bold;
    font-size: 14px;
    line-height: 20px;
}

/* Scoped tooltip styles for filter close button */
.filter-close-tooltip { position: relative; align-items: center; }
.filter-close-tooltip .tooltip-text {
    width: 42px;
    height: 25px;
    position: absolute;
    left: 98%;
    top: -20px;
    transform: translateX(-50%);
    bottom: calc(100% + 6px);
    background: #000;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    line-height: 1.2;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s 
ease, visibility .15s 
ease;
    z-index: 10;
}
.filter-close-tooltip:hover .tooltip-text, .filter-close-tooltip:focus-within .tooltip-text { opacity: 1; visibility: visible; }
.filter-close-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #000;
}

/* Quick View Modal Styles */
.passenger-modal.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.quick-view-container {
    background: white;
    border-radius: 8px;
    max-width: 680px;
    width: 100%;
    max-height: 95vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Related Products Section - Matching Theme Style */
.passenger-details-section .related-prods-sec {
    background-color: transparent !important;
    border-bottom: none !important;
    padding-top: 40px;
    padding-bottom: 0px !important;
}
.cust-related-product{
    margin-bottom: 65px;
}
.related-section-header {
    padding-top: 0 !important;
}

.related-section-header h5 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    font-family: 'BentonSansRegular';
}

.related-product-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.related-product-details {
    padding-left: 15px;
}

.rel-prod-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.rel-prod-name a {
    color: #000 !important;
    text-decoration: none;
}

.related-product-details .product-info {
    margin-bottom: 15px;
}

.related-product-details .info-row {
    justify-content: flex-start;
    margin-top: 10px;
    font-size: 14px;
}

.info-row strong {
    min-width: 75px;
    font-weight: bold;
}

.info-row span,
.related-cust-quantity {
    flex-grow: 1;
}

.related-cust-quantity {
    display: flex;
    align-items: center;
}

.related-quantity-btn {
    width: 33px;
    height: 33px;
    border: 1px solid #ccc;
    background-color: transparent;
    font-size: 22px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.related-quantity-btn:hover {
    border: 1px solid #333;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.quantity-wrapper input.qty {
    width: 40px !important;
    height: 40px !important;
    text-align: center;
    border: unset;
    margin: 0 5px;
    background-color: transparent;
}

.related-product-details .btn-add-to-cart {
    height: 45px !important;
    line-height: 18px !important;
}

@media (max-width: 768px) {
    .form-disclaimer .form-desc{
        padding: unset!important;
        margin-top: 20px;
    }
    .related-product-image,
    .related-product-details {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .cust-related-product .row {
        margin-left: 0;
        margin-right: 0;
    }
}
/* .passenger-details-section .related-prods-sec {
    display: none;
}
.product-btn-group .btn-add-to-cart {
    cursor: not-allowed !important;
} */

/* ============================================================= */
/* Cart Notice Styles - Matching WooCommerce Standard */
/* ============================================================= */

#passenger-cart-notices .woocommerce-message,
#passenger-cart-notices .woocommerce-error {
    margin: 0 0 1em 0;
    padding: 1em 2em 1em 3.5em;
    background-color: #fff;
    color: #333;
    border-top: 1px solid rgba(24,23,22,.3);
    border-radius: 4px;
    position: relative;
    font-size: 16px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    min-height: 60px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

#passenger-cart-notices .woocommerce-error {
    background-color: #fff;
    color: #333;
    border-top: 1px solid rgba(24,23,22,.3);
    font-weight: 600;
}

#passenger-cart-notices .woocommerce-message-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 15px;
}

#passenger-cart-notices .woocommerce-message-text {
    flex: 1;
    margin: 0;
}

#passenger-cart-notices .woocommerce-message .button.wc-forward {
    background: #007cba;
    color: #fff;
    padding: 8px 16px;
    border: 1px solid #007cba;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: auto;
}

#passenger-cart-notices .woocommerce-message .button.wc-forward:hover {
    background: #005a87;
    border-color: #005a87;
    color: #fff;
    text-decoration: none;
}

/*Cart Notice Styles - Matching WooCommerce Standard End */

.passenger-result-parent .result-table tbody tr {
    font-weight: 700;
}

/* Mobile layout for details grid */
@media (max-width: 768px) {
    .details-grid {
        display: flex;
        flex-direction: column;
    }
    
    .details-column-full {
        width: 100%;
    }
    
    .details-row-wrapper {
        display: flex;
        flex-direction: row;
        width: 100%;
        gap: 15px;
    }
    
    .details-column-half {
        flex: 1;
        width: 50%;
    }

    .details-column:nth-child(2) {
        border-right: unset!important;
    }

    .details-row-wrapper{
        border-top: 1px solid #000;
        padding-top: 16px;
    }
}

/* Desktop layout remains unchanged */
@media (min-width: 769px) {
    .details-row-wrapper {
        display: contents;
    }
}

.passenger-details-section .woocommerce-notices-wrapper{
    z-index: 9999!important;
    bottom: -18px!important;
}

#emailCertificateForm .form-group  {
    padding: 0px;
    display: flex;
    align-items: flex-end;
}

#kiosk-page .passenger-details-section .back-to-search-section{
    margin-top: 20px;
}
/* No records found font & changes */
.search-error-message.custom-no-results-message h4 {
        margin-bottom: 2px !important;
}
.search-error-message.custom-no-results-message {
    margin-top: 18px;
}

/* Hide default browser fullscreen controls */
    .carousel-container:fullscreen::backdrop {
        background-color: rgba(0, 0, 0, 0.95);
    }
    
    .carousel-container:-webkit-full-screen {
        background-color: rgba(0, 0, 0, 0.95);
    }
    
    .carousel-container:-moz-full-screen {
        background-color: rgba(0, 0, 0, 0.95);
    }
    
    .carousel-container:-ms-fullscreen {
        background-color: rgba(0, 0, 0, 0.95);
    }
    
    /* Custom fullscreen close button */
    .fullscreen-close-btn {
        position: absolute;
        top: 44px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10000;
        background: rgba(255, 255, 255, 1);
        border: 2px solid rgba(0, 0, 0, 0.2);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: none;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0;
    }
    
    .fullscreen-close-btn:hover {
        transform: translateX(-50%) scale(1.05);
    }
    
    .fullscreen-close-btn svg {
        stroke: #000;
        transition: stroke 0.3s ease;
    }
    
    /* Show close button in fullscreen */
    .carousel-container:fullscreen .fullscreen-close-btn,
    .carousel-container:-webkit-full-screen .fullscreen-close-btn,
    .carousel-container:-moz-full-screen .fullscreen-close-btn,
    .carousel-container:-ms-fullscreen .fullscreen-close-btn {
        display: flex !important;
    }

    .form-disclaimer .form-desc{
    padding: 0 60px;
    font-size: 16px;
    line-height: 24px;
    font-style: italic;
    font-family: 'BentonSansRegularFnt';
}

.form-disclaimer .arrival-desc, .passenger-record-container .arrival-desc{
    padding: 0px;
    font-size: 14px;
    line-height: 24px;
    font-style: italic;
    font-family: 'BentonSansRegularFnt';
}

/* ============================================================= */
/* VISITED LINKS STYLING - applies to both online and kiosk                                        */
/* ============================================================= */

/* Grid view visited card styling */
.visited-passenger-link .passenger-record-icon a span{
    color: #6d066d !important;
}

/* List view visited link styling */
td .link-passenger.visited-passenger-link {
    color: #6d066d !important;
}

/* ============================================================= */

/* Accessibility fixes */
.tooltip-text {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    pointer-events: none;
    position: absolute;
    z-index: 100;
}
.tooltip-text.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.certificate-image-heading{
    margin-bottom: 6px;
    font-size: clamp(22px, 2vw, 30px);
    font-family: "Times New Roman", Times, serif;
    text-align: center;
    font-weight: bold;
}

.certificate-image-description {
    font-size: clamp(14px, 1.2vw, 16px);
    line-height: 1.5;
    font-weight: 500 !important;
    color: #000;
    text-align: center;
    margin-bottom: 8px;
}

.certificate-image-sub-description{
    font-size: clamp(13px, 1vw, 14px);
    line-height: 1.6;
    font-weight: 500 !important;
    color: #000;
    text-align: center;
    margin-top: 8px;
}

.certificate-full-name{
    font-size: clamp(22px, 2vw, 30px) !important;
    font-weight: bold;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(4px, 0.6vw, 8px);
}

.certificate-full-name .field-value {
    display: inline-block;
}

#record .arrival-certificate-info-wrapper{
        margin: 0px 0!important;
}