/* =================================================== */
/* RESTAURANT STEPPER - COMPLETE UNIFIED CSS */
/* Mobile-first, zero extra margins, enterprise design */
/* =================================================== */

/* 1. MOBILE-FIRST RESET - Absolute minimum */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.restaurant-stepper-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* 2. PROGRESS INDICATOR - Fixed connectors */
.restaurant-progress {
    padding: 0.75rem 0 0.5rem;
    position: relative;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.restaurant-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 3;
    min-width: min-content;
    padding: 0 0.25rem;
    width: 100%;
}

.restaurant-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    min-width: 55px;
    z-index: 2;
}

/* ==================== PROGRESS BAR ==================== */
.restaurant-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 0.25rem;
    width: 100%;
}

.restaurant-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    min-width: 55px;
    z-index: 2;
}

/* Create connector using pseudo-element */
.restaurant-step::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
    transform: translateX(0%);
}

/* No connector after last step */
.restaurant-step:last-child::after {
    display: none;
}

/* Connector for completed steps */
.restaurant-step.completed::after {
    background: #28a745;
}

/* Active step doesn't affect connector after it */
.restaurant-step.active::after {
    background: #e9ecef;
}

/* Completed step affects all connectors after it */
.restaurant-step.completed ~ .restaurant-step::after {
    background: #28a745;
}

/* Active step stops the green chain */
.restaurant-step.active ~ .restaurant-step::after {
    background: #e9ecef;
}

.restaurant-step.completed .restaurant-step-connector {
    background: #28a745;
}

.restaurant-step.active ~ .restaurant-step .restaurant-step-connector {
    background: #e9ecef;
}

.restaurant-step.completed ~ .restaurant-step .restaurant-step-connector {
    background: #28a745;
}

.restaurant-step-bubble {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white !important;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
    z-index: 2;
}

.restaurant-step-number {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.875rem;
}

.restaurant-step-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    opacity: 0;
}

.restaurant-step.active .restaurant-step-bubble {
    background: var(--menu-primary-color, #FF6B93) !important;
    border-color: var(--menu-primary-color, #FF6B93);
}

.restaurant-step.active .restaurant-step-number {
    color: white;
}

.restaurant-step.completed .restaurant-step-bubble {
    background: #28a745 !important;
    border-color: #28a745;
}

.restaurant-step.completed .restaurant-step-number {
    opacity: 0;
}

.restaurant-step.completed .restaurant-step-check {
    opacity: 1;
}

.restaurant-step-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    color: #6c757d;
    white-space: nowrap;
}

.restaurant-step.active .restaurant-step-label {
    color: var(--menu-primary-color, #FF6B93);
    font-weight: 600;
}

.restaurant-step.completed .restaurant-step-label {
    color: #28a745;
}

/* 3. STEP CONTENT - Maximum screen usage */
.restaurant-stepper-step {
    display: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.restaurant-stepper-step.active {
    display: block;
}

.restaurant-step-header {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.restaurant-step-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.restaurant-step-title i {
    color: var(--menu-primary-color, #FF6B93);
}

.restaurant-step-subtitle {
    color: #6c757d;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.3;
}

/* 4. STEP 1: CART SECTION */
.restaurant-cart-step-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
    padding: 0 0.5rem;
}

/* Cart Items */
.restaurant-cart-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.restaurant-cart-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
    align-items: start;
    margin: 0;
}

.restaurant-cart-item-main {
    grid-row: 1;
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.restaurant-cart-item-image-container {
    grid-row: 1;
    grid-column: 1;
    width: 60px;
    height: 60px;
}

.restaurant-cart-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.restaurant-cart-item-info {
    grid-row: 1;
    grid-column: 2;
    min-width: 0;
}

.restaurant-cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px;
}

.restaurant-cart-item-price-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.restaurant-original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.8rem;
}

.restaurant-discount-badge {
    background-color: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.restaurant-current-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #28a745;
}

.restaurant-cart-item-controls-row {
    grid-row: 2;
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px dashed #dee2e6;
}

.restaurant-quantity-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.restaurant-quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #495057;
    font-size: 0.9rem;
}

.restaurant-quantity-display {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.restaurant-remove-item {
    background: none;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.restaurant-item-total-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.restaurant-item-total-amount {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Empty Cart */
.restaurant-empty-cart-message {
    text-align: center;
    padding: 2rem 0.5rem;
    color: #6c757d;
    width: 100%;
}

.restaurant-empty-cart-message i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--menu-primary-color, #FF6B93);
    opacity: 0.7;
}

/* ==================== COUPON SECTION ==================== */

/* Coupon Input Group - Fixed layout */
.restaurant-coupon-input-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.restaurant-coupon-input-group .input-group {
    display: flex;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    background: white;
}

.restaurant-coupon-input-group .form-control {
    flex: 1;
    border: none;
    padding: 12px;
    font-size: 14px;
    outline: none;
    min-height: 46px;
}

/* Fixed apply button - no transitions */
.restaurant-coupon-input-group .btn {
    border: none;
    background-color: var(--menu-primary-color, #FF6B93);
    color: white;
    padding: 0 20px;
    font-weight: 500;
    white-space: nowrap;
    min-width: 80px;
    transition: none !important;
    transform: none !important;
    border-radius: 0;
}

/* Remove all hover/active effects from coupon button */
.restaurant-coupon-input-group .btn:hover,
.restaurant-coupon-input-group .btn:active,
.restaurant-coupon-input-group .btn:focus {
    background-color: var(--menu-primary-color, #FF6B93) !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Helper text - always below input */
.restaurant-coupon-input-group .form-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
    display: block;
    width: 100%;
}

/* Applied Coupon - Compact design */
.coupon-applied {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 12px;
    background: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: 8px;
    padding: 0.1rem;
    align-items: start;
}

/* Coupon info - first two columns */
.coupon-info {
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.coupon-code {
    font-weight: 600;
    color: #0f5132;
    font-size: 0.95rem;
}

.coupon-value {
    font-weight: 700;
    color: #198754;
    font-size: 0.9rem;
}

.coupon-min {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
}

/* Remove button - small, top-right corner */
.coupon-applied .btn-outline-danger {
    grid-column: 2;
    grid-row: 1;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dc3545;
    background: transparent;
    color: #dc3545;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: none;
}

.coupon-applied .btn-outline-danger:hover {
    background: #dc3545;
    color: white;
    transform: none;
}
/*========================================================================*/


/* 6. STEP 1 ORDER SUMMARY - Single box, no inner borders */
.restaurant-cart-summary {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 1rem;
    margin: 0;
}

.restaurant-summary-section {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.restaurant-summary-section h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.restaurant-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

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

.restaurant-summary-row.subtotal {
    border-top: 2px solid #e9ecef;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 600;
}

.restaurant-summary-row.total {
    border-top: 2px solid #2c3e50;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Savings - only show when > 0 */
.restaurant-savings-summary {
    display: none;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    margin-top: 1rem;
    border-left: 4px solid #28a745;
}

/* Cart extras */
.restaurant-cart-extras-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.restaurant-cart-extras-list {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

.restaurant-cart-extra-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    font-size: 0.85rem;
}

/* 7. STEP 2: CUSTOMER INFORMATION */
.restaurant-checkout-form {
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
}

.restaurant-form-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.restaurant-form-group {
    width: 100%;
    margin-bottom: 0;
}

.restaurant-form-group.full-width {
    width: 100%;
}

.restaurant-form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.restaurant-form-control {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
}

.restaurant-form-control:focus {
    border-color: var(--menu-primary-color, #FF6B93);
    outline: none;
}

.restaurant-form-error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

/* Order Type Selector - Single row */
.restaurant-order-type-selector {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    width: 100%;
}

.restaurant-order-type-option {
    flex: 1;
    min-width: 80px;
    max-width: 120px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 6px;
    cursor: pointer;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.restaurant-order-type-option.active {
    border-color: var(--menu-primary-color, #FF6B93);
    background-color: rgba(255, 107, 147, 0.1);
}

.restaurant-order-type-icon {
    font-size: 1.25rem;
    color: #6c757d;
}

.restaurant-order-type-option.active .restaurant-order-type-icon {
    color: var(--menu-primary-color, #FF6B93);
}

.restaurant-order-type-info strong {
    font-size: 0.85rem;
    color: #2c3e50;
    line-height: 1.1;
}

/* Table number - shown only when dine-in is active */
#restaurantTableNumberGroup {
    display: none;
    width: 100%;
    margin-top: 1rem;
}

#restaurantTableNumberGroup.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

#restaurantTableNumberGroup.required {
    display: block;
}

/* 8. STEP 3: ORDER REVIEW - Simplified */
.restaurant-order-review {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 0.5rem;
}

.restaurant-review-section {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 1rem;
    margin: 0;
}

.restaurant-review-section h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

/* Order Items Review */

.restaurant-review-item-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.restaurant-review-item-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* ==================== STEP 3 - CONCISE ORDER ITEMS ==================== */
.restaurant-order-items-review {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 1rem;
    margin: 0;
}

/* Compact review items - 2 lines max */
.restaurant-review-item-compact {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 8px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.restaurant-review-item-compact:last-child {
    border-bottom: none;
}

/* Quantity badge */
.restaurant-review-item-compact .quantity-badge {
    grid-column: 1;
    grid-row: 1 / 3;
    background: var(--menu-primary-color, #FF6B93);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Item name and details */
.restaurant-review-item-name {
    grid-column: 2;
    grid-row: 1;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.2;
}

/* Price and extras in second row */
.restaurant-review-item-details {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #6c757d;
}

.restaurant-review-item-price {
    grid-column: 3;
    grid-row: 1 / 3;
    font-weight: 700;
    color: #28a745;
    font-size: 1rem;
    text-align: right;
}

/* Discount badge if exists */
.restaurant-review-discount-badge {
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Extra charges */
.restaurant-review-extra-info {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #e67e22;
}


/* Order Summary Review - Single box */
.restaurant-order-summary-review {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin: 0;
}

/* Customer Details */
.restaurant-customer-info-review {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.restaurant-customer-info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
}

/* 9. STEP 4: CONFIRMATION - Minimal margins */

.restaurant-confirmation-title {
    color: #333;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.restaurant-confirmation-message {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* ==================== STEP 4 - CLEAN DESIGN ==================== */
.restaurant-confirmation-content {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
}

/* Remove check-circle icon */
.restaurant-confirmation-icon {
    display: none;
}

/* Order details - left aligned */
.restaurant-order-details-confirm {
    background: #fafbfc;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: left;
}

.restaurant-order-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #e9ecef;
    font-size: 0.95rem;
}

.restaurant-order-detail:last-child {
    border-bottom: none;
}

.restaurant-order-detail strong {
    color: #495057;
    font-weight: 600;
    min-width: 140px;
}

.restaurant-order-detail span {
    color: #2c3e50;
    font-weight: 500;
    text-align: right;
    flex: 1;
}

/* Order reference row - same as others */
.restaurant-order-detail:first-child {
    padding-top: 0;
}

.restaurant-order-type-info-confirm {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

.restaurant-confirm-detail {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
}

/* 10. ACTION BUTTONS - Both sides, proper spacing */
.restaurant-stepper-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0.5rem;
    margin-top: 1rem;
    width: 100%;
    background: white;
    border-top: 1px solid #e9ecef;
    position: sticky;
    bottom: 0;
    z-index: 100;
}

.restaurant-stepper-actions .d-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
}

.restaurant-stepper-actions .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.9rem;
    white-space: nowrap;
    min-height: 44px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.restaurant-stepper-actions .btn-outline-secondary {
    background: white;
    color: #6c757d;
    border: 2px solid #6c757d;
}

.restaurant-stepper-actions .btn-primary {
    background: var(--menu-primary-color, #FF6B93);
    color: white;
}

.restaurant-confirmation-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0.5rem;
    width: 100%;
}

/* 11. LOADING & SUCCESS STATES */
.restaurant-checkout-loading {
    text-align: center;
    padding: 2rem 0.5rem;
}

.restaurant-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--menu-primary-color, #FF6B93);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.restaurant-checkout-success {
    text-align: center;
    padding: 2rem 0.5rem;
    background: white;
    border-radius: 8px;
}

.restaurant-success-icon {
    font-size: 2.5rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.restaurant-success-title {
    color: #28a745;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.restaurant-success-message {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 12. RESPONSIVE ENHANCEMENTS */
@media (min-width: 768px) {
    .restaurant-step {
        min-width: 80px;
    }

    .restaurant-step-bubble {
        width: 36px;
        height: 36px;
    }

    .restaurant-step-connector {
        top: 18px;
    }

    .restaurant-cart-item {
        grid-template-columns: 80px 1fr;
        padding: 16px;
    }

    .restaurant-cart-item-image-container {
        width: 80px;
        height: 80px;
    }

    .restaurant-form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .restaurant-form-group.full-width {
        grid-column: 1 / -1;
    }
}

@media (max-width: 360px) {
    .restaurant-cart-item {
        grid-template-columns: 50px 1fr;
        gap: 6px;
        padding: 10px;
    }

    .restaurant-cart-item-image-container {
        width: 50px;
        height: 50px;
    }

    .restaurant-cart-item-name {
        font-size: 0.9rem;
    }

    .restaurant-stepper-actions .btn {
        padding: 10px 12px;
        font-size: 0.85rem;
        min-width: 100px;
    }

    .restaurant-step-label {
        font-size: 0.65rem;
    }

    .restaurant-order-type-option {
        min-width: 50px;
        padding: 6px 2px;
    }

    .restaurant-order-type-info strong {
        font-size: 0.7rem;
    }

    .restaurant-order-type-icon {
        font-size: 1rem;
    }
}

/* 13. UTILITY CLASSES */
.badge {
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-sm {
    font-size: 0.65rem;
    padding: 1px 4px;
}

.bg-success {
    background-color: #28a745;
    color: white;
}

.bg-warning {
    background-color: #ffc107;
    color: #212529;
}

.text-success {
    color: #28a745 !important;
}

.text-primary {
    color: var(--menu-primary-color, #FF6B93) !important;
}

.text-warning {
    color: #e67e22 !important;
}

.text-info {
    color: #17a2b8 !important;
}

/* Hide elements with display: none style */
[style*="display: none"] {
    display: none !important;
}

/* Animation utilities */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}


/* =================================================== */
/* RESTAURANT STEPPER - FINAL FIXES */
/* =================================================== */

/* 1. PROGRESS BAR - FIXED CONNECTORS */
.restaurant-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 0.25rem;
    width: 100%;
}

.restaurant-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    min-width: 55px;
    z-index: 2;
}

/* Create connector using pseudo-element */
.restaurant-step::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
    transform: translateX(0%);
}

/* No connector after last step */
.restaurant-step:last-child::after {
    display: none;
}

/* Connector for completed steps */
.restaurant-step.completed::after {
    background: #28a745;
}

/* Active step doesn't affect connector after it */
.restaurant-step.active::after {
    background: #e9ecef;
}

/* Completed step affects all connectors after it */
.restaurant-step.completed ~ .restaurant-step::after {
    background: #28a745;
}

/* Active step stops the green chain */
.restaurant-step.active ~ .restaurant-step::after {
    background: #e9ecef;
}

/* 2. TABLE NUMBER - FIXED DISPLAY */
#restaurantTableNumberGroup {
    display: none;
    width: 100%;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

#restaurantTableNumberGroup.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 3. STEP 3 - CONCISE ORDER ITEMS */
.restaurant-review-item-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.restaurant-review-item-compact:last-child {
    border-bottom: none;
}

.restaurant-review-item-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.restaurant-review-item-name {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
}

.restaurant-review-item-name strong {
    color: var(--menu-primary-color, #FF6B93);
    margin-right: 8px;
}

.restaurant-review-item-price {
    font-weight: 700;
    color: #28a745;
    font-size: 1rem;
    white-space: nowrap;
    margin-left: 16px;
}

/* 4. STEP 4 - REMOVE ICON */
.restaurant-confirmation-icon {
    display: none;
}

.restaurant-confirmation-content {
    text-align: center;
}

.restaurant-order-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #e9ecef;
    font-size: 0.95rem;
}

.restaurant-order-detail:first-child {
    padding-top: 0;
}

.restaurant-order-detail:last-child {
    border-bottom: none;
}

/* 5. TOAST STYLES - FIXED COLORS */
.custom-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 12px 16px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 300px;
    animation: toastSlideIn 0.3s ease;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    background-color: #28a745 !important;
    border: 1px solid #218838;
}

.toast-error {
    background-color: #dc3545 !important;
    border: 1px solid #c82333;
}

.toast-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
    border: 1px solid #e0a800;
}

/* 6. COUPON SECTION - FINAL FIX */
.coupon-applied {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: 8px;
    padding: 12px;
    margin-top: 0.5rem;
}

.coupon-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.coupon-applied .btn-outline-danger {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dc3545;
    background: transparent;
    color: #dc3545;
    border-radius: 6px;
    margin-left: 12px;
    flex-shrink: 0;
}

/* 7. DELIVERY ADDRESS IN STEP 3 */
#restaurantReviewDeliveryAddressItem {
    display: none;
}

#restaurantReviewDeliveryAddressItem.show {
    display: flex;
}

/* Responsive fixes */
@media (max-width: 576px) {
    .restaurant-review-item-name {
        font-size: 0.9rem;
    }

    .restaurant-review-item-price {
        font-size: 0.95rem;
        margin-left: 8px;
    }

    .restaurant-order-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .restaurant-order-detail span {
        text-align: left;
    }
}


/* ==================== COUPON SECTION - REVISED DESIGN ==================== */

/* Coupon Input Group - Fixed layout */
.restaurant-coupon-input-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.restaurant-coupon-input-group .input-group {
    display: flex;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    background: white;
}

.restaurant-coupon-input-group .form-control {
    flex: 1;
    border: none;
    padding: 12px;
    font-size: 14px;
    outline: none;
    min-height: 46px;
}

.restaurant-coupon-input-group .btn {
    border: none;
    background-color: var(--menu-primary-color, #FF6B93);
    color: white;
    padding: 0 20px;
    font-weight: 500;
    white-space: nowrap;
    min-width: 80px;
    transition: none !important;
    transform: none !important;
    border-radius: 0;
}

.restaurant-coupon-input-group .btn:hover,
.restaurant-coupon-input-group .btn:active,
.restaurant-coupon-input-group .btn:focus {
    background-color: var(--menu-primary-color, #FF6B93) !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
}

.restaurant-coupon-input-group .form-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
    display: block;
    width: 100%;
}

/* APPLIED COUPON - NEW COMPACT DESIGN */
.restaurant-coupon-applied {
    margin-top: 0.5rem;
    width: 100%;
}

/* Main coupon container */
.coupon-applied {
    display: flex;
    position: relative;
    background: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: 8px;
    padding: 10px 40px 10px 12px; /* Right padding for close button */
    min-height: 70px;
    align-items: center;
    width: 100%;
}

/* Close button - top-right corner */
.coupon-applied .btn-close-coupon {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dc3545;
    background: white;
    color: #dc3545;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s ease;
}

.coupon-applied .btn-close-coupon:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.05);
}

/* Coupon info container - ensures exactly 2 lines */
.coupon-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 50px;
    overflow: hidden;
    width: 100%;
}

/* LINE 1: Code and discount value */
.coupon-line-1 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    width: 100%;
    overflow: hidden;
}

.coupon-icon {
    color: #0f5132;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.coupon-code {
    font-weight: 700;
    color: #0f5132;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.coupon-badge {
    background: #198754;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* LINE 2: Minimum order info */
.coupon-line-2 {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    overflow: hidden;
}

.coupon-min-icon {
    color: #6c757d;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.coupon-min-text {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Ensure exactly 2 lines layout on all screens */
@media (max-width: 360px) {
    .coupon-applied {
        padding: 8px 36px 8px 10px;
        min-height: 65px;
    }

    .coupon-line-1 {
        gap: 6px;
        margin-bottom: 3px;
    }

    .coupon-code {
        font-size: 0.9rem;
    }

    .coupon-badge {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    .coupon-min-text {
        font-size: 0.75rem;
    }

    .coupon-applied .btn-close-coupon {
        width: 22px;
        height: 22px;
        top: 5px;
        right: 5px;
        font-size: 0.7rem;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .coupon-applied {
        padding: 6px 32px 6px 8px;
        min-height: 60px;
    }

    .coupon-line-1 {
        flex-wrap: wrap;
        gap: 4px;
    }

    .coupon-code {
        font-size: 0.85rem;
    }

    .coupon-badge {
        font-size: 0.65rem;
        padding: 1px 5px;
    }

    .coupon-min-text {
        font-size: 0.7rem;
    }
}

/*--------------------------------------------------------------------*/

/* Add to styles.css */

/* Success order details alignment */
.restaurant-order-details-final {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 1rem;
    margin: 1rem 0;
    width: 100%;
}

.restaurant-order-details-final .restaurant-order-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    width: 100%;
}

.restaurant-order-details-final .restaurant-order-detail:last-child {
    border-bottom: none;
}

.restaurant-order-details-final .restaurant-order-detail strong {
    color: #495057;
    font-weight: 600;
    min-width: 140px;
    text-align: left;
}

.restaurant-order-details-final .restaurant-order-detail span {
    color: #2c3e50;
    font-weight: 500;
    text-align: right;
    flex: 1;
}

/* Special styling for total amount */
.restaurant-order-details-final .restaurant-order-detail:nth-last-child(2) {
    border-top: 2px solid #2c3e50;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 700;
}

/* Status badge */
.restaurant-order-details-final .badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Success actions buttons */
.restaurant-success-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0.5rem;
    margin-top: 1.5rem;
    width: 100%;
}

.restaurant-success-actions .btn {
    flex: 1;
    max-width: 200px;
    padding: 12px 16px;
    font-size: 0.9rem;
    white-space: nowrap;
    min-height: 44px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.restaurant-success-actions .btn-primary {
    background: var(--menu-primary-color, #FF6B93);
    color: white;
}

.restaurant-success-actions .btn-outline-primary {
    background: white;
    color: var(--menu-primary-color, #FF6B93);
    border: 2px solid var(--menu-primary-color, #FF6B93);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .restaurant-order-details-final .restaurant-order-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 0.75rem 0;
    }

    .restaurant-order-details-final .restaurant-order-detail span {
        text-align: left;
        width: 100%;
    }

    .restaurant-success-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .restaurant-success-actions .btn {
        max-width: 100%;
        width: 100%;
    }
}

/*=================================================================*/
/* In styles.css - Update success section */
.restaurant-success-icon {
    font-size: 2.5rem;
    color: var(--menu-primary-color, #FF6B93) !important;
    margin-bottom: 1rem;
}

.restaurant-success-title {
    color: var(--menu-primary-color, #FF6B93);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Style for icons in success details */
.restaurant-order-details-final .restaurant-order-detail i {
    color: var(--menu-primary-color, #FF6B93);
    min-width: 20px;
    text-align: center;
}

/* Success actions buttons with icons */
.restaurant-success-actions .btn i {
    margin-right: 8px;
}