/* =====================================================
   TEZMENU — ORDER SUMMARY: THEMED CUSTOMER DETAILS
   Uses --tezmenu-primary (already set on :root in
   menu-header.php from the client's Theme Color setting)
   so every color here follows that automatically.
===================================================== */

/* ================= ORDER ID + TABLE BADGE ================= */

.tezmenu-order-id-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: -6px;
    margin-bottom: 12px;
}

.tezmenu-order-id-row .tezmenu-order-id {
    margin: 0;
}

.tezmenu-order-table-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 0px solid #eee;
    box-shadow: 0 0px 0px rgba(0,0,0,.00);
    padding: 5px 14px 5px 5px;
    border-radius: 999px;
    flex-shrink: 0;
}

.tezmenu-order-table-badge-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--tezmenu-primary) 14%, white);
    color: var(--tezmenu-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tezmenu-order-table-badge-icon svg {
    width: 16px;
    height: 16px;
}

#tezmenu-order-table-badge-text {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

/* ================= BILL SPACING (matches reference) ================= */

.tezmenu-bill-row {
    font-size: 15px;
    padding: 7px 0;
}

.tezmenu-bill-row.total {
    font-size: 19px;
}

/* ================= CUSTOMER DETAILS CARD ================= */

.tezmenu-customer-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 18px 16px;
    margin-top: 4px;
}

.tezmenu-customer-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--tezmenu-primary);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
}

.tezmenu-customer-heading svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}

.tezmenu-field-row {
    margin-bottom: 16px;
}

.tezmenu-field-row:last-child {
    margin-bottom: 0;
}

.tezmenu-field-row label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

#tezmenu-table-field-group {
    margin-bottom: 16px;
}

#tezmenu-table-field-group label {
    font-size: 13.5px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.tezmenu-field-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tezmenu-field-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--tezmenu-primary) 12%, white);
    color: var(--tezmenu-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tezmenu-field-icon svg {
    width: 18px;
    height: 18px;
}

.tezmenu-field-input-wrap .tezmenu-select-wrap {
    flex: 1;
    min-width: 0;
}

.tezmenu-field-input-wrap input[type="text"],
.tezmenu-field-input-wrap input[type="tel"] {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #d4d4d4 !important;
    border-radius: 12px;
    font-size: 14.5px;
    box-sizing: border-box;
    font-family: inherit;
    color: #111;
}

.tezmenu-field-input-wrap input:focus {
    outline: none;
    border-color: var(--tezmenu-primary) !important;
}

/* Unify Table Number's select border with Name/Mobile/Note —
   overrides the older .tezmenu-select-wrap select rule from
   style.css so all four fields look visually identical. */
.tezmenu-field-input-wrap .tezmenu-select-wrap select {
    border: 1px solid #d4d4d4 !important;
    border-radius: 12px !important;
}

.tezmenu-field-input-wrap .tezmenu-select-wrap select:focus {
    border-color: var(--tezmenu-primary) !important;
}

/* ================= MOBILE +91 PREFIX ================= */

.tezmenu-mobile-wrap {
    position: relative;
}

.tezmenu-mobile-wrap .tezmenu-mobile-prefix {
    position: absolute;
    left: 58px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14.5px;
    font-weight: 600;
    color: #555;
    pointer-events: none;
}

.tezmenu-mobile-wrap input {
    padding-left: 44px !important;
}

/* ================= NOTE TEXTAREA + CHAR COUNT ================= */

.tezmenu-note-wrap {
    align-items: flex-start;
    position: relative;
}

.tezmenu-note-wrap textarea {
    flex: 1;
    min-width: 0;
    min-height: 90px;
    padding: 12px 14px;
    border: 1px solid #d4d4d4 !important;
    border-radius: 12px;
    font-size: 14.5px;
    box-sizing: border-box;
    font-family: inherit;
    color: #111;
    resize: vertical;
}

.tezmenu-note-wrap textarea:focus {
    outline: none;
    border-color: var(--tezmenu-primary) !important;
}

.tezmenu-note-count {
    position: absolute;
    right: 12px;
    bottom: 10px;
    font-size: 11.5px;
    color: #999;
    background: #fff;
    padding: 0 2px;
}