/**
 * Chat widget styles — use tba-chat-* for message UI (not .tba-message, which
 * TrueBooker's booking summary page already uses).
 *
 * Colors, radii, and fonts here read from TrueBooker's own design tokens
 * via var(--token, fallback) — if truebooker's stylesheet is already
 * loaded on the page (it usually is, wherever a booking widget lives),
 * this widget automatically matches its live brand colors, including if
 * an admin changes the skin color later. The fallback values match
 * TrueBooker's current defaults exactly, for pages where its CSS isn't
 * loaded (e.g. this chatbot embedded somewhere standalone).
 */

.tba-chatbot-root {
	/* Accent (admin-configurable primary_color setting still overrides this
	   inline via --tba-primary from class-tba-public.php; everything below
	   falls back to it, then to TrueBooker's own skin color, then to the
	   literal default). */
	--tba-accent:        var(--tba-primary, var(--tba-cl-skin, #0070FF));
	--tba-accent-hover:  #eef4ff;
	--tba-accent-on:     #ffffff;
	--tba-accent-tint:   var(--tba-active-skin, rgb(0 112 255 / 7%));
	--tba-text:          var(--tba-cl-dark, #0F1D40);
	--tba-text-muted:    var(--tba-body-color, #6C6881);
	--tba-surface:       var(--tba-cl-white, #ffffff);
	--tba-surface-alt:   var(--tba-gray, #F5F8FA);
	--tba-surface-tint:  var(--tba-cl-lightdark, #EAEEFD);
	--tba-border:        var(--tba-bordercolor, #E4E4E4);
	--tba-success-bg:    var(--tba-al-approved, #F3FFF7);
	--tba-success-text:  #2f9e5a;

	font-family: var(--tba-font-family, 'Inter'), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: var(--tba-text);
	-webkit-font-smoothing: antialiased;
}

.tba-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --- Launcher (round floating button) -------------------------------- */
.tba-position-bottom-right { position: fixed; right: 16px; bottom: 16px; z-index: 99999; }
.tba-position-bottom-left  { position: fixed; left: 16px; bottom: 16px; z-index: 99999; }
.tba-position-inline       { position: relative; max-width: 440px; }

.tba-launcher {
	width: 56px;
	height: 56px;
	padding: 0;
	border: none;
	border-radius: 50% !important;
	overflow: hidden;
	background: var(--tba-launcher-bg, linear-gradient(145deg, #1a2550 0%, #243066 100%));
	color: #ffffff;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(15, 29, 64, .28);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.tba-launcher:hover {
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 12px 28px rgba(15, 29, 64, .34);
}
.tba-launcher:active { transform: translateY(0) scale(0.98); }
.tba-launcher.tba-launcher-hidden {
	opacity: 0;
	pointer-events: none;
	transform: scale(0.85);
}
.tba-launcher img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}
.tba-launcher-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: 50%;
}
.tba-launcher-icon svg {
	width: 28px;
	height: 28px;
	fill: currentColor;
}
.tba-launcher-sparkle svg {
	width: 26px;
	height: 26px;
}

/* --- Panel ----------------------------------------------------------- */
.tba-panel {
	display: none;
	flex-direction: column;
	width: min(440px, calc(100vw - 24px));
	height: min(82vh, 640px);
	max-height: min(82vh, 640px);
	background: var(--tba-surface);
	border: 1px solid var(--tba-border);
	border-radius: 18px;
	box-shadow: 0 20px 56px rgba(15, 29, 64, .16);
	overflow: hidden;
	position: absolute;
	bottom: 72px;
	right: 0;
}
.tba-panel > .tba-header,
.tba-panel > .tba-chat-log,
.tba-panel > .tba-quick-replies,
.tba-panel > .tba-consent,
.tba-panel > .tba-input-row {
	min-width: 0;
	max-width: 100%;
}
.tba-position-bottom-left .tba-panel { right: auto; left: 0; }
.tba-position-inline .tba-panel {
	position: static;
	display: flex;
	width: 100%;
	height: min(82vh, 640px);
	max-height: min(82vh, 640px);
}
.tba-panel.tba-open { display: flex; }

/* --- Header ---------------------------------------------------------- */
.tba-header {
	background: var(--tba-accent);
	color: var(--tba-surface);
	padding: 12px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex: 0 0 auto;
	min-height: 56px;
}
.tba-header-main {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1;
}
.tba-header-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
	border: 2px solid rgba(255, 255, 255, .25);
}
.tba-header-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 1px;
}
.tba-header-title {
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tba-header-status {
	font-size: 11px;
	opacity: .85;
	line-height: 1.2;
}
.tba-chatbot-root .tba-header-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	position: relative;
}

.tba-chatbot-root .tba-chat-close,
.tba-chatbot-root .tba-chat-restart {
	position: static;
	width: 32px;
	height: 32px;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: var(--tba-surface);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 32px;
	transition: background-color .15s ease, transform .15s ease, color .15s ease;
}
.tba-chatbot-root .tba-chat-close svg,
.tba-chatbot-root .tba-chat-restart svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
	display: block;
}
.tba-chatbot-root .tba-chat-close:hover,
.tba-chatbot-root .tba-chat-restart:hover {
	background: rgba(255, 255, 255, .22);
	transform: scale(1.05);
}
.tba-chatbot-root .tba-chat-close:active,
.tba-chatbot-root .tba-chat-restart:active {
	transform: scale(0.96);
}
.tba-chatbot-root .tba-chat-restart:hover svg {
	transform: rotate(-30deg);
	transition: transform .25s ease;
}

/* --- Messages -------------------------------------------------------- */
.tba-chat-log {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 14px 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: var(--tba-surface-alt);
}

.tba-chat-row {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.tba-chat-row-assistant {
	align-self: flex-start;
}
.tba-chat-row-user {
	justify-content: flex-end;
	flex-direction: row;
}
.tba-chat-row-cta {
	align-items: center;
}

.tba-chat-avatar {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	overflow: hidden;
	background: linear-gradient(145deg, #1a2550 0%, #243066 100%);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: flex-end;
	margin-bottom: 2px;
}
.tba-chat-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.tba-chat-avatar svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.tba-chat-bubble {
	position: relative;
	width: fit-content;
	max-width: min(360px, 88%);
	padding: 10px 14px;
	border-radius: 16px;
	word-break: break-word;
	font-size: 14px;
	line-height: 1.45;
	box-sizing: border-box;
	flex: 0 0 auto;
}
.tba-chat-bubble.tba-chat-user {
	width: fit-content;
	max-width: min(360px, 85%);
	min-width: min-content;
}
.tba-chat-bubble.tba-chat-user .tba-chat-text {
	white-space: pre-wrap;
	word-break: normal;
	overflow-wrap: break-word;
}
.tba-chat-bubble.tba-chat-assistant:has(.tba-inline-picker),
.tba-chat-bubble.tba-chat-assistant:has(.tba-inline-calendar),
.tba-chat-bubble.tba-chat-assistant:has(.tba-chat-booking-summary),
.tba-chat-bubble.tba-chat-assistant:has(.tba-inline-options),
.tba-chat-bubble.tba-chat-assistant:has(.tba-service-extras),
.tba-chat-bubble.tba-chat-assistant.tba-chat-bubble-has-ui {
	width: 100%;
	max-width: calc(100% - 40px);
	flex: 1 1 auto;
	word-break: normal;
	overflow-wrap: normal;
}
.tba-chat-text {
	white-space: pre-wrap;
}
.tba-chat-bubble.tba-chat-user {
	background: var(--tba-accent);
	color: var(--tba-surface);
	border-bottom-right-radius: 5px;
	box-shadow: 0 2px 10px rgba(15, 29, 64, .1);
}
.tba-chat-bubble.tba-chat-assistant {
	background: var(--tba-surface);
	border: 1px solid var(--tba-border);
	color: var(--tba-text);
	border-bottom-left-radius: 5px;
	box-shadow: 0 1px 4px rgba(15, 29, 64, .05);
}
.tba-chat-bubble.tba-chat-typing { opacity: .55; font-style: italic; }

/* --- Inline options -------------------------------------------------- */
.tba-inline-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	margin-top: 8px;
}
.tba-inline-option {
	background: var(--tba-surface-alt);
	border: 1px solid var(--tba-border);
	color: var(--tba-text);
	border-radius: 10px;
	padding: 9px 11px;
	font-size: 13px;
	font-family: inherit;
	font-weight: 500;
	line-height: 1.25;
	cursor: pointer;
	text-align: center;
	transition: background-color .12s ease, border-color .12s ease, color .12s ease, box-shadow .12s ease, transform .12s ease;
}
.tba-chatbot-root .tba-inline-option:hover,
.tba-chatbot-root .tba-inline-option:focus-visible {
	background-color: var(--tba-accent-hover);
	border-color: var(--tba-accent);
	color: var(--tba-text);
	box-shadow: 0 2px 6px rgba(15, 29, 64, .06);
	transform: translateY(-1px);
	outline: none;
}
.tba-chatbot-root .tba-inline-option:active {
	background-color: var(--tba-accent);
	border-color: var(--tba-accent);
	color: var(--tba-accent-on);
	transform: translateY(0);
}

.tba-chatbot-root .tba-chat-bubble .tba-inline-option {
	-webkit-appearance: none;
	appearance: none;
}

.tba-inline-picker {
	margin-top: 8px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.tba-inline-picker-input,
.tba-inline-picker-select {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	border: 1px solid var(--tba-border);
	border-radius: 10px;
	padding: 8px 10px;
	font-size: 13px;
	font-family: inherit;
	color: var(--tba-text);
	background: var(--tba-surface-alt);
}
.tba-inline-picker-input[type="date"] {
	-webkit-appearance: none;
	appearance: none;
}
.tba-inline-picker-input:focus,
.tba-inline-picker-select:focus {
	outline: none;
	border-color: var(--tba-accent);
	box-shadow: 0 0 0 3px var(--tba-accent-tint);
}

/* --- Inline availability calendar ------------------------------------ */
.tba-chatbot-root .tba-inline-calendar {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin-top: 8px;
}
.tba-chatbot-root .tba-calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}
.tba-chatbot-root .tba-calendar-title {
	font-size: 13px;
	font-weight: 600;
	color: var(--tba-text);
	text-align: center;
	flex: 1;
}
.tba-chatbot-root .tba-calendar-nav {
	width: 28px;
	height: 28px;
	min-width: 28px;
	min-height: 28px;
	border: none !important;
	border-radius: 50% !important;
	background: var(--tba-surface-alt) !important;
	color: var(--tba-text) !important;
	font-size: 18px;
	line-height: 1;
	padding: 0 !important;
	margin: 0;
	cursor: pointer;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-shadow: none !important;
	transition: background-color .12s ease, transform .12s ease;
	-webkit-appearance: none;
	appearance: none;
}
.tba-chatbot-root .tba-calendar-nav:hover {
	background: var(--tba-accent-hover) !important;
	color: var(--tba-text) !important;
	transform: scale(1.04);
}
.tba-chatbot-root .tba-calendar-weekdays {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 3px;
	margin-bottom: 4px;
}
.tba-chatbot-root .tba-calendar-weekday {
	font-size: 10px;
	font-weight: 600;
	color: var(--tba-text-muted);
	text-align: center;
	white-space: nowrap;
}
.tba-chatbot-root .tba-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 3px;
	width: 100%;
}
.tba-chatbot-root .tba-calendar-day {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	height: 30px;
	min-height: 30px;
	padding: 0;
	margin: 0;
	border: 1px solid var(--tba-border);
	border-radius: 8px;
	background: var(--tba-surface);
	color: var(--tba-text);
	font-size: 12px;
	font-weight: 500;
	font-family: inherit;
	line-height: 1;
	white-space: nowrap;
	word-break: keep-all;
	overflow: hidden;
	cursor: pointer;
	box-sizing: border-box;
	transition: background-color .12s ease, border-color .12s ease, color .12s ease;
	user-select: none;
}
.tba-chatbot-root .tba-calendar-day:hover:not(.tba-calendar-day-disabled) {
	background: var(--tba-accent-hover);
	border-color: var(--tba-accent);
	color: var(--tba-text);
}
.tba-chatbot-root .tba-calendar-day:active:not(.tba-calendar-day-disabled) {
	background: var(--tba-accent);
	border-color: var(--tba-accent);
	color: var(--tba-accent-on);
}
.tba-chatbot-root .tba-calendar-day-disabled {
	opacity: .35;
	cursor: not-allowed;
	background: var(--tba-surface-alt);
	color: var(--tba-text-muted);
	pointer-events: none;
}
.tba-chatbot-root .tba-calendar-day-empty {
	display: block;
	height: 30px;
	min-height: 30px;
	border: none;
	background: transparent;
	cursor: default;
}

/* --- Booking confirmation summary ------------------------------------ */
.tba-chat-booking-summary {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin-top: 8px;
	border: 1px solid var(--tba-border);
	border-radius: 10px;
	overflow: hidden;
	background: var(--tba-surface-alt);
}
.tba-chat-booking-summary-row {
	display: grid;
	grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	padding: 8px 10px;
	border-bottom: 1px solid var(--tba-border);
	font-size: 12px;
	line-height: 1.35;
}
.tba-chat-booking-summary-row:last-child {
	border-bottom: none;
}
.tba-chat-booking-summary-label {
	color: var(--tba-text-muted);
	font-weight: 500;
}
.tba-chat-booking-summary-value {
	color: var(--tba-text);
	font-weight: 600;
	text-align: right;
	word-break: break-word;
}

/* --- Confirmation step actions (below summary) ----------------------- */
.tba-inline-options.tba-confirmation-actions {
	margin-top: 10px;
}

.tba-chatbot-root .tba-inline-option.tba-inline-option-confirm {
	background: var(--tba-success-bg);
	border-color: var(--tba-success-text);
	color: var(--tba-success-text);
	font-weight: 600;
}

.tba-chatbot-root .tba-inline-option.tba-inline-option-confirm:hover,
.tba-chatbot-root .tba-inline-option.tba-inline-option-confirm:focus-visible {
	background: var(--tba-success-text);
	border-color: var(--tba-success-text);
	color: #fff;
	box-shadow: 0 2px 8px rgba(47, 158, 90, .25);
}

.tba-chatbot-root .tba-inline-option.tba-inline-option-confirm:active {
	background: #268a4d;
	border-color: #268a4d;
	color: #fff;
}

.tba-chatbot-root .tba-inline-option.tba-inline-option-restart {
	background: #fff7ed;
	border-color: #f59e0b;
	color: #b45309;
	font-weight: 600;
}

.tba-chatbot-root .tba-inline-option.tba-inline-option-restart:hover,
.tba-chatbot-root .tba-inline-option.tba-inline-option-restart:focus-visible {
	background: #f59e0b;
	border-color: #f59e0b;
	color: #fff;
	box-shadow: 0 2px 8px rgba(245, 158, 11, .28);
}

.tba-chatbot-root .tba-inline-option.tba-inline-option-restart:active {
	background: #d97706;
	border-color: #d97706;
	color: #fff;
}

/* Legacy external quick-reply bar */
.tba-quick-replies {
	flex: 0 1 auto;
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 6px;
	padding: 8px 12px;
	max-height: 40vh;
	overflow-y: auto;
	border-top: 1px solid var(--tba-border);
	background: var(--tba-surface);
}
.tba-quick-replies:empty { display: none; padding: 0; border-top: none; }

.tba-quick-reply {
	background: var(--tba-surface);
	border: 1px solid var(--tba-accent);
	color: var(--tba-accent);
	border-radius: 999px;
	padding: 7px 12px;
	font-size: 12px;
	font-family: inherit;
	cursor: pointer;
	transition: background-color .12s ease, color .12s ease, border-color .12s ease, transform .12s ease;
	flex: 0 0 auto;
}
.tba-chatbot-root .tba-quick-reply:hover,
.tba-chatbot-root .tba-quick-reply:focus-visible {
	background-color: var(--tba-accent-hover);
	color: var(--tba-accent);
	border-color: var(--tba-accent);
	transform: translateY(-1px);
	outline: none;
}
.tba-chatbot-root .tba-quick-reply:active {
	background-color: var(--tba-accent);
	color: var(--tba-accent-on);
	border-color: var(--tba-accent);
}

.tba-quick-replies::-webkit-scrollbar,
.tba-chat-log::-webkit-scrollbar { width: 5px; }
.tba-quick-replies::-webkit-scrollbar-thumb,
.tba-chat-log::-webkit-scrollbar-thumb {
	background: var(--tba-border);
	border-radius: 999px;
}
.tba-quick-replies::-webkit-scrollbar-thumb:hover,
.tba-chat-log::-webkit-scrollbar-thumb:hover { background: var(--tba-accent); }

.tba-picker {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 8px 12px;
	border-top: 1px solid var(--tba-border);
}
.tba-picker:empty { display: none; padding: 0; border-top: none; }
.tba-picker-input,
.tba-picker-select {
	width: 100%;
	border: 1px solid var(--tba-border);
	border-radius: 10px;
	padding: 8px 10px;
	font-size: 13px;
	font-family: inherit;
	color: var(--tba-text);
	background: var(--tba-surface);
}
.tba-picker-input:focus,
.tba-picker-select:focus {
	outline: none;
	border-color: var(--tba-accent);
	box-shadow: 0 0 0 3px var(--tba-accent-tint);
}

.tba-consent {
	padding: 8px 12px;
	font-size: 12px;
	color: var(--tba-text-muted);
	flex: 0 0 auto;
	background: var(--tba-surface);
}
.tba-consent-accept {
	margin-top: 6px;
	background: var(--tba-accent);
	color: var(--tba-surface);
	border: none;
	border-radius: 8px;
	padding: 6px 12px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: filter .12s ease, transform .12s ease;
}
.tba-consent-accept:hover { filter: brightness(0.94); transform: translateY(-1px); }

/* --- Input row ------------------------------------------------------- */
.tba-input-row {
	display: flex;
	align-items: center;
	border-top: 1px solid var(--tba-border);
	padding: 10px 12px;
	padding-right: max(12px, env(safe-area-inset-right, 0px));
	gap: 10px;
	flex: 0 0 auto;
	background: var(--tba-surface);
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	box-sizing: border-box;
}
.tba-input {
	flex: 1 1 auto;
	border: 1px solid var(--tba-border);
	border-radius: 999px;
	padding: 10px 16px;
	font-size: 14px;
	font-family: inherit;
	color: var(--tba-text);
	background: var(--tba-surface-alt);
	min-width: 0;
	width: 0;
	box-sizing: border-box;
}
.tba-input:focus {
	outline: none;
	border-color: var(--tba-accent);
	box-shadow: 0 0 0 3px var(--tba-accent-tint);
	background: var(--tba-surface);
}
.tba-send {
	width: 40px;
	height: 40px;
	padding: 0;
	background: var(--tba-accent);
	color: var(--tba-surface);
	border: none;
	border-radius: 50%;
	font-family: inherit;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	box-sizing: border-box;
	transition: filter .12s ease, transform .12s ease, box-shadow .12s ease;
}
.tba-send svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}
.tba-send:hover {
	filter: brightness(0.94);
	transform: scale(1.04);
	box-shadow: 0 4px 12px rgba(15, 29, 64, .12);
}
.tba-send:active { transform: scale(0.96); }
.tba-send:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.tba-panel.tba-busy .tba-send { opacity: .65; pointer-events: none; }

.tba-cta-wrap { flex: 1 1 auto; min-width: 0; }
.tba-cta-button {
	display: inline-block;
	background: var(--tba-accent);
	color: var(--tba-surface);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	padding: 10px 18px;
	border-radius: 12px;
	transition: filter .12s ease, transform .12s ease, box-shadow .12s ease;
}
.tba-cta-button:hover {
	filter: brightness(0.94);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(15, 29, 64, .1);
}

.tba-panel.tba-booked .tba-input-row { opacity: .5; pointer-events: none; }
.tba-panel.tba-booked .tba-chat-row-assistant:has(+ .tba-chat-row-cta) .tba-chat-bubble.tba-chat-assistant,
.tba-panel.tba-booked .tba-chat-row-assistant:last-of-type:not(.tba-chat-row-cta) .tba-chat-bubble.tba-chat-assistant {
	background: var(--tba-success-bg);
	border-color: var(--tba-success-text);
	color: var(--tba-success-text);
}

/* --- Service extras -------------------------------------------------- */
.tba-service-extras {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 6px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.tba-service-extras-row label {
	font-size: 12px;
	font-weight: 600;
}
.tba-service-extras-qty {
	margin-left: 6px;
	padding: 4px 8px;
	border-radius: 8px;
	border: 1px solid var(--tba-border);
	font-size: 12px;
}
.tba-service-extras-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.tba-service-extras-item {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 6px;
	align-items: center;
	font-size: 12px;
}
.tba-subservice-qty {
	width: 52px;
	padding: 4px 6px;
	border-radius: 8px;
	border: 1px solid var(--tba-border);
	font-size: 12px;
}
.tba-service-extras-continue {
	align-self: flex-start;
	background: var(--tba-accent);
	color: var(--tba-surface);
	border: none;
	border-radius: 10px;
	padding: 7px 12px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: filter .12s ease, transform .12s ease;
}
.tba-service-extras-continue:hover {
	filter: brightness(0.94);
	transform: translateY(-1px);
}

@media (max-width: 480px) {
	.tba-position-bottom-right,
	.tba-position-bottom-left {
		left: 10px;
		right: 10px;
		width: auto;
	}
	.tba-panel {
		width: 100%;
		max-width: 100%;
		height: min(86vh, 620px);
		max-height: min(86vh, 620px);
		bottom: 68px;
		left: 0;
		right: 0;
		border-radius: 16px;
	}
	.tba-chat-bubble {
		max-width: min(320px, 90%);
	}
	.tba-chat-bubble.tba-chat-user {
		max-width: min(320px, 88%);
	}
	.tba-input-row {
		padding: 10px 12px;
		padding-right: max(12px, env(safe-area-inset-right, 0px));
		gap: 8px;
	}
	.tba-send:hover {
		transform: none;
		box-shadow: none;
	}
}
