/**
 * Rustic AI Gift Concierge - front end.
 *
 * Everything is scoped under #ragc-root and resets the handful of properties
 * themes most often bleed onto arbitrary markup (margins, line-height, list
 * styling, button chrome), so the widget looks the same on any theme while
 * still reading its colours and fonts from the site's own palette.
 */

#ragc-root,
#ragc-root *,
#ragc-root *::before,
#ragc-root *::after {
	box-sizing: border-box;
}

#ragc-root {
	font-family: var(--ragc-font-body);
	color: var(--ragc-ink);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

#ragc-root[hidden] {
	display: none;
}

#ragc-root p,
#ragc-root h1,
#ragc-root h2,
#ragc-root h3,
#ragc-root ul,
#ragc-root li {
	margin: 0;
	padding: 0;
	list-style: none;
}

#ragc-root button {
	font: inherit;
	color: inherit;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	text-transform: none;
	letter-spacing: normal;
	-webkit-appearance: none;
	appearance: none;
}

#ragc-root .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
	border: 0;
}

/* Honeypot: off-screen, never focusable by a real guest. */
#ragc-root .ragc-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

/* ------------------------------------------------------------------ *
 * Launcher bubble
 * ------------------------------------------------------------------ */

#ragc-root .ragc-bubble {
	position: fixed;
	bottom: var(--ragc-y);
	z-index: var(--ragc-z);
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: calc(100vw - 32px);
	padding: 13px 20px 13px 16px;
	border-radius: 999px;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.01em;
	background: #377a00;
	box-shadow:
		0 8px 24px -4px rgba(55, 122, 0, 0.45),
		0 2px 6px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, background-color 0.18s ease;
}

#ragc-root.ragc--left .ragc-bubble {
	left: var(--ragc-x);
}

#ragc-root.ragc--right .ragc-bubble {
	right: var(--ragc-x);
}

#ragc-root .ragc-bubble:hover,
#ragc-root .ragc-bubble:focus-visible {
	background: #2d6400;
	transform: translateY(-2px);
	box-shadow:
		0 12px 30px -6px rgba(55, 122, 0, 0.55),
		0 3px 8px rgba(0, 0, 0, 0.16);
}

#ragc-root .ragc-bubble:focus-visible {
	outline: 3px solid var(--ragc-gold);
	outline-offset: 3px;
}

#ragc-root .ragc-bubble__icon {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	flex: 0 0 auto;
}

#ragc-root .ragc-bubble__icon svg {
	width: 22px;
	height: 22px;
	display: block;
}

#ragc-root .ragc-bubble__text {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* The attention ring: runs for a configurable number of seconds, then rests. */
#ragc-root .ragc-bubble__ring {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	pointer-events: none;
	opacity: 0;
}

#ragc-root .ragc-bubble.is-highlight {
	animation: ragc-nudge var(--ragc-hl-dur) ease-in-out;
}

#ragc-root .ragc-bubble.is-highlight .ragc-bubble__ring {
	animation: ragc-ring var(--ragc-hl-dur) ease-out;
}

@keyframes ragc-ring  {
	0%  {
		opacity: 0.9;
		box-shadow: 0 0 0 0 rgba(201, 153, 9, 0.55);
	}
	70%  {
		opacity: 0.35;
		box-shadow: 0 0 0 18px rgba(201, 153, 9, 0);
	}
	100%  {
		opacity: 0;
		box-shadow: 0 0 0 0 rgba(201, 153, 9, 0);
	}
}

@keyframes ragc-nudge  {
	0%,
	100%  {
		transform: translateY(0) rotate(0deg);
	}
	8%  {
		transform: translateY(-6px) rotate(-2.5deg);
	}
	16%  {
		transform: translateY(0) rotate(2deg);
	}
	24%  {
		transform: translateY(-3px) rotate(-1deg);
	}
	32%  {
		transform: translateY(0) rotate(0deg);
	}
}

/* ------------------------------------------------------------------ *
 * Teaser speech bubble
 * ------------------------------------------------------------------ */

#ragc-root .ragc-teaser {
	position: fixed;
	bottom: calc(var(--ragc-y) + 66px);
	z-index: var(--ragc-z);
	display: flex;
	align-items: flex-start;
	gap: 10px;
	max-width: min(268px, calc(100vw - 40px));
	padding: 12px 14px;
	border: 1px solid var(--ragc-border);
	border-radius: 14px;
	background: var(--ragc-surface);
	box-shadow: 0 12px 28px -12px rgba(1, 33, 4, 0.35);
	animation: ragc-rise 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}

#ragc-root.ragc--left .ragc-teaser {
	left: var(--ragc-x);
}

#ragc-root.ragc--right .ragc-teaser {
	right: var(--ragc-x);
}

#ragc-root .ragc-teaser[hidden] {
	display: none;
}

#ragc-root .ragc-teaser p {
	font-size: 14px;
	line-height: 1.45;
	color: var(--ragc-ink);
}

#ragc-root .ragc-teaser::after {
	content: "";
	position: absolute;
	bottom: -7px;
	width: 12px;
	height: 12px;
	background: var(--ragc-surface);
	border-right: 1px solid var(--ragc-border);
	border-bottom: 1px solid var(--ragc-border);
	transform: rotate(45deg);
}

#ragc-root.ragc--left .ragc-teaser::after {
	left: 26px;
}

#ragc-root.ragc--right .ragc-teaser::after {
	right: 26px;
}

#ragc-root .ragc-teaser__x {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	line-height: 18px;
	border-radius: 50%;
	font-size: 17px;
	color: var(--ragc-muted);
	background: transparent;
}

#ragc-root .ragc-teaser__x:hover {
	background: var(--ragc-bot);
	color: var(--ragc-ink);
}

@keyframes ragc-rise  {
	from  {
		opacity: 0;
		transform: translateY(10px);
	}
	to  {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ------------------------------------------------------------------ *
 * Panel
 * ------------------------------------------------------------------ */

#ragc-root .ragc-scrim {
	position: fixed;
	inset: 0;
	z-index: calc(var(--ragc-z) + 1);
	background: rgba(1, 21, 2, 0.45);
	backdrop-filter: blur(2px);
	opacity: 0;
	transition: opacity 0.25s ease;
}

#ragc-root .ragc-scrim[hidden] {
	display: none;
}

#ragc-root .ragc-scrim.is-in {
	opacity: 1;
}

#ragc-root .ragc-panel {
	position: fixed;
	bottom: calc(var(--ragc-y) + 74px);
	z-index: calc(var(--ragc-z) + 2);
	display: flex;
	flex-direction: column;
	width: min(var(--ragc-w), calc(100vw - 32px));
	height: min(var(--ragc-h), calc(100vh - var(--ragc-y) - 100px));
	overflow: hidden;
	border: 1px solid var(--ragc-border);
	border-radius: var(--ragc-radius);
	background: var(--ragc-canvas);
	box-shadow:
		0 32px 70px -24px rgba(1, 33, 4, 0.45),
		0 8px 20px -10px rgba(1, 33, 4, 0.25);
	opacity: 0;
	transform: translateY(14px) scale(0.98);
	transform-origin: bottom left;
	transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
}

#ragc-root.ragc--right .ragc-panel {
	transform-origin: bottom right;
}

#ragc-root .ragc-panel[hidden] {
	display: none;
}

#ragc-root .ragc-panel.is-in {
	opacity: 1;
	transform: translateY(0) scale(1);
}

#ragc-root.ragc--left .ragc-panel {
	left: var(--ragc-x);
}

#ragc-root.ragc--right .ragc-panel {
	right: var(--ragc-x);
}

#ragc-root.ragc--no-bubble .ragc-panel {
	bottom: var(--ragc-y);
	height: min(var(--ragc-h), calc(100vh - var(--ragc-y) - 24px));
}

/* ------------------------------------------------------------------ *
 * Panel header
 * ------------------------------------------------------------------ */

#ragc-root .ragc-head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px 12px 16px;
	color: #ffffff;
	background: #377a00;
	border-bottom: 2px solid #c99909;
	flex: 0 0 auto;
}

#ragc-root.ragc--head-gradient .ragc-head,
#ragc-root.ragc--head-solid .ragc-head {
	background: #377a00;
	border-bottom: 2px solid #c99909;
}

#ragc-root.ragc--head-plain .ragc-head {
	color: var(--ragc-ink);
	background: var(--ragc-surface);
	border-bottom: 1px solid var(--ragc-border);
}

#ragc-root .ragc-head__id {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1 1 auto;
}

#ragc-root .ragc-head__logo {
	width: 38px;
	height: 38px;
	flex: 0 0 auto;
	border-radius: 50%;
	object-fit: cover;
	background: #fff;
	padding: 2px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

#ragc-root .ragc-head__mark {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.28);
}

#ragc-root .ragc-head__mark svg {
	width: 20px;
	height: 20px;
}

#ragc-root .ragc-head__copy {
	min-width: 0;
}

#ragc-root .ragc-head__name {
	font-family: var(--ragc-font-head);
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
	margin-bottom: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#ragc-root .ragc-head__sub {
	font-size: 12px;
	line-height: 1.25;
	opacity: 0.88;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#ragc-root .ragc-head__tools {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
}

#ragc-root .ragc-icon-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 32px !important;
	min-width: 32px !important;
	max-width: 32px !important;
	height: 32px !important;
	min-height: 32px !important;
	max-height: 32px !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 50% !important;
	color: #ffffff !important;
	background: rgba(255, 255, 255, 0.16) !important;
	border: 1px solid rgba(255, 255, 255, 0.28) !important;
	opacity: 1 !important;
	box-shadow: none !important;
	cursor: pointer !important;
	transition: background-color 0.18s ease, transform 0.18s ease, border-color 0.18s ease !important;
}

#ragc-root .ragc-icon-btn svg {
	width: 16px !important;
	height: 16px !important;
	stroke: currentColor !important;
	fill: none !important;
	display: block !important;
	margin: 0 !important;
}

#ragc-root .ragc-icon-btn:hover {
	background: rgba(255, 255, 255, 0.3) !important;
	border-color: rgba(255, 255, 255, 0.45) !important;
	transform: translateY(-1px) !important;
}

#ragc-root.ragc--head-plain .ragc-icon-btn {
	color: var(--ragc-ink);
	background: var(--ragc-canvas);
	border-color: var(--ragc-border);
}

#ragc-root.ragc--head-plain .ragc-icon-btn:hover {
	background: var(--ragc-bot);
}

#ragc-root .ragc-icon-btn:focus-visible {
	outline: 2px solid var(--ragc-gold);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ *
 * Conversation area
 * ------------------------------------------------------------------ */

#ragc-root .ragc-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 18px 16px 8px;
	scrollbar-width: thin;
	scrollbar-color: var(--ragc-border) transparent;
}

#ragc-root.ragc--texture .ragc-body {
	background-color: var(--ragc-canvas);
}

#ragc-root .ragc-body:focus {
	outline: none;
}

#ragc-root .ragc-body::-webkit-scrollbar {
	width: 7px;
}

#ragc-root .ragc-body::-webkit-scrollbar-thumb {
	background: var(--ragc-border);
	border-radius: 7px;
}

#ragc-root .ragc-turn {
	animation: ragc-in 0.35s ease both;
}

@keyframes ragc-in  {
	from  {
		opacity: 0;
		transform: translateY(8px);
	}
	to  {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ---- Intro ---- */

#ragc-root .ragc-intro {
	margin-bottom: 18px;
	text-align: center;
	padding: 4px 6px 0;
}

#ragc-root .ragc-intro__title {
	font-family: var(--ragc-font-head);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ragc-ink);
	margin-bottom: 7px;
}

#ragc-root .ragc-intro__text {
	font-size: 14px;
	line-height: 1.6;
	color: var(--ragc-muted);
}

#ragc-root .ragc-intro__rule {
	width: 48px;
	height: 2px;
	margin: 14px auto 0;
	border-radius: 2px;
	background: var(--ragc-gold);
}

/* ---- Messages ---- */

#ragc-root .ragc-msg {
	display: flex;
	margin-bottom: 12px;
}

#ragc-root .ragc-msg--user {
	justify-content: flex-end;
}

#ragc-root .ragc-msg__b {
	max-width: 86%;
	padding: 11px 15px;
	font-size: 14.5px;
	line-height: 1.6;
	border-radius: 16px;
	white-space: pre-wrap;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

#ragc-root .ragc-msg--bot .ragc-msg__b {
	color: var(--ragc-ink);
	background: var(--ragc-bot);
	border: 1px solid var(--ragc-border);
	border-bottom-left-radius: 5px;
}

#ragc-root .ragc-msg--user .ragc-msg__b {
	color: #fff;
	background: var(--ragc-user);
	border-bottom-right-radius: 5px;
}

/* ---- Typing indicator ---- */

#ragc-root .ragc-typing {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 13px 16px;
	border: 1px solid var(--ragc-border);
	border-radius: 16px;
	border-bottom-left-radius: 5px;
	background: var(--ragc-bot);
}

#ragc-root .ragc-typing i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ragc-primary);
	opacity: 0.45;
	animation: ragc-dot 1.25s infinite ease-in-out;
}

#ragc-root .ragc-typing i:nth-child(2) {
	animation-delay: 0.18s;
}

#ragc-root .ragc-typing i:nth-child(3) {
	animation-delay: 0.36s;
}

@keyframes ragc-dot  {
	0%,
	60%,
	100%  {
		opacity: 0.35;
		transform: translateY(0);
	}
	30%  {
		opacity: 1;
		transform: translateY(-4px);
	}
}

/* ---- Chip picker ---- */

#ragc-root .ragc-chipset {
	margin-bottom: 18px;
}

#ragc-root .ragc-chipset__label {
	display: block;
	margin-bottom: 10px;
	font-family: var(--ragc-font-head);
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #1e3d09;
}

#ragc-root .ragc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

#ragc-root .ragc-chip {
	padding: 8px 15px;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.35;
	color: #222e1e;
	border: 1.5px solid #d2dcc6;
	border-radius: 999px;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	transition: transform 0.18s cubic-bezier(0.34, 1.3, 0.64, 1), border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

#ragc-root .ragc-chip:hover {
	transform: translateY(-1px);
	border-color: #377a00;
	background: #f4f8ee;
	color: #15240f;
	box-shadow: 0 3px 8px -2px rgba(55, 122, 0, 0.2);
}

#ragc-root .ragc-chip:focus-visible {
	outline: 2px solid var(--ragc-primary);
	outline-offset: 2px;
}

#ragc-root .ragc-chip[aria-pressed="true"] {
	color: #ffffff;
	background: #377a00;
	border-color: #377a00;
	font-weight: 600;
	box-shadow: 0 3px 10px -2px rgba(55, 122, 0, 0.4);
	transform: translateY(-1px);
}

#ragc-root .ragc-go {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin: 6px 0 12px;
	padding: 13px 22px;
	color: #ffffff;
	font-family: var(--ragc-font-head);
	font-size: 15.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
	border-radius: 999px;
	background: #377a00;
	box-shadow: 0 6px 18px -4px rgba(55, 122, 0, 0.45);
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

#ragc-root .ragc-go:hover:not(:disabled) {
	background: #2d6400;
	transform: translateY(-1px);
	box-shadow: 0 10px 22px -4px rgba(55, 122, 0, 0.55);
}

#ragc-root .ragc-go:disabled {
	background: #9ab38b;
	opacity: 0.6;
	cursor: not-allowed;
	box-shadow: none;
}

#ragc-root .ragc-go svg {
	width: 17px;
	height: 17px;
}

/* ---- Gift cards ---- */

#ragc-root .ragc-cards {
	display: flex;
	flex-direction: column;
	gap: 11px;
	margin: 4px 0 16px;
}

#ragc-root .ragc-card {
	position: relative;
	padding: 15px 16px;
	border: 1px solid var(--ragc-border);
	border-radius: 14px;
	background: var(--ragc-surface);
	box-shadow: 0 2px 10px -6px rgba(1, 33, 4, 0.2);
}

#ragc-root .ragc-card__top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 5px;
}

#ragc-root .ragc-card__title {
	font-family: var(--ragc-font-head);
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ragc-ink);
}

#ragc-root .ragc-card__price {
	font-family: var(--ragc-font-head);
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ragc-primary);
	white-space: nowrap;
	flex: 0 0 auto;
}

#ragc-root .ragc-card__desc {
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--ragc-ink);
	margin-bottom: 7px;
}

#ragc-root .ragc-card__why {
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--ragc-muted);
	font-style: italic;
}

#ragc-root .ragc-card__tag {
	display: inline-block;
	margin-top: 9px;
	padding: 3px 9px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ragc-primary);
	background: var(--ragc-bot);
	border-radius: 999px;
}

/* ---- The pinned dining recommendation ---- */

#ragc-root .ragc-card--pin {
	position: relative;
	overflow: hidden;
	color: #ffffff;
	border: 1px solid #285608;
	border-radius: 14px;
	background: #1e4504;
	box-shadow: 0 10px 25px -8px rgba(30, 69, 4, 0.45);
}

#ragc-root .ragc-card--pin > * {
	position: relative;
}

#ragc-root .ragc-card--pin .ragc-card__title {
	color: #fff;
	font-size: 17px;
}

#ragc-root .ragc-card--pin .ragc-card__desc {
	color: rgba(255, 255, 255, 0.9);
}

#ragc-root .ragc-card--pin .ragc-card__price {
	color: #f0ca52;
}

#ragc-root .ragc-pin__badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
	margin-bottom: 9px;
	padding: 4px 11px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #ffffff;
	background: #c99909;
	border-radius: 999px;
}

#ragc-root .ragc-pin__badge svg {
	width: 12px;
	height: 12px;
	flex: 0 0 auto;
}

/* The pinned card carries a longer title, so it stacks rather than
   fighting the price line for the same row. */
#ragc-root .ragc-card--pin .ragc-card__top {
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	margin-bottom: 8px;
}

#ragc-root .ragc-pin__img {
	display: block;
	width: 100%;
	height: 128px;
	margin-bottom: 12px;
	object-fit: cover;
	border-radius: 10px;
}

#ragc-root .ragc-pin__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

#ragc-root .ragc-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 11px 17px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

#ragc-root .ragc-btn:hover {
	transform: translateY(-1px);
	text-decoration: none;
}

#ragc-root .ragc-btn--gold {
	color: #ffffff;
	background: #c99909;
	box-shadow: 0 4px 14px -3px rgba(201, 153, 9, 0.55);
}

#ragc-root .ragc-btn--gold:hover {
	color: #ffffff;
	background: #b58805;
	box-shadow: 0 6px 18px -3px rgba(201, 153, 9, 0.7);
}

#ragc-root .ragc-btn--ghost {
	color: #fff;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.35);
}

#ragc-root .ragc-btn--ghost:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.24);
}

#ragc-root .ragc-btn svg {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
}

/* ---- Follow-up suggestions & notices ---- */

#ragc-root .ragc-followups {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: -4px 0 16px;
}

#ragc-root .ragc-followup {
	padding: 7px 13px;
	font-size: 13px;
	color: var(--ragc-primary-dark);
	background: var(--ragc-surface);
	border: 1px dashed var(--ragc-accent);
	border-radius: 999px;
	transition: background-color 0.16s ease, color 0.16s ease;
}

#ragc-root .ragc-followup:hover {
	color: #fff;
	background: var(--ragc-accent);
}

#ragc-root .ragc-note {
	margin: 0 0 14px;
	padding: 11px 14px;
	font-size: 13.5px;
	line-height: 1.5;
	color: #7a4b12;
	background: #fdf4e3;
	border: 1px solid #f0dcae;
	border-radius: 12px;
}

/* ------------------------------------------------------------------ *
 * Composer
 * ------------------------------------------------------------------ */

#ragc-root .ragc-compose {
	position: relative;
	display: flex;
	align-items: flex-end;
	gap: 8px;
	flex: 0 0 auto;
	padding: 10px 14px;
	background: var(--ragc-surface);
	border-top: 1px solid var(--ragc-border);
}

#ragc-root .ragc-input {
	flex: 1 1 auto;
	max-height: 116px;
	min-height: 42px;
	padding: 10px 16px;
	font-family: var(--ragc-font-body);
	font-size: 14.5px;
	line-height: 1.45;
	color: var(--ragc-ink);
	background: var(--ragc-canvas);
	border: 1.5px solid var(--ragc-border);
	border-radius: 22px;
	resize: none;
	overflow-y: auto;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

#ragc-root .ragc-input::placeholder {
	color: var(--ragc-muted);
	opacity: 0.75;
}

#ragc-root .ragc-input:focus {
	outline: none;
	background: #ffffff;
	border-color: var(--ragc-primary);
	box-shadow: 0 0 0 3px rgba(55, 122, 0, 0.14);
}

#ragc-root .ragc-send {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	min-width: 42px;
	max-width: 42px;
	height: 42px;
	min-height: 42px;
	max-height: 42px;
	flex: 0 0 42px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	color: #ffffff;
	background: #377a00;
	box-shadow: 0 4px 14px -4px rgba(55, 122, 0, 0.55);
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

#ragc-root .ragc-send svg {
	width: 18px;
	height: 18px;
	margin-left: -2px;
	stroke: currentColor;
	fill: none;
	display: block;
}

#ragc-root .ragc-send:hover:not(:disabled) {
	background: #2d6400;
	transform: scale(1.05);
	box-shadow: 0 6px 18px -4px rgba(55, 122, 0, 0.65);
}

#ragc-root .ragc-send:disabled {
	background: #b3c5a8;
	opacity: 0.6;
	cursor: not-allowed;
	box-shadow: none;
}

#ragc-root .ragc-send:focus-visible {
	outline: 2px solid var(--ragc-gold);
	outline-offset: 2px;
}

#ragc-root .ragc-fine {
	flex: 0 0 auto;
	padding: 0 16px 11px;
	font-size: 11px;
	line-height: 1.45;
	text-align: center;
	color: var(--ragc-muted);
	background: var(--ragc-surface);
	opacity: 0.85;
}

/* ------------------------------------------------------------------ *
 * Mobile: full screen sheet
 * ------------------------------------------------------------------ */

@media (max-width: 767px)  {
	#ragc-root .ragc-bubble {
		padding: 12px 17px 12px 14px;
		font-size: 14px;
	}

	#ragc-root.ragc--mobile-full .ragc-panel {
		inset: 0;
		left: 0;
		right: 0;
		width: 100%;
		max-width: none;
		height: 100%;
		height: 100dvh;
		max-height: none;
		border: 0;
		border-radius: 0;
		transform: translateY(100%);
		transition: transform 0.32s cubic-bezier(0.22, 0.9, 0.28, 1), opacity 0.2s ease;
	}

	#ragc-root.ragc--mobile-full .ragc-panel.is-in {
		transform: translateY(0);
	}

	#ragc-root.ragc--mobile-full .ragc-head {
		padding-top: max(12px, env(safe-area-inset-top));
	}

	#ragc-root.ragc--mobile-full .ragc-icon-btn {
		width: 34px;
		height: 34px;
	}

	#ragc-root.ragc--mobile-full .ragc-fine {
		padding-bottom: max(11px, env(safe-area-inset-bottom));
	}

	#ragc-root .ragc-msg__b {
		max-width: 90%;
	}

	/* iOS zooms any input under 16px on focus. */
	#ragc-root .ragc-input {
		font-size: 16px;
	}
}

/* Body scroll lock while the sheet is open. */
html.ragc-locked,
body.ragc-locked {
	overflow: hidden !important;
	touch-action: none;
}

/* ------------------------------------------------------------------ *
 * Accessibility preferences
 * ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce)  {
	#ragc-root *,
	#ragc-root *::before,
	#ragc-root *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	#ragc-root .ragc-panel {
		transform: none;
	}
}

@media (prefers-contrast: more)  {
	#ragc-root .ragc-card,
	#ragc-root .ragc-chip,
	#ragc-root .ragc-panel {
		border-color: var(--ragc-ink);
	}
}
