/**
 * RS Gonzales Convert — widget styles.
 * RSG brand: Montserrat/DM Sans stack, green accent, dark header gradient. Scoped under
 * .rsgc-root so it never bleeds into the host theme. Colours come from CSS vars set inline
 * by the JS (per-site accent/branding).
 */

.rsgc-root, .rsgc-root * { box-sizing: border-box; }
.rsgc-root button { font-family: inherit; }
.rsgc-root {
	--rsgc-accent: #209D50;
	--rsgc-ink: #fff;
	--rsgc-header-bg: linear-gradient(135deg, #000 0%, #4A4A4A 100%);
	--rsgc-radius: 16px;
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 2147483000;
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.45;
}

/* Launcher --------------------------------------------------------------- */
.rsgc-launcher {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	cursor: pointer;
	padding: 12px 18px;
	border-radius: 999px;
	background: var(--rsgc-accent);
	color: var(--rsgc-ink);
	font-weight: 600;
	font-size: 15px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
	transition: transform .15s ease, box-shadow .15s ease;
}
.rsgc-launcher:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0, 0, 0, .28); }
.rsgc-launcher--hidden, .rsgc-launchwrap.rsgc-launcher--hidden { display: none !important; }

/* Face-bubble launcher (default) ---------------------------------------- */
.rsgc-launchwrap { display: flex; align-items: center; gap: 11px; position: relative; }
.rsgc-launchwrap--bubble { flex-direction: row; }
.rsgc-teaser {
	background: #fff; color: #121512; border-radius: 16px 16px 4px 16px;
	box-shadow: 0 10px 26px -12px rgba(0,0,0,.34); padding: 11px 15px;
	font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 13.5px;
	letter-spacing: -.005em; max-width: 210px; cursor: default;
}
.rsgc-teaser small {
	display: block; font-family: "Archivo", sans-serif; font-size: 8px; font-weight: 600;
	letter-spacing: .1em; text-transform: uppercase; color: var(--rsgc-accent); margin-bottom: 3px;
}
.rsgc-launcher--bubble {
	position: relative; width: 60px; height: 60px; padding: 0; border-radius: 50%;
	background: radial-gradient(120% 120% at 30% 20%, #8fd3ac, var(--rsgc-accent) 55%, #177A3C);
	box-shadow: 0 12px 28px -8px rgba(32,157,80,.6); flex: none; overflow: visible;
}
.rsgc-launcher--bubble .rsgc-launch-av { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; display: block; }
.rsgc-launcher--bubble .rsgc-launch-av.rsgc-avatar--mono {
	display: flex; align-items: center; justify-content: center; background: transparent;
	color: #fff; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 22px;
}
.rsgc-launch-ring { position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--rsgc-accent); opacity: .4; animation: rsgc-lp 2.6s infinite; }
.rsgc-launch-dot { position: absolute; right: 3px; bottom: 3px; width: 14px; height: 14px; border-radius: 50%; background: #2ec76a; border: 2.5px solid #fff; }
.rsgc-launch-nb { position: absolute; top: -5px; right: -5px; width: 20px; height: 20px; border-radius: 50%; background: #e5484d; color: #fff; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 11px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
@keyframes rsgc-lp { 0% { box-shadow: 0 0 0 0 rgba(32,157,80,.5); } 70% { box-shadow: 0 0 0 9px rgba(32,157,80,0); } 100% { box-shadow: 0 0 0 0 rgba(32,157,80,0); } }

/* Auto-nudge popup ------------------------------------------------------- */
.rsgc-nudge {
	position: absolute; right: 0; bottom: 74px; width: 290px;
	background: #fff; border-radius: 18px; box-shadow: 0 24px 56px -20px rgba(0,0,0,.42);
	padding: 18px 20px; animation: rsgc-nin .28s ease;
}
@keyframes rsgc-nin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rsgc-nudge-top { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.rsgc-nudge-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.rsgc-nudge-av.rsgc-avatar--mono { display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 120% at 30% 20%, #8fd3ac, var(--rsgc-accent) 55%, #177A3C); color: #fff; font-family: "Montserrat", sans-serif; font-weight: 700; }
.rsgc-nudge-top b { font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 14px; letter-spacing: -.01em; color: #121512; }
.rsgc-nudge-top small { display: block; color: #6c736e; font-size: 11.5px; }
.rsgc-nudge-x { margin-left: auto; align-self: flex-start; border: 0; background: none; font-size: 20px; line-height: 1; color: #9aa19c; cursor: pointer; }
.rsgc-nudge-title { font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; color: #121512; margin-bottom: 13px; }
.rsgc-nudge-row { display: flex; gap: 9px; }
.rsgc-nudge-no, .rsgc-nudge-yes {
	font-family: "Archivo", sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .09em;
	text-transform: uppercase; border-radius: 999px; padding: 10px 16px; cursor: pointer;
}
.rsgc-nudge-no { border: 1px solid #e3e8e4; background: #fff; color: #6c736e; }
.rsgc-nudge-yes { flex: 1; border: 0; background: var(--rsgc-accent); color: #fff; box-shadow: 0 8px 18px -8px rgba(32,157,80,.6); }
@media (max-width: 480px) { .rsgc-nudge { right: 0; width: min(290px, calc(100vw - 40px)); } .rsgc-teaser { display: none; } }

/* Panel ------------------------------------------------------------------ */
.rsgc-panel {
	width: 380px;
	max-width: calc(100vw - 32px);
	height: 560px;
	max-height: calc(100vh - 120px);
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--rsgc-radius);
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
	animation: rsgc-in .18s ease-out;
}
.rsgc-panel[hidden] { display: none; }
@keyframes rsgc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.rsgc-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	background: var(--rsgc-header-bg);
	color: #fff;
}
.rsgc-header-txt { flex: 1; display: flex; flex-direction: column; font-family: "Montserrat", sans-serif; }
.rsgc-header-txt strong { font-size: 15px; }
.rsgc-header-txt small { font-size: 12px; opacity: .75; }
.rsgc-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.rsgc-avatar--mono {
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--rsgc-accent); color: var(--rsgc-ink);
	font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 18px;
}
.rsgc-close { margin-left: auto; background: transparent; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; opacity: .8; }
.rsgc-close:hover { opacity: 1; }

/* Body / messages -------------------------------------------------------- */
.rsgc-body { flex: 1; overflow-y: auto; padding: 16px; background: #f6f7f8; display: flex; flex-direction: column; gap: 4px; }

/* Immersive video greeting (fills the head, greeting over a scrim) -------- */
.rsgc-vhero { position: relative; margin: -16px -16px 12px; height: 270px; overflow: hidden; background: radial-gradient(120% 90% at 60% 10%, #3a4640, #14100e); flex: none; }
.rsgc-vhero-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rsgc-vhero-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, transparent 30%, transparent 45%, rgba(10,12,10,.92) 100%); }
.rsgc-vhero-ctrls { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.rsgc-vhero-btn { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.42); color: #fff; font-size: 11px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.rsgc-vhero-who { position: absolute; left: 16px; bottom: 50px; z-index: 2; color: #fff; }
.rsgc-vhero-who b { display: block; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.rsgc-vhero-who span { font-family: "Archivo", sans-serif; font-size: 8px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #a9e9c3; }
.rsgc-vhero-greet { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; color: #fff; font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 13px; line-height: 1.35; }

.rsgc-msg { display: flex; margin: 4px 0; }
.rsgc-msg--user { justify-content: flex-end; }
.rsgc-bubble {
	max-width: 82%;
	padding: 10px 14px;
	border-radius: 14px;
	background: #fff;
	color: #1a1a1a;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
	word-wrap: break-word;
}
.rsgc-msg--user .rsgc-bubble { background: var(--rsgc-accent); color: var(--rsgc-ink); }

.rsgc-choices { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.rsgc-choice {
	display: flex; align-items: center; gap: 11px;
	text-align: left;
	padding: 12px 14px;
	border: 1px solid #e3e8e4;
	background: #fff;
	color: #121512;
	border-radius: 13px;
	font-family: "Montserrat", sans-serif; font-weight: 600;
	font-size: 13px; letter-spacing: -.005em;
	cursor: pointer;
	box-shadow: 0 4px 10px -7px rgba(0,0,0,.25);
	transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}
.rsgc-choice:hover { border-color: var(--rsgc-accent); transform: translateY(-1px); box-shadow: 0 8px 16px -10px rgba(32,157,80,.5); }
.rsgc-choice-r { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--rsgc-accent); flex: none; position: relative; }
.rsgc-choice-r::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: rgba(32,157,80,.10); }
.rsgc-choice-t { flex: 1; }
.rsgc-choice-ar { color: #9aa19c; font-size: 16px; line-height: 1; }
.rsgc-choice:hover .rsgc-choice-ar { color: var(--rsgc-accent); }

/* Typing indicator */
.rsgc-typing .rsgc-bubble { display: inline-flex; gap: 4px; }
.rsgc-typing span { width: 7px; height: 7px; border-radius: 50%; background: #b8bec4; animation: rsgc-blink 1.2s infinite both; }
.rsgc-typing span:nth-child(2) { animation-delay: .2s; }
.rsgc-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes rsgc-blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

/* Footer / input --------------------------------------------------------- */
.rsgc-footer { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid #e7e9ec; background: #fff; }
.rsgc-input {
	flex: 1; resize: none; border: 1px solid #d7dbe0; border-radius: 12px;
	padding: 10px 12px; font: inherit; max-height: 96px; outline: none;
}
.rsgc-input:focus { border-color: var(--rsgc-accent); }
.rsgc-send {
	flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 50%;
	background: var(--rsgc-accent); color: var(--rsgc-ink); cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
}
.rsgc-send:disabled { opacity: .5; cursor: default; }
.rsgc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Booking picker ---------------------------------------------------------- */
.rsgc-booking {
	margin-top: 10px;
	background: #fff;
	border: 1px solid #e2e6e2;
	border-radius: 14px;
	padding: 12px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.rsgc-bk-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.rsgc-bk-day {
	flex: 0 0 auto;
	border: 1px solid #d7dbe0;
	background: #fff;
	color: #3d423f;
	border-radius: 999px;
	padding: 7px 12px;
	font: inherit;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}
.rsgc-bk-day--on { background: var(--rsgc-accent); border-color: var(--rsgc-accent); color: var(--rsgc-ink); }
.rsgc-bk-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; max-height: 168px; overflow-y: auto; }
.rsgc-bk-slot {
	border: 1px solid #d7dbe0;
	background: #fff;
	color: #1a1a1a;
	border-radius: 10px;
	padding: 9px 4px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	font-variant-numeric: tabular-nums;
}
.rsgc-bk-slot:hover { border-color: var(--rsgc-accent); color: var(--rsgc-accent); }
.rsgc-bk-slot--on { background: var(--rsgc-accent); border-color: var(--rsgc-accent); color: var(--rsgc-ink); }
.rsgc-bk-confirm {
	border: 0;
	border-radius: 999px;
	background: var(--rsgc-accent);
	color: var(--rsgc-ink);
	padding: 11px 16px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}
.rsgc-bk-confirm:disabled { opacity: .6; cursor: default; }

@media (max-width: 480px) {
	.rsgc-root { right: 12px; bottom: 12px; }
	.rsgc-panel { width: calc(100vw - 24px); height: calc(100vh - 90px); }
}

@media (prefers-reduced-motion: reduce) {
	.rsgc-panel { animation: none; }
	.rsgc-launcher { transition: none; }
	.rsgc-typing span { animation: none; }
}

/* Verification code input */
.rsgc-verify{display:flex;gap:8px;align-items:center}
.rsgc-vc-input{flex:1;border:1.5px solid #dde3df;border-radius:10px;padding:10px 14px;font-size:18px;letter-spacing:.35em;text-align:center;font-family:inherit}
.rsgc-vc-input:focus{outline:none;border-color:var(--rsgc-accent)}
