/* Ticket Container */
.ticket-container {
  background: #e5e5e5;
  border: 2px solid #333;
  border-radius: 12px;
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  user-select: none;
  min-width: 600px;
}

/* Left section (main ticket info) */
.ticket-left {
  flex: 2 1 0;
  padding: 2vw;
  border-right: 2px solid #333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  font-size: 1.67vw;
  /* 1.5rem */
  color: #222;
}

/* Title */
.title {
  font-weight: bold;
  font-size: 2.78vw;
  /* 2.5rem */
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 1vw;
  user-select: text;
}

/* Top row: Gate/Row/Seat + Date/Location + Class VIP */
.top-info {
  display: flex;
  justify-content: space-between;
  font-size: 1.11vw;
  /* 1rem */
  margin-bottom: 1vw;
}

/* Gate/Row/Seat container */
.grs-container {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
}

/* Individual G/R/S box */
.grs-box {
  background: #fefefe;
  border: 1.8px solid #333;
  border-radius: 8px;
  width: 3vw;
  height: 4vw;
  font-weight: 700;
  font-size: 1vw;
  color: #1b1b1b;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: text;
  box-shadow: inset 0 1px 2px #bbb;
}

/* Date and location text */
.date-location {
  text-align: center;
  font-weight: 600;
  font-size: 1.5vw;
  line-height: 1.5vw;
  letter-spacing: 0.015em;
  color: #222;
  user-select: text;
  white-space: pre-line;
  width: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  margin-left: 4px;
  margin-right: 4px;
}

/* Class VIP text block */
.class-block {
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.class-label {
  font-weight: 600;
  font-size: 1.25vw;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
  user-select: text;
  text-align: center;
}

.class-vip {
  font-weight: 900;
  font-size: 2.25vw;
  line-height: 2.25vw;
  user-select: text;
  text-align: center;
}

/* Bottom small print rules section */
.rules {
  border-top: 1.8px solid #333;
  margin-top: 1vw;
  padding-top: 12px;
  font-weight: 500;
  font-size: 1.11vw;
  /* 1rem */
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #666;
  text-align: center;
  user-select: text;
}

/* Right section with details and barcode */
.ticket-right {
  flex: 1 1 0;
  padding: 24px 24px 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-width: 200px;
}

/* Details container */
.details {
  font-size: 1vw;
  line-height: 1.3;
  font-weight: 600;
  user-select: text;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #ddd;
  font-weight: 600;
  color: #000;
  width: 100%;
}

.detail-label {
  font-weight: 700;
  color: #000;
  user-select: text;
}

.detail-value {
  font-weight: 600;
  user-select: text;
}

/* Removed border bottom from last row */
.detail-row:last-child {
  border-bottom: none;
}

/* Barcode container */
.barcode-container {
  text-align: center;
  user-select: none;
}

/* Barcode image from placehold.co sized with correct aspect */
.barcode {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  user-select: none;
  margin-bottom: 12px;
}

/* REF text */
.ref-text {
  font-weight: 700;
  font-size: 1vw;
  color: #000;
  letter-spacing: 0.03em;
  user-select: text;
}

/* Responsive design */
@media (max-width: 767px) {
  /* You can optionally tweak font-sizes here to prevent too-small text */
}