/*
 * Sexmuseum Tickets — Frontend Shortcode
 * Tailwind-aesthetic. Scoped to .sxm-shop to avoid theme conflicts.
 */

.sxm-shop {
	/* Design tokens */
	--slate-50:  #f8fafc;
	--slate-100: #f1f5f9;
	--slate-200: #e2e8f0;
	--slate-300: #cbd5e1;
	--slate-400: #94a3b8;
	--slate-500: #64748b;
	--slate-600: #475569;
	--slate-700: #334155;
	--slate-800: #1e293b;
	--slate-900: #0f172a;
	--emerald-50: #ecfdf5;
	--emerald-600: #059669;
	--rose-50: #fff1f2;
	--rose-600: #e11d48;
	--amber-50: #fffbeb;
	--amber-600: #d97706;
	--brand: #8B1538;
	--brand-dk: #6E102C;
	--brand-soft: #fdf2f5;
	--accent: #B8895D;
	--radius: 12px;
	--radius-lg: 16px;
	--radius-xl: 20px;
	--shadow-xs: 0 1px 2px rgba(15,23,42,.05);
	--shadow-sm: 0 1px 2px rgba(15,23,42,.05), 0 1px 3px rgba(15,23,42,.04);
	--shadow:    0 1px 2px rgba(15,23,42,.04), 0 6px 20px rgba(15,23,42,.06);

	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: var(--slate-900);
	max-width: 720px;
	margin: 0 auto;
	padding: 0;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

.sxm-shop * { box-sizing: border-box; }

.sxm-shop a {
	color: var(--brand);
	text-decoration: none;
	transition: color .15s;
}
.sxm-shop a:hover { color: var(--brand-dk); text-decoration: underline; }

/* ============================================================
   Notice
   ============================================================ */
.sxm-shop__notice {
	background: white;
	border: 1px solid var(--slate-200);
	border-left: 3px solid var(--brand);
	border-radius: var(--radius);
	padding: 14px 18px;
	margin-bottom: 24px;
	font-size: 14px;
	color: var(--slate-700);
	box-shadow: var(--shadow-xs);
}
.sxm-shop__notice--success { border-left-color: var(--emerald-600); background: var(--emerald-50); color: #065f46; }
.sxm-shop__notice--error   { border-left-color: var(--rose-600);    background: var(--rose-50);    color: #9f1239; }
.sxm-shop__notice--warning { border-left-color: var(--amber-600);   background: var(--amber-50);   color: #92400e; }
.sxm-shop__notice-eyebrow {
	font-size: 10px;
	letter-spacing: .2em;
	text-transform: uppercase;
	font-weight: 700;
	margin-bottom: 4px;
	opacity: .8;
}
.sxm-shop__notice-title {
	font-family: inherit;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: -.01em;
	margin: 0 0 6px;
	line-height: 1.25;
}
.sxm-shop__notice-text {
	margin: 0;
	font-size: 13px;
	opacity: .85;
	line-height: 1.5;
}

/* ============================================================
   Header
   ============================================================ */
.sxm-shop__head {
	text-align: center;
	margin-bottom: 32px;
	padding: 0 16px;
}
.sxm-shop__eyebrow {
	font-size: 11px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--brand);
	font-weight: 700;
	margin-bottom: 14px;
}
.sxm-shop__title {
	font-family: 'Inter', sans-serif;
	font-weight: 800;
	font-size: clamp(32px, 5vw, 44px);
	color: var(--slate-900);
	letter-spacing: -.025em;
	line-height: 1.1;
	margin: 0 0 14px;
}
.sxm-shop__lede {
	font-size: 16px;
	color: var(--slate-600);
	max-width: 480px;
	margin: 0 auto;
	line-height: 1.6;
}

/* ============================================================
   Form
   ============================================================ */
.sxm-shop__form { display: flex; flex-direction: column; gap: 16px; }

.sxm-step {
	background: white;
	border: 1px solid var(--slate-200);
	border-radius: var(--radius-xl);
	padding: clamp(20px, 3vw, 28px);
	box-shadow: var(--shadow-xs);
	transition: box-shadow .2s ease;
}
.sxm-step:hover { box-shadow: var(--shadow-sm); }

.sxm-step__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
}
.sxm-step__num {
	width: 36px;
	height: 36px;
	background: var(--slate-900);
	color: white;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	flex-shrink: 0;
	letter-spacing: -.01em;
}
.sxm-step__title {
	font-family: inherit;
	font-weight: 700;
	font-size: 20px;
	color: var(--slate-900);
	letter-spacing: -.015em;
	margin: 0;
	line-height: 1.2;
}
.sxm-step__body { padding-left: 0; }

/* ============================================================
   Quantity selector
   ============================================================ */
.sxm-quantity {
	display: flex;
	align-items: center;
	gap: 0;
	background: var(--slate-50);
	border: 1px solid var(--slate-200);
	border-radius: var(--radius);
	overflow: hidden;
	width: fit-content;
}
.sxm-quantity__btn {
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	color: var(--slate-700);
	font-size: 20px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s;
	font-family: inherit;
	display: flex;
	align-items: center;
	justify-content: center;
}
.sxm-quantity__btn:hover { background: var(--slate-200); color: var(--slate-900); }
.sxm-quantity__btn:disabled { color: var(--slate-300); cursor: not-allowed; }
.sxm-quantity__btn:disabled:hover { background: transparent; }
.sxm-quantity__input {
	width: 56px;
	height: 44px;
	padding: 0;
	border: 0;
	background: white;
	border-left: 1px solid var(--slate-200);
	border-right: 1px solid var(--slate-200);
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	color: var(--slate-900);
	text-align: center;
	-moz-appearance: textfield;
}
.sxm-quantity__input::-webkit-outer-spin-button,
.sxm-quantity__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sxm-quantity__input:focus { outline: 0; }

.sxm-price-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--slate-100);
	font-size: 14px;
	color: var(--slate-500);
}
.sxm-price-row strong { color: var(--slate-900); font-weight: 600; }

/* ============================================================
   Field grid
   ============================================================ */
.sxm-field-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
@media (max-width: 540px) { .sxm-field-grid { grid-template-columns: 1fr; } }
.sxm-field--wide { grid-column: 1 / -1; }

.sxm-field__label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--slate-700);
	margin-bottom: 6px;
}
.sxm-field__input,
.sxm-field__select {
	width: 100%;
	height: 42px;
	padding: 0 14px;
	background: white;
	border: 1px solid var(--slate-300);
	border-radius: var(--radius);
	font-family: inherit;
	font-size: 14px;
	color: var(--slate-900);
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none;
	appearance: none;
}
.sxm-field__select {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}
.sxm-field__input:focus,
.sxm-field__select:focus {
	outline: 0;
	border-color: var(--brand);
	box-shadow: 0 0 0 3px rgba(139,21,56,.1);
}
.sxm-field__input::placeholder { color: var(--slate-400); }

/* ============================================================
   Final step - the dark CTA card
   ============================================================ */
.sxm-step:last-of-type {
	background: var(--slate-900);
	border-color: var(--slate-900);
	color: white;
}
.sxm-step:last-of-type .sxm-step__num { background: var(--brand); color: white; }
.sxm-step:last-of-type .sxm-step__title { color: white; }

.sxm-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 18px 0 24px;
	border-bottom: 1px solid rgba(255,255,255,.1);
	margin-bottom: 22px;
}
.sxm-total__label {
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--accent);
	font-weight: 700;
}
.sxm-total__amount {
	font-family: inherit;
	font-weight: 800;
	font-size: clamp(34px, 6vw, 48px);
	color: white;
	letter-spacing: -.03em;
	line-height: 1;
}

.sxm-checkout-btn {
	width: 100%;
	height: 56px;
	background: var(--brand);
	color: white;
	border: 0;
	border-radius: var(--radius);
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .15s, transform .12s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
.sxm-checkout-btn:hover { background: var(--brand-dk); }
.sxm-checkout-btn:active { transform: translateY(1px); }
.sxm-checkout-btn:disabled { opacity: .6; cursor: not-allowed; }
.sxm-checkout-btn svg { transition: transform .2s; }
.sxm-checkout-btn:hover svg { transform: translateX(2px); }

.sxm-shop__secure {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	font-size: 12px;
	color: rgba(255,255,255,.55);
}
.sxm-shop__secure svg { color: var(--accent); }

/* ============================================================
   Handheld scanner shortcode [sexmuseum_scanner]
   ============================================================ */
.sxm-scan {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	max-width: 720px;
	margin: 0 auto;
	padding: 24px;
	color: var(--slate-900);
}
.sxm-scan * { box-sizing: border-box; }

.sxm-scan__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 18px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--slate-200);
}
.sxm-scan__logo { max-height: 44px; }
.sxm-scan__logo img { max-height: 44px; max-width: 180px; height: auto; width: auto; display: block; }
.sxm-scan__brand { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.sxm-scan__user {
	font-size: 12px;
	color: var(--slate-500);
	padding: 6px 12px;
	background: var(--slate-100);
	border-radius: 999px;
	font-weight: 600;
}

.sxm-scan__title {
	font-family: inherit;
	font-weight: 800;
	font-size: clamp(28px, 4vw, 36px);
	letter-spacing: -.025em;
	color: var(--slate-900);
	margin: 0 0 6px;
	line-height: 1.15;
}
.sxm-scan__lede {
	font-size: 14px;
	color: var(--slate-600);
	margin: 0 0 24px;
	line-height: 1.55;
}

.sxm-scan__form {
	background: white;
	border: 1px solid var(--slate-200);
	border-radius: var(--radius-xl);
	padding: 22px;
	margin-bottom: 18px;
	box-shadow: var(--shadow-xs);
}
.sxm-scan__field-label {
	display: block;
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--slate-500);
	font-weight: 700;
	margin-bottom: 10px;
}
.sxm-scan__input-row {
	display: flex;
	gap: 8px;
	align-items: stretch;
}
.sxm-scan__input {
	flex: 1;
	height: 56px;
	padding: 0 18px;
	background: var(--slate-50);
	border: 2px solid var(--slate-300);
	border-radius: var(--radius);
	font-family: 'SF Mono', Menlo, Consolas, monospace;
	font-size: 18px;
	color: var(--slate-900);
	letter-spacing: .02em;
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none;
	appearance: none;
}
.sxm-scan__input:focus {
	outline: 0;
	border-color: var(--brand);
	box-shadow: 0 0 0 4px var(--brand-soft);
	background: white;
}
.sxm-scan__submit {
	height: 56px;
	padding: 0 24px;
	background: var(--slate-900);
	color: white;
	border: 0;
	border-radius: var(--radius);
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .15s;
}
.sxm-scan__submit:hover { background: var(--slate-800); }
.sxm-scan__hint {
	margin: 14px 0 0;
	font-size: 12px;
	color: var(--slate-500);
}

/* Result */
.sxm-scan__result {
	border-radius: var(--radius-xl);
	padding: 32px 24px;
	text-align: center;
	min-height: 220px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
	transition: background .2s ease, color .2s ease;
	margin-bottom: 18px;
}
.sxm-scan__result[data-state="idle"]    { background: var(--slate-100); color: var(--slate-400); }
.sxm-scan__result[data-state="loading"] { background: var(--slate-100); color: var(--slate-600); font-weight: 600; font-size: 16px; }
.sxm-scan__result[data-state="valid"]   { background: #1B7F4E; color: white; }
.sxm-scan__result[data-state="used"]    { background: #B82F2F; color: white; }
.sxm-scan__result[data-state="expired"] { background: #D97706; color: white; }
.sxm-scan__result[data-state="invalid"],
.sxm-scan__result[data-state="not_found"],
.sxm-scan__result[data-state="not_paid"] { background: var(--slate-700); color: white; }

.sxm-scan__result-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	font-weight: 500;
	color: var(--slate-400);
}

.sxm-scan__result-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(255,255,255,.18);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}
.sxm-scan__result-icon svg { width: 36px; height: 36px; }

.sxm-scan__result-title {
	font-weight: 800;
	font-size: clamp(22px, 3vw, 30px);
	letter-spacing: -.02em;
	margin-bottom: 4px;
}
.sxm-scan__result-name {
	font-weight: 800;
	font-size: clamp(34px, 5vw, 48px);
	letter-spacing: -.03em;
	line-height: 1.1;
	margin: 6px 0;
	word-break: break-word;
}
.sxm-scan__result-meta { font-size: 15px; opacity: .85; margin-bottom: 8px; }
.sxm-scan__result-sub  { font-size: 14px; opacity: .85; max-width: 380px; margin: 8px auto 0; }

/* Footer */
.sxm-scan__foot {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 16px 0 0;
	border-top: 1px solid var(--slate-200);
}
.sxm-scan__counter {
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-size: 12px;
	color: var(--slate-500);
}
.sxm-scan__counter-label {
	font-size: 10px;
	letter-spacing: .18em;
	text-transform: uppercase;
	font-weight: 700;
}
.sxm-scan__counter-value {
	font-family: 'SF Mono', Menlo, Consolas, monospace;
	font-weight: 700;
	font-size: 24px;
	color: var(--brand);
	letter-spacing: -.01em;
}

.sxm-scan__history { display: flex; flex-direction: column; gap: 4px; }
.sxm-scan__history-row {
	display: grid;
	grid-template-columns: 22px 1fr auto auto;
	gap: 10px;
	align-items: center;
	padding: 8px 10px;
	background: var(--slate-50);
	border: 1px solid var(--slate-100);
	border-radius: 8px;
	font-size: 12px;
}
.sxm-scan__history-row.is-ok  { background: var(--emerald-50); border-color: #d1fae5; }
.sxm-scan__history-row.is-err { background: var(--rose-50);    border-color: #fecaca; }
.sxm-scan__history-mark { font-weight: 700; text-align: center; }
.sxm-scan__history-row.is-ok  .sxm-scan__history-mark { color: var(--emerald-600); }
.sxm-scan__history-row.is-err .sxm-scan__history-mark { color: var(--rose-600); }
.sxm-scan__history-code { font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 11px; color: var(--slate-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sxm-scan__history-name { color: var(--slate-700); font-weight: 600; }
.sxm-scan__history-time { color: var(--slate-400); font-family: 'SF Mono', monospace; font-size: 11px; }

/* Locked message */
.sxm-scan-locked {
	max-width: 480px;
	margin: 60px auto;
	padding: 32px;
	background: white;
	border: 1px solid var(--slate-200);
	border-radius: var(--radius-xl);
	text-align: center;
	font-family: 'Inter', sans-serif;
	color: var(--slate-700);
}
.sxm-scan-locked p { margin: 0 0 16px; font-size: 15px; }

/* ============================================================
   v1.3.0 — Multi-tier ticket selectie + resend variant
   ============================================================ */
.sxm-tier-list-shop {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.sxm-tier-qty-row {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 18px;
	align-items: center;
	padding: 16px 18px;
	background: var(--paper, #faf7f2);
	border: 1px solid var(--slate-200, #e2e8f0);
	border-radius: 12px;
	transition: border-color 150ms ease;
}
.sxm-tier-qty-row:hover { border-color: var(--brand, #8B1538); }
.sxm-tier-qty-row__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.sxm-tier-qty-row__label {
	font-weight: 600;
	font-variation-settings: "wght" 600;
	color: var(--ink-900, #0f172a);
	font-size: 16px;
	letter-spacing: -0.01em;
}
.sxm-tier-qty-row__price {
	font-size: 13px;
	color: var(--slate-500, #64748b);
}
.sxm-tier-qty-row__subtotal {
	min-width: 80px;
	text-align: right;
	font-weight: 700;
	font-variation-settings: "wght" 700;
	color: var(--ink-900, #0f172a);
	font-size: 16px;
}
.sxm-quantity--inline {
	margin: 0;
}
@media (max-width: 580px) {
	.sxm-tier-qty-row {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	.sxm-tier-qty-row__subtotal { text-align: left; }
}

/* Resend shop variant */
.sxm-shop--resend .sxm-shop__form {
	max-width: 560px;
}
.sxm-shop__notice--warning {
	background: #fffbeb;
	border-color: #fde68a;
	color: #92400e;
}

/* ============================================================
   v1.3.1 — Elementor + Hello Theme isolation
   Defensive reset zodat thema/Elementor onze shortcodes niet
   verstoort. Hogere specificiteit + reset op gemeenschappelijke
   eigenschappen.
   ============================================================ */

/* Reset wrapper-niveau */
body .sxm-shop,
body .sxm-scan {
	all: revert;
	display: block;
	box-sizing: border-box;
	font-family: "Google Sans Flex", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	font-size: 15px;
	line-height: 1.5;
	color: #0f172a;
	text-align: left;
	width: 100%;
	max-width: 920px;
	margin: 0 auto;
}

/* Box-sizing voor alle elementen binnen onze containers */
body .sxm-shop,
body .sxm-shop *,
body .sxm-shop *::before,
body .sxm-shop *::after,
body .sxm-scan,
body .sxm-scan *,
body .sxm-scan *::before,
body .sxm-scan *::after {
	box-sizing: border-box;
}

/* Headings: reset elementor/hello defaults */
body .sxm-shop h1,
body .sxm-shop h2,
body .sxm-shop h3,
body .sxm-shop h4,
body .sxm-scan h1,
body .sxm-scan h2,
body .sxm-scan h3 {
	font-family: inherit;
	color: #0f172a;
	margin: 0;
	padding: 0;
	line-height: 1.2;
	letter-spacing: -0.015em;
	font-weight: 700;
	font-variation-settings: "wght" 700;
	text-transform: none;
}

/* Paragraphs */
body .sxm-shop p,
body .sxm-scan p {
	font-family: inherit;
	margin: 0;
	padding: 0;
	color: inherit;
	font-size: inherit;
	line-height: 1.5;
}

/* Buttons: reset elementor/hello button styling */
body .sxm-shop button,
body .sxm-scan button {
	font-family: inherit;
	font-size: inherit;
	line-height: 1.2;
	cursor: pointer;
	margin: 0;
	border: 0;
	appearance: none;
	-webkit-appearance: none;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	text-decoration: none;
}
body .sxm-shop button:hover,
body .sxm-shop button:focus,
body .sxm-scan button:hover,
body .sxm-scan button:focus {
	text-decoration: none;
}

/* Inputs / select / textarea */
body .sxm-shop input,
body .sxm-shop select,
body .sxm-shop textarea,
body .sxm-scan input {
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	color: #0f172a;
	background: #ffffff;
	margin: 0;
	box-shadow: none;
	min-height: 0;
	text-transform: none;
	letter-spacing: normal;
}
body .sxm-shop input[type="number"]::-webkit-outer-spin-button,
body .sxm-shop input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
body .sxm-shop input[type="number"] {
	-moz-appearance: textfield;
}

/* Labels */
body .sxm-shop label,
body .sxm-shop .sxm-field__label {
	display: block;
	font-family: inherit;
	margin: 0;
	padding: 0;
	line-height: 1.3;
}

/* Links */
body .sxm-shop a,
body .sxm-scan a {
	font-family: inherit;
	color: var(--brand, #8B1538);
	text-decoration: none;
}

/* List-style none — Hello theme sometimes adds bullets */
body .sxm-shop ul,
body .sxm-shop ol,
body .sxm-scan ul,
body .sxm-scan ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Elementor specific overrides (in case widget wrappers leak) */
body .elementor .sxm-shop button,
body .elementor .sxm-scan button {
	background: transparent;
	border: 0;
	padding: 0;
	color: inherit;
}
body .elementor-widget-shortcode .sxm-shop,
body .elementor-widget-shortcode .sxm-scan {
	font-family: "Google Sans Flex", "Inter", -apple-system, sans-serif !important;
}
