/* Venue CRM – public styles. Inherits the theme font; colours can be overridden via these variables. */
.vcrm {
	--vcrm-accent: #1d3557;
	--vcrm-accent-ink: #fff;
	--vcrm-border: #d7dbe0;
	--vcrm-muted: #5f6b76;
	--vcrm-bg-soft: #f5f7f9;
	--vcrm-error: #b42318;
	--vcrm-success: #1a7f37;
	--vcrm-radius: 8px;
	max-width: 760px;
	line-height: 1.5;
}
.vcrm *, .vcrm *::before, .vcrm *::after { box-sizing: border-box; }
.vcrm [hidden] { display: none !important; }
.vcrm-step { margin: 0 0 24px; }
.vcrm-step h3 { margin: 0 0 12px; font-size: 1.15em; }
.vcrm-field { display: block; margin: 0 0 14px; flex: 1 1 200px; min-width: 0; }
.vcrm-label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .95em; }
.vcrm-hint, .vcrm-muted { color: var(--vcrm-muted); font-size: .9em; }
.vcrm input[type=text], .vcrm input[type=email], .vcrm input[type=tel], .vcrm input[type=number], .vcrm input[type=date], .vcrm select, .vcrm textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--vcrm-border); border-radius: var(--vcrm-radius); font: inherit; background: #fff; color: inherit; min-height: 44px;
}
.vcrm input:focus, .vcrm select:focus, .vcrm textarea:focus, .vcrm-slot:focus-visible, .vcrm-btn:focus-visible { outline: 2px solid var(--vcrm-accent); outline-offset: 2px; }
.vcrm-row { display: flex; gap: 12px; flex-wrap: wrap; }
.vcrm-row > select { flex: 1 1 120px; }
.vcrm-choices { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 14px; }
.vcrm-choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--vcrm-border); border-radius: var(--vcrm-radius); cursor: pointer; background: #fff; }
.vcrm-choice:has(input:checked) { border-color: var(--vcrm-accent); box-shadow: inset 0 0 0 1px var(--vcrm-accent); background: var(--vcrm-bg-soft); }
.vcrm-choice input { margin-top: 4px; }
.vcrm-choice small { display: block; color: var(--vcrm-muted); }
.vcrm-slots { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.vcrm-slot { padding: 10px 14px; min-height: 44px; border: 1px solid var(--vcrm-border); border-radius: var(--vcrm-radius); background: #fff; color: inherit; cursor: pointer; font: inherit; }
.vcrm-slot.is-selected { background: var(--vcrm-accent); color: var(--vcrm-accent-ink); border-color: var(--vcrm-accent); }
.vcrm-btn { display: inline-block; padding: 12px 20px; min-height: 44px; border: 0; border-radius: var(--vcrm-radius); background: var(--vcrm-accent); color: var(--vcrm-accent-ink) !important; font: inherit; font-weight: 600; text-decoration: none !important; cursor: pointer; }
.vcrm-btn[disabled] { opacity: .55; cursor: not-allowed; }
.vcrm-btn-secondary { background: #fff; color: var(--vcrm-accent) !important; box-shadow: inset 0 0 0 2px var(--vcrm-accent); }
.vcrm-btn-call { font-size: 1.05em; }
.vcrm-manager, .vcrm-deposit, .vcrm-done { padding: 16px; border-radius: var(--vcrm-radius); background: var(--vcrm-bg-soft); border: 1px solid var(--vcrm-border); margin-bottom: 16px; }
.vcrm-enquiry { margin-top: 8px; }
.vcrm-terms { font-size: .92em; margin: 8px 0; }
.vcrm-terms summary { cursor: pointer; font-weight: 600; }
.vcrm-optins { border: 0; padding: 0; margin: 0 0 14px; }
.vcrm-optins legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.vcrm-check { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; font-size: .95em; }
.vcrm-check input { margin-top: 4px; flex: 0 0 auto; }
.vcrm-agree { margin: 10px 0 14px; }
.vcrm-error { color: var(--vcrm-error); background: #fef3f2; border: 1px solid #fecdca; padding: 10px 12px; border-radius: var(--vcrm-radius); margin: 0 0 12px; }
.vcrm-success { color: var(--vcrm-success); }
.vcrm-timer { font-weight: 600; color: var(--vcrm-muted); }
.vcrm-card { margin: 12px 0; min-height: 90px; }
.vcrm-summary { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 10px 0 14px; }
.vcrm-summary dt { color: var(--vcrm-muted); }
.vcrm-summary dd { margin: 0; font-weight: 600; }
.vcrm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vcrm-mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 1px; }

/* Events list */
.vcrm-events { display: grid; gap: 20px; max-width: none; }
.vcrm-event-card { display: grid; grid-template-columns: minmax(0, 280px) 1fr; gap: 18px; border: 1px solid var(--vcrm-border); border-radius: var(--vcrm-radius); overflow: hidden; background: #fff; }
.vcrm-event-card:not(:has(.vcrm-event-img)) { grid-template-columns: 1fr; }
.vcrm-event-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcrm-event-body { padding: 16px 18px 16px 0; }
.vcrm-event-card:not(:has(.vcrm-event-img)) .vcrm-event-body { padding-left: 18px; }
.vcrm-event-when { margin: 0; color: var(--vcrm-accent); font-weight: 600; font-size: .92em; }
.vcrm-event-title { margin: 4px 0; }
.vcrm-event-title a { text-decoration: none; color: inherit; }
.vcrm-event-where { margin: 0 0 6px; color: var(--vcrm-muted); }
.vcrm-event-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 10px; }
.vcrm-price { font-weight: 700; font-size: 1.1em; }
.vcrm-avail { color: var(--vcrm-muted); }
.vcrm-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #eceff2; font-weight: 600; font-size: .9em; }
.vcrm-soldout { background: #fde8e8; color: var(--vcrm-error); }
.vcrm-tickets { margin-top: 28px; padding: 18px; border: 1px solid var(--vcrm-border); border-radius: var(--vcrm-radius); }
.vcrm-ticket-head h3 { margin: 0; }
.vcrm-event-meta-line { margin-bottom: 14px; }

/* Wallet buttons */
.vcrm-wallet { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.vcrm-wallet-btn { display: inline-flex; align-items: center; padding: 12px 18px; min-height: 44px; border-radius: var(--vcrm-radius); color: #fff !important; text-decoration: none !important; font-weight: 600; }
.vcrm-apple { background: #000; }
.vcrm-google { background: #1a73e8; }

@media (max-width: 600px) {
	.vcrm-event-card { grid-template-columns: 1fr; }
	.vcrm-event-body { padding: 0 16px 16px; }
	.vcrm-event-img img { aspect-ratio: 16 / 9; }
}
