/* =============================================================================
 * erp-layout.css — notice bar, header/nav, offcanvases, shared product card,
 *                  footer, live-support float.
 *
 * Ported selector-for-selector from the source's own CSS
 * (source-cdp/css/app.css + the two inline <style> blocks in source-cdp/home.html),
 * so the DOM in header.php/footer.php/parts/ matches the source 1:1.
 * Additions are marked  /* +WP */ /* and are only what WordPress needs.
 * =============================================================================*/

/* =========================================================================
 * 1. Notice bar — fixed, above the header, owns --site-banner-height
 *    (source: inline <style> in the home DOM; the header/hero offsets read it,
 *     erp-app.js re-measures the real height on load+resize)
 * ========================================================================= */
.site-banner-plugin {
	position: fixed;
	inset: 0 0 auto;
	z-index: 1001;
	min-height: var(--site-banner-height);
	padding: 8px 24px;
	border-bottom: 1px solid var(--erp-gold-22);
	background: linear-gradient(90deg, #061635 0%, #0a1a3b 48%, #102b5c 100%);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.03em;
	box-shadow: var(--erp-shadow-banner);
}

.site-banner-plugin-inner {
	width: min(1320px, 100%);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-align: center;
}

.site-banner-plugin-dot {
	width: 7px;
	height: 7px;
	flex: 0 0 auto;
	border-radius: var(--erp-r-pill);
	background: var(--erp-gold);
	box-shadow: 0 0 0 4px rgba(246, 219, 123, 0.14);
}

.site-banner-plugin-text {
	white-space: pre-line;
}

.site-banner-plugin-text a {
	color: var(--erp-gold);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-banner-plugin-text a:hover {
	color: var(--erp-gold-soft);
}

.site-banner-plugin-spacer {
	height: var(--site-banner-height);
}

html.has-site-banner header .header-content,
html.has-site-banner header .header-mobile {
	top: var(--site-banner-height);
}

@media (max-width: 768px) {
	.site-banner-plugin {
		padding: 7px 14px;
		font-size: 12px;
	}
	.site-banner-plugin-inner {
		justify-content: center;
		text-align: center;
	}
}

/* +WP: keep the fixed bar clear of the admin bar for logged-in editors. */
body.admin-bar .site-banner-plugin {
	top: 32px;
}
body.admin-bar.has-site-banner header .header-content,
body.admin-bar.has-site-banner header .header-mobile,
html.has-site-banner body.admin-bar header .header-content,
html.has-site-banner body.admin-bar header .header-mobile {
	top: calc(var(--site-banner-height) + 32px);
}
@media screen and (max-width: 782px) {
	body.admin-bar .site-banner-plugin {
		top: 46px;
	}
	html.has-site-banner body.admin-bar header .header-content,
	html.has-site-banner body.admin-bar header .header-mobile {
		top: calc(var(--site-banner-height) + 46px);
	}
}

/* =========================================================================
 * 2. Header — floating white pill
 * ========================================================================= */
header {
	background: #fff !important;
	box-shadow: none;
}

header .header-content {
	border-bottom: none;
	border-color: #eee;
	box-shadow: none;
	left: 0;
	padding: 0;
	position: fixed;
	right: 0;
	top: 0;
	transition: all 0.2s ease-in-out;
	z-index: 999;
}

header .header-content .container-fluid,
header .header-content .header-pill,
header .header-content > .container {
	align-items: center;
	display: flex;
	justify-content: space-between;
}

header .header-content .header-pill {
	background: #fff;
	border-radius: var(--erp-r-pill);
	box-shadow: var(--erp-shadow-pill);
	gap: 1rem;
	margin: 10px auto;
	max-width: var(--erp-container);
	padding: 0.6rem 1.5rem;
	width: 100%;
}

header .header-content .logo img {
	max-height: 44px;
	max-width: 160px;
}

@media (max-width: 1200px) {
	header .header-content .logo img {
		max-width: 140px;
	}
}

/* --- primary nav --- */
header .header-content .menu-wrap > .navbar-nav {
	display: flex;
	flex-direction: row;
	list-style: none;
	margin: 0 auto;
	padding: 0;
}

header .header-content .menu-wrap > .navbar-nav > .nav-item {
	background-color: transparent;
	position: relative;
}

header .header-content .menu-wrap > .navbar-nav > .nav-item > .nav-link {
	align-items: center;
	color: var(--erp-slate);
	display: flex;
	font-family: var(--erp-font-system);
	font-size: 16px;
	font-weight: 500;
	gap: 2px;
	padding: 0.65rem 0.9rem;
	position: relative;
	white-space: nowrap;
}

@media (max-width: 1200px) {
	header .header-content .menu-wrap > .navbar-nav > .nav-item > .nav-link {
		padding: 0.65rem 0.5rem;
	}
}

header .header-content .nav-item:hover > a {
	color: var(--erp-navy);
}

header .header-content .menu-wrap > .navbar-nav > .nav-item:hover > .nav-link > svg {
	transform: rotate(180deg);
}

header .header-content .menu-wrap > .navbar-nav > .nav-item > .nav-link > svg {
	margin-left: -3px;
	transition: all 0.2s ease-in-out;
}

header .header-content .menu-wrap > .navbar-nav > .nav-item > .nav-link.dropdown-toggle::after {
	content: "";
	display: none;
}

/* --- hover dropdown panel --- */
header .header-content .dropdown .dropdown-menu {
	border: none;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
	display: block;
	left: 50%;
	max-height: 80vh;
	opacity: 0;
	overflow-y: auto;
	transform: translate(-50%, 0.5rem);
	transform-origin: top center;
	transition: all 0.2s ease-in-out;
	visibility: hidden;
}

header .header-content .dropdown:hover .dropdown-menu,
header .header-content .dropdown.is-open .dropdown-menu {
	opacity: 1;
	transform: translate(-50%);
	visibility: visible;
}

header .header-content .menu-wrap > .navbar-nav .ul-children {
	list-style: none;
	margin: 0;
	padding: 0;
}

header .header-content .menu-wrap > .navbar-nav .ul-children a {
	color: #7a7a7a;
	display: block;
	padding: 0.35rem 0;
}

header .header-content .menu-wrap > .navbar-nav .ul-children a:hover {
	color: var(--erp-navy);
}

/* --- right-hand actions --- */
header .header-content .right-btn .navbar-nav {
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

header .header-content .right-btn .header-support-btn {
	align-items: center;
	border-color: var(--erp-line-3);
	border-radius: var(--erp-r-pill);
	display: inline-flex;
	font-size: 0.92rem;
	font-weight: 600;
	gap: 8px;
	min-height: 42px;
	padding: 0.55rem 1rem;
	white-space: nowrap;
}

header .header-content .right-btn .nav-link {
	color: #333;
	display: block;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	position: relative;
}

@media (max-width: 1200px) {
	header .header-content .right-btn .nav-link {
		padding-left: 0.2rem;
		padding-right: 0.2rem;
	}
}

header .header-content .right-btn .nav-link i {
	font-size: 1.1rem;
}

header .header-content .right-btn .nav-link img {
	width: 20px;
}

header .cart-badge-quantity {
	zoom: 0.9;
	background-color: var(--erp-gold);
	border-radius: 50%;
	color: #fff;
	font-size: 12px;
	height: 23px;
	left: 21px;
	line-height: 24px;
	position: absolute;
	text-align: center;
	top: -3px;
	width: 23px;
}

/* +WP: the source hides the badge at 0 with an inline style; we do it in CSS. */
header .cart-badge-quantity.is-empty {
	display: none;
}

/* --- account dropdown --- */
header .header-content .right-btn .nav-item.dropdown .dropdown-menu {
	border: none;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
	display: block;
	left: auto;
	right: 0;
	min-width: 190px;
	opacity: 0;
	transform: translateY(0.5rem);
	transition: all 0.2s ease-in-out;
	visibility: hidden;
}

header .header-content .right-btn .nav-item.dropdown:hover .dropdown-menu {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
}

/* =========================================================================
 * 3. Header — mobile
 * ========================================================================= */
header .header-mobile {
	background: transparent !important;
	border-bottom: none;
	border-color: transparent;
	box-shadow: none;
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 999;
}

header .header-mobile .header-pill-mobile {
	margin: 12px 16px;
}

header .header-mobile .mobile-content {
	align-items: center;
	background: #fff;
	border-radius: var(--erp-r-pill);
	box-shadow: 0 10px 20px rgba(10, 26, 59, 0.12);
	display: flex;
	justify-content: space-between;
	padding: 10px 14px;
}

header .header-mobile .mobile-content > div {
	width: 33.33%;
	/* Flex items default to `min-width: auto`, so a group whose icons cannot
	 * shrink below their content width pushes the row past 100% — which is the
	 * likely cause of the 5px horizontal overflow measured at exactly 820px
	 * (`div.header-mobile` = 825px in an 820px viewport, homepage included).
	 * Letting them shrink is correct regardless. */
	min-width: 0;
}

header .header-mobile .mobile-content,
header .header-mobile .header-pill-mobile {
	box-sizing: border-box;
	max-width: 100%;
}

header .header-mobile .mobile-content > div.center a {
	align-items: center;
	display: flex;
	height: 30px;
	justify-content: center;
}

header .header-mobile .mobile-content > div.center a img {
	max-height: 100%;
}

header .header-mobile .mobile-content .left {
	align-items: center;
	display: flex;
}

header .header-mobile .mobile-content .left > div {
	cursor: pointer;
}

header .header-mobile .mobile-content .left .mobile-open-search {
	margin-left: 12px;
}

header .header-mobile .mobile-content .right {
	align-items: center;
	display: flex;
	justify-content: flex-end;
}

header .header-mobile .mobile-content .right .m-cart .cart-badge-quantity {
	height: 20px;
	left: 11px;
	line-height: 20px;
	top: -9px;
	width: 20px;
}

header .header-mobile .mobile-content .right .nav-link {
	padding: 0;
}

header .mobile-support-shortcut {
	margin-bottom: 16px;
}

header .mobile-support-shortcut .btn {
	align-items: center;
	border-radius: var(--erp-r-tile);
	display: inline-flex;
	font-weight: 600;
	justify-content: center;
	min-height: 46px;
	width: 100%;
}

/* =========================================================================
 * 4. Offcanvases — search / cart drawer / mobile menu
 * ========================================================================= */
#offcanvas-search-top {
	height: 100px;
	justify-content: center;
}

#offcanvas-search-top .offcanvas-header {
	width: 100%;
}

#offcanvas-search-top form {
	align-items: center;
	display: flex;
	gap: 12px;
	width: 100%;
}

#offcanvas-search-top input:focus {
	box-shadow: none;
}

#offcanvas-search-top .btn-close {
	opacity: 1;
	padding: 1rem;
}

#offcanvas-search-top .btn-close:hover {
	background-color: #eee;
}

#offcanvas-right-cart .offcanvas-footer {
	border-top: 1px solid #eee;
}

#offcanvas-right-cart .offcanvas-right-products .product-list {
	border-top: 1px solid #eee;
	display: flex;
	padding: 1rem 0;
}

#offcanvas-right-cart .offcanvas-right-products .product-list .left {
	border: 1px solid #eee;
	flex: 0 0 80px;
	height: 80px;
	margin-right: 10px;
	width: 80px;
}

#offcanvas-right-cart .offcanvas-right-products .product-list .left img {
	max-height: 80px;
}

#offcanvas-right-cart .offcanvas-right-products .product-list .right {
	flex: 1;
	min-width: 0;
}

#offcanvas-right-cart .offcanvas-right-products .product-list .right .name {
	word-break: break-word;
}

#offcanvas-right-cart .offcanvas-right-products .product-list .right .offcanvas-products-delete {
	color: #999;
	cursor: pointer;
}

#offcanvas-mobile-menu {
	width: 80%;
}

#offcanvas-mobile-menu .offcanvas-header {
	padding: 10px 20px 10px 10px;
}

#offcanvas-mobile-menu .mobile-menu-wrap {
	padding: 0;
}

#offcanvas-mobile-menu .mobile-menu-wrap .mobile-support-shortcut {
	padding: 0 10px;
}

#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion {
	border-top: 1px solid #e5e5e5;
}

#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .accordion-item {
	border-bottom: 1px solid #e5e5e5;
}

#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .accordion-item .nav-item-text {
	align-items: center;
	display: flex;
	justify-content: space-between;
}

#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .accordion-item .nav-item-text > a {
	align-items: center;
	color: var(--erp-slate);
	display: flex;
	flex: 1;
	height: 44px;
	padding-left: 10px;
}

#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .accordion-item .nav-item-text > span {
	align-items: center;
	border-left: 1px solid #e5e5e5;
	cursor: pointer;
	display: flex;
	height: 44px;
	justify-content: center;
	width: 44px;
}

#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .accordion-item .nav-item-text > span:active,
#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .accordion-item .nav-item-text > span[aria-expanded="true"] {
	background-color: #eee;
}

#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .accordion-item .nav-item-text > span[aria-expanded="true"] i {
	transform: rotate(180deg);
}

#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .accordion-item > .accordion-collapse {
	border-top: 1px solid #e5e5e5;
	padding: 0 10px;
}

#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .accordion-item > .accordion-collapse .nav {
	list-style: none;
	padding: 0;
}

#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .accordion-item > .accordion-collapse .nav a {
	color: #777;
	display: block;
	padding: 0.5rem 0;
}

/* =========================================================================
 * 5. THE shared product card
 *    Identical markup on /products, category, warehouse, contact and the
 *    homepage rail (RECON §6.6). Shop/product/woo agents reuse erp_product_card().
 *    Source has NO add-to-cart, NO rating, and NO badge other than "Out Stock".
 * ========================================================================= */
.product-wrap {
	background-color: #fff;
	border-radius: var(--erp-r-card);
	box-shadow: var(--erp-shadow-card);
	height: 100%;
	padding: 16px;
	position: relative;
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-wrap:hover {
	box-shadow: var(--erp-shadow-card-hover);
	transform: translateY(-6px);
}

/* ⚠️ MEASURED, and it is NOT a square well.
   The source declares `.image{aspect-ratio:1/1;padding:18px}` but the source platform's
   JS writes an inline `style="height:259px"` onto `.image-old`, where 259 is the
   well's BORDER-box width — i.e. it ignores the well's own 18px padding. The
   taller content beats the aspect-ratio, so the well actually renders
   259 × 295 at 1440: height = width + 36px, at EVERY breakpoint (verified at
   1440/820/390, the delta is always exactly the 2×18px padding).

   Reproduced without depending on that inline style: a ratio spacer sets the
   height and `.image-old` is pinned inside the padding box. */
.product-wrap .image {
	background: var(--erp-tile);
	border-radius: var(--erp-r-tile);
	display: block;
	margin-bottom: 14px;
	padding: 18px;
	position: relative;
}

.product-wrap .image::before {
	content: "";
	display: block;
	padding-top: calc(100% + 36px); /* 100% = content width; +36 = the padding */
}

.product-wrap .image .image-old {
	align-items: center;
	display: flex;
	inset: 18px;
	justify-content: center;
	position: absolute;
}

/* ⚠️ MEASURED: the source's product image renders at 49% of the well's inner
   HEIGHT — not the 70% its CSS declares, and not a fraction of the width.
   `img{max-width:70%;max-height:70%}` inside a shrink-to-fit flex item makes
   the width basis circular, so only max-height binds and it lands twice
   (0.7 × 0.7 = 0.49 × height). Confirmed against the live source at all three
   widths: 0.49 × 259 = 126.9 @1440, × 324 = 158.8 @820, × 231.6 = 113.5 @390.
   max-width is a 100% overflow guard only, so a non-square product image (none
   in this catalogue, but the card is shared with shop/product/search) still
   cannot break out of the well. */
.product-wrap .image .image-old img {
	max-height: 49%;
	max-width: 100%;
	object-fit: contain;
	/* +WP: WooCommerce's woocommerce.css sets `img{height:auto}` at a higher
	   specificity on some screens — pin it so the card never stretches. */
	height: auto;
	width: auto;
}

.product-wrap .image .product-stock-overlay {
	align-items: center;
	backdrop-filter: blur(1px);
	background: rgba(10, 26, 59, 0.28);
	border-radius: var(--erp-r-tile);
	display: flex;
	inset: 0;
	justify-content: center;
	pointer-events: none;
	position: absolute;
}

.product-wrap .image .stock-badge {
	align-items: center;
	background: rgba(10, 26, 59, 0.9);
	border-radius: var(--erp-r-pill);
	color: #fff;
	display: inline-flex;
	font-size: 0.85rem;
	font-weight: 700;
	justify-content: center;
	letter-spacing: 0.08em;
	min-width: 92px;
	padding: 10px 16px;
	text-transform: uppercase;
}

.product-wrap .button-wrap {
	display: none;
}

.product-wrap .product-bottom-info {
	padding: 0 6px;
}

.product-wrap .product-name {
	color: var(--erp-slate);
	font-family: var(--erp-font-body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 8px;
}

.product-wrap .product-price .price-new {
	color: var(--erp-navy);
	font-size: 1.1rem;
	font-weight: 700;
}

.product-wrap .product-price .price-old {
	color: #aaa;
	margin-left: 4px;
	text-decoration: line-through;
}

.product-wrap.is-sold-out .image-old img {
	opacity: 0.78;
}

.product-wrap.list {
	display: flex;
	gap: 1.5rem;
	padding: 20px;
	text-align: left;
}

.product-wrap.list .image {
	flex: 0 0 180px;
	margin-bottom: 0;
}

.product-wrap.list .product-bottom-info {
	flex: 1;
}

/* +WP: card name/price are plain divs at source; ours are links so the whole
   card is navigable. Inherit colour so nothing changes visually. */
.product-wrap .product-name a,
.product-wrap a.product-name-link {
	color: inherit;
}

/* The 5-up custom column the source uses on /products + warehouse pages. */
@media (min-width: 992px) {
	.col-lg-20 {
		flex: 0 0 auto;
		width: 20%;
	}
}

/* =========================================================================
 * 6. Footer
 * ========================================================================= */
footer {
	background: transparent;
	color: #fff;
	margin-top: 2rem;
	position: relative;
}

@media (min-width: 768px) {
	footer {
		margin-top: 5rem;
	}
}

@media (max-width: 768px) {
	footer {
		border-top: 1px solid #eee;
	}
}

footer .footer-shell {
	background: var(--erp-navy);
	border-radius: var(--erp-r-footer);
	box-shadow: var(--erp-shadow-footer);
	margin: 0 auto;
	padding-bottom: 1rem;
	padding-top: 1rem;
	width: min(1320px, 100%);
}

footer .footer-shell .container,
footer .footer-shell .container-fluid {
	max-width: var(--erp-container) !important;
}

@media (min-width: 768px) {
	footer .footer-content {
		padding: 3rem 0;
	}
}

@media (max-width: 768px) {
	footer .footer-content > .row {
		margin: 0;
	}
	footer .footer-content > .row > .col-12 {
		padding-left: 0;
		padding-right: 0;
	}
}

footer .footer-content a {
	color: #ccc;
}

footer .footer-content a:hover {
	color: var(--erp-gold);
}

/* +WP: the source prints the contact email/phone as PLAIN TEXT, which wraps
   inside the 205px column. We wrap them in mailto:/tel: anchors, and an inline
   <a> holding one unbroken token (a long address) does not wrap — measured at
   820: the anchor ran to x=825.6 and widened the layout viewport to 825px,
   which shifted every centred fixed element (notice bar included) by ~2.7px.
   Breaking long words inside the column restores the source's geometry exactly. */
footer .footer-content .footer-content-contact li,
footer .footer-content .footer-content-contact li a {
	overflow-wrap: break-word;
	word-break: break-word;
}

footer .footer-content .logo {
	margin-bottom: 10px;
	max-width: 240px;
}

footer .footer-content .text {
	color: #fff;
}

/* Source utility for TinyMCE-authored blocks. Without it the editor paragraph's
   default 1rem bottom margin collapses against `.social-network`'s 10px top
   margin and the whole footer row grows 6px. Shared, not footer-only — content
   pages use `.tinymce-format-p` too. */
.tinymce-format-p p {
	margin-bottom: 0.5rem;
}

footer .footer-content h6 {
	align-items: center;
	color: #fff !important;
	display: flex;
	font-family: var(--erp-font-system);
	font-size: 14px;
	justify-content: space-between;
}

@media (min-width: 768px) {
	footer .footer-content h6 {
		margin-bottom: 16px;
	}
}

@media (max-width: 768px) {
	footer .footer-content h6 {
		margin-bottom: 0;
		padding: 12px 0;
	}
}

footer .footer-content h6 .icon-open {
	cursor: pointer;
	display: none;
	font-size: 18px;
	font-weight: 700;
	height: 20px;
	line-height: 20px;
	text-align: center;
	width: 20px;
}

@media (max-width: 768px) {
	footer .footer-content h6 .icon-open {
		display: block;
	}
}

footer .footer-content .social-network {
	display: flex;
	margin-top: 10px;
}

footer .footer-content .social-network > a {
	align-items: center;
	display: flex;
	height: 30px;
	justify-content: center;
	margin-right: 10px;
	transition: all 0.3s ease;
	width: 30px;
}

footer .footer-content .social-network > a:hover {
	transform: translateY(-5px);
}

@media (min-width: 768px) {
	footer .footer-content .intro-title {
		display: none;
	}
}

@media (max-width: 768px) {
	footer .footer-content .footer-link-wrap {
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	}
}

footer .footer-content .footer-link-wrap.active .icon-open i::before {
	content: "\f63b"; /* bi-dash-lg */
}

footer .footer-content .footer-link-wrap.active .intro-wrap,
footer .footer-content .footer-link-wrap.active ul.list-unstyled {
	max-height: 1666px;
}

footer .footer-content .footer-link-wrap .intro-wrap,
footer .footer-content .footer-link-wrap ul.list-unstyled {
	margin-bottom: 0;
}

@media (max-width: 768px) {
	footer .footer-content .footer-link-wrap .intro-wrap,
	footer .footer-content .footer-link-wrap ul.list-unstyled {
		max-height: 0;
		overflow: hidden;
		transition: all 0.35s;
		width: 100%;
	}
}

footer .footer-bottom {
	align-items: center;
	background: var(--erp-navy-foot);
	border-radius: 0 0 30px 30px;
	color: #fff;
	display: flex;
}

@media (min-width: 768px) {
	footer .footer-bottom {
		min-height: 60px;
	}
}

@media (max-width: 768px) {
	footer .footer-bottom {
		padding: 10px 0;
	}
	footer .footer-bottom .d-flex,
	footer .footer-bottom .row.align-items-center {
		justify-content: center;
	}
}

footer .footer-bottom a {
	color: #fff;
}

footer .footer-bottom a:hover {
	color: var(--erp-gold);
}

/* =========================================================================
 * 7. Live-support float (source: inline <style> in the home DOM — every
 *    endpoint is a Customizer field, see brief decision 12)
 * ========================================================================= */
.customer-service-float {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9999;
	font-family: inherit;
}

.cs-btn-toggle {
	min-width: 58px;
	height: 58px;
	padding: 0 18px;
	border-radius: var(--erp-r-pill);
	background: var(--erp-navy);
	color: #fff;
	border: none;
	box-shadow: 0 12px 30px rgba(10, 26, 59, 0.24);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 20px;
	transition: all 0.24s ease;
}

.cs-btn-toggle span {
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.cs-btn-toggle:hover {
	transform: translateY(-1px);
	box-shadow: 0 16px 36px rgba(10, 26, 59, 0.28);
}

.cs-panel {
	position: absolute;
	bottom: 72px;
	right: 0;
	width: 320px;
	background: #fff;
	border-radius: var(--erp-r-card);
	box-shadow: var(--erp-shadow-panel);
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: all 0.3s ease;
	overflow: hidden;
}

.cs-panel.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.cs-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 18px 14px;
	background: var(--erp-navy);
	color: #fff;
}

.cs-header-copy {
	display: grid;
	gap: 4px;
}

.cs-header-copy strong {
	color: #fff;
	font-size: 15px;
	line-height: 1.2;
}

.cs-header-copy small {
	color: rgba(255, 255, 255, 0.76);
	font-size: 12px;
}

.cs-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.cs-body {
	padding: 16px;
}

.cs-intro {
	margin: 0 0 14px;
	color: #5b6473;
	font-size: 13px;
	line-height: 1.6;
}

.cs-list {
	display: grid;
	gap: 8px;
}

.cs-item {
	display: flex;
	align-items: center;
	padding: 12px 14px;
	color: #333;
	text-decoration: none;
	border: 1px solid var(--erp-line);
	border-radius: var(--erp-r-tile);
	transition: all 0.2s ease;
	background: #fff;
}

.cs-item:hover {
	background: #f7f9fc;
	border-color: rgba(10, 26, 59, 0.16);
}

.cs-item i {
	font-size: 20px;
	margin-right: 12px;
	width: 24px;
	text-align: center;
}

.cs-item span {
	display: grid;
	gap: 2px;
}

.cs-item strong {
	font-size: 14px;
	color: var(--erp-navy);
}

.cs-item small {
	color: var(--erp-muted-3);
	font-size: 12px;
	word-break: break-word;
}

.cs-whatsapp i { color: #25d366; }
.cs-telegram i { color: #0088cc; }
.cs-email i { color: #666; }

/* +WP: a channel the client has blanked points at our Contact page instead of
   vanishing (same policy as .community-card--fallback). Deliberately styled
   identically to .cs-item — the row must not look broken or secondary. */
.cs-item--fallback {
	/* intentionally identical to .cs-item */
}

.cs-meta {
	display: grid;
	gap: 6px;
	margin-top: 14px;
	color: var(--erp-muted-3);
	font-size: 12px;
}

.cs-meta span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

@media (max-width: 768px) {
	.customer-service-float {
		bottom: 18px;
		right: 16px;
	}
	body.woocommerce-cart .customer-service-float,
	body.woocommerce-checkout .customer-service-float {
		bottom: calc(92px + env(safe-area-inset-bottom));
	}
	.cs-btn-toggle {
		height: 50px;
		padding: 0 14px;
		font-size: 18px;
	}
	.cs-btn-toggle span {
		font-size: 13px;
	}
	.cs-panel {
		width: min(320px, calc(100vw - 24px));
		right: 0;
		bottom: 64px;
	}
}

/* =========================================================================
 * 8. Screen-reader helper (+WP)
 * ========================================================================= */
.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;
}

.skip-link:focus {
	background: #fff;
	color: var(--erp-navy);
	clip: auto;
	clip-path: none;
	display: block;
	font-weight: 700;
	height: auto;
	left: 8px;
	padding: 12px 20px;
	top: 8px;
	width: auto;
	z-index: 100000;
}
