/*
Theme Name: Chippy
Theme URI: https://example.com/chippy
Author: Your Shop
Description: A fast, mobile-first theme for fish and chip shops and takeaways, with WooCommerce online ordering support. Edit your shop name, hours, phone, address and colours under Appearance > Customize > Chippy Shop Settings.
Version: 1.14.4
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chippy
Tags: food-and-drink, e-commerce, one-column, custom-menu, custom-logo, featured-images
*/

:root {
	--chippy-navy: #0f2a44;
	--chippy-navy-dark: #0a1d30;
	--chippy-gold: #f2b134;
	--chippy-gold-dark: #d9961a;
	--chippy-red: #c8372d;
	--chippy-cream: #fff8ec;
	--chippy-paper: #ffffff;
	--chippy-ink: #1d2733;
	--chippy-muted: #5d6b7a;
	--chippy-line: #e8dfcf;
	--chippy-radius: 14px;
	--chippy-shadow: 0 6px 24px rgba(15, 42, 68, 0.10);
	--chippy-font-head: "Fredoka", "Trebuchet MS", sans-serif;
	--chippy-font-body: "Nunito", "Segoe UI", Roboto, sans-serif;
	--chippy-max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--chippy-font-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--chippy-ink);
	background: var(--chippy-cream);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--chippy-navy); }
a:hover { color: var(--chippy-red); }

h1, h2, h3, h4 {
	font-family: var(--chippy-font-head);
	font-weight: 600;
	line-height: 1.15;
	color: var(--chippy-navy);
	margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 1000;
	background: var(--chippy-gold); color: var(--chippy-navy);
	padding: 10px 16px; border-radius: 8px;
}

.container {
	width: 100%;
	max-width: var(--chippy-max);
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--chippy-font-head);
	font-weight: 600;
	font-size: 1.05rem;
	padding: 14px 28px;
	border-radius: 999px;
	border: 2px solid transparent;
	background: var(--chippy-gold);
	color: var(--chippy-navy);
	text-decoration: none;
	cursor: pointer;
	transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
	line-height: 1.2;
}
.btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.wp-block-button__link:hover {
	background: var(--chippy-gold-dark);
	color: var(--chippy-navy);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(242, 177, 52, .45);
}
.btn-outline {
	background: transparent;
	border-color: currentColor;
	color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #payment #place_order {
	background: var(--chippy-red);
	color: #fff;
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce #payment #place_order:hover { background: #a82b22; color: #fff; }

/* ---------- Top bar ---------- */
.topbar {
	background: var(--chippy-navy-dark);
	color: #dbe6f1;
	font-size: .88rem;
}
.topbar .container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 20px;
	padding-top: 7px;
	padding-bottom: 7px;
}
.topbar a { color: #fff; text-decoration: none; }
.open-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.open-status::before {
	content: ""; width: 9px; height: 9px; border-radius: 50%;
	background: #9aa7b4;
}
.open-status.is-open::before { background: #3ddc84; box-shadow: 0 0 0 3px rgba(61,220,132,.25); }
.open-status.is-closed::before { background: var(--chippy-red); }

/* ---------- Header ---------- */
.site-header {
	background: var(--chippy-navy);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 72px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding img { max-height: 56px; width: auto; }
.site-title {
	font-family: var(--chippy-font-head);
	font-size: 1.6rem;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	margin: 0;
	line-height: 1;
}
.site-title span { color: var(--chippy-gold); }
.site-title:hover { color: #fff; }

.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 4px;
}
.main-nav a {
	display: block;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	padding: 10px 14px;
	border-radius: 999px;
}
.main-nav a:hover,
.main-nav .current-menu-item > a { background: rgba(255,255,255,.1); color: var(--chippy-gold); }
.main-nav ul ul { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px; height: 46px;
	border-radius: 50%;
	background: rgba(255,255,255,.1);
	color: #fff;
	text-decoration: none;
}
.cart-link:hover { background: rgba(255,255,255,.2); color: #fff; }
.cart-count {
	position: absolute;
	top: -4px; right: -4px;
	min-width: 22px; height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--chippy-gold);
	color: var(--chippy-navy);
	font-size: .78rem;
	font-weight: 800;
	display: flex; align-items: center; justify-content: center;
}
.header-actions .btn { padding: 11px 22px; font-size: 1rem; }

.menu-toggle {
	display: none;
	background: none;
	border: 0;
	color: #fff;
	width: 46px; height: 46px;
	cursor: pointer;
	border-radius: 10px;
}
.menu-toggle:hover { background: rgba(255,255,255,.1); }

@media (max-width: 900px) {
	.menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.main-nav {
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: var(--chippy-navy);
		display: none;
		padding: 8px 20px 20px;
		border-top: 1px solid rgba(255,255,255,.1);
	}
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; }
	.header-actions .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	color: #fff;
	background-color: var(--chippy-navy);
	background-size: cover;
	background-position: center;
	overflow: hidden;
}
.hero::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(100deg, rgba(10,29,48,.92) 0%, rgba(10,29,48,.72) 50%, rgba(10,29,48,.25) 100%);
}
.hero.no-image::before {
	background:
		radial-gradient(circle at 85% 30%, rgba(242,177,52,.35) 0, transparent 40%),
		radial-gradient(circle at 70% 90%, rgba(200,55,45,.25) 0, transparent 35%);
}
.hero .container {
	position: relative;
	padding-top: clamp(70px, 12vw, 140px);
	padding-bottom: clamp(70px, 12vw, 140px);
}
.hero-inner { max-width: 640px; }
.hero-kicker {
	display: inline-block;
	background: var(--chippy-gold);
	color: var(--chippy-navy);
	font-weight: 800;
	font-size: .85rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 18px;
}
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--chippy-gold); }
.hero p { font-size: 1.2rem; color: #dbe6f1; margin: 0 0 28px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Banner notice card ---------- */
.hero .hero-has-notice {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: 40px;
	align-items: center;
}
.hero-notice {
	position: relative;
	border-radius: 18px;
	padding: 26px 26px 24px;
	box-shadow: 0 18px 40px rgba(0,0,0,.28);
	transform: rotate(1.5deg);
	max-width: 400px;
	justify-self: end;
	width: 100%;
}
.hero-notice--offer  { background: var(--chippy-gold); color: var(--chippy-navy); }
.hero-notice--jobs   { background: #fff; color: var(--chippy-ink); }
.hero-notice--notice { background: var(--chippy-red); color: #fff; }
.hero-notice__label {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
	padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
	background: rgba(15,42,68,.12);
}
.hero-notice--notice .hero-notice__label { background: rgba(255,255,255,.18); }
.hero-notice--jobs .hero-notice__label { background: var(--chippy-cream); color: var(--chippy-red); }
/* "Stand out" label: solid contrasting pill. */
.hero-notice--label-bold .hero-notice__label { box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.hero-notice--offer.hero-notice--label-bold .hero-notice__label  { background: var(--chippy-navy); color: var(--chippy-gold); }
.hero-notice--jobs.hero-notice--label-bold .hero-notice__label   { background: var(--chippy-red); color: #fff; }
.hero-notice--notice.hero-notice--label-bold .hero-notice__label { background: #fff; color: var(--chippy-red); }
.hero .hero-notice__title {
	font-family: var(--chippy-font-head);
	font-size: clamp(1.4rem, 3vw, 1.9rem);
	line-height: 1.15;
	margin: 0 0 8px;
	color: inherit;
}
.hero .hero-notice__text { font-size: 1rem; margin: 0 0 18px; color: inherit; opacity: .92; }
.hero-notice__btn { padding: 11px 22px; font-size: 1rem; }
.hero-notice--offer .hero-notice__btn  { background: var(--chippy-navy); color: #fff; }
.hero-notice--offer .hero-notice__btn:hover { background: var(--chippy-navy-dark); color: #fff; box-shadow: none; }
.hero-notice--notice .hero-notice__btn { background: #fff; color: var(--chippy-red); }
.hero-notice--notice .hero-notice__btn:hover { background: #fff3f1; color: var(--chippy-red); box-shadow: none; }
@media (max-width: 900px) {
	.hero .hero-has-notice { grid-template-columns: 1fr; gap: 28px; }
	.hero-notice { justify-self: start; transform: none; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-notice { transform: none; } }

/* ---------- Feature strip ---------- */
.features {
	margin-top: -44px;
	position: relative;
	z-index: 2;
}
.features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.feature {
	background: var(--chippy-paper);
	border-radius: var(--chippy-radius);
	box-shadow: var(--chippy-shadow);
	padding: 22px;
	display: flex;
	gap: 14px;
	align-items: flex-start;
}
.feature-icon {
	flex: 0 0 48px;
	width: 48px; height: 48px;
	border-radius: 12px;
	background: var(--chippy-cream);
	color: var(--chippy-red);
	display: flex; align-items: center; justify-content: center;
}
.feature h3 { font-size: 1.1rem; margin: 0 0 4px; }
.feature p { margin: 0; color: var(--chippy-muted); font-size: .95rem; }
.features-bottom { margin-top: 0; }
.features-bottom .feature { box-shadow: none; border: 1px solid var(--chippy-line); background: var(--chippy-cream); }

@media (max-width: 800px) {
	.features-grid { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--chippy-paper); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head p { color: var(--chippy-muted); margin: 0; }
.eyebrow {
	display: block;
	color: var(--chippy-red);
	font-weight: 800;
	font-size: .85rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	margin-bottom: 8px;
}

/* ---------- Menu categories ---------- */
.cat-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.cat-card {
	background: var(--chippy-paper);
	border: 1px solid var(--chippy-line);
	border-radius: var(--chippy-radius);
	overflow: hidden;
	text-decoration: none;
	color: var(--chippy-ink);
	transition: transform .15s ease, box-shadow .15s ease;
}
.section-alt .cat-card { background: var(--chippy-cream); }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--chippy-shadow); color: var(--chippy-ink); }
.cat-card .cat-img {
	aspect-ratio: 4 / 3;
	background: linear-gradient(135deg, var(--chippy-gold) 0%, #f7cd6f 100%);
	display: flex; align-items: center; justify-content: center;
	color: var(--chippy-navy);
}
.cat-card .cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .cat-body { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.cat-card h3 { margin: 0; font-size: 1.1rem; }
.cat-card .cat-count { color: var(--chippy-muted); font-size: .85rem; }

/* ---------- Featured products ---------- */
.home-products .woocommerce ul.products { margin-bottom: 0; }
.section-cta { text-align: center; margin-top: 36px; }

/* ---------- Info (hours + find us) ---------- */
.info-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}
.info-card {
	background: var(--chippy-paper);
	border-radius: var(--chippy-radius);
	box-shadow: var(--chippy-shadow);
	padding: 30px;
}
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 10px 0; border-bottom: 1px dashed var(--chippy-line); }
.hours-table td:last-child { text-align: right; font-weight: 700; }
.hours-table tr.is-today td { color: var(--chippy-red); }
.hours-table tr:last-child td { border-bottom: 0; }
.contact-list { list-style: none; margin: 0 0 20px; padding: 0; }
.contact-list li { display: flex; gap: 12px; padding: 8px 0; align-items: flex-start; }
.contact-list svg { flex: 0 0 22px; color: var(--chippy-red); margin-top: 3px; }
.map-embed { border-radius: 10px; overflow: hidden; margin-top: 10px; }
.map-embed iframe { width: 100%; height: 240px; border: 0; display: block; }
@media (max-width: 800px) { .info-grid { grid-template-columns: 1fr; } }

/* ---------- Allergen notice ---------- */
.allergen-notice {
	background: #fff3d6;
	border-left: 5px solid var(--chippy-gold);
	border-radius: 10px;
	padding: 16px 20px;
	font-size: .95rem;
	margin: 0 0 24px;
}
.allergen-notice strong { color: var(--chippy-navy); }

/* ---------- CTA band ---------- */
.cta-band {
	background: var(--chippy-red);
	color: #fff;
	text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #ffe3df; font-size: 1.1rem; margin: 0 0 24px; }

/* ---------- Footer ---------- */
.site-footer {
	background: var(--chippy-navy-dark);
	color: #b9c7d5;
	padding: 56px 0 24px;
	font-size: .95rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--chippy-gold); }
.site-footer h3 { color: #fff; font-size: 1.1rem; }
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 32px;
	margin-bottom: 36px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: 4px 0; }
.footer-bottom {
	border-top: 1px solid rgba(255,255,255,.1);
	padding-top: 20px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	font-size: .85rem;
}
.hygiene-badge {
	display: inline-flex; align-items: center; gap: 8px;
	background: rgba(255,255,255,.08);
	padding: 6px 12px; border-radius: 8px; margin-top: 10px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile sticky order bar ---------- */
.mobile-order-bar {
	display: none;
	position: fixed;
	left: 12px; right: 12px; bottom: 12px;
	z-index: 90;
}
.mobile-order-bar .btn { width: 100%; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
@media (max-width: 900px) {
	.mobile-order-bar { display: block; }
	body { padding-bottom: 80px; }
	body.woocommerce-checkout .mobile-order-bar,
	body.woocommerce-cart .mobile-order-bar { display: none; }
}

/* ---------- Generic content ---------- */
.page-hero {
	background: var(--chippy-navy);
	color: #fff;
	padding: 48px 0;
}
.page-hero h1 { color: #fff; margin: 0; font-size: clamp(1.9rem, 5vw, 2.8rem); }
.content-area { padding: 48px 0 72px; }
.entry-content > * { max-width: 100%; }
.entry-content { background: var(--chippy-paper); border-radius: var(--chippy-radius); padding: clamp(20px, 4vw, 40px); box-shadow: var(--chippy-shadow); }
.post-list article { margin-bottom: 24px; }
.post-meta { color: var(--chippy-muted); font-size: .9rem; }
.pagination { margin-top: 30px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 8px; background: var(--chippy-paper); text-decoration: none; }
.pagination .current { background: var(--chippy-navy); color: #fff; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="search"], input[type="number"], textarea, select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.select2-container .select2-selection--single {
	width: 100%;
	font: inherit;
	padding: 12px 14px;
	border: 2px solid var(--chippy-line);
	border-radius: 10px;
	background: #fff;
	color: var(--chippy-ink);
}
.select2-container .select2-selection--single { height: auto; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--chippy-gold); }

/* ---------- WooCommerce: menu (shop) ---------- */
.woocommerce .woocommerce-breadcrumb { color: var(--chippy-muted); font-size: .9rem; }
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
	margin: 0 0 24px;
	padding: 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	background: var(--chippy-paper);
	border-radius: var(--chippy-radius);
	box-shadow: var(--chippy-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: 0 0 18px;
	text-align: left;
}
.woocommerce ul.products li.product a img {
	margin: 0 0 12px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--chippy-font-head);
	font-size: 1.15rem !important;
	color: var(--chippy-navy);
	padding: 0 18px !important;
}
.woocommerce ul.products li.product .price {
	color: var(--chippy-red) !important;
	font-weight: 800;
	font-size: 1.1rem !important;
	padding: 0 18px;
}
.woocommerce ul.products li.product .button {
	margin: auto 18px 0 !important;
	width: calc(100% - 36px);
}
.woocommerce span.onsale {
	background: var(--chippy-red);
	border-radius: 999px;
	min-height: 0; min-width: 0;
	padding: 4px 12px;
	line-height: 1.4;
	top: 12px; left: 12px; right: auto;
	margin: 0;
}
.woocommerce div.product .product_title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--chippy-red); font-weight: 800; font-size: 1.5rem; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 10px 10px 0 0; }
.woocommerce .quantity .qty { width: 80px; padding: 12px 8px; text-align: center; }

.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-top-color: var(--chippy-gold) !important;
	background: var(--chippy-paper) !important;
	border-radius: 10px;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--chippy-gold-dark) !important; }

.shop-cat-nav {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 4px 0 16px;
	margin-bottom: 16px;
	scrollbar-width: thin;
}
.shop-cat-nav a {
	flex: 0 0 auto;
	padding: 9px 18px;
	border-radius: 999px;
	background: var(--chippy-paper);
	border: 2px solid var(--chippy-line);
	text-decoration: none;
	font-weight: 700;
	color: var(--chippy-navy);
	white-space: nowrap;
}
.shop-cat-nav a:hover,
.shop-cat-nav a.is-active { background: var(--chippy-navy); border-color: var(--chippy-navy); color: #fff; }

.woocommerce table.shop_table { border-radius: var(--chippy-radius); background: var(--chippy-paper); }
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review {
	background: var(--chippy-paper);
	border-radius: var(--chippy-radius);
	padding: 20px;
	box-shadow: var(--chippy-shadow);
}
.woocommerce-checkout #payment { background: var(--chippy-cream) !important; border-radius: 10px; }

/* Block themes / block cart & checkout */
.wc-block-components-button:not(.is-link) {
	background: var(--chippy-red) !important;
	color: #fff !important;
	border-radius: 999px !important;
	font-family: var(--chippy-font-head);
	font-weight: 600;
}

/* ---------- Chat assistant ---------- */
.chippy-chat { position: fixed; bottom: 16px; z-index: 94; font-family: var(--chippy-font-body); }
.chippy-chat--right { right: 16px; }
.chippy-chat--left { left: 16px; }
.chippy-chat__launcher {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--chippy-navy); color: #fff; border: 0; cursor: pointer;
	padding: 12px 18px; border-radius: 999px; font: 800 .95rem var(--chippy-font-body);
	box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.chippy-chat__launcher svg { color: var(--chippy-gold); }
.chippy-chat__launcher:hover, .chippy-chat__launcher:focus-visible { background: var(--chippy-navy-dark); outline: 3px solid var(--chippy-gold); outline-offset: 2px; }
.chippy-chat.is-open .chippy-chat__launcher { display: none; }
.chippy-chat__panel {
	display: none; flex-direction: column;
	width: 370px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 32px);
	background: var(--chippy-paper); color: var(--chippy-ink);
	border-radius: 18px; overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,.28);
}
.chippy-chat.is-open .chippy-chat__panel { display: flex; animation: chippyChatUp .2s ease; }
@keyframes chippyChatUp { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.chippy-chat__head { display: flex; align-items: center; gap: 8px; background: var(--chippy-navy); color: #fff; padding: 12px 14px; }
.chippy-chat__head strong { flex: 1; font: 600 1.1rem var(--chippy-font-head); }
.chippy-chat__restart { background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: .78rem; cursor: pointer; }
.chippy-chat__close { background: none; border: 0; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.chippy-chat__log { flex: 1; overflow-y: auto; padding: 14px; background: var(--chippy-cream); display: flex; flex-direction: column; gap: 10px; }
.chippy-chat__msg { display: flex; flex-direction: column; max-width: 88%; }
.chippy-chat__msg--bot { align-self: flex-start; }
.chippy-chat__msg--user { align-self: flex-end; align-items: flex-end; }
.chippy-chat__bubble { padding: 9px 13px; border-radius: 16px; line-height: 1.45; font-size: .95rem; overflow-wrap: anywhere; }
.chippy-chat__msg--bot .chippy-chat__bubble { background: #fff; border: 1px solid var(--chippy-line); border-bottom-left-radius: 4px; }
.chippy-chat__msg--user .chippy-chat__bubble { background: var(--chippy-navy); color: #fff; border-bottom-right-radius: 4px; }
.chippy-chat__bubble a { color: inherit; text-decoration: underline; }
.chippy-chat__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chippy-chat__link { background: var(--chippy-gold); color: var(--chippy-navy); text-decoration: none; font-weight: 800; font-size: .85rem; padding: 6px 12px; border-radius: 999px; }
.chippy-chat__link:hover { background: var(--chippy-gold-dark); }
.chippy-chat__typing .chippy-chat__bubble { display: flex; gap: 4px; padding: 12px 14px; }
.chippy-chat__typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--chippy-muted); animation: chippyDot 1s infinite ease-in-out; }
.chippy-chat__typing span:nth-child(2) { animation-delay: .15s; }
.chippy-chat__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chippyDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chippy-chat__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; max-height: 92px; overflow-y: auto; border-top: 1px solid var(--chippy-line); background: #fff; }
.chippy-chat__chip { background: #fff; color: var(--chippy-navy); border: 1.5px solid var(--chippy-navy); border-radius: 999px; padding: 5px 11px; font: 700 .82rem var(--chippy-font-body); cursor: pointer; }
.chippy-chat__chip:hover, .chippy-chat__chip:focus-visible { background: var(--chippy-navy); color: #fff; }
.chippy-chat__form { display: flex; gap: 8px; padding: 10px 12px 12px; background: #fff; }
.chippy-chat .chippy-chat__input { flex: 1; width: auto; margin: 0; box-shadow: none; height: 44px; min-width: 0; border: 1.5px solid var(--chippy-line); border-radius: 999px; padding: 10px 14px; font: 1rem var(--chippy-font-body); }
.chippy-chat .chippy-chat__input:focus { outline: none; border-color: var(--chippy-navy); }
.chippy-chat__send { background: var(--chippy-red); color: #fff; border: 0; border-radius: 999px; padding: 0 16px; font-weight: 800; cursor: pointer; }
.chippy-chat__send:disabled { opacity: .6; cursor: wait; }
@media (max-width: 900px) {
	/* Sit above the sticky "Order now" bar. */
	.chippy-chat { bottom: 84px; }
	body.woocommerce-cart .chippy-chat, body.woocommerce-checkout .chippy-chat { bottom: 16px; }
	.chippy-chat__launcher span { display: none; }
	.chippy-chat__launcher { padding: 14px; }
}
@media (max-width: 600px) {
	.chippy-chat.is-open { left: 0; right: 0; bottom: 0; }
	.chippy-chat__panel { width: 100%; max-width: 100%; height: 82vh; max-height: 82vh; border-radius: 18px 18px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
	.chippy-chat.is-open .chippy-chat__panel, .chippy-chat__typing span { animation: none; }
}

/* ---------- Salt & vinegar tick boxes ---------- */
.chippy-sv { border: 1.5px solid var(--chippy-line); border-radius: 12px; padding: 8px 14px 10px; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; background: var(--chippy-paper); }
.chippy-sv legend { font-weight: 800; color: var(--chippy-navy); padding: 0 6px; font-size: .9rem; }
.chippy-sv label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; cursor: pointer; margin: 0; }
.chippy-sv input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--chippy-navy); margin: 0; }
.chippy-sv--loop { margin: 8px 0 10px; padding: 4px 10px 8px; justify-content: center; font-size: .9rem; }
.chippy-sv--loop legend { font-size: .8rem; }
.single-product form.cart .chippy-sv { width: 100%; flex-basis: 100%; }
