/* ============================= */
/* BOOKING BOX */
/* ============================= */
.join-groups-wrapper {
    width: 100%;
}

.join-year-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
}

.join-year-navigation-bottom {
    margin: 24px 0 0;
}

.join-year-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 10px 18px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font-weight: 700;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.join-year-link:hover,
.join-year-link.is-active {
    background: #222;
    border-color: #222;
    color: #fff;
}

.join-groups-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.join-groups-table {
    width: 100%;
    border-collapse: collapse;
}

.join-groups-table th,
.join-groups-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e7e7e7;
    text-align: left;
    vertical-align: middle;
}

.join-groups-table thead th {
    background: #f5f5f5;
    color: #222;
    font-size: 14px;
    font-weight: 700;
}

.join-month-heading td {
    padding: 16px;
    border-bottom: 0;
    background: #222;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.join-departure-row:hover {
    background: #fafafa;
}

.join-sold-out {
    color: #b32d2e;
    font-weight: 700;
}

.join-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.join-groups-empty {
    padding: 20px;
    border: 1px solid #e5e5e5;
    background: #fafafa;
}

@media (max-width: 767px) {

    .join-year-navigation {
        justify-content: center;
    }

    .join-groups-table-scroll {
        overflow: visible;
    }

    .join-groups-table,
    .join-groups-table tbody,
    .join-groups-table tr,
    .join-groups-table td {
        display: block;
        width: 100%;
    }

    .join-groups-table thead {
        display: none;
    }

    .join-month-heading {
        margin-top: 20px;
    }

    .join-month-heading td {
        display: block;
        padding: 14px;
    }

    .join-departure-row {
        margin-bottom: 16px;
        padding: 14px;
        border: 1px solid #e4e4e4;
        border-radius: 8px;
        background: #fff;
    }

    .join-groups-table .join-departure-row td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 9px 0;
        border-bottom: 1px solid #eee;
    }

    .join-groups-table .join-departure-row td:last-child {
        padding-top: 14px;
        border-bottom: 0;
    }

    .join-groups-table .join-departure-row td::before {
        content: attr(data-label);
        flex: 0 0 42%;
        color: #555;
        font-weight: 700;
    }

    .join-groups-table .join-departure-row td:last-child::before {
        display: none;
    }

    .join-groups-table .join-departure-row td:last-child {
        justify-content: flex-end;
    }
}
.join-guest-control {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.join-guest-control .join-minus,
.join-guest-control .join-plus {
    width: 36px;
    height: 36px;
    border: 0;
    background: #000;
    color: #fff;
    border-radius: 6px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.join-guest-control .join-minus:hover,
.join-guest-control .join-plus:hover {
    background: #343434;
}

.join-value-display {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
}

.join-btn {
    background: #000;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 9px 14px;
    cursor: pointer;
}

.join-btn:hover {
    background: #343434;
}
#booking-box {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    background: #fafafa;
}

#booking-box input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
}

#booking-box button {cursor: pointer !important;}

#booking-submit, #request-price-submit {border: 0 !important; background-color: #000; color: #fff; border-radius: 6px; padding: 8px 12px;}

#booking-submit:hover, #request-price-submit:hover {background-color: #343434;}

#booking-box .minus, #booking-box .plus {
    width: 80px;
    height: 36px;
    background: #000;
    padding-top:4px;
    color: #fff;
    border: none;
    cursor: pointer;
    vertical-align:middle !important;
}

#booking-box .minus:hover, #booking-box .plus:hover {background-color: #343434;} 

.join-guest-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.join-guest-control button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 50%;
    font-weight: bold;
}

.join-value-display {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
}

.guest-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.guest-control button {
    width: 36px;
    height: 36px;
    border: none;
    background: #eee;
    line-height: 30px !important;
    padding-bottom: 20px !important;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
}

.guest-control button:hover {
    background: #ddd;
}

.value-display {
    width: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

/* Hide real input */
.guest-control input {
    display: none;
}

/* ============================= */
/* DATEPICKER */
/* ============================= */

.flatpickr-calendar {
    width: 350px !important;
    z-index: 999999 !important;
}

#booking-date {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* ============================= */
/* CHECKOUT LAYOUT */
/* ============================= */

.custom-checkout-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.checkout-left {
    flex: 0 0 60%;
    max-width: 60%;
}

.checkout-right {
    flex: 0 0 40%;
    max-width: 40%;
    background: #fafafa;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #eee;
}

#order_review {
    width: 100% !important;
}

/* ============================= */
/* REVIEW ORDER TABLE */
/* ============================= */

.woocommerce-checkout .woocommerce-checkout-review-order-table {
    width: 100%;
}

/* Remove subtotal column */
.woocommerce-checkout-review-order-table .product-total {
    display: none;
}
.woocommerce-table__product-thumbnail,
.woocommerce-table__product-thumbnail img {
    display: none !important;
}
/* Table spacing */
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 12px 0;
    vertical-align: top;
}
.woocommerce-table__product-thumbnail, .woocommerce-placeholder {
    display: none !important;
}
/* ============================= */
/* PRODUCT BLOCK */
/* ============================= */

.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name {
    width: 100%;
}

/* Flex layout INSIDE cell only */
.woocommerce-checkout .product-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* IMAGE */
.woocommerce-checkout .product-image img {
    width: 140px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

/* CONTENT */
.woocommerce-checkout .product-info {
    flex: 1;
}

/* TITLE */
.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
    word-break: break-word;
}

/* META */
.product-meta {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* ============================= */
/* TOTAL ROW */
/* ============================= */

.woocommerce-checkout-review-order-table tfoot th {
    text-align: left;
    font-weight: 600;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
    text-align: right;
    font-weight: 700;
    font-size: 16px;
}

/* Divider above total */
.woocommerce-checkout-review-order-table tfoot tr.order-total th,
.woocommerce-checkout-review-order-table tfoot tr.order-total td {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* ============================= */
/* PAYMENT SECTION */
/* ============================= */

.woocommerce-checkout-payment {
    width: 100% !important;
}

.woocommerce-checkout-payment ul {
    width: 100% !important;
}

.woocommerce-checkout-payment li {
    display: block;
    width: 100%;
}