/* =========================================================
   VOCAL JUICE - CHECKOUT MODAL STYLES
   ========================================================= */

/* Overlay Background */
.order-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(8px);
    z-index: 999; opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.order-overlay.active { opacity: 1; pointer-events: auto; }

/* Global Smooth Scroll */
html { scroll-behavior: smooth; }

/* Main Slide-Up Panel */
.order-panel {
    position: fixed; bottom: 0; left: 0; right: 0; height: 90vh; background: #ffffff;
    z-index: 1000; border-radius: 30px 30px 0 0; transform: translateY(100%);
    display: flex; flex-direction: column; color: var(--text-dark, #111827);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1); font-family: 'Plus Jakarta Sans', sans-serif;
}
.close-panel {
    position: absolute; top: 1.5rem; right: 2rem; background: none; border: none;
    font-size: 2rem; font-weight: 300; cursor: pointer; color: var(--text-dark, #111827);
    z-index: 10; transition: transform 0.3s;
}
.close-panel:hover { transform: scale(1.1); }

/* Layout Grid */
.order-panel-container {
    display: grid; grid-template-columns: 1fr 1fr; height: 100%; overflow: hidden;
    padding: 4rem; gap: 4rem; opacity: 1; transition: opacity 0.3s;
}
.order-left { display: flex; flex-direction: column; overflow-y: auto; padding-right: 1rem; }
.order-right { display: flex; flex-direction: column; background: #fdfbf7; border-radius: 20px; padding: 3rem; overflow-y: auto; }

/* Typography */
.order-heading { font-family: 'Playfair Display', serif; font-style: italic; font-size: 2.8rem; margin-bottom: 0.5rem; color: #111827;}
.order-sub { font-size: 1rem; color: #666; margin-bottom: 3rem; }
.summary-heading { font-family: 'Playfair Display', serif; font-style: italic; font-size: 2rem; margin-bottom: 2rem; color: #111827;}

/* Cart Items List */
.order-empty-state { padding: 3rem 0; text-align: center; color: #888; font-style: italic; display: none; }
.order-items-container { display: flex; flex-direction: column; gap: 1.5rem; flex-grow: 1; }
.order-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: #faf9f5; border-radius: 16px; border: 1px solid #eee; }
.item-thumb { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: #fff; padding: 4px; border: 2px solid #ccc; flex-shrink: 0; }
.item-details { flex-grow: 1; }
.item-name { font-weight: 800; font-size: 1.1rem; margin-bottom: 0.2rem; color: #111827;}
.item-tag { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; color: #1b8a3e; }
.item-price { font-weight: 800; font-size: 1.1rem; width: 80px; text-align: right; color: #111827;}

.item-remove { background: none; border: none; font-size: 1.5rem; color: #aaa; cursor: pointer; transition: color 0.3s; margin-left: 0.5rem; }
.item-remove:hover { color: #ff5e84; }

/* Quantity Stepper (With CSS Counter anim setup) */
.stepper { display: flex; align-items: center; background: #fff; border-radius: 50px; border: 1px solid #ddd; padding: 0.2rem; gap: 0.5rem; }
.step-btn { width: 28px; height: 28px; border-radius: 50%; background: #f5f2eb; color: #111827; border: none; font-weight: 800; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; justify-content: center; }
.step-btn:hover { background: #e0dcd3; }
.step-count-wrap { height: 20px; overflow: hidden; position: relative; width: 20px; text-align: center; font-weight: 800; color: #111827;}
.step-count { position: absolute; width: 100%; top: 0; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }

.order-divider { height: 1px; background: #eee; margin: 2rem 0; width: 100%; }
.add-more-link { color: #1b8a3e; font-weight: 800; text-decoration: none; font-size: 0.9rem; align-self: flex-start; }
.add-more-link:hover { text-decoration: underline; }

/* Right Column Summary */
.summary-list { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 2rem; }
.summary-item { display: flex; justify-content: space-between; font-size: 0.95rem; color: #555; }
.summary-row { display: flex; justify-content: space-between; font-weight: 600; font-size: 1rem; margin-bottom: 1rem; color: #111827;}
.delivery-row span:last-child { color: #888; }
.delivery-row span.free { color: #1b8a3e; font-weight: 800; }
.total-row { font-size: 1.8rem; font-weight: 900; margin-top: 1rem; align-items: flex-end; }

/* Form Fields */
.delivery-form { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-input { border: none; border-bottom: 2px solid #ddd; background: transparent; padding: 0.8rem 0; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.95rem; outline: none; transition: border-color 0.3s; resize: none; color: #111827;}
.form-input:focus { border-bottom-color: #1b8a3e; }

/* Confirm Button with Spinner */
.btn-confirm { background: #1b8a3e; color: #fff; border: none; padding: 1.2rem; border-radius: 50px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.1rem; font-weight: 800; cursor: pointer; margin-top: 1rem; position: relative; display: flex; justify-content: center; align-items: center; transition: transform 0.2s, background 0.3s; }
.btn-confirm:hover { background: #146b2f; transform: translateY(-2px); }
.btn-confirm:active { transform: scale(0.98); }
.btn-text { transition: opacity 0.3s; }
.spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; display: none; position: absolute; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-confirm.loading .btn-text { opacity: 0; }
.btn-confirm.loading .spinner { display: block; animation: spin 0.8s linear infinite; }

/* Trust Badges */
.trust-badges { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.trust-badges span { font-size: 0.75rem; color: #666; font-weight: 600; }

/* Success State Overlay */
.order-success { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; border-radius: 30px 30px 0 0; opacity: 0; pointer-events: none; }
.success-check { width: 100px; height: 100px; margin-bottom: 2rem; }
.success-circle { stroke: #1b8a3e; stroke-width: 2; stroke-dasharray: 160; stroke-dashoffset: 160; }
.success-path { stroke: #1b8a3e; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.success-heading { font-family: 'Playfair Display', serif; font-style: italic; font-size: 3rem; margin-bottom: 1rem; color: #111827; }
.success-text { font-size: 1.1rem; color: #666; }

/* Responsive adjustments */
@media (max-width: 900px) {
    .order-panel { height: 95vh; }
    .order-panel-container { grid-template-columns: 1fr; padding: 2rem 1.5rem; overflow-y: auto; gap: 2rem; }
    .order-left, .order-right { overflow-y: visible; padding: 0; }
    .order-right { padding: 2rem 1.5rem; }
}

/* Custom Webkit Scrollbar */
.order-left::-webkit-scrollbar, .order-right::-webkit-scrollbar, .order-panel-container::-webkit-scrollbar { width: 6px; }
.order-left::-webkit-scrollbar-track, .order-right::-webkit-scrollbar-track, .order-panel-container::-webkit-scrollbar-track { background: transparent; }
.order-left::-webkit-scrollbar-thumb, .order-right::-webkit-scrollbar-thumb, .order-panel-container::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }
