/* Potvrdenie nákupu podujatia. Farby sú aliasy na :root z web_booking_css.php / root_css.php
   (--c1 = color_2, --c2 = color_1, --c3 = color_3, --w = color_background). */
.ev2-done {
  --ev2d-ink: var(--c1);
  --ev2d-brand: var(--c2);
  --ev2d-sand: var(--c3);
  --ev2d-bg: var(--w);
  --ev2d-ink-2: var(--c1);
  --ev2d-ink-2: color-mix(in srgb, var(--c1) 72%, var(--w));
  --ev2d-muted: var(--c1);
  --ev2d-muted: color-mix(in srgb, var(--c1) 55%, var(--c3));
  --ev2d-line: var(--c3);
  --ev2d-line: color-mix(in srgb, var(--c3) 72%, var(--c1));
  --ev2d-line-2: var(--c3);
  --ev2d-line-2: color-mix(in srgb, var(--c3) 42%, var(--w));
  --ev2d-ok: var(--c1);
  --ev2d-ok: color-mix(in srgb, var(--c1) 55%, #1f7a4d);
  --ev2d-ok-bg: var(--w);
  --ev2d-ok-bg: color-mix(in srgb, #1f7a4d 14%, var(--w));
  --ev2d-wait: var(--c2);
  --ev2d-wait: color-mix(in srgb, var(--c2) 70%, #5c3b08);
  --ev2d-wait-bg: var(--w);
  --ev2d-wait-bg: color-mix(in srgb, var(--c2) 18%, var(--w));
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  overflow: hidden;
  background: var(--ev2d-bg);
  color: var(--ev2d-ink);
  font-family: Mont, Montserrat, sans-serif;
  text-align: left;
}
.ev2-done, .ev2-done * { box-sizing: border-box; }
html:has(.ev2-done),
body:has(.ev2-done) {
  overflow: hidden;
  background: var(--w);
}
body:has(.ev2-done) header,
body:has(.ev2-done) footer,
body:has(.ev2-done) #popup,
body:has(.ev2-done) #wait,
body:has(.ev2-done) .pop-bg {
  display: none !important;
}
body:has(.ev2-done) main,
body:has(.ev2-done) main .container-fluid,
body:has(.ev2-done) main .row,
body:has(.ev2-done) main .col-md-12 {
  transform: none;
  filter: none;
  overflow: visible;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.ev2-done-hero {
  position: relative;
  color: var(--ev2d-bg);
  background-color: var(--ev2d-ink);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 0;
  padding: 32px 48px 40px;
  overflow: auto;
}
.ev2-done-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--ev2d-ink) 58%, transparent) 0%,
    color-mix(in srgb, var(--ev2d-ink) 8%, transparent) 32%,
    color-mix(in srgb, var(--ev2d-ink) 36%, transparent) 58%,
    var(--ev2d-photo, var(--ev2d-brand)) 100%);
}
.ev2-done-hero > * { position: relative; }
.ev2-done-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.ev2-done-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ev2d-bg) 35%, transparent);
  background: color-mix(in srgb, var(--ev2d-ink) 35%, transparent);
  color: var(--ev2d-bg);
  font: 600 13px/1 Mont, Montserrat, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.ev2-done-back:hover {
  background: color-mix(in srgb, var(--ev2d-ink) 55%, transparent);
}
.ev2-done-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  font-weight: 700;
  font-size: 15px;
  color: var(--ev2d-bg);
}
.ev2-done-brand i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--ev2d-bg) 16%, transparent);
  font-style: normal;
  font-size: 12px;
  letter-spacing: .04em;
}
.ev2-done-info { max-width: 520px; }
.ev2-done-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 11px;
  background: color-mix(in srgb, var(--ev2d-bg) 18%, transparent);
  color: var(--ev2d-bg);
}
.ev2-done-info h2 {
  margin: 14px 0 10px;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ev2d-bg);
}
.ev2-done-when {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  color: var(--ev2d-bg);
}
.ev2-done-when span { display: inline-flex; align-items: center; gap: 8px; }
.ev2-done-lec {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--ev2d-bg);
}
.ev2-done-lec i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--ev2d-bg) 24%, transparent);
  background-position: center;
  background-size: cover;
  border: 2px solid color-mix(in srgb, var(--ev2d-bg) 60%, transparent);
  flex: none;
}
.ev2-done-lec small { display: block; opacity: .75; font-size: 11px; }
.ev2-done-sum {
  margin-top: 26px;
  background: color-mix(in srgb, var(--ev2d-bg) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ev2d-bg) 20%, transparent);
  border-radius: 16px;
  padding: 18px 20px;
  color: var(--ev2d-bg);
}
.ev2-done-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  padding: 6px 0;
}
.ev2-done-line small { opacity: .75; }
.ev2-done-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid color-mix(in srgb, var(--ev2d-bg) 25%, transparent);
  margin-top: 8px;
  padding-top: 12px;
}
.ev2-done-total span { font-size: 14px; opacity: .85; }
.ev2-done-total b { font-size: 30px; font-weight: 700; }

.ev2-done-pane {
  min-height: 0;
  overflow: auto;
  background: var(--ev2d-bg);
  display: flex;
  justify-content: center;
  color: var(--ev2d-ink);
}
.ev2-done-form {
  width: 100%;
  max-width: 460px;
  padding: 56px 32px 40px;
}
.ev2-done-ok { text-align: center; padding-top: 8px; }
.ev2-done-ck {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--ev2d-ok-bg);
  color: var(--ev2d-ok);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  animation: ev2DonePop .45s cubic-bezier(.2, 1.4, .4, 1);
}
.ev2-done-ck.tone-wait {
  background: var(--ev2d-wait-bg);
  color: var(--ev2d-wait);
}
.ev2-done-ck svg path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: ev2DoneDraw .5s .25s forwards;
}
@keyframes ev2DonePop { from { transform: scale(.4); opacity: 0; } }
@keyframes ev2DoneDraw { to { stroke-dashoffset: 0; } }
.ev2-done-ok h2 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.2;
  color: var(--ev2d-ink);
}
.ev2-done-ok > p {
  margin: 0;
  color: var(--ev2d-ink-2);
  font-size: 14px;
  line-height: 1.5;
}
.ev2-done-ok > p b { color: var(--ev2d-ink); }
.ev2-done-ticket {
  margin: 26px 0 18px;
  text-align: left;
  border: 1px solid var(--ev2d-line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--ev2d-bg);
}
.ev2-done-ticket-h {
  height: 96px;
  position: relative;
  background-color: var(--ev2d-sand);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.ev2-done-ticket-h.has-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--ev2d-ink) 55%, transparent));
}
.ev2-done-ticket-h span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  z-index: 1;
  color: var(--ev2d-ink);
  font-weight: 700;
  font-size: 17px;
}
.ev2-done-ticket-h.has-photo span { color: var(--ev2d-bg); }
.ev2-done-ticket dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 14px;
  padding: 16px;
  border-top: 2px dashed var(--ev2d-line);
  font-size: 13px;
}
.ev2-done-ticket dt { color: var(--ev2d-muted); }
.ev2-done-ticket dd { margin: 0; font-weight: 600; color: var(--ev2d-ink); text-align: right; }
.ev2-done-note {
  display: flex;
  gap: 10px;
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ev2d-wait);
  background: var(--ev2d-wait-bg);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 16px;
}
.ev2-done-pay {
  margin: 0 0 16px;
  text-align: left;
  color: var(--ev2d-ink);
}
.ev2-done-pay .timi-card-text {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ev2d-ink-2);
}
.ev2-done #paybutton,
.ev2-done .timi-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin: 8px 0 0;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--ev2d-ink);
  color: var(--ev2d-bg);
  font: 700 16px/1.2 Mont, Montserrat, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.ev2-done #paybutton:hover,
.ev2-done .timi-pay:hover {
  background: color-mix(in srgb, var(--ev2d-ink) 84%, var(--ev2d-bg));
  color: var(--ev2d-bg);
}
.ev2-done-acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.ev2-done-acts .wide { grid-column: 1 / -1; }
.ev2-done-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 10px;
  font: 600 14px/1 Mont, Montserrat, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.ev2-done-btn.primary {
  background: var(--ev2d-ink);
  color: var(--ev2d-bg);
  border: 0;
}
.ev2-done-btn.primary:hover {
  background: color-mix(in srgb, var(--ev2d-ink) 84%, var(--ev2d-bg));
  color: var(--ev2d-bg);
}
.ev2-done-btn.ghost {
  background: var(--ev2d-bg);
  color: var(--ev2d-ink);
  border: 1px solid color-mix(in srgb, var(--ev2d-ink) 28%, var(--ev2d-sand));
}
.ev2-done-btn.ghost:hover {
  background: var(--ev2d-sand);
  color: var(--ev2d-ink);
}
.ev2-done-foot {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--ev2d-line-2);
  font-size: 12px;
}
.ev2-done-foot a { color: var(--ev2d-ink-2); text-decoration: none; }
.ev2-done-foot a:hover { color: var(--ev2d-ink); }

@media (max-width: 900px) {
  .ev2-done {
    display: block;
    overflow: auto;
    height: 100dvh;
  }
  .ev2-done-hero {
    min-height: max(300px, 46vh);
    padding: 16px 16px 22px;
    overflow: visible;
  }
  .ev2-done-info h2 { font-size: 28px; margin: 10px 0 8px; }
  .ev2-done-when { font-size: 13px; }
  .ev2-done-lec { margin-top: 10px; }
  .ev2-done-sum { display: none; }
  .ev2-done-pane { overflow: visible; }
  .ev2-done-form { padding: 20px 16px 32px; max-width: 560px; }
  .ev2-done-acts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ev2-done-ck,
  .ev2-done-ck svg path { animation: none; stroke-dashoffset: 0; }
}
