/* Restaurant Ordering System - Public Styles */

#ros-ordering-app {
    max-width: 700px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #222;
}

.ros-step-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Session Cards */
.ros-session-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.ros-session-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.ros-session-card:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0,115,170,0.15);
}

.ros-session-card.selected {
    border-color: #0073aa;
    background: #f0f7fb;
    box-shadow: 0 2px 12px rgba(0,115,170,0.2);
}

.ros-session-icon {
    font-size: 2em;
    margin-bottom: 8px;
}

.ros-session-card h3 {
    margin: 0 0 5px;
    font-size: 1.1em;
}

.ros-session-card p {
    margin: 0;
    font-size: 0.85em;
    color: #666;
}

.ros-pickup-time {
    font-weight: 600;
    color: #0073aa !important;
    margin-top: 5px !important;
}

.ros-session-card.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    border-color: #ddd;
    background: #f5f5f5;
}

.ros-session-card.disabled:hover {
    border-color: #ddd;
    box-shadow: none;
}

.ros-session-closed {
    color: #d9534f !important;
    font-size: 0.8em !important;
    font-weight: 600;
    margin-top: 5px !important;
}

/* Date Row */
.ros-date-row {
    margin-bottom: 20px;
}

.ros-date-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.ros-date-row input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}

/* Buttons */
.ros-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ros-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ros-btn-primary {
    background: #0073aa;
    color: #fff;
}

.ros-btn-primary:hover:not(:disabled) {
    background: #005a87;
}

.ros-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.ros-btn-secondary:hover {
    background: #ddd;
}

/* Session Badge */
.ros-session-badge {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-bottom: 15px;
}

/* Menu Grid */
.ros-menu-loading {
    text-align: center;
    padding: 30px;
    color: #888;
}

.ros-category-header {
    font-size: 1.15em;
    font-weight: 700;
    padding: 12px 0 6px;
    margin-top: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.ros-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}

.ros-menu-item.sold-out {
    opacity: 0.5;
}

.ros-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.ros-item-info {
    flex: 1;
}

.ros-item-name {
    font-weight: 600;
    font-size: 1em;
}

.ros-item-desc {
    font-size: 0.85em;
    color: #888;
    margin-top: 2px;
}

.ros-item-price {
    font-weight: 600;
    color: #0073aa;
    margin-top: 3px;
}

.ros-remaining {
    font-size: 0.8em;
    color: #e67e22;
    font-weight: 500;
}

.ros-sold-out {
    font-size: 0.8em;
    color: #d9534f;
    font-weight: 600;
}

.ros-dine-in-badge {
    display: inline-block;
    background: #e8d5b7;
    color: #8b6914;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 500;
    vertical-align: middle;
}

/* Quantity Controls */
.ros-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ros-qty-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #999;
    border-radius: 50%;
    background: #fff;
    color: #333;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
    line-height: 32px;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
}

.ros-qty-btn:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.ros-qty-val {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1em;
}

/* Cart */
.ros-cart {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.ros-cart h3 {
    margin: 0 0 10px;
    font-size: 1.1em;
}

.ros-cart-line {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 0.95em;
}

.ros-cart-subtotal {
    border-top: 1px solid #ddd;
    margin-top: 5px;
    padding-top: 8px;
}

.ros-cart-total {
    border-top: 2px solid #333;
    margin-top: 5px;
    padding-top: 8px;
    font-size: 1.1em;
}

/* Step Navigation */
.ros-step-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

/* Customer Form */
.ros-form .ros-form-group {
    margin-bottom: 15px;
}

.ros-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95em;
}

.ros-form input,
.ros-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
}

.ros-form input:focus,
.ros-form textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}

/* Order Summary in Step 3 */
.ros-order-summary {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
}

.ros-order-summary h3 {
    margin: 0 0 8px;
}

.ros-summary-session {
    color: #0073aa;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Confirmation */
.ros-confirmation {
    text-align: center;
    padding: 40px 20px;
}

.ros-confirm-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.ros-order-number {
    font-size: 1.4em;
    font-weight: 700;
    color: #0073aa;
    background: #f0f7fb;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    margin: 10px 0;
}

.ros-no-items {
    text-align: center;
    padding: 30px;
    color: #888;
}

/* Responsive */
@media (max-width: 600px) {
    .ros-session-cards {
        grid-template-columns: 1fr;
    }
    .ros-menu-item {
        flex-wrap: wrap;
    }
    .ros-menu-item .ros-item-qty {
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
    }
    #ros-table-selection {
        padding: 15px;
    }
    .ros-table-row {
        gap: 8px;
    }
    .ros-table-name {
        font-size: 0.9em;
    }
    .ros-qty-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
        line-height: 28px;
    }
}

/* Table Selection */
#ros-table-selection {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
}

#ros-table-selection h3 {
    margin: 0 0 15px;
    font-size: 1.1em;
    font-weight: 600;
}

.ros-table-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
    gap: 12px;
    flex-wrap: wrap;
}

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

.ros-table-info {
    flex: 1;
    min-width: 0;
}

.ros-table-name {
    font-weight: 600;
    font-size: 1em;
}

/* Legacy table qty controls (old HTML) */
.ros-table-row > label {
    font-weight: 600;
    min-width: 140px;
    flex: 1;
}

.ros-table-qty {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
}

.ros-table-row > .ros-tbl-btn,
.ros-table-qty .ros-tbl-btn:not(.ros-qty-btn) {
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: #333;
    line-height: 1;
}

.ros-table-qty .ros-tbl-btn:hover {
    background: #e0e0e0;
}

.ros-table-qty input {
    width: 40px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    font-size: 16px;
    font-weight: 600;
    -moz-appearance: textfield;
}

.ros-table-qty input::-webkit-outer-spin-button,
.ros-table-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ros-gazebo-charge {
    font-size: 0.85em;
    color: #e67e22;
    font-weight: 500;
}

.ros-table-note {
    margin: 10px 0 0;
    font-size: 0.85em;
    color: #888;
}

.ros-session-avail {
    font-size: 0.8em;
    color: #27ae60;
    margin: 2px 0 0;
}

.ros-summary-tables {
    background: #e8f4fd;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: 500;
    color: #2980b9;
}
