/* TokVendors Meetings booking widget. Colours come from CSS variables set in the Widget tab. */

.tvm-widget {
	--tvm-accent: #E63946;
	--tvm-accent-text: #C62F3B;
	--tvm-accent-soft: #FDEBED;
	--tvm-accent-mid: #FAD7DB;
	--tvm-ink: #171717;
	--tvm-muted: #737373;
	--tvm-surface: #FFFFFF;
	--tvm-canvas: #F5F5F3;
	--tvm-line: #E6E6E2;
	--tvm-radius: 24px;
	--tvm-max: 820px;
	--tvm-head: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	--tvm-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--tvm-max);
	margin: 0 auto;
	color: var(--tvm-ink);
	font-family: var(--tvm-body);
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}
.tvm-widget *, .tvm-widget *::before, .tvm-widget *::after { box-sizing: border-box; }
.tvm-widget.tvm-card {
	background: var(--tvm-surface);
	border: 1px solid var(--tvm-line);
	border-radius: var(--tvm-radius);
	padding: clamp(22px, 4vw, 44px);
	box-shadow: 0 1px 2px rgba(23, 23, 23, .04), 0 12px 40px rgba(23, 23, 23, .05);
}
.tvm-widget p { margin: 0; }
.tvm-widget a { color: var(--tvm-ink); }
.tvm-widget [hidden] { display: none !important; }
.tvm-widget :focus { outline: none; }
.tvm-widget :focus-visible { outline: 2px solid var(--tvm-ink); outline-offset: 2px; }
.tvm-widget .tvm-title:focus-visible, .tvm-widget [data-focus]:focus-visible { outline: none; }

.tvm-sr, .tvm-widget .tvm-hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* panels */
.tvm-widget .tvm-panel { display: flex; flex-direction: column; gap: 22px; animation: tvm-in .32s ease both; }
.tvm-widget .tvm-shell.is-still .tvm-panel { animation: none; }
.tvm-widget .tvm-head { display: flex; flex-direction: column; gap: 8px; }
.tvm-widget .tvm-title {
	margin: 0;
	font-family: var(--tvm-head);
	font-weight: 800;
	font-size: clamp(22px, 2.6vw, 28px);
	line-height: 1.18;
	letter-spacing: -0.025em;
	color: var(--tvm-ink);
	text-transform: none;
}
.tvm-widget .tvm-intro, .tvm-widget .tvm-text { font-size: 16px; line-height: 1.6; color: var(--tvm-ink); }
.tvm-widget .tvm-intro, .tvm-widget .tvm-text--muted { color: var(--tvm-muted); }
.tvm-widget .tvm-step-title { margin: 0 0 2px; font-family: var(--tvm-head); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--tvm-ink); text-transform: none; }

/* progress */
.tvm-widget .tvm-progress { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.tvm-widget .tvm-progress li { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 0 0; border-top: 3px solid var(--tvm-line); font-size: 13px; font-weight: 600; color: var(--tvm-muted); }
.tvm-widget .tvm-progress li.is-done { border-top-color: var(--tvm-accent); color: var(--tvm-ink); }
.tvm-widget .tvm-progress li.is-current { border-top-color: var(--tvm-accent); color: var(--tvm-ink); }
.tvm-widget .tvm-progress__dot { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--tvm-canvas); font-size: 12px; font-weight: 700; }
.tvm-widget .is-current .tvm-progress__dot, .tvm-widget .is-done .tvm-progress__dot { background: var(--tvm-accent); color: #fff; }
.tvm-widget .tvm-progress__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tvm-widget .tvm-progress__now { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* fields */
.tvm-widget .tvm-form { display: flex; flex-direction: column; gap: 22px; margin: 0; }
.tvm-widget .tvm-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.tvm-widget .tvm-field { grid-column: span 2; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.tvm-widget .tvm-field--half { grid-column: span 1; }
.tvm-widget .tvm-field label, .tvm-widget .tvm-field legend { display: block; margin: 0; padding: 0; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--tvm-ink); text-transform: none; letter-spacing: normal; }
.tvm-widget .tvm-opt { font-weight: 400; color: var(--tvm-muted); }
.tvm-widget fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.tvm-widget fieldset legend { margin-bottom: 9px; }
.tvm-widget .tvm-field input[type="text"], .tvm-widget .tvm-field input[type="email"], .tvm-widget .tvm-field input[type="tel"], .tvm-widget .tvm-field input[type="url"],
.tvm-widget .tvm-field textarea, .tvm-widget .tvm-select select {
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 12px 15px;
	border: 1px solid var(--tvm-line);
	border-radius: 14px;
	background: var(--tvm-surface);
	color: var(--tvm-ink);
	font: 400 16px/1.4 var(--tvm-body);
	box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
	-webkit-appearance: none;
	appearance: none;
}
.tvm-widget .tvm-field textarea { min-height: 112px; resize: vertical; }
.tvm-widget .tvm-field input::placeholder, .tvm-widget .tvm-field textarea::placeholder { color: #A3A3A0; opacity: 1; }
.tvm-widget .tvm-field input:hover, .tvm-widget .tvm-field textarea:hover, .tvm-widget .tvm-select select:hover { border-color: #CFCFCA; }
.tvm-widget .tvm-field input:focus, .tvm-widget .tvm-field textarea:focus, .tvm-widget .tvm-select select:focus { border-color: var(--tvm-ink); box-shadow: 0 0 0 3px rgba(23, 23, 23, .08); outline: none; }
.tvm-widget .tvm-select { position: relative; }
.tvm-widget .tvm-select::after { content: ""; position: absolute; right: 17px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--tvm-muted); border-bottom: 2px solid var(--tvm-muted); transform: rotate(45deg); pointer-events: none; }
.tvm-widget .tvm-select select { padding-right: 44px; cursor: pointer; text-overflow: ellipsis; }
.tvm-widget .tvm-help { font-size: 13px; color: var(--tvm-muted); }
.tvm-widget .tvm-err { font-size: 13px; font-weight: 600; color: #B42330; }
.tvm-widget .has-error input, .tvm-widget .has-error textarea, .tvm-widget .has-error select { border-color: #D9475A; }

.tvm-widget .tvm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tvm-widget .tvm-chip { position: relative; display: inline-flex; margin: 0; cursor: pointer; font-weight: 500 !important; }
.tvm-widget .tvm-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.tvm-widget .tvm-chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 16px; border: 1px solid var(--tvm-line); border-radius: 999px; background: var(--tvm-surface); font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--tvm-ink); transition: border-color .2s, background .2s, color .2s; }
.tvm-widget .tvm-chip:hover span { border-color: var(--tvm-ink); }
.tvm-widget .tvm-chip input:checked + span { background: var(--tvm-ink); border-color: var(--tvm-ink); color: #fff; }
.tvm-widget .tvm-chip input:focus-visible + span { outline: 2px solid var(--tvm-ink); outline-offset: 2px; }
.tvm-widget .has-error .tvm-chip span { border-color: #E9A4AC; }

.tvm-widget .tvm-consent { display: flex !important; align-items: flex-start; gap: 12px; font-weight: 400 !important; font-size: 14px !important; line-height: 1.55 !important; color: var(--tvm-muted) !important; cursor: pointer; }
.tvm-widget .tvm-consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--tvm-ink); cursor: pointer; }
.tvm-widget .tvm-consent a { color: var(--tvm-ink); text-decoration: underline; text-underline-offset: 3px; }

/* buttons and links */
.tvm-widget .tvm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.tvm-widget .tvm-actions--form { justify-content: space-between; gap: 12px; }
.tvm-widget .tvm-btn, .tvm-widget a.tvm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	margin: 0;
	padding: 0 28px;
	border: 1px solid var(--tvm-accent);
	border-radius: 999px;
	background: var(--tvm-accent);
	color: #fff !important;
	font: 700 16px/1.2 var(--tvm-body);
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none !important;
	box-shadow: none;
	cursor: pointer;
	transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.tvm-widget .tvm-btn:hover, .tvm-widget .tvm-btn:focus-visible { background: var(--tvm-ink); border-color: var(--tvm-ink); color: #fff !important; }
.tvm-widget .tvm-btn:active { transform: translateY(1px); }
.tvm-widget .tvm-btn:disabled { opacity: .65; cursor: default; }
.tvm-widget .tvm-btn.is-busy::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: tvm-spin .8s linear infinite; }
.tvm-widget .tvm-btn--ghost, .tvm-widget a.tvm-btn--ghost { background: var(--tvm-surface); border-color: var(--tvm-line); color: var(--tvm-ink) !important; }
.tvm-widget .tvm-btn--ghost:hover, .tvm-widget .tvm-btn--ghost:focus-visible { background: var(--tvm-surface); border-color: var(--tvm-ink); color: var(--tvm-ink) !important; }
.tvm-widget .tvm-btn--danger { background: #B42330; border-color: #B42330; }
.tvm-widget .tvm-link, .tvm-widget a.tvm-link {
	display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0; border: 0; background: none;
	color: var(--tvm-accent-text) !important; font: 600 15px/1.3 var(--tvm-body); text-decoration: underline !important; text-underline-offset: 4px; text-transform: none; letter-spacing: normal; cursor: pointer; box-shadow: none;
}
.tvm-widget .tvm-link:hover { color: var(--tvm-ink) !important; background: none; }
.tvm-widget .tvm-link--quiet { align-self: flex-start; color: var(--tvm-muted) !important; font-weight: 500; font-size: 14px; }

.tvm-widget .tvm-alert { padding: 12px 16px; border-radius: 14px; background: #FDECEE; color: #8F1B26; font-size: 14px; font-weight: 500; }

/* calendar */
.tvm-widget .tvm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: var(--tvm-muted); }
.tvm-widget .tvm-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 12px; border-radius: 999px; background: var(--tvm-accent-soft); color: var(--tvm-accent-text); font-weight: 700; font-size: 13px; }
.tvm-widget .tvm-current { font-size: 14px; color: var(--tvm-ink); }
.tvm-widget .tvm-cal { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.tvm-widget .tvm-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tvm-widget .tvm-month__label { font-family: var(--tvm-head); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.tvm-widget .tvm-navbtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0; padding: 0; border: 1px solid var(--tvm-line); border-radius: 50%; background: var(--tvm-surface); color: var(--tvm-ink); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: none; transition: border-color .2s; }
.tvm-widget .tvm-navbtn:hover:not(:disabled) { border-color: var(--tvm-ink); background: var(--tvm-surface); color: var(--tvm-ink); }
.tvm-widget .tvm-navbtn:disabled { opacity: .35; cursor: default; }
.tvm-widget .tvm-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.tvm-widget .tvm-dow { padding: 2px 0 8px; font-size: 12px; font-weight: 600; color: var(--tvm-muted); }
.tvm-widget .tvm-day { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 46px; aspect-ratio: 1; margin: 0 auto; padding: 0; border: 0; border-radius: 50%; background: transparent; font: 500 14px/1 var(--tvm-body); color: #B9B9B4; box-shadow: none; }
.tvm-widget .tvm-day.is-blank { visibility: hidden; }
.tvm-widget button.tvm-day.is-open { background: var(--tvm-accent-soft); color: var(--tvm-accent-text); font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.tvm-widget button.tvm-day.is-open:hover { background: var(--tvm-accent-mid); color: var(--tvm-accent-text); }
.tvm-widget button.tvm-day.is-selected, .tvm-widget button.tvm-day.is-selected:hover { background: var(--tvm-accent); color: #fff; }
.tvm-widget .tvm-dayname { margin: 6px 0 14px; font-family: var(--tvm-head); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.tvm-widget .tvm-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; max-height: 336px; overflow: auto; padding: 2px; }
.tvm-widget .tvm-slot { min-height: 46px; margin: 0; padding: 0 10px; border: 1px solid var(--tvm-line); border-radius: 14px; background: var(--tvm-surface); color: var(--tvm-ink); font: 600 15px/1 var(--tvm-body); letter-spacing: normal; text-transform: none; box-shadow: none; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.tvm-widget .tvm-slot:hover { border-color: var(--tvm-accent); color: var(--tvm-accent-text); background: var(--tvm-surface); }
.tvm-widget .tvm-slot.is-selected, .tvm-widget .tvm-slot.is-selected:hover { background: var(--tvm-ink); border-color: var(--tvm-ink); color: #fff; }
.tvm-widget .tvm-tz { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--tvm-muted); }
.tvm-widget .tvm-tz label { font-weight: 500; }
.tvm-widget .tvm-select--sm { flex: 0 1 300px; min-width: 0; }
.tvm-widget .tvm-select--sm select { min-height: 42px; padding: 8px 40px 8px 14px; font-size: 14px; border-radius: 12px; }
.tvm-widget .tvm-confirm { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 18px 20px; border-radius: calc(var(--tvm-radius) * .7); background: var(--tvm-canvas); animation: tvm-in .25s ease both; }
.tvm-widget .tvm-confirm p { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.45; }
.tvm-widget .tvm-confirm__label { font-size: 13px; color: var(--tvm-muted); }

/* booked and manage */
.tvm-widget .tvm-done, .tvm-widget .tvm-manage { align-items: flex-start; }
.tvm-widget .tvm-check { width: 56px; height: 56px; border-radius: 50%; background: var(--tvm-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/28px no-repeat; animation: tvm-pop .4s ease both; }
.tvm-widget .tvm-when { font-family: var(--tvm-head); font-weight: 700; font-size: 19px; line-height: 1.4; letter-spacing: -0.01em; }
.tvm-widget .tvm-facts { width: 100%; margin: 0; padding: 4px 0; list-style: none; border-top: 1px solid var(--tvm-line); border-bottom: 1px solid var(--tvm-line); }
.tvm-widget .tvm-facts li { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 11px 0; font-size: 15px; overflow-wrap: anywhere; }
.tvm-widget .tvm-facts li + li { border-top: 1px solid var(--tvm-line); }
.tvm-widget .tvm-facts__k { flex: 0 0 150px; color: var(--tvm-muted); }
.tvm-widget .tvm-facts a { color: var(--tvm-ink); text-decoration: underline; text-underline-offset: 3px; }
.tvm-widget .tvm-ask { width: 100%; display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: calc(var(--tvm-radius) * .7); background: var(--tvm-canvas); }
.tvm-widget .tvm-ask__title { font-family: var(--tvm-head); font-weight: 700; font-size: 18px; }
.tvm-widget .tvm-panel--note .tvm-title { max-width: 30ch; }

/* loading */
.tvm-widget .tvm-loading { display: flex; align-items: center; gap: 14px; min-height: 120px; color: var(--tvm-muted); font-size: 15px; }
.tvm-widget .tvm-spin { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--tvm-line); border-top-color: var(--tvm-accent); animation: tvm-spin .8s linear infinite; }
.tvm-noscript { padding: 20px; border: 1px solid #E6E6E2; border-radius: 16px; }

@keyframes tvm-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes tvm-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes tvm-spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
	.tvm-widget .tvm-cal { grid-template-columns: 1fr; gap: 24px; }
	.tvm-widget .tvm-slots { max-height: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tvm-widget .tvm-progress__label { display: none; }
	.tvm-widget .tvm-progress__now { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; margin-top: -12px; font-size: 14px; color: var(--tvm-muted); }
	.tvm-widget .tvm-progress__now strong { color: var(--tvm-ink); font-weight: 600; }
}
@media (max-width: 560px) {
	.tvm-widget .tvm-fields { grid-template-columns: 1fr; }
	.tvm-widget .tvm-field, .tvm-widget .tvm-field--half { grid-column: span 1; }
	.tvm-widget .tvm-actions--form .tvm-btn { flex: 1 1 auto; }
	.tvm-widget .tvm-actions--form > span:empty { display: none; }
	.tvm-widget .tvm-confirm .tvm-btn, .tvm-widget .tvm-done .tvm-actions .tvm-btn, .tvm-widget .tvm-manage .tvm-actions .tvm-btn, .tvm-widget .tvm-ask .tvm-btn { width: 100%; }
	.tvm-widget .tvm-facts__k { flex-basis: 100%; }
	.tvm-widget .tvm-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
	.tvm-widget .tvm-panel, .tvm-widget .tvm-check, .tvm-widget .tvm-confirm { animation: none; }
	.tvm-widget * { transition: none !important; }
}
