/*
 * Opmaak voor de koopknop, de agenda en de kaartjespagina.
 *
 * Bewust neutraal en met eigen klassenamen: dit draait op themas als Divi die
 * hun eigen ideeen hebben. Alles is te overschrijven vanuit het thema, en
 * niets hier dwingt een lettertype of een kleur af behalve waar het moet.
 */

.smoothentree-agenda { list-style: none; margin: 0; padding: 0; }

.smoothentree-agenda__item { border-bottom: 1px solid rgba(0, 0, 0, .1); }
.smoothentree-agenda__item:last-child { border-bottom: 0; }

.smoothentree-agenda__link {
  display: flex; gap: 14px; align-items: center;
  padding: 12px 0; text-decoration: none; color: inherit;
}

.smoothentree-agenda__date {
  flex: 0 0 52px; text-align: center; line-height: 1.1;
  border-radius: 8px; padding: 7px 0; background: rgba(0, 0, 0, .05);
}
.smoothentree-agenda__day { display: block; font-size: 21px; font-weight: 700; }
.smoothentree-agenda__month { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

.smoothentree-agenda__body { display: flex; flex-direction: column; gap: 2px; }
.smoothentree-agenda__title { font-weight: 600; font-size: 17px; }
.smoothentree-agenda__meta { font-size: 14px; opacity: .7; }

.smoothentree-agenda__badge {
  align-self: flex-start; margin-top: 4px; font-size: 12px;
  padding: 2px 8px; border-radius: 20px; background: rgba(0, 0, 0, .07);
}
.smoothentree-agenda__badge.is-soldout { background: rgba(180, 35, 42, .12); color: #8d1b21; }
.smoothentree-agenda__badge.is-cancelled { background: rgba(180, 35, 42, .12); color: #8d1b21; }
.smoothentree-agenda__item.is-cancelled .smoothentree-agenda__title { text-decoration: line-through; }

/* Koopblok ---------------------------------------------------------------- */

.smoothentree-buy {
  margin: 32px 0; padding: 20px;
  border: 1px solid rgba(0, 0, 0, .12); border-radius: 12px;
}
.smoothentree-buy__title { margin: 0 0 14px; font-size: 20px; }

/* De datum staat boven de kaartjes en niet ertussen: dat is het eerste wat
   iemand wil weten voordat hij naar de prijs kijkt. */
.smoothentree-buy__when {
  margin: 0 0 4px; font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 10px;
}
.smoothentree-buy__when time { font-weight: 600; }
.smoothentree-buy__doors { opacity: .65; }

.smoothentree-buy__types { list-style: none; margin: 0; padding: 0; }

.smoothentree-buy__type {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px;
  align-items: center; padding: 12px 0; border-top: 1px solid rgba(0, 0, 0, .08);
}
.smoothentree-buy__type:first-child { border-top: 0; }
.smoothentree-buy__type.is-soldout, .smoothentree-buy__type.is-closed { opacity: .55; }

.smoothentree-buy__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.smoothentree-buy__name { font-weight: 600; }
.smoothentree-buy__desc { font-size: 14px; opacity: .7; }
.smoothentree-buy__avail { font-size: 13px; color: #8d1b21; }
.smoothentree-buy__price { font-variant-numeric: tabular-nums; white-space: nowrap; }

.smoothentree-buy__qty { display: flex; align-items: center; gap: 4px; }
.smoothentree-buy__qty input {
  width: 52px; text-align: center; padding: 8px 4px;
  border: 1px solid rgba(0, 0, 0, .2); border-radius: 8px;
  -moz-appearance: textfield;
}
.smoothentree-buy__qty input::-webkit-outer-spin-button,
.smoothentree-buy__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Minstens 44 bij 44 pixels: dit wordt met een duim bediend, vaak in een cafe
   met een biertje in de andere hand. */
.smoothentree-buy__step {
  width: 44px; height: 44px; font-size: 20px; line-height: 1;
  border: 1px solid rgba(0, 0, 0, .2); border-radius: 8px;
  background: transparent; cursor: pointer;
}
.smoothentree-buy__step:hover { background: rgba(0, 0, 0, .05); }
.smoothentree-buy__step:disabled { cursor: not-allowed; opacity: .4; }
.smoothentree-buy__step:disabled:hover { background: transparent; }

.smoothentree-buy__form { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(0, 0, 0, .08); }
.smoothentree-buy__field { margin-bottom: 12px; }
.smoothentree-buy__field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.smoothentree-buy__field input {
  box-sizing: border-box; width: 100%; padding: 12px; border: 1px solid rgba(0, 0, 0, .2); border-radius: 8px; font-size: 16px;
}
.smoothentree-buy__hint { display: block; font-size: 13px; opacity: .65; margin-top: 3px; }

/* Onzichtbaar voor mensen, zichtbaar voor bots. Niet display:none, want
   sommige bots slaan verborgen velden juist over. */
.smoothentree-buy__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.smoothentree-buy__summary {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 16px 0; font-size: 18px;
}

.smoothentree-buy__submit {
  width: 100%; padding: 15px; font-size: 17px; font-weight: 600;
  border: 0; border-radius: 10px; background: #111; color: #fff; cursor: pointer;
}
.smoothentree-buy__submit:disabled { opacity: .6; cursor: default; }

.smoothentree-buy__notice { padding: 11px 13px; border-radius: 8px; margin-bottom: 14px; font-size: 15px; }
.smoothentree-buy__notice.is-warn { background: rgba(184, 121, 27, .14); }
.smoothentree-buy__notice.is-error { background: rgba(180, 35, 42, .12); }

.smoothentree-buy__event { margin: 0 0 12px; font-size: 22px; }
.smoothentree-buy__ics { font-size: 14px; opacity: .75; }
.smoothentree-agenda__subscribe { margin: 14px 0 0; font-size: 14px; opacity: .7; }
.smoothentree-buy__fee, .smoothentree-buy__terms { font-size: 13px; opacity: .7; margin: 10px 0 0; }
.smoothentree-buy__closed { margin: 0; font-size: 16px; opacity: .75; }
/* Een afgelaste avond is geen gesloten verkoop: dat moet je zien, ook als je
   de tekst niet leest. */
.smoothentree-buy__closed.is-cancelled {
  opacity: 1; font-weight: 600;
  padding: 11px 13px; border-radius: 8px; background: rgba(180, 35, 42, .12);
}

/* Kaartjes ---------------------------------------------------------------- */

.smoothentree-tickets { display: grid; gap: 14px; }
.smoothentree-ticket {
  display: flex; gap: 14px; align-items: center;
  padding: 14px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 12px;
}
.smoothentree-ticket img {
  width: 168px; height: 168px; flex: 0 0 auto;
  image-rendering: pixelated;
}
.smoothentree-ticket__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 19px; letter-spacing: .08em;
}
.smoothentree-ticket.is-used { opacity: .55; }

.smoothentree-status { padding: 16px; border-radius: 12px; background: rgba(0, 0, 0, .04); }
.smoothentree-status__tip { margin-bottom: 0; font-size: 14px; opacity: .75; }

.smoothentree-order__event {
  margin: 0 0 14px; padding: 0 0 14px;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
}
.smoothentree-order__event h3 { margin: 0 0 2px; font-size: 19px; }
.smoothentree-order__event div { font-size: 15px; opacity: .8; }
.smoothentree-order__number { margin: 14px 0 0; font-size: 14px; opacity: .7; }

@media (max-width: 480px) {
  .smoothentree-buy__type { grid-template-columns: 1fr auto; }
  .smoothentree-buy__qty { grid-column: 1 / -1; justify-content: flex-end; }

  /* Op een telefoon zo groot als het kaartje toelaat, en in het midden:
     dat is het plaatje dat de bardienst moet kunnen scannen. */
  .smoothentree-ticket { flex-direction: column; align-items: center; text-align: center; }
  .smoothentree-ticket img { width: min(280px, 70vw); height: auto; aspect-ratio: 1; }
}
