/**
 * Bunn Ty Co — homepage redesign (matches 2026 desktop mockup)
 * Header/footer shell: target markup added via Genesis Simple Hooks.
 * Page body: use block pattern classes in the static front page.
 */

/* -------------------------------------------------------------------------
   Design tokens
------------------------------------------------------------------------- */
:root {
	--bunn-navy: #061f42;
	--bunn-navy-deep: #041428;
	--bunn-crimson: #b01020;
	--bunn-crimson-dark: #8f0d1a;
	--bunn-white: #ffffff;
	--bunn-grey-bg: #f2f3f5;
	--bunn-grey-col: #e4e8ee;
	--bunn-blue-grey: #d8dfe8;
	--bunn-text: #1a1a1a;
	--bunn-text-muted: #4a4a4a;
	--bunn-nav: var(--bunn-navy);
	--bunn-font-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--bunn-font-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--bunn-max: 1200px;
	--bunn-header-max: 1280px;
	--bunn-hero-gradient: linear-gradient(180deg, #000098 0%, #0505a4 52%, #0b0bb2 100%);
}

/* -------------------------------------------------------------------------
   Base / Genesis layout
------------------------------------------------------------------------- */
html {
	box-sizing: border-box;
	overflow-x: hidden;
}
*,
*::before,
*::after {
	box-sizing: inherit;
}

body {
	font-family: var(--bunn-font-sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--bunn-text);
	background: var(--bunn-white);
}

/* WordPress / Genesis utility — used by slider, chatbot, etc. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Outer shell must span the viewport (some stacks cap width on #wrap / .site-container). */
.site-container,
#wrap {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	box-sizing: border-box;
}

.site-container {
	background: var(--bunn-white);
}

/* Remove legacy gradient band from old theme */
#wrap {
	background: var(--bunn-white) !important;
}

.site-inner {
	padding-top: 0;
	padding-bottom: 0;
	max-width: 100%;
	display: flow-root;
}

/* Block editor / theme margins on the last block stack above the footer */
.site-inner .entry-content > *:last-child {
	margin-bottom: 0 !important;
}

.site-inner .content-sidebar-wrap,
.site-inner .content {
	max-width: 100%;
	width: 100%;
}

.content-sidebar-wrap {
	padding-left: 0;
	padding-right: 0;
}

.entry {
	padding: 0;
}

/* Full-width content pages */
.full-width-content .content {
	width: 100%;
	float: none;
}

/* -------------------------------------------------------------------------
   Genesis Simple Hooks — announcement bar (genesis_before_header)
------------------------------------------------------------------------- */
.bunn-announcement-bar {
	background: var(--bunn-navy);
	color: var(--bunn-white);
	font-size: 13px;
	letter-spacing: 0.02em;
	line-height: 1.35;
	width: 100%;
	box-sizing: border-box;
	padding-block: 10px;
	padding-inline: 0;
	/* Centers inner strip if anything makes the bar taller than its content */
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
}

/* Genesis .wrap clearfix uses ::before/::after display:table — breaks flex alignment if both classes apply */
.bunn-announcement-bar.wrap::before,
.bunn-announcement-bar.wrap::after {
	content: none !important;
	display: none !important;
}

.bunn-announcement-bar__inner {
	flex: 1 1 auto;
	width: 100%;
	max-width: var(--bunn-header-max);
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 24px;
	row-gap: 12px;
}

.bunn-announcement-bar__inner > p,
.bunn-announcement-bar__inner p {
	margin-block: 0 !important;
	margin: 0 !important;
	padding: 0;
}

.bunn-announcement-bar__text {
	margin: 0;
	padding: 0;
	min-width: 0;
	max-width: 100%;
	justify-self: start;
	align-self: center;
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 600;
}

.bunn-announcement-bar__phone {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: nowrap;
	gap: 8px;
	font-weight: 600;
	white-space: nowrap;
	line-height: 1;
	justify-self: end;
	align-self: center;
}

.bunn-announcement-bar__phone a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	line-height: 1;
	color: inherit;
	text-decoration: none;
}

.bunn-announcement-bar__phone a:hover,
.bunn-announcement-bar__phone a:focus {
	text-decoration: underline;
}

.bunn-announcement-bar__phone .bunn-icon-phone {
	display: block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	opacity: 0.95;
}

/* -------------------------------------------------------------------------
   Genesis Simple Hooks — main header (genesis_header)
------------------------------------------------------------------------- */
.site-header,
.site-header .wrap,
header.site-header {
	background: #ffffff !important;
}

.site-header {
	border-bottom: 1px solid #e0e4ea;
	box-shadow: 0 1px 0 rgba(6, 31, 66, 0.06);
	/* Genesis default min-height: 160px + .wrap padding inflates the bar under custom hooks */
	min-height: 0 !important;
	/* html uses overflow-x:hidden — avoid horizontal grid blowout clipping the search column */
	overflow-x: visible;
	position: relative;
	z-index: 200;
}

.site-header .wrap {
	padding: 0 !important;
	min-height: 0 !important;
	overflow-x: visible;
	max-width: 100%;
	box-sizing: border-box;
}

/* Override legacy child theme #header rules when that markup exists */
#header {
	background: #ffffff !important;
}

.bunn-header-main {
	background: #ffffff;
	max-width: min(var(--bunn-header-max), 100%);
	width: 100%;
	margin: 0 auto;
	padding: 16px 24px 18px;
	display: grid;
	/* minmax(0,1fr) lets the nav column shrink so the search column stays inside the row */
	grid-template-columns: auto minmax(0, 1fr) minmax(0, auto);
	align-items: center;
	gap: 24px 32px;
	box-sizing: border-box;
	min-width: 0;
}

.bunn-header-main__brand {
	display: flex;
	align-items: center;
}

.bunn-header-main__brand a {
	display: block;
	line-height: 0;
}

.bunn-header-main__brand img {
	max-height: 72px;
	width: auto;
	height: auto;
}

.bunn-header-main__text-logo {
	display: inline-block;
	font-family: var(--bunn-font-serif);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 700;
	color: var(--bunn-crimson);
	letter-spacing: 0.06em;
	line-height: 1;
}

.bunn-footer__text-logo {
	display: inline-block;
	font-family: var(--bunn-font-serif);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--bunn-white);
	letter-spacing: 0.05em;
	margin-bottom: 12px;
}

.bunn-header-main__nav {
	justify-self: center;
	min-width: 0;
	max-width: 100%;
	overflow: visible;
}

.bunn-header-main__nav .menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 4px;
}

.bunn-header-main__nav .menu li {
	margin: 0;
	padding: 0;
}

.bunn-header-main__nav .menu > .menu-item-has-children {
	position: relative;
}

.bunn-header-main__nav .sub-menu {
	display: none !important;
	list-style: none;
	margin: 0;
	padding: 8px 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	background: #ffffff;
	border: 1px solid #e0e4ea;
	border-radius: 4px;
	box-shadow: 0 10px 28px rgba(6, 31, 66, 0.12);
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 0;
	z-index: 210;
}

.bunn-header-main__nav .sub-menu .sub-menu {
	top: 0;
	left: 100%;
}

.bunn-header-main__nav .sub-menu li {
	width: 100%;
}

.bunn-header-main__nav .sub-menu a {
	display: block;
	padding: 10px 18px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: none;
	white-space: nowrap;
}

.bunn-header-main__nav .sub-menu a:hover,
.bunn-header-main__nav .sub-menu a:focus {
	background: #f4f6f9;
	color: var(--bunn-crimson);
}

.bunn-header-main__nav .menu-item-has-children:hover > .sub-menu,
.bunn-header-main__nav .menu-item-has-children:focus-within > .sub-menu,
.bunn-header-main__nav .menu-item.sfHover > .sub-menu,
.bunn-header-main__nav .menu-item.genesis-hover > .sub-menu {
	display: block !important;
}

.bunn-header-main__nav .menu a {
	display: block;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--bunn-nav);
}

.bunn-header-main__nav .menu a:hover,
.bunn-header-main__nav .menu a:focus,
.bunn-header-main__nav .menu .current-menu-item > a {
	color: var(--bunn-crimson);
}

.bunn-header-main__search {
	justify-self: end;
	min-width: 0;
	max-width: 100%;
}

.bunn-header-main__search form,
.bunn-header-main__search .search-form {
	display: flex;
	align-items: stretch;
	margin: 0;
	width: 100%;
	max-width: min(280px, 100%);
	min-width: 0;
	box-sizing: border-box;
}

.bunn-header-main__search input[type="search"],
.bunn-header-main__search .search-field {
	border: 1px solid #c5ccd6;
	border-radius: 2px;
	padding: 10px 14px;
	width: 100%;
	min-width: 0;
	max-width: none;
	box-sizing: border-box;
	font-size: 14px;
	font-family: var(--bunn-font-sans);
}

.bunn-header-main__search input[type="submit"],
.bunn-header-main__search .search-submit {
	display: none;
}

/* -------------------------------------------------------------------------
   Genesis Simple Hooks — footer (genesis_footer)
   Targets HTML5 <footer class="site-footer"> and legacy <div id="footer" class="footer">.
------------------------------------------------------------------------- */
footer.site-footer,
#footer.footer,
.site-footer {
	/* Full-bleed even if an ancestor is narrower than the viewport */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	clear: both;
	float: none;
	position: relative;
	left: auto;
	right: auto;
	background-color: #000098 !important;
	background-image: var(--bunn-hero-gradient) !important;
	color: var(--bunn-white);
	border-top: 0;
	padding: 0 !important;
	box-sizing: border-box;
}

footer.site-footer > .wrap,
#footer.footer > .wrap,
.site-footer > .wrap {
	max-width: var(--bunn-header-max);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

/* Tighten gap above footer on full-width front page (Genesis default padding stacks) */
.bunn-home.full-width-content .site-inner {
	padding-bottom: 0;
}

.bunn-home.full-width-content .content {
	margin-bottom: 0;
	padding-bottom: 0;
}

.bunn-footer {
	padding: 48px 0 40px;
	margin: 0;
}

.bunn-footer__grid {
	display: grid;
	/* 25% | 50% | 25% on wide screens; minmax prevents flex/grid children from forcing narrow side columns */
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
	gap: 40px 32px;
	align-items: start;
}

/* Grid/flex default min-width:auto lets wide children (e.g. GRW) overflow the viewport */
.bunn-footer__grid > .bunn-footer__col {
	min-width: 0;
}

.bunn-footer__col p,
.bunn-footer__col address {
	margin: 0 0 8px;
	font-style: normal;
	font-size: 15px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.92);
}

.bunn-footer__col a {
	color: var(--bunn-white);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bunn-footer__col a:hover,
.bunn-footer__col a:focus {
	color: rgba(255, 255, 255, 0.85);
}

.bunn-footer__logo img {
	max-height: 64px;
	width: auto;
	margin-bottom: 12px;
}

.bunn-footer__reviews h2,
.bunn-footer__reviews .bunn-footer__heading {
	font-family: var(--bunn-font-serif);
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0 0 16px;
	color: var(--bunn-white);
}

.bunn-footer__review-card {
	background: var(--bunn-white);
	color: var(--bunn-text);
	padding: 16px 18px;
	border-radius: 4px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
}

/* Third-party review widgets (e.g. Widget Google Reviews) use full width of the center column */
.bunn-footer__reviews {
	min-width: 0;
	max-width: 100%;
}

.bunn-footer__reviews .wp-gr {
	max-width: 100%;
	width: 100%;
	overflow-x: hidden;
}

/*
 * GRW Column.resize() uses .grw-row offsetWidth. With flex-nowrap, the row can grow to the sum of
 * all slides (~desktop width), so breakpoints think the row is huge and keep 5 columns on phones.
 */
.site-footer .wp-gr .grw-row,
footer.site-footer .wp-gr .grw-row,
#footer .wp-gr .grw-row,
.bunn-footer .wp-gr .grw-row {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.bunn-footer__review-card .stars {
	color: #f4b400;
	font-size: 18px;
	letter-spacing: 2px;
	margin-bottom: 8px;
}

.bunn-footer__review-card .reviewer {
	font-weight: 700;
	margin-bottom: 8px;
}

.bunn-footer__review-card p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--bunn-text-muted);
}

.bunn-footer__legal {
	text-align: right;
}

.bunn-footer__legal a {
	display: block;
	margin-bottom: 10px;
	font-size: 14px;
	text-decoration: none;
}

.bunn-footer__legal a:hover,
.bunn-footer__legal a:focus {
	text-decoration: underline;
}

.bunn-footer__social {
	margin-top: 20px;
	display: flex;
	justify-content: flex-end;
	gap: 12px;
}

.bunn-footer__social a {
	display: inline-flex;
	width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.2s;
}

.bunn-footer__social a:hover,
.bunn-footer__social a:focus {
	background: rgba(255, 255, 255, 0.22);
}

.bunn-footer__social svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* -------------------------------------------------------------------------
   Front page — hide default page title (content carries H1)
------------------------------------------------------------------------- */
.bunn-home .entry-header .entry-title {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* If you prefer visible title in admin only, remove rule above */

/* -------------------------------------------------------------------------
   Homepage — larger type scale (body.bunn-home)
------------------------------------------------------------------------- */
.bunn-home .site-inner .entry-content {
	font-size: 1.125rem;
	line-height: 1.65;
}

.bunn-home .bunn-announcement-bar {
	font-size: 14px;
}

.bunn-home .bunn-announcement-bar__text {
	font-size: 13px;
}

.bunn-home .bunn-header-main__text-logo {
	font-size: clamp(2rem, 3.25vw, 2.6rem);
}

.bunn-home .bunn-header-main__nav .menu a {
	font-size: 15px;
	padding: 9px 15px;
}

.bunn-home .bunn-header-main__search form,
.bunn-home .bunn-header-main__search .search-form {
	max-width: min(300px, 100%);
}

.bunn-home .bunn-header-main__search input[type="search"],
.bunn-home .bunn-header-main__search .search-field {
	font-size: 15px;
}

.bunn-home .bunn-footer__text-logo {
	font-size: 1.65rem;
}

.bunn-home .bunn-footer__col p,
.bunn-home .bunn-footer__col address {
	font-size: 16px;
	line-height: 1.6;
}

.bunn-home .bunn-footer__reviews h2,
.bunn-home .bunn-footer__reviews .bunn-footer__heading {
	font-size: 1.5rem;
}

.bunn-home .bunn-footer__review-card p {
	font-size: 15px;
}

.bunn-home .bunn-footer__legal a {
	font-size: 15px;
}

/* -------------------------------------------------------------------------
   Homepage — hero + Depicter (static copy left, slider right)
------------------------------------------------------------------------- */
.bunn-hero-wrap {
	background: var(--bunn-hero-gradient);
	color: var(--bunn-white);
	padding: 56px 24px 64px;
	/* Full-bleed without 100vw: avoids Android/Firefox clipping when a child
	   (e.g. the carousel track) momentarily measures wider than the layout. */
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	box-sizing: border-box;
	overflow-x: hidden;
	overflow-x: clip;
}

.bunn-hero-wrap__inner {
	max-width: var(--bunn-max);
	margin: 0 auto;
	display: grid;
	/* minmax(0,1fr) so wide flex children cannot blow out the grid */
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px 56px;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
}

.bunn-hero-copy {
	min-width: 0;
	max-width: 100%;
	overflow-wrap: break-word;
	word-wrap: break-word;
	/* Prevent mobile browser text inflation from overflowing the column */
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

.bunn-hero-copy h1 {
	font-family: var(--bunn-font-serif);
	font-size: clamp(2.75rem, 5.5vw, 6rem);
	font-weight: 700;
	line-height: 1.12;
	margin: 0 0 30px;
	color: var(--bunn-white);
	max-width: 100%;
	overflow-wrap: break-word;
}

/* Subhead / tagline under H1 — kept large on all breakpoints */
.bunn-hero-copy .bunn-hero-lead {
	font-family: var(--bunn-font-sans);
	font-size: clamp(1.45rem, 2.75vw, 2.85rem);
	font-weight: 500;
	line-height: 1.55;
	margin: 0;
	max-width: min(28em, 100%);
	color: rgba(255, 255, 255, 0.94);
	letter-spacing: 0.01em;
}

/* Plain paragraphs in hero copy (no class) match the lead size */
.bunn-hero-copy > p:not(.bunn-hero-lead) {
	font-family: var(--bunn-font-sans);
	font-size: clamp(1.45rem, 2.75vw, 1.85rem);
	font-weight: 500;
	line-height: 1.55;
	margin: 0;
	max-width: min(28em, 100%);
	color: rgba(255, 255, 255, 0.94);
}

.bunn-hero-slider {
	min-width: 0;
	max-width: 100%;
	min-height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	overflow: hidden;
}

.bunn-hero-slider .wp-block-shortcode {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Depicter sits in hero; constrain width */
.bunn-hero-slider .depicter,
.bunn-hero-slider .depicter-revert {
	width: 100%;
	max-width: 420px;
	margin-left: auto;
	margin-right: auto;
}

/* Depicter hero: no circular crimson frame (was border-radius 50% + crimson border). */
.bunn-hero-slider .depicter-view-container {
	border-radius: 0;
	overflow: visible;
	border: none;
	box-shadow: none;
}

/* -------------------------------------------------------------------------
   Custom app carousel ([bunn_app_slider]) — replaces Depicter for 10+ slides
------------------------------------------------------------------------- */
.bunn-app-slider {
	width: 100%;
	max-width: min(420px, 100%);
	min-width: 0;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	touch-action: pan-y;
	position: relative;
	/* Contain the multi-slide flex track so it cannot expand the hero grid */
	overflow: hidden;
}

/* JS mirrors the active caption here for screen readers — must stay visually hidden. */
.bunn-app-slider__live.screen-reader-text,
.bunn-app-slider__live {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.bunn-app-slider__viewport {
	overflow: hidden;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	border-radius: 4px;
}

.bunn-app-slider__track {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	width: 100%;
	min-width: 0;
	transition: transform 0.65s ease;
	will-change: transform;
}

.bunn-app-slider__slide {
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	/* Basis against the viewport, not the growing track */
	min-width: 100%;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	box-sizing: border-box;
}

.bunn-app-slider__circle {
	width: min(100%, 380px);
	aspect-ratio: 1;
	border-radius: 50%;
	overflow: hidden;
	border: 6px solid var(--bunn-crimson);
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.06);
	flex-shrink: 0;
}

.bunn-app-slider__img,
.bunn-app-slider__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.bunn-app-slider__caption {
	margin: 20px 8px 0;
	max-width: 28em;
	font-family: var(--bunn-font-sans);
	font-size: clamp(1.15rem, 2.85vw, 1.5rem);
	font-weight: 600;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.96);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.bunn-app-slider__slide[aria-hidden="true"] .bunn-app-slider__caption {
	visibility: hidden;
}

@media (max-width: 960px) {
	.bunn-app-slider__caption {
		margin-top: 16px;
		font-size: clamp(1.05rem, 4vw, 1.25rem);
	}
}

/* -------------------------------------------------------------------------
   Three feature columns
------------------------------------------------------------------------- */
.bunn-triptych {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	margin: 0;
	padding: 0;
	max-width: 100%;
}

.bunn-triptych__col {
	padding: 48px 36px 280px;
	position: relative;
	min-height: 540px;
}

.bunn-triptych__col--grey {
	background: var(--bunn-grey-col);
}

.bunn-triptych__col--crimson {
	background: var(--bunn-crimson);
	color: var(--bunn-white);
}

.bunn-triptych__col--bluegrey {
	background: var(--bunn-blue-grey);
}

.bunn-triptych__col h2 {
	font-family: var(--bunn-font-serif);
	font-size: clamp(2.1rem, 3vw, 2.55rem);
	font-weight: 700;
	margin: 0 0 22px;
	line-height: 1.2;
}

.bunn-triptych__col--crimson h2 {
	color: var(--bunn-white);
}

.bunn-triptych__col:not(.bunn-triptych__col--crimson) h2 {
	color: var(--bunn-navy);
}

.bunn-triptych__col .bunn-triptych__body {
	font-size: 17px;
	line-height: 1.65;
	margin: 0;
}

.bunn-triptych__col--crimson .bunn-triptych__body {
	color: rgba(255, 255, 255, 0.95);
}

.bunn-triptych__col:not(.bunn-triptych__col--crimson) .bunn-triptych__body {
	color: var(--bunn-text);
}

.bunn-triptych__col ul {
	margin: 12px 0 0;
	padding-left: 1.1em;
}

.bunn-triptych__col li {
	margin-bottom: 10px;
}

/*
 * Feature column icons (Media Library uploads).
 * Markup: <span class="bunn-triptych__icon bunn-triptych__icon--sprout|machine|knot"></span>
 */
.bunn-triptych__icon {
	position: absolute;
	left: 50%;
	bottom: 36px;
	transform: translateX(-50%);
	display: block;
	/* ~70% larger than previous 220×120 */
	width: min(374px, calc(100% - 48px));
	height: 204px;
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: contain;
	pointer-events: none;
}

/* URLs set in child theme functions.php via CSS variables (correct upload base on any install). */
.bunn-triptych__icon--sprout {
	background-image: var(--bunn-triptych-icon-eco);
}

.bunn-triptych__icon--machine {
	background-image: var(--bunn-triptych-icon-machine);
}

.bunn-triptych__icon--knot {
	background-image: var(--bunn-triptych-icon-knot);
}

/* Bottom-of-column illustrations — <img class="bunn-triptych__illustration"> or theme images/ */
.bunn-triptych__illustration {
	position: absolute;
	left: 50%;
	bottom: 36px;
	transform: translateX(-50%);
	max-width: min(374px, calc(100% - 48px));
	max-height: 204px;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: center bottom;
	display: block;
	pointer-events: none;
}

/* -------------------------------------------------------------------------
   Product selection
------------------------------------------------------------------------- */
.bunn-products {
	background: var(--bunn-white);
	padding: 56px 24px 64px;
	text-align: center;
}

.bunn-products__title {
	font-family: var(--bunn-font-serif);
	font-size: clamp(2rem, 3.25vw, 2.65rem);
	color: var(--bunn-navy);
	margin: 0 0 40px;
	font-weight: 700;
}

.bunn-products__grid {
	max-width: var(--bunn-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 32px;
	text-align: center;
}

.bunn-products__item img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 320px;
	margin: 0 auto 20px;
}

.bunn-products__item h3 {
	font-family: var(--bunn-font-serif);
	font-size: 1.55rem;
	color: var(--bunn-navy);
	margin: 0 0 12px;
	font-weight: 700;
}

.bunn-products__item p {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
	color: var(--bunn-text-muted);
	max-width: 28em;
	margin-left: auto;
	margin-right: auto;
}

/* -------------------------------------------------------------------------
   WooCommerce product pages
------------------------------------------------------------------------- */
.single-product div.product .woocommerce-product-gallery,
.woocommerce div.product div.images {
	max-width: 560px;
}

.single-product div.product .woocommerce-product-gallery img,
.woocommerce div.product div.images img {
	width: 100%;
	height: auto;
	object-fit: contain;
	image-rendering: auto;
}

.single-product div.product .summary .bunn-product-meta {
	margin: 18px 0 0;
	color: var(--bunn-text-muted);
	font-size: 15px;
}

.bunn-product-rfq {
	margin: 20px 0 0;
}

.woocommerce a.button.bunn-product-rfq__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 11px 22px;
	border-radius: 3px;
	font-family: var(--bunn-font-sans);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.bunn-product-details-accordion {
	margin-top: 22px;
	border-top: 1px solid #d8dfe8;
}

.bunn-product-details-accordion__item {
	border-bottom: 1px solid #d8dfe8;
}

.bunn-product-details-accordion__summary {
	position: relative;
	display: block;
	padding: 16px 0 16px 42px;
	cursor: pointer;
	font-family: var(--bunn-font-sans);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--bunn-navy);
	list-style: none;
}

.bunn-product-details-accordion__summary::-webkit-details-marker {
	display: none;
}

.bunn-product-details-accordion__summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	font-family: var(--bunn-font-sans);
	font-size: 32px;
	font-weight: 900;
	line-height: 1;
	color: var(--bunn-crimson);
}

.bunn-product-details-accordion__item[open] .bunn-product-details-accordion__summary::after {
	content: "–";
}

.bunn-product-details-accordion__panel {
	padding: 0 0 18px;
	color: var(--bunn-text-muted);
}

.bunn-product-details-accordion__panel > h2:first-child {
	display: none;
}

.bunn-product-details-accordion__panel p:last-child {
	margin-bottom: 0;
}

.bunn-product-details-accordion__panel .woocommerce-Reviews-title {
	font-family: var(--bunn-font-serif);
	font-size: 1.2rem;
	color: var(--bunn-navy);
}

/* Description tab: Genesis sets all li { list-style: none } — restore bullets for product copy */
.bunn-product-details-accordion__item--description .bunn-product-details-accordion__panel ul {
	margin: 0 0 1em;
	padding-left: 1.35em;
	list-style: disc outside;
}

.bunn-product-details-accordion__item--description .bunn-product-details-accordion__panel ul li {
	display: list-item;
	list-style: disc outside;
	margin-bottom: 0.4em;
}

.bunn-product-details-accordion__item--description .bunn-product-details-accordion__panel ul ul {
	margin-top: 0.35em;
	margin-bottom: 0.35em;
	list-style-type: circle;
}

.bunn-product-details-accordion__item--description .bunn-product-details-accordion__panel ul ul li {
	list-style-type: circle;
}

/* Description tab: ordered lists (Genesis global li { list-style: none }) */
.bunn-product-details-accordion__item--description .bunn-product-details-accordion__panel ol {
	margin: 0 0 1em;
	padding-left: 1.5em;
	list-style: decimal outside;
}

.bunn-product-details-accordion__item--description .bunn-product-details-accordion__panel ol li {
	display: list-item;
	list-style: decimal outside;
	margin-bottom: 0.4em;
}

/* Description tab: data tables (e.g. Bunn Twine specifications) */
.bunn-product-details-accordion__item--description .bunn-product-details-accordion__panel table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.5;
	color: var(--bunn-text-muted);
	margin: 0 0 1.5em;
	overflow-x: auto;
	display: block;
}

@media (min-width: 600px) {
	.bunn-product-details-accordion__item--description .bunn-product-details-accordion__panel table {
		display: table;
	}
}

.bunn-product-details-accordion__item--description .bunn-product-details-accordion__panel table thead th {
	background: var(--bunn-navy);
	color: var(--bunn-white);
	font-family: var(--bunn-font-sans);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 10px 14px;
	text-align: left;
	white-space: nowrap;
}

.bunn-product-details-accordion__item--description .bunn-product-details-accordion__panel table tbody tr:nth-child(even) {
	background: #f4f6f8;
}

.bunn-product-details-accordion__item--description .bunn-product-details-accordion__panel table tbody tr:hover {
	background: #e8edf3;
}

.bunn-product-details-accordion__item--description .bunn-product-details-accordion__panel table td,
.bunn-product-details-accordion__item--description .bunn-product-details-accordion__panel table th {
	padding: 9px 14px;
	border-bottom: 1px solid #d8dfe8;
	vertical-align: middle;
}

.bunn-product-details-accordion__item--description .bunn-product-details-accordion__panel table td:first-child {
	font-weight: 600;
	color: var(--bunn-navy);
	white-space: nowrap;
}

.bunn-product-details-accordion__item--description .bunn-product-details-accordion__panel table strong {
	color: var(--bunn-navy);
	font-weight: 700;
}

/* Legacy Genesis column classes used in product descriptions (e.g. Tamale Tyer) */
.bunn-product-details-accordion__item--description .bunn-product-details-accordion__panel .one-half {
	box-sizing: border-box;
	float: left;
	width: calc(50% - 12px);
	margin: 0 0 1em;
}

.bunn-product-details-accordion__item--description .bunn-product-details-accordion__panel .one-half.first {
	margin-right: 24px;
}

.bunn-product-details-accordion__item--description .bunn-product-details-accordion__panel::after {
	content: "";
	display: table;
	clear: both;
}

/*
 * Tabs lived in after_single_product_summary with clear:both; in-summary accordion no longer clears floats,
 * so Related products can sit beside the gallery / under the summary column until cleared.
 */
.single-product div.product section.related.products,
.single-product div.product section.upsells.products {
	clear: both;
	width: 100%;
	margin-top: 2.5rem;
	padding-top: 0.5rem;
}

.single-product div.product section.related.products > h2,
.single-product div.product section.upsells.products > h2 {
	clear: both;
}

/* -------------------------------------------------------------------------
   Two-column info
------------------------------------------------------------------------- */
.bunn-info {
	background: var(--bunn-grey-bg);
	padding: 48px 24px 56px;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-bottom: 0;
	width: 100vw;
	max-width: 100vw;
}

.bunn-info__inner {
	max-width: var(--bunn-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 36px 48px;
}

.bunn-info__inner p {
	margin: 0 0 1em;
	font-size: 17px;
	line-height: 1.7;
	color: var(--bunn-text-muted);
	text-align: justify;
	hyphens: auto;
}

.bunn-info__inner p:last-child {
	margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   Inner pages (non–front page): “page inner” — restrain main column
   Uses body.bunn-page-inner from child theme (is_front_page() === false).
------------------------------------------------------------------------- */
body.bunn-page-inner .site-inner .content-sidebar-wrap {
	max-width: var(--bunn-max);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding: 28px 24px 56px;
	box-sizing: border-box;
}

/* Keep nested Genesis columns from busting out of the inner width */
body.bunn-page-inner .site-inner .content-sidebar-wrap .content,
body.bunn-page-inner .site-inner .content-sidebar-wrap .sidebar {
	max-width: 100%;
	box-sizing: border-box;
}

/*
 * Bold Timeline Lite (overlap / classic style):
 * Items are pulled up with negative margin-top so a tall penultimate card can
 * hang past the container into the footer. clear:both on a following <hr> does
 * not help (and .entry-content > *:last-child { margin-bottom:0 } zeroes any
 * spacer margin). Reserve bottom space on the timeline itself.
 */
.entry-content .bold_timeline_container.bold_timeline_container_line_position_overlap {
	padding-bottom: 4.5rem;
	margin-bottom: 1.5rem;
	box-sizing: content-box;
}

.entry-content .bold_timeline_container.bold_timeline_container_line_position_overlap .bold_timeline_group:last-child .bold_timeline_group_content,
.entry-content .bold_timeline_container.bold_timeline_container_line_position_overlap .bold_timeline_group:last-of-type .bold_timeline_group_content {
	/* Minimum clearance; plugin JS may add more when the previous card is taller */
	padding-bottom: 2rem;
}

.entry-content .bold_timeline_container + hr {
	clear: both;
	border: 0;
	height: 0;
	margin: 0;
	padding: 0;
	visibility: hidden;
}

/* All-in-One Video Gallery — single video player ~75% on large screens
   (!important beats the plugin’s inline max-width: 100%) */
@media (min-width: 960px) {
	body.single-aiovg_videos .aiovg-single-video > .aiovg-player-container {
		max-width: 75% !important;
		margin-left: auto;
		margin-right: auto;
	}
}

/* Inner page title + meta: same measure as content */
body.bunn-page-inner .entry-header .entry-title {
	font-family: var(--bunn-font-serif);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 700;
	color: var(--bunn-navy);
	line-height: 1.2;
	margin: 0 0 0.35em;
}

body.bunn-page-inner .breadcrumb {
	margin-bottom: 1rem;
}

/*
 * Genesis column classes (e.g. one-half first).
 * Removed from Genesis 3.x core CSS — restored here for page/post content.
 */
.entry-content .five-sixths,
.entry-content .four-sixths,
.entry-content .four-fifths,
.entry-content .three-fourths,
.entry-content .three-sixths,
.entry-content .three-fifths,
.entry-content .two-thirds,
.entry-content .two-fourths,
.entry-content .two-sixths,
.entry-content .two-fifths,
.entry-content .one-half,
.entry-content .one-third,
.entry-content .one-fourth,
.entry-content .one-fifth,
.entry-content .one-sixth {
	box-sizing: border-box;
	float: left;
	margin-left: 2.564102564102564%;
	margin-bottom: 1.5em;
}

.entry-content .one-half,
.entry-content .three-sixths,
.entry-content .two-fourths {
	width: 48.717948717948715%;
}

.entry-content .one-third,
.entry-content .two-sixths {
	width: 31.623931623931625%;
}

.entry-content .four-sixths,
.entry-content .two-thirds {
	width: 65.81196581196582%;
}

.entry-content .one-fourth {
	width: 23.076923076923077%;
}

.entry-content .three-fourths {
	width: 74.35897435897436%;
}

.entry-content .one-fifth {
	width: 17.94871794871795%;
}

.entry-content .two-fifths {
	width: 38.46153846153846%;
}

.entry-content .three-fifths {
	width: 58.97435897435898%;
}

.entry-content .four-fifths {
	width: 79.48717948717949%;
}

.entry-content .one-sixth {
	width: 14.52991452991453%;
}

.entry-content .five-sixths {
	width: 82.90598290598291%;
}

.entry-content .first {
	clear: both;
	margin-left: 0;
}

/* Keep following headings/blocks below floated column rows */
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content .clear,
.entry-content .clearfix {
	clear: both;
}

.entry-content .one-half img,
.entry-content .one-third img,
.entry-content .two-thirds img,
.entry-content .one-fourth img,
.entry-content .three-fourths img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* -------------------------------------------------------------------------
   WooCommerce accents (align with new palette)
------------------------------------------------------------------------- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	background: var(--bunn-crimson) !important;
	color: var(--bunn-white) !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
	background: var(--bunn-navy) !important;
}

/* -------------------------------------------------------------------------
   Responsive
------------------------------------------------------------------------- */
@media (max-width: 960px) {
	.bunn-header-main {
		grid-template-columns: 1fr;
		text-align: center;
		padding-left: max(16px, env(safe-area-inset-left, 0px));
		padding-right: max(16px, env(safe-area-inset-right, 0px));
	}

	.bunn-header-main__brand {
		justify-self: center;
		justify-content: center;
		text-align: center;
	}

	.bunn-header-main__brand a,
	.bunn-header-main__brand img,
	.bunn-header-main__text-logo {
		margin-left: auto;
		margin-right: auto;
	}

	.bunn-header-main__nav {
		justify-self: stretch;
		order: 3;
		min-width: 0;
	}

	.bunn-header-main__nav .menu {
		justify-content: center;
	}

	.bunn-header-main__search {
		justify-self: center;
		max-width: min(360px, 100%);
		width: 100%;
	}

	.bunn-hero-wrap {
		padding: 40px 20px 48px;
	}

	.bunn-hero-wrap__inner {
		grid-template-columns: minmax(0, 1fr);
		text-align: center;
	}

	.bunn-hero-copy h1 {
		font-size: clamp(2rem, 8.5vw, 2.75rem);
	}

	.bunn-hero-copy .bunn-hero-lead,
	.bunn-hero-copy > p:not(.bunn-hero-lead) {
		font-size: clamp(1.125rem, 4.2vw, 1.45rem);
		margin-left: auto;
		margin-right: auto;
	}

	.bunn-hero-slider {
		min-height: 0;
	}

	.bunn-triptych {
		grid-template-columns: 1fr;
	}

	.bunn-triptych__col {
		min-height: 480px;
		padding-bottom: 260px;
	}

	.bunn-products__grid {
		grid-template-columns: 1fr;
		max-width: 400px;
	}

	.bunn-info__inner {
		grid-template-columns: 1fr;
	}

	.bunn-footer__grid {
		grid-template-columns: 1fr;
		gap: 32px 0;
		text-align: center;
	}

	/* First & last columns: explicit center (address / logo / legal survive nested defaults) */
	.bunn-footer__col:first-child,
	.bunn-footer__col:last-child {
		text-align: center;
	}

	.bunn-footer__col:first-child address,
	.bunn-footer__col:first-child p {
		text-align: center;
	}

	.bunn-footer__col:first-child .bunn-footer__logo img {
		display: block;
		margin-left: auto;
		margin-right: auto;
	}

	.bunn-footer__legal {
		text-align: center;
	}

	.bunn-footer__social {
		justify-content: center;
	}
}

/* Footer GRW: align breakpoint with inline footer style (tablet + phone) */
@media (max-width: 1024px) {
	body footer .wp-gr .grw-reviews > .grw-review,
	.site-footer .wp-gr .grw-reviews > .grw-review,
	#footer .wp-gr .grw-reviews > .grw-review,
	.bunn-footer .wp-gr .grw-reviews > .grw-review {
		--col: 1 !important;
		-ms-flex: 0 0 100% !important;
		flex: 0 0 100% !important;
		flex-basis: 100% !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}

	body footer .wp-gr .grw-row,
	body footer .wp-gr .grw-content,
	body footer .wp-gr .grw-reviews,
	.bunn-footer .wp-gr .grw-row,
	.bunn-footer .wp-gr .grw-content,
	.bunn-footer .wp-gr .grw-reviews {
		max-width: 100% !important;
		width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box;
	}
}

@media (max-width: 800px) {
	.entry-content .five-sixths,
	.entry-content .four-sixths,
	.entry-content .four-fifths,
	.entry-content .three-fourths,
	.entry-content .three-sixths,
	.entry-content .three-fifths,
	.entry-content .two-thirds,
	.entry-content .two-fourths,
	.entry-content .two-sixths,
	.entry-content .two-fifths,
	.entry-content .one-half,
	.entry-content .one-third,
	.entry-content .one-fourth,
	.entry-content .one-fifth,
	.entry-content .one-sixth {
		float: none;
		width: 100%;
		margin-left: 0;
	}
}

@media (max-width: 600px) {
	body.bunn-page-inner .site-inner .content-sidebar-wrap {
		padding-left: 16px;
		padding-right: 16px;
		padding-top: 20px;
		padding-bottom: 40px;
	}

	/* Hide primary nav on phones (header keeps logo + search; phone CTA lives in the utility bar). */
	.bunn-header-main__nav {
		display: none !important;
	}

	/* Center the search column and the inner form on phones (wrapper alone leaves the form flush left). */
	.bunn-header-main__search {
		justify-self: center;
		max-width: min(360px, 100%);
		width: 100%;
		text-align: center;
	}

	.bunn-header-main__search form,
	.bunn-header-main__search .search-form,
	.bunn-home .bunn-header-main__search form,
	.bunn-home .bunn-header-main__search .search-form {
		margin-left: auto;
		margin-right: auto;
	}

	.bunn-announcement-bar {
		padding-block: 8px;
		padding-inline: 0;
	}

	.bunn-announcement-bar__inner {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
		padding: 0 16px;
		row-gap: 8px;
	}

	.bunn-announcement-bar__text {
		justify-self: center;
		width: 100%;
		max-width: 100%;
	}

	.bunn-announcement-bar__phone {
		justify-content: center;
		justify-self: center;
	}

	.bunn-triptych__col {
		padding: 36px 20px 220px;
		min-height: 0;
	}

	.bunn-triptych__icon {
		left: 50%;
		transform: translateX(-50%);
		bottom: 28px;
		height: 163px;
		width: min(340px, calc(100% - 32px));
		background-position: center bottom;
	}

	.bunn-triptych__illustration {
		left: 50%;
		transform: translateX(-50%);
		bottom: 28px;
		max-height: 163px;
		max-width: min(340px, calc(100% - 32px));
		object-position: center bottom;
	}

	.bunn-product-details-accordion__item--description .bunn-product-details-accordion__panel .one-half,
	.bunn-product-details-accordion__item--description .bunn-product-details-accordion__panel .one-half.first {
		float: none;
		width: 100%;
		margin-right: 0;
	}
}

/* -------------------------------------------------------------------------
   Chatbot — layered avatar + floating widget
------------------------------------------------------------------------- */
.bunn-chatbot {
	--bunn-chatbot-size: 108px;
	--bunn-chatbot-float-size: 96px;
	--bunn-chatbot-ring: 3px;
	--bunn-chatbot-edge: 12px;
	--bunn-chatbot-avatar-overhang: 130px;
	position: fixed;
	z-index: 99990;
	right: 20px;
	bottom: var(--bunn-chatbot-edge);
	top: var(--bunn-chatbot-edge);
	left: auto;
	max-height: calc(100dvh - var(--bunn-chatbot-edge) * 2);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-end;
	font-family: var(--bunn-font-sans);
	pointer-events: none;
}

.bunn-chatbot__launcher,
.bunn-chatbot__launcher-wrap,
.bunn-chatbot__stack {
	pointer-events: auto;
}

.bunn-chatbot__launcher-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	max-width: min(220px, calc(100vw - 40px));
}

.bunn-chatbot__caption {
	margin: 0;
	padding: 8px 12px;
	max-width: 100%;
	background: var(--bunn-crimson);
	color: var(--bunn-white);
	border-radius: 12px 12px 4px 12px;
	box-shadow: 0 4px 16px rgba(6, 31, 66, 0.18);
	font-family: var(--bunn-font-sans);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.01em;
	text-align: right;
}

.bunn-chatbot__stack {
	display: none;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-end;
	max-height: 100%;
	min-height: 0;
	flex-shrink: 1;
}

.bunn-chatbot.is-open .bunn-chatbot__stack {
	display: flex;
}

.bunn-chatbot-avatar {
	position: relative;
	width: var(--bunn-chatbot-size);
	height: var(--bunn-chatbot-size);
	flex-shrink: 0;
}

.bunn-chatbot-avatar--float {
	--bunn-chatbot-size: var(--bunn-chatbot-float-size);
}

.bunn-chatbot__avatar-float,
.bunn-chatbot__launcher {
	background: var(--bunn-white);
	border: var(--bunn-chatbot-ring) solid var(--bunn-navy);
	border-radius: 50%;
	box-sizing: content-box;
	box-shadow: 0 4px 24px rgba(6, 31, 66, 0.22);
}

.bunn-chatbot__avatar-float {
	position: relative;
	z-index: 2;
	align-self: flex-end;
	padding: 14px;
	margin-bottom: -44px;
	margin-right: 12px;
	pointer-events: none;
}

.bunn-chatbot-avatar__layer {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	pointer-events: none;
	user-select: none;
}

.bunn-chatbot-avatar__base {
	z-index: 1;
}

.bunn-chatbot-avatar__eyes {
	z-index: 2;
}

.bunn-chatbot-avatar__jaw {
	z-index: 3;
}

.bunn-chatbot__launcher {
	display: flex;
	align-items: center;
	justify-content: center;
	width: calc(var(--bunn-chatbot-size) + 28px);
	height: calc(var(--bunn-chatbot-size) + 28px);
	padding: 14px;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bunn-chatbot__launcher:hover,
.bunn-chatbot__launcher:focus-visible {
	transform: scale(1.04);
	box-shadow: 0 6px 28px rgba(6, 31, 66, 0.28);
	outline: 2px solid var(--bunn-crimson);
	outline-offset: 2px;
}

.bunn-chatbot.is-open .bunn-chatbot__launcher-wrap {
	visibility: hidden;
	pointer-events: none;
}

.bunn-chatbot__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(380px, calc(100vw - 40px));
	max-height: min(
		520px,
		calc(100dvh - var(--bunn-chatbot-edge) * 2 - var(--bunn-chatbot-avatar-overhang))
	);
	min-height: 0;
	flex-shrink: 1;
	padding-top: 52px;
	background: var(--bunn-white);
	border-radius: 12px;
	box-shadow: 0 8px 40px rgba(6, 31, 66, 0.2);
	overflow: hidden;
	pointer-events: auto;
}

.bunn-chatbot__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: var(--bunn-crimson);
	color: var(--bunn-white);
	font-size: 2.5rem;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.bunn-chatbot__close:hover,
.bunn-chatbot__close:focus-visible {
	background: var(--bunn-crimson-dark);
	color: var(--bunn-white);
	outline: none;
}

.bunn-chatbot__messages {
	flex: 1;
	overflow-y: auto;
	padding: 8px 20px 16px;
	font-size: 1.1875rem;
	line-height: 1.55;
}

.bunn-chatbot__message {
	margin: 0 0 10px;
}

.bunn-chatbot__message--user {
	color: var(--bunn-text-muted);
}

.bunn-chatbot__message--thinking p {
	color: var(--bunn-text-muted);
	font-style: italic;
}

.bunn-chatbot__message--bot p {
	margin: 0;
	color: var(--bunn-text);
}

.bunn-chatbot__message--reveal p:empty {
	min-height: 1.55em;
}

.bunn-chatbot__message--bot.bunn-chatbot__message--reveal p {
	min-height: 1.55em;
}

.bunn-chatbot__sources {
	margin-top: 10px;
	font-size: 1rem;
}

.bunn-chatbot__sources-label {
	display: block;
	font-weight: 600;
	color: var(--bunn-navy);
	margin-bottom: 4px;
}

.bunn-chatbot__sources ul {
	margin: 0;
	padding-left: 1.2em;
}

.bunn-chatbot__sources a {
	color: var(--bunn-crimson);
}

.bunn-chatbot__contact {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--bunn-blue-grey);
}

.bunn-chatbot__contact-title {
	margin: 0 0 4px;
	font-weight: 700;
	color: var(--bunn-navy);
	font-size: 1.125rem;
}

.bunn-chatbot__contact-intro {
	margin: 0 0 12px;
	font-size: 1.0625rem;
	color: var(--bunn-text-muted);
}

.bunn-chatbot__contact-label {
	display: block;
	margin-bottom: 10px;
	font-size: 1rem;
	font-weight: 600;
	color: var(--bunn-navy);
}

.bunn-chatbot__contact-input,
.bunn-chatbot__contact-textarea {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 8px 10px;
	border: 1px solid var(--bunn-blue-grey);
	border-radius: 6px;
	font: inherit;
	font-size: 1.0625rem;
	font-weight: 400;
	box-sizing: border-box;
}

.bunn-chatbot__contact-textarea {
	resize: vertical;
	min-height: 72px;
}

.bunn-chatbot__contact-submit {
	margin-top: 4px;
	padding: 10px 16px;
	border: 0;
	border-radius: 6px;
	background: var(--bunn-crimson);
	color: var(--bunn-white);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.bunn-chatbot__contact-submit:hover,
.bunn-chatbot__contact-submit:focus-visible {
	background: var(--bunn-crimson-dark);
}

.bunn-chatbot__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.bunn-chatbot__form {
	display: flex;
	gap: 8px;
	padding: 12px 16px 16px;
	border-top: 1px solid var(--bunn-blue-grey);
}

.bunn-chatbot__input {
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--bunn-blue-grey);
	border-radius: 6px;
	font: inherit;
	font-size: 1.1875rem;
}

.bunn-chatbot__send {
	padding: 10px 16px;
	border: 0;
	border-radius: 6px;
	background: var(--bunn-crimson);
	color: var(--bunn-white);
	font: inherit;
	font-size: 1.0625rem;
	font-weight: 600;
	cursor: pointer;
}

.bunn-chatbot__send:hover,
.bunn-chatbot__send:focus-visible {
	background: var(--bunn-crimson-dark);
}

@media (max-width: 480px) {
	.bunn-chatbot {
		--bunn-chatbot-size: 72px;
		--bunn-chatbot-float-size: 64px;
		--bunn-chatbot-avatar-overhang: 96px;
		right: var(--bunn-chatbot-edge);
		left: var(--bunn-chatbot-edge);
		align-items: stretch;
	}

	.bunn-chatbot__launcher-wrap {
		max-width: min(160px, calc(100vw - 24px));
	}

	.bunn-chatbot__caption {
		font-size: 11px;
		padding: 6px 10px;
	}

	.bunn-chatbot__launcher,
	.bunn-chatbot__avatar-float {
		padding: 10px;
	}

	.bunn-chatbot__launcher {
		width: calc(var(--bunn-chatbot-size) + 20px);
		height: calc(var(--bunn-chatbot-size) + 20px);
	}

	.bunn-chatbot__avatar-float {
		align-self: flex-end;
		margin-bottom: -32px;
		margin-right: 8px;
	}

	.bunn-chatbot__stack {
		width: 100%;
		align-items: stretch;
	}

	.bunn-chatbot__panel {
		width: auto;
	}
}
