/* Servicio de mesa — FAB + modal del cliente */

.ts-badge {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1200;
    background: rgba(20, 20, 20, 0.82);
    color: #fff;
    font-family: Lato, sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(6px);
    pointer-events: none;
}

.ts-fab {
    position: fixed;
    right: 16px;
    bottom: 88px;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    padding: 14px 18px;
    background: #1a1a1a;
    color: #fff;
    font-family: Lato, sans-serif;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}
.ts-fab:active { transform: scale(0.96); }
.ts-fab i { font-size: 16px; }

body.kiosk-mode .ts-fab { display: none; }

.ts-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
    align-items: flex-end;
    justify-content: center;
}
.ts-modal.active { display: flex; }

.ts-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.ts-modal-sheet {
    position: relative;
    width: min(480px, 100%);
    max-height: 92vh;
    overflow: auto;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 18px 18px 28px;
    animation: tsSlideUp 0.22s ease;
}
@keyframes tsSlideUp {
    from { transform: translateY(24px); opacity: 0.6; }
    to { transform: translateY(0); opacity: 1; }
}

.ts-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.ts-modal-head h3 {
    margin: 0;
    font-family: Lato, sans-serif;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ts-modal-close {
    border: none;
    background: #f1f5f9;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: #334155;
}

.ts-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    font-family: Lato, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}
.ts-field input {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 16px;
    font-weight: 500;
}

.ts-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}
.ts-type {
    border: 1.5px solid #e2e8f0;
    background: #fafafa;
    border-radius: 14px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: Lato, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    transition: border-color 0.15s, background 0.15s;
}
.ts-type i { font-size: 20px; color: #475569; }
.ts-type.active {
    border-color: #1a1a1a;
    background: #f4f4f5;
}
.ts-type.active i { color: #111; }

.ts-hint {
    font-family: Lato, sans-serif;
    font-size: 12.5px;
    color: #64748b;
    margin: 0 0 12px;
}

.ts-submit {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 14px;
    background: #1a1a1a;
    color: #fff;
    font-family: Lato, sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.ts-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ts-feedback {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-family: Lato, sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    text-align: center;
}
.ts-feedback.ok { background: #ecfdf5; color: #047857; }
.ts-feedback.err { background: #fef2f2; color: #b91c1c; }

@media (min-width: 768px) {
    .ts-modal { align-items: center; }
    .ts-modal-sheet {
        border-radius: 20px;
        padding-bottom: 22px;
    }
    .ts-fab { bottom: 28px; }
}
