/* ── EventGate Ticket Widget ────────────────────────────────────────────────── */
.egb-widget {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 580px; width: 100%;
  border-radius: 14px; overflow: hidden;
  border: 1px solid #e5e7eb; background: #fff;
  margin: 0 auto 24px; box-sizing: border-box;
}

/* Cover image */
.egb-cover {
  width: 100%; height: 220px;
  background-size: cover; background-position: center center; background-repeat: no-repeat;
  background-color: #1a1a2e;
  display: block;
}

/* Event info */
.egb-event-info { padding: 18px 20px 14px; border-bottom: 1px solid #f3f4f6; }
.egb-event-name {
  font-size: 26px !important; font-weight: 900 !important; line-height: 1.2 !important;
  color: #000 !important; letter-spacing: -.02em !important;
  margin: 0 0 8px !important; padding: 0 !important;
  background: none !important; background-color: transparent !important;
  text-decoration: none !important; border: none !important;
  display: block !important; box-shadow: none !important;
}
.egb-event-desc { font-size: 14px; color: #4b5563; line-height: 1.6; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid #f3f4f6; }

/* Tickets section */
.egb-tickets { padding: 16px 20px; }
.egb-section-label { font-size: 10px; font-weight: 700; color: #9ca3af; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; display: block; }

/* Single ticket row */
.egb-ticket { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid #f3f4f6; }
.egb-ticket:last-child { border-bottom: none; }
.egb-ticket-left { flex: 1; min-width: 0; }
.egb-ticket-cat { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.egb-ticket-valid { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.egb-ticket-avail { font-size: 11px; color: #f59e0b; margin-top: 2px; font-weight: 500; }
.egb-ticket-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.egb-ticket-price { font-size: 17px; font-weight: 700; color: #111; white-space: nowrap; min-width: 72px; text-align: right; }

/* Quantity controls — slightly rounded, NOT circles */
.egb-qty { display: flex; align-items: center; gap: 6px; }
.egb-q-btn {
  width: 34px !important; height: 34px !important;
  border-radius: 8px !important;
  background: #f9fafb !important;
  cursor: pointer !important; font-size: 18px !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  line-height: 1 !important; padding: 0 !important;
  color: #000 !important; font-weight: 600 !important;
  box-shadow: none !important; outline: none !important;
}
.egb-q-btn[data-action="dec"] { border: 1.5px solid #ef4444 !important; }
.egb-q-btn[data-action="inc"] { border: 1.5px solid #22c55e !important; }
.egb-q-btn[disabled] { opacity: .3 !important; cursor: not-allowed !important; }
.egb-q-val { font-size: 16px; font-weight: 600; min-width: 24px; text-align: center; color: #111; }
.egb-sold-out { font-size: 12px; color: #9ca3af; }
.egb-empty { padding: 20px; text-align: center; color: #9ca3af; font-size: 14px; }
.egb-error { padding: 14px 16px; background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; font-size: 13px; border-radius: 8px; margin: 8px; }

/* Checkout bar */
.egb-bar { padding: 14px 20px; background: #111827; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.egb-bar-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.egb-bar-items { font-size: 12px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.egb-bar-total { font-size: 20px; font-weight: 700; color: #fff; }
.egb-bar-btn { padding: 12px 24px; background: #22c55e; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.egb-bar-btn:hover { background: #16a34a; }
.egb-bar-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Mobile */
@media (max-width: 480px) {
  .egb-widget { border-radius: 10px; }
  .egb-cover { height: 170px; }
  .egb-event-name { font-size: 20px !important; }
  .egb-event-info { padding: 14px 15px 12px; }
  .egb-tickets { padding: 12px 15px; }
  .egb-ticket { flex-wrap: wrap; }
  .egb-ticket-right { width: 100%; justify-content: space-between; }
  .egb-bar { padding: 12px 15px; }
  .egb-bar-btn { width: 100%; text-align: center; }
}
