/* Ticket modal — demo La Rúcula y Grill */

html.rg-ticket-open {
  overflow: hidden;
}

.rg-ticket {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.rg-ticket[hidden] {
  display: none !important;
}

.rg-ticket__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 18, 0.72);
  backdrop-filter: blur(4px);
}

.rg-ticket__panel {
  position: relative;
  z-index: 1;
  width: min(26rem, 100%);
  max-height: min(92vh, 40rem);
  overflow: auto;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 40%),
    #121526;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.65);
  padding: 1.35rem 1.4rem 1.2rem;
  color: #e2e8f0;
  font-family: 'Courier New', ui-monospace, monospace;
}

.rg-ticket__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
}

.rg-ticket__kicker {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #67e8f9;
  font-family: system-ui, sans-serif;
  font-weight: 700;
}

.rg-ticket__title {
  margin: 0.35rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  font-family: system-ui, sans-serif;
}

.rg-ticket__close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.rg-ticket__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.rg-ticket__meta,
.rg-ticket__client {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
}

.rg-ticket__meta p,
.rg-ticket__client p,
.rg-ticket__totals p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.rg-ticket__meta span,
.rg-ticket__client span,
.rg-ticket__totals span {
  color: #94a3b8;
}

.rg-ticket__meta strong,
.rg-ticket__client strong,
.rg-ticket__totals strong {
  color: #f8fafc;
  font-weight: 700;
  text-align: right;
}

.rg-ticket__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-bottom: 0.9rem;
}

.rg-ticket__table th {
  text-align: left;
  color: #94a3b8;
  font-weight: 600;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  padding: 0.35rem 0.2rem;
}

.rg-ticket__table td {
  padding: 0.45rem 0.2rem;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.18);
  vertical-align: top;
}

.rg-ticket__qty {
  width: 2.2rem;
  color: #cbd5e1;
}

.rg-ticket__item {
  color: #f1f5f9;
}

.rg-ticket__price {
  text-align: right;
  white-space: nowrap;
  color: #f8fafc;
}

.rg-ticket__totals {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
  padding-top: 0.75rem;
}

.rg-ticket__note {
  font-size: 0.75rem;
  color: #94a3b8 !important;
  display: block !important;
  text-align: left;
}

.rg-ticket__total {
  margin-top: 0.35rem !important;
  font-size: 1.05rem;
  font-family: system-ui, sans-serif;
}

.rg-ticket__total strong {
  color: #67e8f9;
}

.rg-ticket__foot {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.7rem;
  color: #64748b;
  font-family: system-ui, sans-serif;
}
