/* Responsive Hotel Booking Cart Styles */

.hb_responsive_cart {
    width: 100%;
    max-width: 100%;
    margin-bottom: 25px;
}

/* Desktop Table Headers */
.hb_cart_headers {
    display: grid;
    grid-template-columns: 50px 2fr 1.5fr 1fr 80px 100px 1fr;
    gap: 15px;
    padding: 15px;
    background-color: #f8f9fa;
}

/* Extra Package Styling */
.hb_cart_item.package {
    background-color: #f8f9fa;
    border-left: 3px solid var(--thim_body_primary_color, #2eb0d1);
    margin-top: 5px;
    margin-bottom: 5px;
}

.hb_cart_item.package .hb_item_room .service-name {
    font-style: italic;
    color: #6c757d;
}

.hb_cart_item.package .mobile-label {
    font-size: 12px;
}

/* Hide empty fields on mobile for packages */
@media (max-width: 768px) {
    .hb_cart_item.package .hb_item_dates,
    .hb_cart_item.package .hb_item_capacity,
    .hb_cart_item.package .hb_item_nights {
        display: none;
    }
}

/* Desktop Cart Headers */
.hb_cart_headers {
    display: grid;
    grid-template-columns: 50px 2fr 1.5fr 1fr 80px 100px 1fr;
    gap: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    margin-bottom: 10px;
}

.hb_cart_headers > div {
    padding: 5px;
    font-size: 14px;
    color: #495057;
}

/* Desktop Cart Items */
.hb_cart_item {
    display: grid;
    grid-template-columns: 50px 2fr 1.5fr 1fr 80px 100px 1fr;
    gap: 15px;
    padding: 20px 15px;
    border-bottom: 1px solid #dee2e6;
    background-color: #fff;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    align-items: center;
}

.hb_cart_item:hover {
    background-color: #f8f9fa;
}

/* Item Elements */
.hb_item_remove {
    text-align: center;
}

.hb_item_remove a {
    color: #dc3545;
    font-size: 18px;
    text-decoration: none;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.hb_item_remove a:hover {
    background-color: #f5c6cb;
}

.hb_item_room a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.hb_item_room a:hover {
    text-decoration: underline;
}

.hb_item_dates .dates-value {
    font-size: 14px;
    color: #6c757d;
}

.hb_item_capacity .capacity-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hb_item_capacity .capacity-info span {
    font-size: 13px;
    color: #6c757d;
}

.hb_item_nights .nights-value {
    font-weight: 500;
    color: #495057;
}

.hb_item_quantity input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    text-align: center;
}

.hb_item_total .total-value {
    font-weight: 600;
    color: #A17e50;
    font-size: 16px;
}

/* Mobile Labels (hidden on desktop) */
.mobile-label {
    display: none;
    font-weight: 600;
    color: #495057;
    margin-right: 5px;
}

/* Cart Totals */
.hb_cart_totals {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.hb_total_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.hb_total_row:last-child {
    border-bottom: none;
}

.hb_total_row.hb_advance_grand_total {
    font-weight: 700;
    font-size: 18px;
    color: #A17e50;
    border-top: 2px solid #A17e50;
    padding-top: 15px;
    margin-top: 10px;
}

.hb_total_row .total-label {
    font-weight: 500;
    color: #495057;
}

.hb_total_row .total-value {
    font-weight: 600;
    color: #A17e50;
}

.hb_total_row .tax-note {
    font-size: 12px;
    color: #6c757d;
    font-weight: normal;
}

.hb_nonce_field {
    display: none;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Hide desktop headers */
    .desktop-only {
        display: none !important;
    }
    
    /* Mobile cart item layout */
    .hb_cart_item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
        margin-bottom: 15px;
    }
    
    /* Show mobile labels */
    .mobile-label {
        display: inline-block;
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    /* Mobile item styling */
    .hb_cart_item > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid #e9ecef;
    }
    
    .hb_cart_item > div:last-child {
        border-bottom: none;
    }
    
    .hb_item_remove {
        order: -1;
        justify-content: center;
        padding: 10px 0;
        border-bottom: 2px solid #dee2e6;
    }
    
    .hb_item_room {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .hb_item_dates {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .hb_item_capacity {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .hb_item_capacity .capacity-info {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }
    
    .hb_item_total {
        background-color: #e8f5e8;
        padding: 10px;
        border-radius: 5px;
        margin-top: 10px;
    }
    
    .hb_item_total .total-value {
        font-size: 18px;
        font-weight: 700;
    }
    
    /* Mobile totals */
    .hb_cart_totals {
        padding: 15px;
    }
    
    .hb_total_row {
        padding: 8px 0;
    }
    
    .hb_total_row .total-label,
    .hb_total_row .total-value {
        font-size: 14px;
    }
    
    .hb_total_row.hb_advance_grand_total .total-label,
    .hb_total_row.hb_advance_grand_total .total-value {
        font-size: 16px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .hb_cart_item {
        padding: 12px;
    }
    
    .hb_cart_totals {
        padding: 12px;
    }
    
    .mobile-label {
        font-size: 13px;
    }
    
    .hb_item_capacity .capacity-info {
        flex-direction: column;
        gap: 3px;
    }
}

/* Tablet responsive styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .hb_cart_headers {
        grid-template-columns: 40px 2fr 1.2fr 0.8fr 60px 80px 1fr;
        gap: 10px;
        padding: 12px;
    }
    
    .hb_cart_item {
        grid-template-columns: 40px 2fr 1.2fr 0.8fr 60px 80px 1fr;
        gap: 10px;
        padding: 15px 12px;
    }
    
    .hb_cart_headers > div {
        font-size: 13px;
    }
    
    .hb_item_quantity input {
        width: 50px;
    }
}

/* Checkout-specific styles (no remove button column) */
#hotel-booking-payment .hb_cart_headers {
    grid-template-columns: 2fr 1.5fr 1fr 80px 100px 1fr;
}

#hotel-booking-payment .hb_cart_item {
    grid-template-columns: 2fr 1.5fr 1fr 80px 100px 1fr;
}

/* Tablet responsive styles for checkout */
@media (min-width: 769px) and (max-width: 1024px) {
    #hotel-booking-payment .hb_cart_headers {
        grid-template-columns: 2fr 1.2fr 0.8fr 60px 80px 1fr;
    }
    
    #hotel-booking-payment .hb_cart_item {
        grid-template-columns: 2fr 1.2fr 0.8fr 60px 80px 1fr;
    }
}

/* Extra Package Styling */
.hb_cart_item.package {
    background-color: #f8f9fa;
    border-left: 3px solid var(--thim_body_primary_color, #2eb0d1);
    margin-top: 5px;
    margin-bottom: 5px;
}

.hb_cart_item.package .hb_item_room .service-name {
    font-style: italic;
    color: #6c757d;
}

.hb_cart_item.package .mobile-label {
    font-size: 12px;
}

/* Hide empty fields on mobile for packages */
@media (max-width: 768px) {
    .hb_cart_item.package .hb_item_dates,
    .hb_cart_item.package .hb_item_capacity,
    .hb_cart_item.package .hb_item_nights {
        display: none;
    }
}
/* Cart Item Removal Loading States */
.hb_cart_item.removing {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.3s ease;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.hb_cart_item.removing .hb_remove_cart_item,
.hb_cart_item.removing .hb_package_remove {
    color: #721c24;
    background-color: #f8d7da;
    border-radius: 3px;
}

/* Package removal animation */
.hb_cart_item.package.removing {
    background-color: #fff3cd;
    border-left-color: #ffc107;
}

.hb_cart_item.removing .hb_remove_cart_item,
.hb_cart_item.removing .hb_package_remove {
    pointer-events: none;
}

.hb_remove_cart_item:hover,
.hb_package_remove:hover {
    background-color: #dc3545;
    color: white;
    transition: all 0.2s ease;
}

.hb_remove_cart_item,
.hb_package_remove {
    border-radius: 3px;
    padding: 5px;
    transition: all 0.2s ease;
}

/* Responsive Booking Confirmation Styles */
.hb_responsive_booking {
    width: 100%;
    max-width: 100%;
}

/* Desktop Booking Headers */
.hb_booking_headers {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 100px 1fr;
    gap: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px 5px 0 0;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.hb_booking_headers > div {
    text-align: left;
}

.hb_booking_headers .hb_header_qty,
.hb_booking_headers .hb_header_nights {
    text-align: center;
}

.hb_booking_headers .hb_header_total {
    text-align: right;
}

/* Booking Item Cards */
.hb_booking_item {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 100px 1fr;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    align-items: center;
    background-color: #fff;
    transition: background-color 0.2s ease;
}

.hb_booking_item:hover {
    background-color: #f8f9fa;
}

.hb_booking_item.package {
    background-color: #f1f8ff;
    border-left: 3px solid var(--thim_body_primary_color, #2eb0d1);
    margin-left: 20px;
}

.hb_booking_item.package .hb_item_name .package-name {
    font-style: italic;
    color: #6c757d;
    font-size: 14px;
}

/* Desktop styling for booking items */
.hb_booking_item > div {
    display: flex;
    align-items: center;
}

.hb_booking_item .mobile-label {
    display: none;
}

.hb_booking_item .hb_item_qty,
.hb_booking_item .hb_item_nights {
    justify-content: center;
}

.hb_booking_item .hb_item_total {
    justify-content: flex-end;
    font-weight: 600;
}

.hb_booking_item .item-value a {
    color: var(--thim_body_primary_color, #2eb0d1);
    text-decoration: none;
    font-weight: 500;
}

.hb_booking_item .item-value a:hover {
    text-decoration: underline;
}

/* Hide empty package fields on desktop */
.hb_booking_item.package .package-empty {
    display: none;
}

/* Booking Totals */
.hb_booking_totals {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 0 0 5px 5px;
    margin-top: 0;
    border-top: 2px solid #dee2e6;
}

.hb_booking_totals .hb_total_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.hb_booking_totals .hb_total_row:last-child {
    border-bottom: none;
}

.hb_booking_totals .hb_total_row.hb_grand_total {
    font-weight: 700;
    font-size: 18px;
    color: #A17e50;
    border-top: 2px solid #A17e50;
    padding-top: 15px;
    margin-top: 10px;
}

.hb_booking_totals .hb_total_row .total-label {
    font-weight: 500;
    color: #495057;
}

.hb_booking_totals .hb_total_row .total-value {
    font-weight: 600;
    color: #A17e50;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Hide desktop headers */
    .hb_booking_headers.desktop-only {
        display: none !important;
    }
    
    /* Mobile booking item layout */
    .hb_booking_item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 5px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .hb_booking_item.package {
        margin-left: 10px;
        margin-right: 10px;
    }
    
    /* Show mobile labels */
    .hb_booking_item .mobile-label {
        display: inline-block;
        font-weight: 600;
        font-size: 14px;
        color: #495057;
        margin-bottom: 5px;
        min-width: 120px;
    }
    
    /* Mobile item styling */
    .hb_booking_item > div {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 8px 0;
        border-bottom: 1px solid #e9ecef;
        flex-direction: column;
        gap: 5px;
    }
    
    .hb_booking_item > div:last-child {
        border-bottom: none;
    }
    
    .hb_booking_item .hb_item_name {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .hb_booking_item .hb_item_total {
        background-color: #e8f5e8;
        padding: 10px;
        border-radius: 5px;
        margin-top: 10px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .hb_booking_item .hb_item_total .total-value {
        font-size: 18px;
        font-weight: 700;
    }
    
    /* Hide empty package fields on mobile */
    .hb_booking_item.package .package-empty {
        display: none;
    }
    
    /* Mobile totals */
    .hb_booking_totals {
        padding: 15px;
    }
    
    .hb_booking_totals .hb_total_row {
        padding: 8px 0;
    }
    
    .hb_booking_totals .hb_total_row .total-label,
    .hb_booking_totals .hb_total_row .total-value {
        font-size: 14px;
    }
    
    .hb_booking_totals .hb_total_row.hb_grand_total .total-label,
    .hb_booking_totals .hb_total_row.hb_grand_total .total-value {
        font-size: 16px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .hb_booking_item {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .hb_booking_totals {
        padding: 12px;
    }
    
    .hb_booking_item .mobile-label {
        font-size: 13px;
        min-width: 100px;
    }
}

/* Tablet responsive styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .hb_booking_headers {
        grid-template-columns: 2fr 1.2fr 80px 80px 1fr;
        gap: 10px;
        padding: 12px;
        font-size: 14px;
    }
    
    .hb_booking_item {
        grid-template-columns: 2fr 1.2fr 80px 80px 1fr;
        gap: 10px;
        padding: 12px;
        font-size: 14px;
    }
}
/* Responsive Customer Details Styles */
.hb_responsive_customer {
    width: 100%;
    max-width: 100%;
    margin-top: 30px;
}

.hb_customer_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.hb_customer_item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #e9ecef;
    transition: box-shadow 0.2s ease;
}

.hb_customer_item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hb_customer_item .customer-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    margin-bottom: 5px;
}

.hb_customer_item .customer-value {
    color: #212529;
    font-size: 16px;
    word-break: break-word;
}

/* Booking Notes Section */
.booking-notes {
    margin-top: 25px;
    padding: 20px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
}

.booking-notes h4 {
    margin: 0 0 15px 0;
    color: #856404;
    font-size: 18px;
    font-weight: 600;
}

.booking-notes .notes-content {
    color: #856404;
    font-size: 15px;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Payment Instruction Section */
.payment-instruction {
    margin-top: 25px;
    padding: 20px;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 5px;
}

.payment-instruction h4 {
    margin: 0 0 15px 0;
    color: #0c5460;
    font-size: 18px;
    font-weight: 600;
}

.payment-instruction .instruction-content {
    color: #0c5460;
    font-size: 15px;
    line-height: 1.5;
}

.payment-instruction .instruction-content p {
    margin-bottom: 10px;
}

.payment-instruction .instruction-content p:last-child {
    margin-bottom: 0;
}

/* Mobile Responsive Styles for Customer Details */
@media (max-width: 768px) {
    .hb_customer_grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .hb_customer_item {
        padding: 12px;
    }
    
    .hb_customer_item .customer-label {
        font-size: 13px;
    }
    
    .hb_customer_item .customer-value {
        font-size: 15px;
    }
    
    .booking-notes,
    .payment-instruction {
        padding: 15px;
        margin-top: 20px;
    }
    
    .booking-notes h4,
    .payment-instruction h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .booking-notes .notes-content,
    .payment-instruction .instruction-content {
        font-size: 14px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .hb_customer_grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }
    
    .hb_customer_item {
        padding: 10px;
    }
    
    .hb_customer_item .customer-label {
        font-size: 12px;
    }
    
    .hb_customer_item .customer-value {
        font-size: 14px;
    }
    
    .booking-notes,
    .payment-instruction {
        padding: 12px;
        margin-top: 15px;
    }
}

/* Tablet responsive styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .hb_customer_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        padding: 18px;
    }
    
    .hb_customer_item {
        padding: 14px;
    }
}

/* Large desktop styles */
@media (min-width: 1200px) {
    .hb_customer_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
