/* =========================================================
   MY TICKETS - public page for downloading bought tickets
   Linked from the page body, so it loads after the layout CSS.
   Theme colours come from .mt-theme-* on the wrapper.
   ========================================================= */

.mt-page {
    --mt-accent: #b58a3b;
    --mt-accent-dark: #94702f;
    --mt-accent-text: #8a672b;
    --mt-accent-soft: #fffdf9;
    --mt-border: #e7dfd3;
    --mt-text: #222;
    --mt-muted: #625a50;
    --mt-success-bg: #f3f8f1;
    --mt-success-border: #b9d6ae;
    --mt-warning-bg: #fdf7ea;
    --mt-warning-border: #ead39f;
    --mt-error-bg: #fbefee;
    --mt-error-border: #e2b1ac;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 16px 56px;
    box-sizing: border-box;
    color: var(--mt-text);
    font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.mt-page.mt-theme-lp {
    --mt-accent: #870a59;
    --mt-accent-dark: #020202;
    --mt-accent-text: #870a59;
    --mt-accent-soft: #fff;
    --mt-border: #e5e5e5;
    --mt-muted: #5f5f5f;
    padding-top: 110px;
    font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.mt-page *,
.mt-page *::before,
.mt-page *::after {
    box-sizing: border-box;
}

/* the Lutkarsko theme resets <strong> to normal weight */
.mt-page strong {
    font-weight: 700;
}

.mt-card {
    background: #fff;
    border: 1px solid var(--mt-border);
    padding: 32px;
}

.mt-page .mt-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--mt-text);
}

.mt-lead {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--mt-muted);
}

/* ---------- alerts ---------- */

.mt-alert {
    margin: 0 0 24px;
    padding: 14px 16px;
    border: 1px solid;
    font-size: 15px;
    line-height: 1.5;
}

.mt-alert-success { background: var(--mt-success-bg); border-color: var(--mt-success-border); }
.mt-alert-warning { background: var(--mt-warning-bg); border-color: var(--mt-warning-border); }
.mt-alert-error { background: var(--mt-error-bg); border-color: var(--mt-error-border); }

/* ---------- form ---------- */

.mt-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 440px;
}

.mt-page .mt-label {
    position: static;
    transform: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--mt-muted);
}

/* materialize styles every input[type=email]; reset it to the plain bordered field used on the payment form */
.mt-page input.mt-input {
    height: 46px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid #cfc6b8 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    font-size: 16px !important;
    color: var(--mt-text) !important;
    text-align: left !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.mt-page input.mt-input:focus {
    border-color: var(--mt-accent) !important;
    outline: 2px solid var(--mt-accent);
    outline-offset: -2px;
}

.mt-page input.mt-input.mt-input-invalid {
    border-color: #c0392b !important;
}

.mt-field-error {
    font-size: 13px;
    color: #c0392b;
}

.mt-form .mt-btn {
    margin-top: 12px;
    align-self: flex-start;
}

/* off-screen honeypot, not display:none so naive bots still fill it in */
.mt-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- buttons (same look as the success page buttons) ---------- */

.mt-page .mt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 185px;
    min-height: 44px;
    padding: 11px 22px;
    border: 1px solid var(--mt-accent);
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .045em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    transition: background-color .15s, color .15s, border-color .15s;
}

.mt-page .mt-btn-primary {
    background: var(--mt-accent);
    color: #fff;
}

.mt-page .mt-btn-primary:hover,
.mt-page .mt-btn-primary:focus {
    background: var(--mt-accent-dark);
    border-color: var(--mt-accent-dark);
    color: #fff;
}

.mt-page .mt-btn-secondary {
    background: var(--mt-accent-soft);
    color: var(--mt-accent-text);
}

.mt-page .mt-btn-secondary:hover,
.mt-page .mt-btn-secondary:focus {
    background: var(--mt-accent);
    color: #fff;
}

.mt-page .mt-btn[disabled] {
    opacity: .6;
    cursor: default;
}

.mt-page .mt-link {
    color: var(--mt-accent-text);
    font-weight: 600;
    text-decoration: underline;
}

/* ---------- purchases ---------- */

.mt-purchases {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mt-purchase {
    border: 1px solid var(--mt-border);
    background: #fff;
}

.mt-purchase-head {
    display: flex;
    align-items: stretch;
    gap: 18px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--mt-border);
}

.mt-date {
    flex: 0 0 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    background: var(--mt-accent);
    color: #fff;
    text-align: center;
    line-height: 1.1;
}

.mt-date-day { font-size: 28px; font-weight: 700; }
.mt-date-month { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.mt-date-time { margin-top: 4px; font-size: 13px; font-weight: 600; }

.mt-purchase-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.mt-page .mt-show {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--mt-text);
    overflow-wrap: anywhere;
}

.mt-meta {
    font-size: 14px;
    color: var(--mt-muted);
}

.mt-meta-day::first-letter { text-transform: uppercase; }

.mt-seats {
    list-style: none;
    margin: 0;
    padding: 4px 20px;
}

.mt-seat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--mt-border);
    font-size: 15px;
}

.mt-seat:last-child { border-bottom: 0; }

.mt-seat-place { min-width: 0; }
.mt-seat-type { color: var(--mt-muted); }

.mt-seat-price {
    flex: 0 0 auto;
    font-weight: 600;
    white-space: nowrap;
}

.mt-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border: 1px solid var(--mt-border);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--mt-muted);
    vertical-align: middle;
}

.mt-purchase-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 20px;
    background: #faf8f5;
    border-top: 1px solid var(--mt-border);
}

.mt-theme-lp .mt-purchase-foot { background: #f7f7f7; }

.mt-receipt {
    font-size: 14px;
    color: var(--mt-muted);
    line-height: 1.5;
}

.mt-receipt strong { color: var(--mt-text); }

.mt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mt-empty {
    padding: 28px 20px;
    border: 1px dashed var(--mt-border);
    text-align: center;
    font-size: 15px;
    color: var(--mt-muted);
}

.mt-note {
    margin: 24px 0 0;
    font-size: 13px;
    color: var(--mt-muted);
}

@media (max-width: 600px) {
    .mt-page { padding: 24px 10px 40px; }
    .mt-page.mt-theme-lp { padding-top: 90px; }
    .mt-card { padding: 22px 16px; }
    .mt-page .mt-title { font-size: 24px; }
    .mt-purchase-head { padding: 14px; gap: 14px; }
    .mt-date { flex-basis: 62px; }
    .mt-date-day { font-size: 24px; }
    .mt-seats { padding: 4px 14px; }
    .mt-purchase-foot { padding: 14px; }
    .mt-actions,
    .mt-page .mt-btn,
    .mt-form .mt-btn { width: 100%; align-self: stretch; }
    .mt-form { max-width: none; }
}
