.visually-hidden {
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* Custom styles for product layout and components */
.product-detail-layout {
    display: grid;
    align-items: start;
    gap: 1.5rem;
}

.product-detail-layout>div {
    min-width: 0;
    max-width: 100%;
}

@media (min-width: 1024px) {
    .product-detail-layout {
        grid-template-columns: minmax(0, 1fr) 400px;
        gap: 2rem;
    }
}

@media (min-width: 1280px) {
    .product-detail-layout {
        grid-template-columns: minmax(0, 1fr) 460px;
    }
}

/* Custom Select2 Styling for Booking */
.select2-container--booking-custom .select2-selection--single {
    height: auto !important;
    min-height: 48px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    padding: 6px 12px !important;
    display: flex !important;
    align-items: center !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease !important;
}

.select2-container--booking-custom .select2-selection--single:focus,
.select2-container--booking-custom.select2-container--open .select2-selection--single {
    border-color: #016937 !important;
    box-shadow: 0 0 0 1px #016937 !important;
    outline: none !important;
}

.select2-container--booking-custom .select2-selection__rendered {
    padding-left: 0 !important;
    padding-right: 24px !important;
    width: 100% !important;
    color: #1e293b !important;
    line-height: normal !important;
}

.select2-container--booking-custom .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 12px !important;
}

.select2-container--booking-custom .select2-selection__arrow b {
    border-color: #64748b transparent transparent transparent !important;
}

.select2-container--booking-custom.select2-container--open .select2-selection__arrow b {
    border-color: transparent transparent #64748b transparent !important;
}

.select2-dropdown.booking-select2-dropdown {
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    margin-top: 4px !important;
    z-index: 99999 !important;
}

.booking-select2-dropdown .select2-search--dropdown {
    padding: 8px 10px !important;
    background-color: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.booking-select2-dropdown .select2-search__field {
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.5rem !important;
    padding: 6px 12px !important;
    font-size: 0.875rem !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.booking-select2-dropdown .select2-search__field:focus {
    border-color: #016937 !important;
    box-shadow: 0 0 0 1px #016937 !important;
}

.booking-select2-dropdown .select2-results__options {
    max-height: 280px !important;
    padding: 4px 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
}

.booking-select2-dropdown .select2-results__group {
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #016937 !important;
    background-color: #f0fdf4 !important;
}

.booking-select2-dropdown .select2-results__option {
    padding: 6px 12px !important;
    transition: background-color 0.15s ease !important;
}

.booking-select2-dropdown .select2-results__option--highlighted[aria-selected] {
    background-color: #f0fdf4 !important;
    color: #1e293b !important;
}

.booking-select2-dropdown .select2-results__option[aria-selected="true"] {
    background-color: #dcfce7 !important;
}

/* Khung cuộn và Bảng giá dịch vụ (Style thuần) */
.price-table-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #ffffff;
}

.price-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    background: #ffffff;
    -webkit-mask-image: none;
    mask-image: none;
    border: 1px solid #e5e7eb;
    transition: -webkit-mask-image 0.2s ease, mask-image 0.2s ease;
}

/* CSS Mask mờ 2 bên bằng mask-image */
/* Khi tràn sang phải (ở đầu bảng) */
.price-table-wrapper.can-scroll-right .price-table-scroll {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent 100%);
}

/* Khi đã cuộn sang phải (chạm kịch mép cuối) */
.price-table-wrapper.can-scroll-left .price-table-scroll {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 44px, #000 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 44px, #000 100%);
}

/* Khi ở giữa (tràn cả 2 bên trái & phải) */
.price-table-wrapper.can-scroll-left.can-scroll-right .price-table-scroll {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 44px, #000 calc(100% - 44px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 44px, #000 calc(100% - 44px), transparent 100%);
}

.price-table-scroll.has-overflow {
    cursor: grab;
}

.price-table-scroll.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.price-table-scroll::-webkit-scrollbar {
    height: 6px;
}

.price-table-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.price-table-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

.price-table-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.price-table-scroll>div {
    min-width: 100%;
    width: max-content;
}

.price-table-box {
    min-width: 100%;
    width: max-content;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
    margin: 0;
}

.price-table-box th,
.price-table-box td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    box-sizing: border-box;
}

.price-table-box thead th {
    background-color: #f8fafc;
    color: #1e293b;
    font-weight: 700;
}

.price-table-box th.col-title,
.price-table-box td.col-title {
    min-width: 160px;
    max-width: 210px;
    text-align: left;
}

.price-table-box td.col-title {
    font-weight: 600;
    color: #0f172a;
}

.price-table-box th.col-val,
.price-table-box td.col-val {
    min-width: 110px;
    text-align: center;
    border-left: 1px solid #e5e7eb;
}

.price-table-box tbody tr {
    transition: background-color 0.15s ease;
}

.price-table-box tbody tr:hover {
    background-color: #f8fafc;
}

.price-table-box tbody tr:nth-child(even) {
    background-color: #fbfcfd;
}

.price-table-box tbody tr:last-child td {
    border-bottom: none;
}

.price-table-box .status-yes {
    color: #059669;
    font-size: 16px;
    font-weight: 700;
}

.price-table-box .status-no {
    color: #e11d48;
    font-size: 16px;
    font-weight: 700;
}


.st-bk-agree-label input {
    order: 1;
}

.st-bk-agree-label span {
    order: 2;
}

.st-bk-agree-label #agree-error {
    order: 3;
}

/* ==========================================================================
   Pagination Styling (showPageNavigation)
   ========================================================================== */
.page-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 32px 0 24px;
}

.page-navigation ul,
.page-navigation .st-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-navigation li,
.page-navigation .st-page-item {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-navigation a,
.page-navigation button,
.page-navigation .st-page-link {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.page-navigation a:hover,
.page-navigation button:hover,
.page-navigation .st-page-link:hover {
    background-color: #016937;
    border-color: #016937;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(1, 105, 55, 0.25);
    transform: translateY(-1px);
}

.page-navigation li.Active .st-page-link,
.page-navigation li.active .st-page-link,
.page-navigation .st-page-link.is-active,
.page-navigation li.Active a,
.page-navigation li.active a,
.page-navigation li.Active button,
.page-navigation li.active button {
    background-color: #016937 !important;
    border-color: #016937 !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(1, 105, 55, 0.35);
    cursor: default;
    transform: none;
}

.page-navigation .st-page-dots,
.page-navigation .st-page-ellipsis,
.page-navigation li.infinity-page button {
    min-width: 32px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-weight: 700;
    letter-spacing: 2px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: default;
}

.home-transfer-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.home-transfer-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    background-color: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.25s ease;
}

.home-transfer-tab-btn:hover {
    border-color: #016937;
    color: #016937;
    background-color: #f0fdf4;
}

.home-transfer-tab-btn.is-active {
    background-color: #016937;
    color: #ffffff;
    border-color: #016937;
    box-shadow: 0 2px 6px rgba(1, 105, 55, 0.25);
}

@media (max-width: 640px) {

    .page-navigation ul,
    .page-navigation .st-pagination {
        gap: 6px;
    }

    .page-navigation a,
    .page-navigation button,
    .page-navigation .st-page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
        border-radius: 6px;
    }

    .page-navigation .st-page-dots,
    .page-navigation .st-page-ellipsis {
        min-width: 24px;
        height: 36px;
    }
}

.booking-product-desc p,
.select2-product-comment2 p {
    margin: 0;
}

.destok-lang {
    display: flex;
}

.flag-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    background: #fff;
    cursor: pointer;
}

.flag-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flag-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    opacity: 1 !important;
}

.flag-badge.active {
    border: 1.5px solid #016937;
    box-shadow: 0 0 0 1px #016937;
    opacity: 1;
}

.flag-badge.inactive {
    /* opacity: 0.65; */
}


@media (max-width: 430px) {
    .flag-badge {
        width: 24px;
        height: 19px;
    }
}