/* Show a subtle loading state while total price recalculates */
.total-price-book.st-price-loading {
    opacity: 0.5;
    transition: opacity 120ms ease;
    position: relative;
}
.total-price-book.st-price-loading:after {
    content: 'Calculating…';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #666;
}
/**
 * Custom Tour Package CSS
 * Styles for checkbox selection instead of calculator
 */

/* Checkbox styling */
.st-package-popup .st-faq .item .body .item-inner.hotel li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
}

.st-package-popup .st-faq .item .body .item-inner.hotel li .checkbox-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.st-package-popup .st-faq .item .body .item-inner.hotel li .checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0;
    cursor: pointer;
    flex-shrink: 0;
}

/* Fallback: style any injected checkbox even if not wrapped */
.st-package-popup .st-faq .item .body .item-inner.hotel li .hotel-package-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    cursor: pointer;
}

.st-package-popup .st-faq .item .body .item-inner.hotel li .checkbox-item label {
    cursor: pointer;
    margin: 0;
    flex: 1;
}

.st-package-popup .st-faq .item .body .item-inner.hotel li .checkbox-item label h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
}

/* Hide the select-wrapper (calculator) if it still exists */
.st-package-popup .st-faq .item .body .item-inner.hotel li .select-wrapper {
    display: none !important;
}

/* Move checkbox to the right side */
.st-package-popup .st-faq .item .body .item-inner.hotel li .checkbox-item {
    justify-content: flex-start;
}
.st-package-popup .st-faq .item .body .item-inner.hotel li .checkbox-item .hotel-package-checkbox {
    margin-left: auto;
    order: 2;
}
.st-package-popup .st-faq .item .body .item-inner.hotel li .checkbox-item label {
    order: 1;
}

/* Star ratings */
.st-package-popup .st-faq .item .body .item-inner .booking-item-rating-stars {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
    display: flex;
    gap: 2px;
}

.st-package-popup .st-faq .item .body .item-inner .booking-item-rating-stars li {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block;
}

.st-package-popup .st-faq .item .body .item-inner .booking-item-rating-stars i {
    color: #ffa801;
    font-size: 14px;
}

/* Hover effect */
.st-package-popup .st-faq .item .body .item-inner.hotel li:hover {
    background-color: #f9f9f9;
}

/* Checked state highlight */
.st-package-popup .st-faq .item .body .item-inner.hotel li:has(input[type="checkbox"]:checked) {
    background-color: #f0f8ff;
    border-left: 3px solid #5191fa;
}

/* Disabled state style when other hotels are locked */
.st-package-popup .st-faq .item .body .item-inner.hotel li.hotel-disabled {
    opacity: 0.55;
}
.st-package-popup .st-faq .item .body .item-inner.hotel li.hotel-disabled label {
    cursor: not-allowed;
}
.st-package-popup .st-faq .item .body .item-inner.hotel li .hotel-package-checkbox:disabled {
    cursor: not-allowed;
    border-color: #ddd;
    background-color: #f7f7f7;
}

/* Custom checkbox styling (optional - for better appearance) */
.st-package-popup .st-faq .item .body .item-inner.hotel li .checkbox-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

/* Fallback style for injected checkbox outside checkbox-item */
.st-package-popup .st-faq .item .body .item-inner.hotel li .hotel-package-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.st-package-popup .st-faq .item .body .item-inner.hotel li .checkbox-item input[type="checkbox"]:checked {
    background-color: #5191fa;
    border-color: #5191fa;
}

.st-package-popup .st-faq .item .body .item-inner.hotel li .hotel-package-checkbox:checked {
    background-color: #5191fa;
    border-color: #5191fa;
}

.st-package-popup .st-faq .item .body .item-inner.hotel li .checkbox-item input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.st-package-popup .st-faq .item .body .item-inner.hotel li .hotel-package-checkbox:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.st-package-popup .st-faq .item .body .item-inner.hotel li .checkbox-item input[type="checkbox"]:hover {
    border-color: #5191fa;
}

.st-package-popup .st-faq .item .body .item-inner.hotel li .hotel-package-checkbox:hover {
    border-color: #5191fa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .st-package-popup .st-faq .item .body .item-inner.hotel li {
        flex-direction: column;
        align-items: flex-start;
    }

    .st-package-popup .st-faq .item .body .item-inner.hotel li .checkbox-item {
        width: 100%;
    }

    .st-package-popup .st-faq .item .body .item-inner.hotel li .checkbox-item input[type="checkbox"] {
        margin-right: 10px;
    }

    .st-package-popup .st-faq .item .body .item-inner.hotel li .checkbox-item label h3 {
        font-size: 14px;
    }
}
