        
            
    <turbo-stream action="append" target="turbo_stream_messages">
                                                                    
    <template>
        <div data-turbo-temporary data-controller="modal" class="modal bit-modal  " id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" >
            <div class="modal-dialog modal-fullscreen-lg-down modal-xl">
                <div class="modal-content">
                    <div class="modal-header ">
                        <div>
                            <h1 class="modal-title fs-5 " id="exampleModalLabel">
                                                                Cart
                            </h1>
                                                    </div>
                                                <div class="ms-auto"></div>
                        <button type="button" class="btn-close  flex-grow-0 ms-5" data-bs-dismiss="modal" aria-label="Close"></button>
                    </div>
                    <div class="modal-body  ">
                                <style>
            .modal-header {
                min-height: 70px !important;
                padding-top: 1.25rem !important;
                padding-bottom: 1.25rem !important;
                position: relative !important;
            }
            .modal-header-logo-container {
                position: absolute;
                right: 60px;
                top: 50%;
                transform: translateY(-50%);
                height: 40px;
                display: flex;
                align-items: center;
            }
            .modal-header-logo-container img {
                max-height: 40px;
                width: auto;
            }
        </style>
        
                
                <style>
            :root {
                --primary-gradient: linear-gradient(135deg, #6b7280, #4b5563);
                --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            }
            
            /* Optimize modal size */
            .modal-dialog.modal-xl {
                max-width: 1320px;
            }
            
            .modal-body {
                max-height: 90vh;
                overflow-y: auto;
                padding: 1rem;
            }

            .cart-modal-body {
                font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
                background: var(--bg-gradient);
                padding: 0.5rem;
            }

            .custom-header {
                background: #f8fafc;
                border: 1px solid #e2e8f0;
            }

            .welcome-text {
                color: #2d3748;
                font-weight: 700;
            }

            .account-info {
                color: #64748b;
                font-size: 0.875rem;
            }

            .cart-icon {
                width: 28px;
                height: 28px;
                background: var(--primary-gradient);
                color: white;
                font-size: 0.875rem;
            }

            .item-image {
                width: 80px;
                height: 80px;
                background: linear-gradient(135deg, #1e3a8a, #374151);
                color: white;
                font-weight: bold;
                font-size: 0.875rem;
                line-height: 1.2;
            }

            .cart-item {
                background: #f8fafc;
                border: 1px solid #e2e8f0;
                transition: all 0.3s ease;
            }

            .cart-item:hover {
                box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            }

            .item-title {
                font-weight: 600;
                color: #2d3748;
            }

            .item-description {
                color: #64748b;
                font-size: 0.875rem;
                line-height: 1.4;
            }

            .item-price {
                font-size: 1.125rem;
                font-weight: 700;
                color: #1a202c;
            }

            .order-summary {
                position: sticky;
                top: 20px;
            }

            .order-summary .card {
                display: flex;
                flex-direction: column;
            }

            .order-summary .card-body {
                display: flex;
                flex-direction: column;
            }

            .summary-row {
                border-bottom: 1px solid #e2e8f0;
            }

            .summary-row:last-child {
                border-bottom: none;
            }

            .order-total-row {
                margin-top: 1rem;
                margin-bottom: 0.5rem;
            }

            .order-total-row .total-label {
                color: #1a202c;
                font-weight: 700;
                font-size: 1.25rem;
            }

            .order-total-row .total-value {
                color: #1a202c;
                font-weight: 700;
                font-size: 1.25rem;
            }
            
            .savings-row {
                background: #d1fae5;
                border-radius: 8px;
                margin: 0.5rem -0.5rem;
                padding: 0.75rem 0.5rem !important;
            }

            /* Button shine animation now in global checkout-button.css */
            
            @keyframes spin {
                to { transform: rotate(360deg); }
            }
            
            /* Preloader styles */
            .promo-preloader {
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(255, 255, 255, 0.95);
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                z-index: 1000;
                border-radius: 12px;
                backdrop-filter: blur(3px);
                transition: opacity 0.3s ease;
            }
            
            .promo-preloader.hidden {
                opacity: 0;
                pointer-events: none;
            }
            
            .promo-spinner {
                width: 40px;
                height: 40px;
                border: 4px solid #e2e8f0;
                border-top-color: #047857;
                border-radius: 50%;
                animation: spin 1s linear infinite;
                margin-bottom: 12px;
            }
            
            .promo-preloader-text {
                color: #047857;
                font-weight: 600;
                font-size: 14px;
                text-align: center;
            }
            
            .promo-preloader-subtext {
                color: #64748b;
                font-size: 12px;
                margin-top: 4px;
            }
            
            /* Checkout button styles now in global checkout-button.css */

            .btn-grey {
                background: #6b7280;
                border-color: #6b7280;
                color: white;
            }

            .btn-grey:hover {
                background: #4b5563;
                border-color: #4b5563;
                color: white;
                transform: scale(1.05);
            }

            .section-title {
                font-weight: 700;
                color: #2d3748;
            }

            .shadow-custom {
                box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            }
            
            /* Reduce vertical spacing throughout modal */
            .cart-modal-body .card-body {
                padding: 1rem !important;
            }
            
            .cart-modal-body .mb-4 {
                margin-bottom: 0.75rem !important;
            }
            
            .cart-modal-body .mb-3 {
                margin-bottom: 0.5rem !important;
            }
            
            .cart-modal-body .mb-2 {
                margin-bottom: 0.4rem !important;
            }
            
            .cart-modal-body .py-2 {
                padding-top: 0.3rem !important;
                padding-bottom: 0.3rem !important;
            }
            
            .cart-modal-body .py-3 {
                padding-top: 0.5rem !important;
                padding-bottom: 0.5rem !important;
            }
            
            .cart-modal-body .pt-3 {
                padding-top: 0.5rem !important;
            }
            
            .cart-modal-body .mt-3 {
                margin-top: 0.5rem !important;
            }
            
            .cart-modal-body .mt-2 {
                margin-top: 0.4rem !important;
            }
            
            .cart-modal-body h2.section-title {
                font-size: 1.3rem;
                margin-bottom: 0.5rem !important;
            }
            
            .cart-modal-body h3.section-title {
                font-size: 1.1rem;
                margin-bottom: 0.5rem !important;
            }
            
            .cart-modal-body .alert {
                padding: 0.5rem 0.75rem !important;
                margin-bottom: 0.5rem !important;
                margin-top: 0.5rem !important;
            }
            
            .cart-modal-body .summary-row {
                padding-top: 0.25rem !important;
                padding-bottom: 0.25rem !important;
            }
            
            .cart-modal-body .custom-header {
                padding: 0.75rem !important;
                margin-bottom: 1rem !important;
            }
            
            /* Reduce line item card spacing */
            .cart-modal-body .items-list .card {
                margin-bottom: 0.5rem !important;
            }
            
            .cart-modal-body .items-list .card-body {
                padding: 0.75rem !important;
            }
            
            /* Tighten up item details */
            .cart-modal-body .item-title {
                font-size: 0.95rem !important;
                margin-bottom: 0.25rem !important;
            }
            
            .cart-modal-body .class-session-info {
                padding: 0.5rem !important;
                margin-top: 0.5rem !important;
            }
            
            /* Reduce button sizes slightly */
            .cart-modal-body .btn-update-session {
                padding: 0.25rem 0.5rem !important;
                font-size: 0.85rem !important;
            }
            
            .cart-modal-body .btn-remove-item {
                padding: 0.25rem 0.5rem !important;
                font-size: 0.85rem !important;
            }

            .quantity-controls {
                display: flex;
                align-items: center;
                gap: 0.5rem;
            }

            .quantity-btn {
                width: 30px;
                height: 30px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 4px;
                background: #6b7280;
                color: white;
                text-decoration: none;
                font-weight: bold;
                transition: all 0.2s ease;
            }

            .quantity-btn:hover {
                background: #4b5563;
                color: white;
                transform: scale(1.1);
            }

            .quantity-display {
                min-width: 40px;
                text-align: center;
                font-weight: 600;
            }
            
            .btn-remove-item {
                background-color: #dc2626 !important;
                border-color: #dc2626 !important;
                color: white !important;
            }
            
            .btn-remove-item:hover {
                background-color: #b91c1c !important;
                border-color: #b91c1c !important;
                color: white !important;
                transform: scale(1.05);
            }
            
            .btn-remove-item i {
                color: white !important;
            }
            
            .class-session-panel {
                background: #f0f9ff;
                border: 1px solid #bae6fd;
                border-radius: 12px;
                padding: 12px 16px;
                margin-bottom: 12px;
            }
            
            .class-session-label {
                color: #0369a1;
                font-weight: 600;
                font-size: 0.875rem;
                margin-bottom: 8px;
            }
            
            .class-session-item {
                color: #0c4a6e;
                font-size: 0.875rem;
                margin-bottom: 4px;
                padding-left: 16px;
            }
            
            .btn-update-session {
                background-color: #0369a1;
                border-color: #0369a1;
                color: white !important;
                font-size: 0.875rem;
            }
            
            .btn-update-session:hover {
                background-color: #075985;
                border-color: #075985;
                color: white !important;
            }
            
            .btn-update-session i {
                color: white !important;
            }
            
            .promo-error-alert {
                background-color: #fee2e2;
                border: 1px solid #fecaca;
                color: #991b1b;
                border-radius: 8px;
            }
            
            .promo-error-alert i {
                color: #dc2626;
            }
        </style>
        <div class="cart-modal-body">
                            <div class="text-center py-5">
                    <div class="cart-icon rounded-2 d-inline-flex align-items-center justify-content-center mb-3">
                        <i class="bi bi-cart3"></i>
                    </div>
                    <h3 class="section-title">Your Cart is Empty</h3>
                    <p class="text-muted mt-2">Add items to your cart to continue</p>
                </div>
                    </div>


    
    
                                            </div>
                                    </div>
            </div>
        </div>
    </template>
</turbo-stream>