/* RavenKing chat widget — Yosemite Max brand colors */
.ym-rk-root{
	position:fixed;
	right:1.1rem;
	bottom:5.5rem; /* raised to clear other bottom-right chat bubbles */
	z-index:99990;
	font-family:var(--wp--preset--font-family--system-serif, Georgia, "Times New Roman", serif);
	color:#2A2622;
	line-height:1.4;
}
.ym-rk-root *{box-sizing:border-box}
.ym-rk-toggle{
	display:flex;
	align-items:center;
	gap:.55rem;
	border:0;
	cursor:pointer;
	background:#2F4A38;
	color:#F3EDE0;
	padding:.45rem .7rem .45rem .45rem;
	border-radius:999px;
	box-shadow:0 8px 24px rgba(42,38,34,.22);
	font:inherit;
	font-size:.95rem;
	letter-spacing:.01em;
}
.ym-rk-toggle:hover,.ym-rk-toggle:focus-visible{
	background:#24392c;
	outline:2px solid #C65A2E;
	outline-offset:3px;
}
.ym-rk-toggle-icon{
	width:2.15rem;
	height:2.15rem;
	border-radius:50%;
	background:#C65A2E;
	color:#FFF8EC;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	flex:0 0 auto;
}
.ym-rk-toggle-icon svg{width:1.15rem;height:1.15rem;display:block}
.ym-rk-panel{
	position:absolute;
	right:0;
	bottom:3.4rem;
	width:min(22.5rem,calc(100vw - 1.5rem));
	max-height:min(32rem,70vh);
	display:flex;
	flex-direction:column;
	background:#F3EDE0;
	border:1px solid #d7cfc0;
	border-radius:16px;
	box-shadow:0 16px 40px rgba(42,38,34,.22);
	overflow:hidden;
}
.ym-rk-panel[hidden]{display:none !important}
.ym-rk-header{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:.5rem;
	background:#2F4A38;
	color:#F3EDE0;
	padding:.7rem .85rem;
}
.ym-rk-header h2{
	margin:0;
	font-size:1.05rem;
	font-weight:600;
	letter-spacing:.02em;
}
.ym-rk-close{
	border:0;
	background:transparent;
	color:#F3EDE0;
	cursor:pointer;
	width:2rem;
	height:2rem;
	border-radius:8px;
	font-size:1.25rem;
	line-height:1;
}
.ym-rk-close:hover,.ym-rk-close:focus-visible{
	background:rgba(243,237,224,.15);
	outline:2px solid #C65A2E;
	outline-offset:0;
}
.ym-rk-log{
	flex:1 1 auto;
	overflow-y:auto;
	padding:.85rem .9rem;
	display:flex;
	flex-direction:column;
	gap:.65rem;
	min-height:10rem;
}
.ym-rk-msg{
	max-width:92%;
	padding:.55rem .7rem;
	border-radius:12px;
	white-space:pre-wrap;
	overflow-wrap:anywhere;
	font-size:.92rem;
}
.ym-rk-msg a{color:#7A2E14;text-underline-offset:2px}
.ym-rk-msg-assistant{background:#fff;border:1px solid #e4dccc;align-self:flex-start}
.ym-rk-msg-user{background:#2F4A38;color:#F3EDE0;align-self:flex-end}
.ym-rk-msg-user a{color:#F3EDE0}
.ym-rk-notice{
	margin:0;
	padding:0 .9rem .15rem;
	font-size:.72rem;
	line-height:1.35;
	color:#5E625E;
}
.ym-rk-form{
	display:flex;
	gap:.4rem;
	padding:.65rem .7rem .75rem;
	border-top:1px solid #e4dccc;
	background:#efe8d9;
}
.ym-rk-form label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.ym-rk-input{
	flex:1 1 auto;
	border:1px solid #cfc6b4;
	border-radius:10px;
	padding:.5rem .65rem;
	font:inherit;
	font-size:.92rem;
	background:#fff;
	color:#2A2622;
	min-width:0;
}
.ym-rk-input:focus-visible{
	outline:2px solid #C65A2E;
	outline-offset:1px;
	border-color:#C65A2E;
}
.ym-rk-send{
	border:0;
	border-radius:10px;
	background:#C65A2E;
	color:#FFF8EC;
	font:inherit;
	font-size:.88rem;
	font-weight:600;
	padding:.5rem .75rem;
	cursor:pointer;
	white-space:nowrap;
}
.ym-rk-send:hover,.ym-rk-send:focus-visible{
	background:#a84820;
	outline:2px solid #2F4A38;
	outline-offset:2px;
}
.ym-rk-send:disabled{opacity:.6;cursor:wait}
.ym-rk-status{font-size:.8rem;color:#5E625E;align-self:flex-start}

@media (max-width:781px){
	.ym-rk-root{
		right:.75rem;
		bottom:9rem; /* above sticky add-to-cart bar and other chat bubbles */
	}
	body.single-product .ym-rk-root{bottom:9.5rem}
	.ym-rk-panel{
		bottom:3.5rem;
		max-height:min(28rem,62vh);
	}
	.ym-rk-toggle-label{max-width:7.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media (prefers-reduced-motion:reduce){
	.ym-rk-toggle,.ym-rk-panel{transition:none}
}


/* Christmas skin — active when PHP sets ym-rk-xmas (through Dec 26, 2026 PT) */
.ym-rk-root.ym-rk-xmas .ym-rk-header{
	position:relative;
	background:#7A1F1C;
	color:#F3EDE0;
	padding:.7rem .85rem 1.05rem;
}
.ym-rk-root.ym-rk-xmas .ym-rk-header h2{
	padding-left:1.55rem;
}
.ym-rk-root.ym-rk-xmas .ym-rk-close{color:#F3EDE0}
.ym-rk-root.ym-rk-xmas .ym-rk-toggle{
	background:#2F4A38;
	position:relative;
}
.ym-rk-root.ym-rk-xmas .ym-rk-toggle:hover,
.ym-rk-root.ym-rk-xmas .ym-rk-toggle:focus-visible{
	background:#24392c;
	outline-color:#C65A2E;
}
.ym-rk-root.ym-rk-xmas .ym-rk-panel{
	border-color:#c9b49a;
	box-shadow:0 16px 40px rgba(122,31,28,.22);
	background:#F3EDE0;
}

/* Santa hat perched on the launcher icon */
.ym-rk-hat{
	display:none;
}
.ym-rk-root.ym-rk-xmas .ym-rk-hat{
	display:block;
	position:absolute;
	left:50%;
	top:-.55rem;
	width:1.15rem;
	height:1rem;
	transform:translateX(-35%) rotate(-18deg);
	pointer-events:none;
	z-index:2;
}
.ym-rk-root.ym-rk-xmas .ym-rk-toggle-icon{position:relative}
.ym-rk-root.ym-rk-xmas .ym-rk-header-hat{
	display:block;
	position:absolute;
	left:.7rem;
	top:.35rem;
	width:1.15rem;
	height:1rem;
	transform:rotate(-16deg);
	pointer-events:none;
}

/* Holly berry accent next to the title */
.ym-rk-root.ym-rk-xmas .ym-rk-holly{
	display:inline-block;
	width:.7rem;
	height:.7rem;
	margin-left:.35rem;
	vertical-align:middle;
}

/* Twinkling lights along the header bottom */
.ym-rk-xmas-lights{
	display:none;
}
.ym-rk-root.ym-rk-xmas .ym-rk-xmas-lights{
	display:flex;
	justify-content:space-around;
	align-items:center;
	position:absolute;
	left:0;
	right:0;
	bottom:0;
	height:10px;
	padding:0 .4rem;
	background:#2F4A38;
	pointer-events:none;
}
.ym-rk-root.ym-rk-xmas .ym-rk-xmas-lights span{
	width:7px;
	height:7px;
	border-radius:50%;
	background:#F3EDE0;
	box-shadow:0 0 6px currentColor;
	animation:ym-rk-twinkle 1.8s ease-in-out infinite;
}
.ym-rk-root.ym-rk-xmas .ym-rk-xmas-lights span:nth-child(5n+1){background:#C65A2E;color:#C65A2E;animation-delay:0s}
.ym-rk-root.ym-rk-xmas .ym-rk-xmas-lights span:nth-child(5n+2){background:#F3EDE0;color:#F3EDE0;animation-delay:.35s}
.ym-rk-root.ym-rk-xmas .ym-rk-xmas-lights span:nth-child(5n+3){background:#7CB07A;color:#7CB07A;animation-delay:.7s}
.ym-rk-root.ym-rk-xmas .ym-rk-xmas-lights span:nth-child(5n+4){background:#E8C56B;color:#E8C56B;animation-delay:1.05s}
.ym-rk-root.ym-rk-xmas .ym-rk-xmas-lights span:nth-child(5n+5){background:#F3EDE0;color:#F3EDE0;animation-delay:1.4s}
@keyframes ym-rk-twinkle{
	0%,100%{opacity:.45;transform:scale(.85)}
	50%{opacity:1;transform:scale(1.15)}
}

/* Soft snowfall inside the transcript area */
.ym-rk-xmas-snow{
	display:none;
}
.ym-rk-root.ym-rk-xmas .ym-rk-xmas-snow{
	display:block;
	position:absolute;
	inset:0;
	overflow:hidden;
	pointer-events:none;
	z-index:0;
}
.ym-rk-root.ym-rk-xmas .ym-rk-log{position:relative}
.ym-rk-root.ym-rk-xmas .ym-rk-log > :not(.ym-rk-xmas-snow){position:relative;z-index:1}
.ym-rk-root.ym-rk-xmas .ym-rk-xmas-snow i{
	position:absolute;
	top:-8px;
	width:5px;
	height:5px;
	border-radius:50%;
	background:rgba(255,255,255,.9);
	box-shadow:0 0 4px rgba(255,255,255,.6);
	animation:ym-rk-snow 9s linear infinite;
	opacity:.75;
}
.ym-rk-root.ym-rk-xmas .ym-rk-xmas-snow i:nth-child(1){left:8%;animation-duration:8.5s;animation-delay:-1s;width:4px;height:4px}
.ym-rk-root.ym-rk-xmas .ym-rk-xmas-snow i:nth-child(2){left:22%;animation-duration:11s;animation-delay:-3s;width:6px;height:6px}
.ym-rk-root.ym-rk-xmas .ym-rk-xmas-snow i:nth-child(3){left:37%;animation-duration:9.5s;animation-delay:-5s}
.ym-rk-root.ym-rk-xmas .ym-rk-xmas-snow i:nth-child(4){left:51%;animation-duration:7.8s;animation-delay:-2.2s;width:4px;height:4px}
.ym-rk-root.ym-rk-xmas .ym-rk-xmas-snow i:nth-child(5){left:64%;animation-duration:10.4s;animation-delay:-6s;width:6px;height:6px}
.ym-rk-root.ym-rk-xmas .ym-rk-xmas-snow i:nth-child(6){left:78%;animation-duration:8.2s;animation-delay:-4s}
.ym-rk-root.ym-rk-xmas .ym-rk-xmas-snow i:nth-child(7){left:91%;animation-duration:12s;animation-delay:-7s;width:4px;height:4px}
.ym-rk-root.ym-rk-xmas .ym-rk-xmas-snow i:nth-child(8){left:14%;animation-duration:9.8s;animation-delay:-8s}
@keyframes ym-rk-snow{
	0%{transform:translate3d(0,-8px,0);opacity:0}
	10%{opacity:.8}
	100%{transform:translate3d(12px,18rem,0);opacity:0}
}

@media (prefers-reduced-motion:reduce){
	.ym-rk-root.ym-rk-xmas .ym-rk-xmas-lights span,
	.ym-rk-root.ym-rk-xmas .ym-rk-xmas-snow i{
		animation:none !important;
	}
	.ym-rk-root.ym-rk-xmas .ym-rk-xmas-lights span{opacity:.9;transform:none}
	.ym-rk-root.ym-rk-xmas .ym-rk-xmas-snow i{
		top:auto;
		bottom:20%;
		opacity:.35;
		transform:none;
	}
}

/* Phones: compact round launcher tucked into the corner so it doesn't cover
   product titles, "Select options" buttons or footer links. Desktop unchanged. */
@media (max-width:600px){
	.ym-rk-root,
	body.single-product .ym-rk-root{
		right:.6rem;
		bottom:calc(.75rem + env(safe-area-inset-bottom, 0px));
	}
	.ym-rk-toggle{
		padding:.2rem;
		gap:0;
		width:2.75rem;
		height:2.75rem;
		justify-content:center;
		box-shadow:0 4px 14px rgba(42,38,34,.25);
	}
	.ym-rk-toggle-icon{width:2.35rem;height:2.35rem}
	.ym-rk-toggle-label{
		position:absolute;
		width:1px;
		height:1px;
		overflow:hidden;
		clip:rect(0 0 0 0);
		white-space:nowrap;
	}
	.ym-rk-panel{bottom:3.4rem}
	body:has(.ym-rk-root){padding-bottom:4.25rem}
}
