/* Smart Header / Footer — automatic layout, zero outer widget padding */

.cew-smart-header,.cew-smart-footer{width:100%;box-sizing:border-box}
.cew-smart-header *,.cew-smart-footer *{box-sizing:border-box}
.cew-smart-header.is-sticky{position:sticky;top:0;z-index:9999}
.cew-smart-announcement-inner,.cew-smart-header-inner,.cew-smart-mobile-panel-inner,.cew-smart-footer-inner,.cew-smart-mega-inner{width:100%;margin:0 auto}

.cew-smart-announcement{background:#292a25;color:#fff}
.cew-smart-announcement-inner{min-height:38px;padding:7px 28px;display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;text-align:center}
.cew-smart-announcement-badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 7px;background:#6c2dff;color:#fff;font-size:11px;line-height:1}
.cew-smart-announcement a{color:inherit;text-underline-offset:3px}

.cew-smart-header-main{position:relative;background:#fff;color:#141414}
.cew-smart-header-inner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:30px;min-height:86px;padding:0 28px}
.cew-smart-logo{display:inline-flex;align-items:center;color:inherit;text-decoration:none;min-width:0}
.cew-smart-logo img{display:block;height:auto;width:112px}
.cew-smart-desktop-nav{min-width:0}
.cew-smart-menu{display:flex;align-items:center;justify-content:flex-start;gap:30px;list-style:none;margin:0;padding:0}
.cew-smart-menu>li{position:relative;margin:0;padding:0}
.cew-smart-menu>li.cew-smart-mega{position:static}
.cew-smart-menu a{display:inline-flex;align-items:center;text-decoration:none;color:inherit;white-space:nowrap}
.cew-smart-menu>li>a{padding:12px 0}
.cew-smart-menu .menu-item-has-children>a:after{content:"⌄";font-size:10px;margin-left:6px}

.cew-smart-menu>li:not(.cew-smart-mega)>.sub-menu{display:none;position:absolute;top:100%;left:-16px;z-index:1000;min-width:220px;margin:0;padding:10px 16px;list-style:none;background:#fff;border:1px solid #e7e8e4;box-shadow:0 14px 35px rgba(0,0,0,.09)}
.cew-smart-menu>li:not(.cew-smart-mega):hover>.sub-menu,
.cew-smart-menu>li:not(.cew-smart-mega):focus-within>.sub-menu{display:block}
.cew-smart-menu>li:not(.cew-smart-mega)>.sub-menu>li{position:relative}
.cew-smart-menu>li:not(.cew-smart-mega)>.sub-menu a{display:block;padding:9px 0;white-space:normal}
.cew-smart-menu>li:not(.cew-smart-mega)>.sub-menu>.menu-item-has-children>.sub-menu{display:none;position:absolute;left:calc(100% + 16px);top:-11px;min-width:220px;margin:0;padding:10px 16px;list-style:none;background:#fff;border:1px solid #e7e8e4;box-shadow:0 14px 35px rgba(0,0,0,.09)}
.cew-smart-menu>li:not(.cew-smart-mega)>.sub-menu>.menu-item-has-children:hover>.sub-menu,
.cew-smart-menu>li:not(.cew-smart-mega)>.sub-menu>.menu-item-has-children:focus-within>.sub-menu{display:block}

.cew-smart-mega-panel{display:none;position:absolute;left:0;right:0;top:100%;z-index:1000;background:#fff;border-top:1px solid #e7e8e4;box-shadow:0 14px 35px rgba(0,0,0,.09)}
.cew-smart-menu>li.cew-smart-mega:hover>.cew-smart-mega-panel,
.cew-smart-menu>li.cew-smart-mega:focus-within>.cew-smart-mega-panel{display:block}
.cew-smart-mega-inner{padding:0 28px}
.cew-smart-mega-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:0;list-style:none;margin:0;padding:0}
.cew-smart-mega-column{padding:18px;border-right:1px solid #e6e8e2}
.cew-smart-mega-column:last-child{border-right:0}
.cew-smart-submenu-heading{display:block;margin:0 0 10px;color:#666b63;font-size:11px;line-height:1.2;text-transform:uppercase;letter-spacing:.04em}
.cew-smart-mega-column>.sub-menu{display:grid;gap:0;list-style:none;margin:0;padding:0}
.cew-smart-mega-column>.sub-menu a{display:block;padding:7px 0;white-space:normal;line-height:1.4}

.cew-smart-actions{display:flex;align-items:center;justify-content:flex-end;gap:20px}
.cew-smart-account{display:inline-flex;align-items:center;gap:8px;border:0;background:transparent;color:inherit;text-decoration:none;font:inherit;padding:8px 0;cursor:pointer;white-space:nowrap}
.cew-smart-avatar{display:inline-flex;width:28px;height:28px;border-radius:50%;overflow:hidden;flex:0 0 auto}
.cew-smart-avatar img{width:100%;height:100%;object-fit:cover}
.cew-smart-user{position:relative}
.cew-smart-user-name{display:inline-flex;align-items:center}
.cew-smart-user-chevron{font-size:12px;line-height:1}
.cew-smart-user-dropdown{position:absolute;top:calc(100% + 12px);right:0;z-index:1100;min-width:230px;padding:8px;background:#fff;border:1px solid #e7e8e4;box-shadow:0 16px 38px rgba(0,0,0,.12)}
.cew-smart-user-dropdown a{display:block;padding:10px;color:#151515;text-decoration:none}
.cew-smart-user-dropdown a:hover{background:#f5f6f2}
.cew-smart-logout{border-top:1px solid #ecece8;color:#8b1f1f!important}
.cew-smart-cta{display:inline-flex;align-items:center;justify-content:center;background:#00543c;color:#fff;text-decoration:none;padding:13px 21px;transition:background-color .2s ease}
.cew-smart-toggle{display:none;width:44px;height:44px;padding:0;border:0;background:transparent;color:inherit;align-items:center;justify-content:center;flex-direction:column;gap:5px;cursor:pointer;justify-self:end}
.cew-smart-toggle span{display:block;width:24px;height:2px;background:currentColor;transition:transform .2s ease,opacity .2s ease}
.cew-smart-header.is-open .cew-smart-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.cew-smart-header.is-open .cew-smart-toggle span:nth-child(2){opacity:0}
.cew-smart-header.is-open .cew-smart-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.cew-smart-mobile-panel{position:absolute;top:100%;left:0;right:0;z-index:1050;background:#fff;border-top:1px solid #ecece8;box-shadow:0 16px 32px rgba(0,0,0,.09);opacity:1}
.cew-smart-mobile-panel-inner{padding:8px 18px 20px}
.cew-smart-mobile-menu{list-style:none;margin:0;padding:0}
.cew-smart-mobile-menu li{margin:0}
.cew-smart-mobile-menu>li{border-bottom:1px solid #e8e8e3}
.cew-smart-mobile-menu a{display:flex;justify-content:space-between;align-items:center;width:100%;padding:15px 0;color:inherit;text-decoration:none;white-space:normal;gap:12px}
.cew-smart-mobile-menu .menu-item-has-children>a:after{content:"+";font-size:18px;line-height:1;flex:0 0 auto}
.cew-smart-mobile-menu .is-submenu-open>a:after{content:"−"}
.cew-smart-mobile-menu .sub-menu{display:none;list-style:none;margin:0;padding:0 0 10px 16px}
.cew-smart-mobile-menu .is-submenu-open>.sub-menu{display:block}
.cew-smart-mobile-menu .sub-menu a{padding:10px 0}
.cew-smart-mobile-actions{display:grid;gap:12px;padding-top:18px;border-top:1px solid #e8e8e3}
.cew-smart-mobile-actions .cew-smart-cta{width:100%}
.cew-smart-mobile-actions .cew-smart-user-dropdown{position:static;margin-top:6px;width:100%;box-shadow:none}

.cew-smart-footer{background:#f6f7f2;color:#151515}
.cew-smart-footer-inner{padding:70px 28px 28px}
.cew-smart-footer-top{display:grid;grid-template-columns:minmax(220px,1.05fr) minmax(0,3fr);gap:64px;align-items:start}
.cew-smart-footer-brand-block{display:grid;gap:22px;align-content:start}
.cew-smart-footer-logo{display:inline-flex;width:max-content;max-width:100%;color:inherit;text-decoration:none}
.cew-smart-footer-logo img{display:block;height:auto;width:140px}
.cew-smart-footer-tagline{max-width:360px;line-height:1.65}
.cew-smart-apps{display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap}
.cew-smart-stores{display:grid;gap:10px}
.cew-smart-store,.cew-smart-qr{display:block}
.cew-smart-store img{display:block;width:145px;height:auto}
.cew-smart-qr img{display:block;width:116px;height:auto}
.cew-smart-footer-columns{--cew-smart-footer-cols:6;display:grid;grid-template-columns:repeat(var(--cew-smart-footer-cols),minmax(0,1fr));gap:28px}
.cew-smart-footer-title{margin:0 0 18px;color:#70766e;font-size:12px;line-height:1.2;text-transform:uppercase;letter-spacing:.04em}
.cew-smart-footer-menu{display:grid;gap:13px;list-style:none;margin:0;padding:0}
.cew-smart-footer-menu li{margin:0;padding:0}
.cew-smart-footer-menu a{color:inherit;text-decoration:none;line-height:1.35}
.cew-smart-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-top:64px;padding-top:24px;border-top:1px solid #dfe2dc}
.cew-smart-footer-copyright{font-size:12px;color:#72776f}
.cew-smart-footer-social{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.cew-smart-footer-social a{display:inline-flex;width:40px;height:40px;align-items:center;justify-content:center;background:#e6e9e3;color:#151515;text-decoration:none}
.cew-smart-footer-social svg{width:1em;height:1em;fill:currentColor}

@media(max-width:1100px){
	.cew-smart-footer-top{grid-template-columns:1fr;gap:44px}
	.cew-smart-footer-columns{--cew-smart-footer-cols:3}
	.cew-smart-mega-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
	.cew-smart-announcement-inner{padding-left:18px;padding-right:18px}
	.cew-smart-header-inner{grid-template-columns:auto 1fr auto;gap:14px;padding-left:18px;padding-right:18px}
	.cew-smart-footer-inner{padding:44px 18px 22px}
	.cew-smart-footer-columns{--cew-smart-footer-cols:2}
	.cew-smart-footer-bottom{align-items:flex-start;flex-direction:column}
	.cew-smart-mega-grid{grid-template-columns:1fr}
	.cew-smart-mega-column{border-right:0;border-bottom:1px solid #e6e8e2}
	.cew-smart-mega-column:last-child{border-bottom:0}
}
@media(max-width:420px){
	.cew-smart-footer-columns{--cew-smart-footer-cols:1}
}


/* ==========================================================
 * v3.138 — Header toggle hard reset
 * Prevent Elementor/theme global button styles from exposing
 * the mobile hamburger on desktop or adding red borders.
 * ========================================================== */
.cew-smart-header button.cew-smart-toggle{
	width:44px;
	height:44px;
	padding:0!important;
	margin:0!important;
	border:0!important;
	outline:0!important;
	box-shadow:none!important;
	background:transparent!important;
	color:inherit;
	appearance:none!important;
	-webkit-appearance:none!important;
	border-radius:0!important;
	text-decoration:none!important;
}
.cew-smart-header button.cew-smart-toggle:hover,
.cew-smart-header button.cew-smart-toggle:focus,
.cew-smart-header button.cew-smart-toggle:focus-visible,
.cew-smart-header button.cew-smart-toggle:active{
	border:0!important;
	outline:0!important;
	box-shadow:none!important;
	background:transparent!important;
}
.cew-smart-header button.cew-smart-toggle span{
	display:block!important;
	width:24px!important;
	height:2px!important;
	padding:0!important;
	margin:0!important;
	border:0!important;
	box-shadow:none!important;
	background:currentColor!important;
}



/* v3.144 — responsive visibility fix.
 * Display is intentionally NOT controlled here. The widget's own dynamic
 * breakpoint CSS shows the toggle on mobile; the base rule hides desktop. */
.cew-smart-header button.cew-smart-toggle{
	padding:0!important;
	margin:0!important;
	border:0!important;
	outline:0!important;
	box-shadow:none!important;
	background:transparent!important;
	appearance:none!important;
	-webkit-appearance:none!important;
}


/* ==========================================================
 * v3.149 — Smart Header: separated mobile colors + polished account
 * ========================================================== */

/* Menu links and CTA are completely independent on mobile. */
.cew-smart-mobile-panel a{
	color:inherit;
}
.cew-smart-mobile-menu a{
	color:#141414;
}
.cew-smart-mobile-actions .cew-smart-cta{
	color:#fff;
	background:#00543c;
}

/* Account chip */
.cew-smart-user-trigger{
	display:inline-flex;
	align-items:center;
	gap:9px;
	min-height:44px;
	background:#f5f6f2;
	border:1px solid #e4e7e1!important;
	border-radius:999px;
	padding:5px 12px 5px 5px;
	transition:background-color .2s ease,border-color .2s ease;
}
.cew-smart-user-trigger:hover{
	background:#ecefe9;
}
.cew-smart-avatar{
	width:34px;
	height:34px;
	border:2px solid #fff;
	background:#e8ebe6;
	box-shadow:0 1px 3px rgba(0,0,0,.08);
}
.cew-smart-user-copy{
	display:flex;
	flex-direction:column;
	align-items:flex-start;
	justify-content:center;
	min-width:0;
	line-height:1.1;
}
.cew-smart-user-name{
	display:block;
	max-width:170px;
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
	font-weight:500;
}
.cew-smart-user-label{
	display:block;
	margin-top:3px;
	color:#747874;
	font-size:10px;
	line-height:1;
	letter-spacing:.02em;
}
.cew-smart-user-chevron{
	margin-left:2px;
}

.cew-smart-mobile-actions .cew-smart-user{
	width:100%;
}
.cew-smart-mobile-actions .cew-smart-user-trigger{
	width:100%;
	justify-content:flex-start;
	min-height:54px;
	padding:8px 12px 8px 8px;
	border-radius:14px;
	background:#fff;
}
.cew-smart-mobile-actions .cew-smart-user-copy{
	flex:1 1 auto;
}
.cew-smart-mobile-actions .cew-smart-user-chevron{
	margin-left:auto;
}

/* Prevent global Elementor link/button colors from coupling menu/account/CTA. */
.cew-smart-mobile-menu > li > a,
.cew-smart-mobile-menu .sub-menu a,
.cew-smart-mobile-actions .cew-smart-account,
.cew-smart-mobile-actions .cew-smart-cta{
	text-decoration:none!important;
}
