/* Storefronts: static HTML, this file only (the Content-Security-Policy allows no inline styles and nothing from other sites). */

:root {
    --sf-text: #1f2328;
    --sf-muted: #59636e;
    --sf-background: #f6f7f9;
    --sf-surface: #ffffff;
    --sf-border: #d8dee4;
    --sf-accent: #594ae2;
    --sf-radius: 8px;
    color-scheme: light;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--sf-background);
    color: var(--sf-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

a {
    color: var(--sf-accent);
}

a:focus-visible {
    outline: 2px solid var(--sf-accent);
    outline-offset: 2px;
}

.sf-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sf-container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
}

.sf-header {
    background: var(--sf-surface);
    border-bottom: 1px solid var(--sf-border);
}

.sf-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    min-height: 64px;
}

.sf-brand {
    color: var(--sf-text);
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
}

.sf-languages {
    display: flex;
    gap: 4px;
}

.sf-languages a {
    padding: 4px 8px;
    border-radius: var(--sf-radius);
    color: var(--sf-muted);
    font-size: 0.875rem;
    text-decoration: none;
}

.sf-languages a[aria-current="true"] {
    background: var(--sf-background);
    color: var(--sf-text);
    font-weight: 600;
}

.sf-main {
    flex: 1;
}

.sf-hero {
    padding: 48px 0 32px;
    background: var(--sf-surface);
    border-bottom: 1px solid var(--sf-border);
}

.sf-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
}

.sf-hero p {
    margin: 0;
    color: var(--sf-muted);
    font-size: 1.125rem;
}

.sf-section {
    padding-top: 32px;
    padding-bottom: 48px;
}

.sf-section h1,
.sf-section h3 {
    margin-top: 0;
}

.sf-empty {
    margin: 0;
    padding: 24px;
    background: var(--sf-surface);
    border: 1px dashed var(--sf-border);
    border-radius: var(--sf-radius);
    color: var(--sf-muted);
}

.sf-footer {
    padding: 24px 0;
    color: var(--sf-muted);
    font-size: 0.875rem;
}

/* ---- events */
.sf-muted {
    color: var(--sf-muted);
}

.sf-badge {
    display: inline-block;
    padding: 0 8px;
    border-radius: 999px;
    background: #e8f5ec;
    color: #1a7f37;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.6;
    vertical-align: middle;
}

.sf-badge-off {
    background: #eef0f2;
    color: var(--sf-muted);
}

.sf-key {
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    margin-right: 6px;
    vertical-align: -1px;
}

.sf-event-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sf-event-card {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    overflow: hidden;
}

.sf-event-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.sf-event-card-link:hover .sf-event-card-title {
    text-decoration: underline;
}

.sf-event-card img,
.sf-event-card-noimage {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #e9ecef;
}

.sf-event-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px 16px;
}

.sf-event-card-title {
    font-size: 1.15rem;
    font-weight: 600;
}

.sf-event-card-when {
    font-size: 0.9rem;
}

.sf-event-card-where,
.sf-event-card-summary {
    color: var(--sf-muted);
    font-size: 0.9rem;
}

.sf-event-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.sf-event-card-price {
    margin-left: auto;
    font-weight: 600;
}

.sf-event-image {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    background: #e9ecef;
}

.sf-event-header {
    padding-top: 24px;
}

.sf-event-header h1 {
    margin: 0 0 4px;
    font-size: 2rem;
    line-height: 1.2;
}

.sf-event-header p {
    margin: 0 0 4px;
}

.sf-event-when {
    font-weight: 600;
}

.sf-event-summary {
    margin-top: 8px;
    color: var(--sf-muted);
    font-size: 1.1rem;
}

.sf-event-body {
    padding-top: 24px;
    padding-bottom: 24px;
}

.sf-event-text p,
.sf-event-text ul,
.sf-event-text ol,
.sf-event-text blockquote {
    margin: 0 0 1em;
    overflow-wrap: anywhere;
}

.sf-event-text ul,
.sf-event-text ol {
    padding-left: 1.5em;
}

.sf-event-text h2,
.sf-event-text h3,
.sf-event-text h4 {
    margin: 1.2em 0 0.4em;
    line-height: 1.25;
}

.sf-event-text h2 {
    font-size: 1.25rem;
}

.sf-event-text h3 {
    font-size: 1.1rem;
}

.sf-event-text h4 {
    font-size: 1rem;
}

.sf-event-text blockquote {
    padding-left: 1em;
    border-left: 3px solid var(--sf-border);
    color: var(--sf-muted);
}

.sf-event-text .ev-c-0 { color: #000000; }
.sf-event-text .ev-c-1 { color: #4b5563; }
.sf-event-text .ev-c-2 { color: #9ca3af; }
.sf-event-text .ev-c-3 { color: #dc2626; }
.sf-event-text .ev-c-4 { color: #ea580c; }
.sf-event-text .ev-c-5 { color: #d97706; }
.sf-event-text .ev-c-6 { color: #ca8a04; }
.sf-event-text .ev-c-7 { color: #16a34a; }
.sf-event-text .ev-c-8 { color: #0d9488; }
.sf-event-text .ev-c-9 { color: #0891b2; }
.sf-event-text .ev-c-10 { color: #2563eb; }
.sf-event-text .ev-c-11 { color: #4f46e5; }
.sf-event-text .ev-c-12 { color: #7c3aed; }
.sf-event-text .ev-c-13 { color: #db2777; }
.sf-event-text .ev-c-14 { color: #92400e; }
.sf-event-text .ev-c-15 { color: #be123c; }
.sf-event-text .ev-f-arial { font-family: Arial, Helvetica, sans-serif; }
.sf-event-text .ev-f-georgia { font-family: Georgia, serif; }
.sf-event-text .ev-f-times { font-family: "Times New Roman", Times, serif; }
.sf-event-text .ev-f-courier { font-family: "Courier New", Courier, monospace; }
.sf-event-text .ev-f-verdana { font-family: Verdana, Geneva, sans-serif; }
.sf-event-text .ev-f-trebuchet { font-family: "Trebuchet MS", Helvetica, sans-serif; }
.sf-event-text .ev-a-left { text-align: left; }
.sf-event-text .ev-a-center { text-align: center; }
.sf-event-text .ev-a-right { text-align: right; }
.sf-event-text .ev-a-justify { text-align: justify; }

.sf-event-text img {
    max-width: 100%;
    height: auto;
}

.sf-event-text .ev-video {
    display: block;
    width: 100%;
    max-width: 720px;
    aspect-ratio: 16 / 9;
    margin: 0 0 1em;
    border: 0;
}

.sf-event-text table {
    display: block;
    max-width: 100%;
    margin: 0 0 1em;
    overflow-x: auto;
    border-collapse: collapse;
}

.sf-event-text th,
.sf-event-text td {
    padding: 6px 10px;
    border: 1px solid var(--sf-border);
    vertical-align: top;
    text-align: left;
}

.sf-event-text th {
    font-weight: 600;
}

.sf-plan h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.sf-ticket-type {
    padding: 12px 0;
    border-top: 1px solid var(--sf-border);
}

.sf-ticket-type h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
}

.sf-ticket-type p {
    margin: 0 0 6px;
}

.sf-tiers {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sf-tiers li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    padding: 4px 0;
}

.sf-tier-name {
    overflow-wrap: anywhere;
}

.sf-tier-note {
    grid-column: 1 / -1;
    grid-row: 2;
    color: var(--sf-muted);
    font-size: 0.85rem;
}

.sf-tier-note:empty {
    display: none;
}

.sf-tier-price {
    text-align: right;
    font-weight: 600;
}

.sf-tier-off .sf-tier-name,
.sf-tier-off .sf-tier-price {
    color: var(--sf-muted);
    text-decoration: line-through;
}

.sf-plan {
    padding-top: 8px;
    padding-bottom: 32px;
}

.sf-plan-drawing {
    display: block;
    width: 100%;
    max-height: 440px;
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
}

.sf-zones {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

/* ---- choosing tickets (wwwroot/storefront-tickets.js) */
.sf-choose {
    padding-top: 8px;
    padding-bottom: 40px;
}

.sf-choose > h2 {
    margin: 0 0 12px;
    font-size: 1.5rem;
}

.sf-choose-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .sf-choose-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.sf-choose-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.sf-block {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    padding: 16px;
}

.sf-block h3,
.sf-summary h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.sf-block h4 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.sf-block .sf-ticket-type:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.sf-tiers li[data-tier] {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
}

.sf-tiers li[data-tier] .sf-tier-price {
    grid-column: 2;
    grid-row: 1;
}

.sf-stepper {
    grid-column: 3;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}

.sf-stepper output {
    min-width: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.sf-stepper button,
.sf-remove {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid var(--sf-border);
    border-radius: 50%;
    background: var(--sf-surface);
    color: var(--sf-text);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.sf-stepper button:disabled,
.sf-stepper button[aria-disabled="true"] {
    opacity: 0.4;
    cursor: default;
}

.sf-stepper button:focus-visible,
.sf-remove:focus-visible,
.sf-button:focus-visible,
.sf-lines select:focus-visible {
    outline: 2px solid var(--sf-accent);
    outline-offset: 2px;
}

.sf-canvas {
    position: relative;
    height: 480px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    outline: none;
}

.sf-canvas-tools {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 6px;
}

.sf-reset-view {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid var(--sf-border);
    border-radius: 999px;
    background: var(--sf-surface);
    color: var(--sf-text);
    font-size: 0.85rem;
    line-height: 1.2;
    cursor: pointer;
}

.sf-reset-view:focus-visible {
    outline: 2px solid var(--sf-accent);
    outline-offset: 2px;
}

.sf-canvas:focus-visible {
    box-shadow: 0 0 0 2px var(--sf-accent);
}

.sf-canvas > .sf-plan-drawing {
    height: 100%;
    max-height: none;
    border: 0;
}

.sf-picker-ready .sf-canvas > .sf-plan-drawing {
    display: none;
}

.sf-seat-legend li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sf-seat-key {
    display: inline-block;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
}

.sf-seat-free {
    background: #2563eb;
}

.sf-seat-chosen {
    background: #0f172a;
    box-shadow: 0 0 0 2px #fbbf24;
}

.sf-seat-taken {
    background: #cbd5e1;
}

.sf-summary {
    position: sticky;
    top: 16px;
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    padding: 16px;
}

.sf-summary[hidden] {
    display: none;
}

.sf-lines {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sf-lines li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    padding: 8px 0;
    border-top: 1px solid var(--sf-border);
}

.sf-line-name {
    flex: 1 1 10rem;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-wrap: anywhere;
}

.sf-line-name small {
    color: var(--sf-muted);
}

.sf-line-price {
    font-weight: 600;
}

.sf-lines select {
    max-width: 100%;
    padding: 4px;
    border: 1px solid var(--sf-border);
    border-radius: 4px;
    background: var(--sf-surface);
    color: var(--sf-text);
}

/* The processing fee a buyer pays on top of the tickets (when the organization has them pay the commission), just above the total. */
.sf-fee {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 8px 0;
    border-top: 1px solid var(--sf-border);
}

.sf-total {
    display: flex;
    justify-content: space-between;
    margin: 8px 0 12px;
    padding-top: 8px;
    border-top: 2px solid var(--sf-text);
    font-size: 1.15rem;
}

.sf-timer {
    margin: 0 0 8px;
    color: #9a3412;
}

.sf-message {
    margin: 0 0 8px;
    padding: 8px 12px;
    border-radius: 4px;
    background: #fef2f2;
    color: #991b1b;
}

.sf-button {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 10px 16px;
    border: 0;
    border-radius: var(--sf-radius);
    background: var(--sf-accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.sf-button:disabled {
    opacity: 0.5;
    cursor: default;
}

.sf-button-secondary {
    border: 1px solid var(--sf-border);
    background: var(--sf-surface);
    color: var(--sf-text);
}

.sf-button[hidden] {
    display: none;
}

[hidden] {
    display: none !important;
}

/* ---- the entrance of a sale: a login, the waiting room (wwwroot/storefront-tickets.js) */
.sf-gate {
    max-width: 560px;
    margin-bottom: 16px;
}

.sf-gate h3 {
    margin: 0 0 8px;
}

.sf-login-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 8px 12px;
    margin-top: 12px;
}

.sf-login-form label {
    flex-basis: 100%;
    font-weight: 600;
}

.sf-login-form .sf-input {
    flex: 1 1 14rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sf-login-form .sf-button {
    width: auto;
    margin-top: 0;
}

.sf-waiting-position {
    margin: 12px 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.sf-turn {
    margin: 0 0 12px;
    padding: 8px 12px;
    border-radius: var(--sf-radius);
    background: #ecfdf5;
    color: #065f46;
}

.sf-hold-note {
    margin: 8px 0 0;
    font-size: 0.875rem;
}

/* ---- checkout (Components/Storefront/Checkout) */
.sf-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
    padding-top: 24px;
    padding-bottom: 48px;
}

@media (max-width: 900px) {
    .sf-checkout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.sf-checkout-main h1 {
    margin: 8px 0 12px;
    font-size: 1.75rem;
}

.sf-checkout-main h2 {
    margin: 24px 0 8px;
    font-size: 1.25rem;
}

.sf-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
    color: var(--sf-muted);
    font-size: 0.875rem;
}

.sf-steps li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sf-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid var(--sf-border);
    border-radius: 50%;
    background: var(--sf-surface);
    font-weight: 600;
}

.sf-step-done .sf-step-number {
    border-color: var(--sf-accent);
    color: var(--sf-accent);
}

.sf-step-current {
    color: var(--sf-text);
    font-weight: 600;
}

.sf-step-current .sf-step-number {
    border-color: var(--sf-accent);
    background: var(--sf-accent);
    color: #fff;
}

.sf-countdown {
    margin: 0 0 16px;
    padding: 8px 12px;
    border-radius: var(--sf-radius);
    background: #fff7ed;
    color: #9a3412;
}

.sf-countdown p {
    margin: 0;
}

.sf-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sf-fieldset {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    background: var(--sf-surface);
}

.sf-fieldset legend {
    padding: 0 4px;
    font-weight: 600;
}

.sf-fieldset > .sf-muted {
    margin: 0 0 8px;
}

.sf-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    min-width: 0;
}

/* A form's own fields are spaced by its gap. */
.sf-form > .sf-field {
    margin-bottom: 0;
}

.sf-field label {
    font-weight: 500;
}

.sf-field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 12px;
}

/* The basis is a width only inside a row; in a column it would be a minimum height. */
.sf-field-row > .sf-field {
    flex: 1 1 12rem;
}

.sf-field-row > .sf-field-short {
    flex: 0 1 9rem;
}

.sf-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--sf-border);
    border-radius: 6px;
    background: var(--sf-surface);
    color: var(--sf-text);
    font: inherit;
}

.sf-input:focus-visible {
    outline: 2px solid var(--sf-accent);
    outline-offset: 1px;
}

.sf-field-error {
    color: #991b1b;
    font-size: 0.875rem;
}

.sf-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    cursor: pointer;
}

.sf-checkbox input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.2rem;
}

.sf-invoice-fields {
    padding-top: 4px;
}

.sf-form > .sf-button {
    margin-top: 0;
}

.sf-privacy-note {
    margin: 0;
    font-size: 0.875rem;
}

.sf-checkout-leave {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 16px;
}

.sf-cancel-form {
    margin: 0;
}

.sf-link-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--sf-accent);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.sf-button-inline {
    display: inline-block;
    width: auto;
    text-decoration: none;
}

.sf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}

.sf-actions form {
    flex: 1 1 14rem;
}

.sf-actions .sf-button {
    margin-top: 0;
}

.sf-simulated p {
    margin: 0 0 12px;
}

/* Adyen's Drop-in brings its own styles (adyen.css); this keeps room for it while it loads. */
.sf-payment {
    min-height: 8rem;
}

.sf-checkout-back {
    margin-top: 16px;
}

.sf-order-summary .sf-summary-event {
    display: flex;
    flex-direction: column;
    margin: 0 0 8px;
}

.sf-summary-note {
    margin: 0;
    font-size: 0.875rem;
}

.sf-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.03em;
}

.sf-confirmed {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 8px 0 16px;
}

.sf-confirmed h1 {
    margin-top: 0;
}

.sf-confirmed-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #15803d;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
}

.sf-ticket-list {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.sf-ticket-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 12px 0;
    border-top: 1px solid var(--sf-border);
}

.sf-ticket-list li > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

.sf-ticket-list .sf-button {
    margin-top: 0;
}

.sf-ticket-off {
    opacity: 0.6;
}

.sf-ticket-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sf-notice {
    margin: 0 0 8px;
    padding: 8px 12px;
    border-radius: 4px;
    background: #f0fdf4;
    color: #166534;
}

textarea.sf-input {
    min-height: 6rem;
    resize: vertical;
}

.sf-share-list {
    margin: 0 0 16px;
    padding-left: 1.25rem;
}

.sf-narrow {
    max-width: 640px;
}
