#riv-filter-crew-display {
    cursor: pointer;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' width=\'10\' height=\'10\' viewBox=\'0 0 10 10\'><path d=\'M0 0 L5 5 L10 0\' fill=\'%23666\' /></svg>') no-repeat right 10px center;
    padding-right: 30px;
}

.riv-crew-popover {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 20px;
    margin-top: 2px;
}

.riv-validate-button {
    width: 100%;
    padding: 10px;
    background-color: #A05A42;
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}

.search-filter-section .crew-btn-minus,
.search-filter-section .crew-btn-plus {
    width: 30px;
    height: 30px;
    border: 1px solid var(--e-global-color-accent);
    background: var(--e-global-color-accent);
    border-radius: 4px;
    cursor: pointer;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.counter-control {
    display: flex;
    align-items: center;
    gap: 4px;
}

.crew-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.count-display {
    font-size: 15px;
    width: 30px;
    height: 30px;
    border: 1px solid #f8f8f8;
    background: #f8f8f8;
    border-radius: 4px;
    cursor: pointer;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crew-label {
    color: #333;
    display: flex;
    gap: 10px;
    font-size: 15px;
}

.crew-label span {
    color: #15151580;
}

button#riv-crew-validate {
    padding: 10px 20px;
    font-size: 15px;
}

.skeleton-cell {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
    border: 1px solid #ddd;
}

.select2-results__option .is-recommended {
    font-weight: 700;
}

/* Total row styling */
.crew-row.total-row {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 5px;
    font-size: 15px;
}

/* Warning message styling */
.crew-warning {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.crew-warning.show {
    display: block;
}

/* Disabled button styles */
.crew-btn-minus:disabled,
.crew-btn-plus:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--e-global-color-accent);
}

.crew-btn-minus:disabled:hover,
.crew-btn-plus:disabled:hover {
    background: var(--e-global-color-accent);
}

/* Total row styling */
.crew-row.total-row {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 5px;
}

.total-display {
    font-weight: bold;
    min-width: 100px;
    text-align: center;
    font-size: 16px;
    background: #f8f8f8;
    border: 1px solid #f8f8f8;
    padding: 5px;
    border-radius: 4px;
}

/* Warning message styling */
.crew-warning {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.crew-warning.show {
    display: block;
}

/* Optional: Add visual feedback for disabled state */
.crew-btn-minus:disabled,
.crew-btn-plus:disabled {
    border-color: #ccc;
    color: #999;
}

th.active span.divider {
    display: none;
}

body .select2-results__option strong {
    font-weight: 700;
}

/* ===== TABLE STYLES ===== */
.booking-table {
    table-layout: fixed;
    width: max-content;
    min-width: max-content;
    border-collapse: separate;
    border-spacing: 6px;
    margin-right: 0;
    box-sizing: border-box;
}

body #riverly-right-table,
body #riverly-left-table {
    width: max-content;
}

/* Table wrapper */
.table__wrapper {
    display: flex;
    position: relative;
}

/* ===== STICKY HEADER STYLES ===== */
#riverly-left-table thead,
#riverly-right-table thead {
    transition: none;
    /* box-shadow: 0 4px 10px rgba(0,0,0,0.08); */
    z-index: 50;
}

/* Fixed positioning for sticky headers */
#riverly-left-table thead[style*="fixed"] {
    position: fixed !important;
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
    /* box-shadow: 0 4px 10px rgba(0,0,0,0.08); */
}

#riverly-right-table thead[style*="fixed"] {
    position: fixed !important;
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
    /* box-shadow: 0 4px 10px rgba(0,0,0,0.08); */
}

/* Sticky header cells */
#riverly-left-table thead[style*="fixed"] th,
#riverly-right-table thead[style*="fixed"] th {
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 8px 12px;
}

/* Body cells */
#riverly-left-table tbody td,
#riverly-right-table tbody td {
    box-sizing: border-box;
    overflow: hidden;
    white-space: normal;
    word-wrap: break-word;
    /* padding: 8px 12px; */
}

/* ===== SCROLL WRAPPER STYLES ===== */
.table-scroll-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
    flex: 1;
    /* mask-image: linear-gradient(
        to right,
        transparent 0px,
        black 20px,
        black calc(100% - 20px),
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0px,
        black 20px,
        black calc(100% - 20px),
        transparent 100%
    ); */
}

/* Fade effect at edges */
.table-scroll-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 100%;
    /* background: linear-gradient(to right, rgba(255,255,255,0.95), transparent); */
    pointer-events: none;
    z-index: 45;
}

.table-scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    /* background: linear-gradient(to left, rgba(255,255,255,0.95), transparent); */
    pointer-events: none;
    z-index: 45;
}

/* Adjust fades when headers are sticky */
.table-scroll-wrapper:has(thead[style*="fixed"])::before,
.table-scroll-wrapper:has(thead[style*="fixed"])::after {
    z-index: 55;
}

/* ===== ARROW STYLES ===== */
.slider_arrow_main {
    position: relative;
    height: 0;
    width: 0;
}

.booking-slider .slider_arrow_main > span {
    position: absolute;
    margin-top: 45px;
    cursor: pointer;
    z-index: 66;
    transition: all 0.2s ease;
}

.booking-slider .slider_arrow_main > span svg {
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.booking-slider .slider_arrow_main > span.slider_arrow_right {
    right: -18px;
}

/* Sticky arrow styles */
.booking-slider .slider_arrow_main > span[style*="fixed"] {
    position: fixed !important;
    margin-top: 0;
    transition: none;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
    z-index: 70;
}

.booking-slider .slider_arrow_main > span[style*="fixed"]:hover {
    transform: scale(1.1);
}

.booking-slider .slider_arrow_main > span[style*="fixed"] rect {
    fill: #1D6C54;
    transition: fill 0.2s ease;
}

.booking-slider .slider_arrow_main > span[style*="fixed"]:hover rect {
    fill: #155240;
}

/* Left arrow when sticky */
#riverly-prev-arrow[style*="fixed"] {
    margin-top: 0;
}

/* Right arrow when sticky */
#riverly-next-arrow[style*="fixed"] {
    margin-top: 0;
}

/* Ensure arrows stay clickable */
#riverly-prev-arrow[style*="fixed"],
#riverly-next-arrow[style*="fixed"] {
    pointer-events: auto;
    background: transparent;
}

/* Arrow container */
body .booking-slider {
    position: relative;
    flex: 1;
}



/* ===== ANIMATIONS ===== */
@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== RESERVE BUTTON ===== */
.reserve-button {
    display: inline-block;
    padding: 6px 12px;
    background-color: #1D6C54;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 8px;
    font-size: 13px;
    transition: background-color 0.2s;
}

.reserve-button:hover {
    background-color: #155240;
}

.crew-picker-container{
    position: relative;
}

.crew-picker-container:before{
    content: "";
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 10px;
    height: 10px;
    background-image: url(../../themes/hello-theme-child-master/img/black_down_arrow.svg);
    opacity: 0.5;
    width: 10px;
    height: 10px;
    right: 0px;
    z-index: 0;
}

.crew-picker-container input{
    background-image: none!important;
}

.search-filter-section .crew-picker-container:before{
    right: 10px;
}

#riverly-no-results {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin: 20px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .booking-slider .slider_arrow_main > span[style*="fixed"] {
        display: none;
    }
    
    .table-scroll-wrapper::before,
    .table-scroll-wrapper::after {
        display: none;
    }

    .mobile_table_wrapper .booking-slider>span.slider_arrow_left,
    .mobile_table_wrapper .booking-slider>span.slider_arrow_right {
        margin-top: 15px!important;
    }

    .mobile_table_wrapper .booking-slider svg{
        width: 28px!important;
        height: 28px!important;
    }

    .search-filter-section .select2-container .select2-selection--single .select2-selection__rendered{
        padding-right: 30px!important;
    }

    .search-filter-section .select2-container--default .select2-selection--single .select2-selection__clear{
        font-size: 18px;
    }

    .riv-crew-popover{
        width: 100%;
    }

    .search-filter-section .rs-field label{
        display: block!important;
    }
}

/* ===== UTILITY CLASSES ===== */
body .select2--dropdown {
    z-index: 99;
}

/* Ensure proper box sizing everywhere */
* {
    box-sizing: border-box;
}

/* ====== TO ADJUST BOAT SLIDER IMAGE OVERLAP THE FIRST TABLE HEAD ===== */
.slick-boat-wrapper div, .slick-td-wrapper div {
    position: relative;
}

.flatpickr-month .flatpickr-current-month{
    display: flex!important;
}

/* ===== Temporary 
 ===== */
.booking-table .discount, span.search-filter-button {
    display: none!important;
}

.booking-slider .table-scroll-wrapper{
    overflow-x: hidden;
}
