/* Continue Booking Floating Button */
.hme-continue-booking-btn {
    position: fixed;
    bottom: 76px;
    right: 22px;
    background: linear-gradient(135deg, #d4af37 0%, #a67c00 100%);
    color: #fff;
    padding: 16px;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    font-family: 'Cairo', sans-serif;
}

.hme-continue-booking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
    background: linear-gradient(135deg, #a67c00 0%, #8b6910 100%);
}

.hme-continue-booking-btn:active {
    transform: translateY(0);
}

.hme-continue-booking-btn:focus {
    outline: 2px solid rgba(212, 175, 55, 0.5);
    outline-offset: 2px;
}

.hme-continue-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    flex-shrink: 0;
}

[dir="rtl"] .hme-continue-booking-btn,
body.rtl .hme-continue-booking-btn {
    right: auto;
    left: 30px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hme-continue-booking-btn {
        bottom: 126px;
        right: 20px;
        padding: 14px;
        width: 52px;
        height: 52px;
    }

    .hme-continue-icon {
        width: 22px;
        height: 22px;
    }

    [dir="rtl"] .hme-continue-booking-btn,
    body.rtl .hme-continue-booking-btn {
        left: 20px;
        right: auto;
    }
}

.hme-cart-icon {
    width: 24px;
    height: 24px;
    color: #fff;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hme-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #fff;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.hme-cart-count.visible {
    opacity: 1;
    transform: scale(1);
}

/* Cart Sidebar (Glassmorphism) */
.hme-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.hme-cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.hme-cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
}

.hme-cart-sidebar.open {
    right: 0;
}

/* Header */
.hme-cart-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.5);
}

.hme-cart-title {
    font-family: 'Cairo', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hme-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
    padding: 5px;
}

.hme-close-btn:hover {
    color: #000;
}

/* Items List */
.hme-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.hme-cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.hme-cart-empty svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.hme-cart-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    transition: transform 0.2s;
}

.hme-cart-item:hover {
    transform: translateY(-2px);
}

.hme-item-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    color: #2c3e50;
    padding-right: 25px;
}

.hme-item-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
}



.hme-item-price {
    font-weight: 600;
    color: #d4af37;
    margin-top: 10px;
    font-size: 15px;
}

.hme-remove-item {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 5px;
}

.hme-remove-item:hover {
    color: #ff4757;
}

/* Footer */
.hme-cart-footer {
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
}

.hme-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 18px;
}

.hme-checkout-btn,
.hme-clear-btn {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 16px;
    text-decoration: none;
    display: block;
    text-align: center;
}

.hme-checkout-btn {
    background: linear-gradient(135deg, #d4af37 0%, #a67c00 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.hme-checkout-btn:hover {
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
    color: white;
}

.hme-clear-btn {
    background: transparent;
    color: #888;
    margin-top: 10px;
    font-size: 14px;
    padding: 10px;
}

.hme-clear-btn:hover {
    color: #666;
    background: rgba(0, 0, 0, 0.03);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .hme-cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .hme-cart-fab {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* Multi-select Package Styling */
.wte-package-select-btn.hme-selected,
.wte-check-button.checked,
.wte-check-button.hme-selected {
    background: linear-gradient(135deg, #d4af37 0%, #a67c00 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4) !important;
    transform: scale(1.02);
}

/* Package Selection Buttons Enhancements */
.wte-process-tab-content-wrapper .wte-package-type .wte-check-button,
.wte-package-select-btn {
    color: #2c3e50 !important;
    /* Premium dark slate */
    background-color: blanchedalmond !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 10px !important;
    padding: 10px 18px !important;
    font-weight: 550 !important;
    /* As requested: 550 */
    font-family: 'Cairo', sans-serif !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    margin: 4px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

/* Ensure WTE package radios remain clickable even if core/theme CSS hides them */
.wte-package-type input[type="radio"],
.wte-button-group input[type="radio"] {
    pointer-events: auto !important;
}

.wte-process-tab-content-wrapper .wte-package-type .wte-check-button:hover,
.wte-package-select-btn:hover {
    background-color: #fcecd5 !important;
    /* Slightly lighter almond */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    border-color: #d4af37 !important;
}

/* Specific weight request fallback */
.wte-check-button {
    font-weight: 550 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Cart Item Refinements */
.hme-item-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hme-item-meta span::before {
    content: '•';
    color: #d4af37;
}

.hme-item-meta span:first-child::before {
    display: none;
}

/* Enhanced cart item display */
.hme-cart-item .hme-item-programs {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
    font-style: italic;
}

.hme-cart-item .hme-item-currency {
    display: inline-block;
    font-size: 12px;
    color: #666;
    margin-left: 5px;
}

/* Loading state */
.hme-cart-loading {
    text-align: center;
    padding: 20px;
    color: #888;
}

.hme-cart-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Improved mobile cart button */
@media (max-width: 768px) {
    .hme-cart-fab {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
    
    .hme-cart-icon {
        width: 22px;
        height: 22px;
    }
    
    .hme-cart-sidebar {
        width: 100%;
        max-width: 100%;
    }
}