/* AYATICKETS Event Page V2 (Ticket Selector Bottom Sheet)
 * IMPORTANT:
 * - Fully scoped to `.aya-event-v2` to avoid conflicts with legacy CSS.
 * - No dependency on build pipeline (served directly from /public/assets).
 */

.aya-event-v2 .aya-v2-sticky-cta-spacer {
  height: 86px;
}

.aya-event-v2 .aya-v2-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000; /* Keep below V2 bottom sheet; avoid stacking fights */
  background: rgba(255,255,255,0.98);
  border-top: 1px solid rgba(0,0,0,0.08);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  box-shadow: 0 -10px 24px rgba(0,0,0,0.12);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.aya-event-v2.aya-v2-sheet-open .aya-v2-sticky-cta,
.aya-event-v2.aya-v2-sheet-open .aya-v2-sticky-cta-spacer {
  display: none !important;
}

.aya-event-v2 .aya-v2-sticky-cta__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
}

.aya-event-v2 .aya-v2-sticky-cta__meta {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.aya-event-v2 .aya-v2-sticky-cta__metaSmall {
  font-size: 12px;
  line-height: 1.2;
  color: rgba(0,0,0,0.60);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aya-event-v2 .aya-v2-sticky-cta__metaTitle {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
  color: rgba(0,0,0,0.88);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aya-event-v2 .aya-v2-sticky-cta__btn {
  flex-shrink: 0;
  border: 0;
  border-radius: 16px;
  min-height: 48px; /* larger tap target (Eventbrite-style) */
  padding: 14px 20px;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  background: linear-gradient(90deg, #c3073f, #fd6c5d);
  color: #fff;
  box-shadow: 0 6px 16px rgba(195,7,63,0.25);
}

.aya-event-v2 .aya-v2-sticky-cta__btn:active {
  transform: translateY(1px);
}

/* Bottom sheet overlay */
.aya-event-v2 .aya-v2-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 99980;
  display: none;
  opacity: 0;
  transition: opacity 180ms ease-out;
  pointer-events: none;
}

.aya-event-v2 .aya-v2-sheet-overlay.is-open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.aya-event-v2 .aya-v2-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99990;
  background: #fff;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  box-shadow: 0 -20px 40px rgba(0,0,0,0.25);
  transform: translateY(110%);
  transition: transform 220ms ease-out, opacity 180ms ease-out;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.aya-event-v2 .aya-v2-sheet.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.aya-event-v2 .aya-v2-sheet__handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #e5e7eb;
  margin: 10px auto 4px auto;
}

.aya-event-v2 .aya-v2-sheet__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.aya-event-v2 .aya-v2-sheet__titleWrap {
  min-width: 0;
  flex: 1;
}

.aya-event-v2 .aya-v2-sheet__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
}

.aya-event-v2 .aya-v2-sheet__subtitle {
  margin: 2px 0 0 0;
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aya-event-v2 .aya-v2-sheet__close {
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  padding: 8px;
  border-radius: 10px;
  color: rgba(0,0,0,0.70);
}

.aya-event-v2 .aya-v2-sheet__close:active {
  background: rgba(0,0,0,0.06);
}

.aya-event-v2 .aya-v2-sheet__body {
  overflow: auto;
  padding: 12px 14px;
}

.aya-event-v2 .aya-v2-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aya-event-v2 .aya-v2-card {
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fafafa;
}

.aya-event-v2 .aya-v2-card__row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.aya-event-v2 .aya-v2-card__meta {
  min-width: 0;
  flex: 1;
}

.aya-event-v2 .aya-v2-card__name {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  color: #111827;
}

.aya-event-v2 .aya-v2-card__desc {
  margin: 3px 0 0 0;
  font-size: 12px;
  color: #6b7280;
}

.aya-event-v2 .aya-v2-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.04);
  color: rgba(0,0,0,0.72);
}

.aya-event-v2 .aya-v2-stepBtn {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 14px 12px;
  background: #fff;
}

.aya-event-v2 .aya-v2-stepBtn:active {
  background: rgba(0,0,0,0.03);
}

.aya-event-v2 .aya-v2-stepBtn__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.aya-event-v2 .aya-v2-stepBtn__title {
  margin: 0;
  font-weight: 800;
  font-size: 14px;
  color: rgba(0,0,0,0.88);
}

.aya-event-v2 .aya-v2-stepBtn__sub {
  margin: 3px 0 0 0;
  font-size: 12px;
  color: rgba(0,0,0,0.58);
}

.aya-event-v2 .aya-v2-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.aya-event-v2 .aya-v2-qty__btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  color: #111827;
}

.aya-event-v2 .aya-v2-qty__btn--plus {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.aya-event-v2 .aya-v2-qty__btn:disabled {
  opacity: 0.35;
}

.aya-event-v2 .aya-v2-qty__val {
  width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: #111827;
}

.aya-event-v2 .aya-v2-date {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1px solid #e7e5e4;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  color: inherit;
}

.aya-event-v2 .aya-v2-date.is-selected {
  border-color: #111827;
  box-shadow: 0 0 0 1px #111827;
}

.aya-event-v2 .aya-v2-cal {
  width: 52px;
  flex: 0 0 52px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  background: #fff;
}

.aya-event-v2 .aya-v2-cal__dow {
  display: block;
  background: #1f2937;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 0 2px;
}

.aya-event-v2 .aya-v2-cal__day {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  color: #111827;
  padding-top: 2px;
}

.aya-event-v2 .aya-v2-cal__mon {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  padding-bottom: 4px;
}

.aya-event-v2 .aya-v2-date__meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aya-event-v2 .aya-v2-date__title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.aya-event-v2 .aya-v2-date__sub {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.3;
}

.aya-event-v2 .aya-v2-date__end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.aya-event-v2 .aya-v2-date__priceCol {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.aya-event-v2 .aya-v2-date__from {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.2;
}

.aya-event-v2 .aya-v2-date__price {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.aya-event-v2 .aya-v2-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #d1d5db;
  background: #fff;
  box-sizing: border-box;
}

.aya-event-v2 .aya-v2-date.is-selected .aya-v2-radio {
  border-color: #111827;
  background: #111827;
  box-shadow: inset 0 0 0 4px #fff;
}

.aya-event-v2 .aya-v2-dates {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.aya-event-v2 .aya-v2-dates__label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.aya-event-v2 .aya-v2-pill {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.aya-event-v2 .aya-v2-pill.is-selected {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.aya-event-v2 .aya-v2-sheet__footer {
  border-top: 1px solid #f3f4f6;
  padding: 12px 16px 14px;
  background: #fff;
}

.aya-event-v2 .aya-v2-sheet__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.aya-event-v2 .aya-v2-sheet__summaryLabel {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
}

.aya-event-v2 .aya-v2-sheet__summaryValue {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
}

.aya-event-v2 .aya-v2-sheet__hint {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: #9ca3af;
}

.aya-event-v2 .aya-v2-sheet__hint:empty {
  display: none;
}

.aya-event-v2 .aya-v2-primary {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 14px;
  font-weight: 700;
  font-size: 15px;
  background: #c3073f;
  color: #fff;
  box-shadow: none;
}

.aya-event-v2 .aya-v2-primary:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  opacity: 1;
  box-shadow: none;
}

/* Desktop / tablet: turn the sheet into a centered premium dialog */
@media (min-width: 768px) {
  .aya-event-v2 .aya-v2-sticky-cta,
  .aya-event-v2 .aya-v2-sticky-cta-spacer {
    display: none;
  }

  .aya-event-v2 .aya-v2-sheet__handle {
    display: none;
  }

  .aya-event-v2 .aya-v2-sheet {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, 110%);
    width: 440px;
    max-width: calc(100vw - 32px);
    border-radius: 20px;
    max-height: 80vh;
  }

  .aya-event-v2 .aya-v2-sheet.is-open {
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 767.98px) {
  .aya-event-v2 .aya-v2-sheet.is-step-tickets .aya-v2-sheet__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }

  .aya-event-v2 .aya-v2-sheet.is-step-tickets .aya-v2-sheet__summary {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    min-width: 72px;
  }

  .aya-event-v2 .aya-v2-sheet.is-step-tickets .aya-v2-sheet__summaryLabel {
    font-size: 12px;
  }

  .aya-event-v2 .aya-v2-sheet.is-step-tickets .aya-v2-sheet__summaryValue {
    font-size: 16px;
  }

  .aya-event-v2 .aya-v2-sheet.is-step-tickets .aya-v2-primary {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .aya-event-v2 .aya-v2-sheet.is-step-tickets .aya-v2-sheet__hint {
    flex: 1 0 100%;
    margin: 0;
  }
}

