@import url("/assets/css/base.css");

.customer-header {
    position: sticky; top: 0; z-index: 10;
    display: flex; justify-content: space-between; align-items: center;
    padding: var(--space-3);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}
.customer-header__brand { font-weight: 700; text-decoration: none; color: var(--color-text); }
.customer-header__table { font-weight: 700; }

.cart-icon { position: relative; font-size: 1.4rem; text-decoration: none; }
.cart-icon__badge {
    position: absolute; top: -6px; right: -10px;
    background: var(--color-primary); color: #fff;
    border-radius: 999px; font-size: 0.7rem; font-weight: 700;
    min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}

.customer-main { max-width: 640px; margin: 0 auto; padding: var(--space-3); padding-bottom: 80px; }

.menu-category h2 { margin-top: var(--space-4); }

.menu-item {
    display: flex; gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none; color: inherit;
}
.menu-item__image { width: 84px; height: 84px; border-radius: var(--radius); object-fit: cover; background: #eee; flex-shrink: 0; }
.menu-item__body { flex: 1; }
.menu-item__name { font-weight: 700; margin: 0 0 4px; }
.menu-item__price { font-weight: 700; }
.menu-item--unavailable { opacity: 0.55; }

.modifier-group { margin-bottom: var(--space-4); }
.modifier-group h3 { margin-bottom: var(--space-2); }
.modifier-option { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.modifier-option label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; }
.modifier-option input { width: auto; }

.cart-line { display: flex; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
.cart-line__body { flex: 1; }
.cart-line__mods { font-size: 0.85rem; color: var(--color-muted); }
.cart-line__remove { color: var(--color-danger); background: none; border: none; text-decoration: underline; cursor: pointer; padding: 0; }

.summary-row { display: flex; justify-content: space-between; padding: 4px 0; }
.summary-row--total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--color-border); margin-top: 8px; padding-top: 8px; }

.checkout-section { margin-bottom: var(--space-4); }
.checkout-section h2 { font-size: 1.05rem; border-bottom: 1px solid var(--color-border); padding-bottom: 8px; }

.sticky-footer {
    position: sticky; bottom: 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: var(--space-3);
    margin: 0 calc(-1 * var(--space-3)) calc(-1 * 80px);
}
.sticky-footer button { width: 100%; }

.confirmation { text-align: center; padding: var(--space-5) 0; }
.confirmation__icon { font-size: 3rem; }
