/**
 * Base layout for the pieces that replace Elementor Pro widgets (inc/free-mode.php).
 * Only loaded when Pro is off. Per-element styling Pro generated is in pro-ported.css.
 */

/* Shortcode widgets fill their slot the way the Pro widgets did. */
.elementor-widget-shortcode .elementor-shortcode {
	width: 100%;
}

/* ---- Nav menu (Pro: Nav Menu) -------------------------------------------------------- */

.cb-nav {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cb-nav .elementor-nav-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cb-nav .elementor-nav-menu--main .elementor-item {
	display: block;
	padding: 13px 20px;
	color: inherit;
	text-decoration: none;
}

.cb-nav .elementor-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	padding: 6px;
	cursor: pointer;
	color: inherit;
}

.cb-nav .elementor-menu-toggle__icon--close,
.cb-nav .elementor-menu-toggle[aria-expanded="true"] .elementor-menu-toggle__icon--open {
	display: none;
}

.cb-nav .elementor-menu-toggle[aria-expanded="true"] .elementor-menu-toggle__icon--close {
	display: block;
}

.cb-nav .cb-nav__panel {
	display: none;
}

.cb-nav--dropdown-only .cb-nav__panel,
.cb-nav.is-open .cb-nav__panel {
	display: block;
}

.cb-nav .cb-nav__panel .elementor-nav-menu {
	flex-direction: column;
	align-items: stretch;
}

.cb-nav .cb-nav__panel a {
	display: block;
	padding: 12px 20px;
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid rgba( 83, 86, 101, .19 );
}

.cb-nav:not( .cb-nav--dropdown-only ) .cb-nav__panel {
	position: fixed;
	left: 0;
	right: 0;
	top: var( --cb-nav-top, 70px );
	z-index: 1000;
	max-height: calc( 100vh - var( --cb-nav-top, 70px ) );
	overflow-y: auto;
	background: #fff;
	box-shadow: 0 12px 24px rgba( 0, 0, 0, .12 );
}

@media ( max-width: 1024px ) {
	.cb-nav .elementor-nav-menu--main {
		display: none;
	}

	.cb-nav .elementor-menu-toggle {
		display: flex;
	}
}

/* ---- Cart button (Pro: Menu Cart) ------------------------------------------------------ */

.elementor-menu-cart__toggle_button {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
}

.elementor-menu-cart__toggle_button .elementor-button-icon {
	position: relative;
	display: inline-flex;
}

.elementor-menu-cart__toggle_button .elementor-button-icon svg {
	width: 1.25em;
	height: 1.25em;
}

.elementor-menu-cart__toggle_button .elementor-button-icon-qty {
	position: absolute;
	top: -.7em;
	right: -.9em;
	min-width: 1.6em;
	height: 1.6em;
	padding: 0 .3em;
	border-radius: 100px;
	font-size: 10px;
	line-height: 1.6em;
	text-align: center;
	color: #fff;
	background: #d63864;
}

.elementor-menu-cart__toggle_button .elementor-button-icon-qty[data-counter="0"] {
	display: none;
}

/* ---- Product grids and carousels (Pro: Loop Grid / Loop Carousel) ---------------------- */

.cb-loop--grid {
	display: grid;
	grid-template-columns: repeat( var( --grid-columns, 4 ), minmax( 0, 1fr ) );
	gap: var( --grid-row-gap, 10px ) var( --grid-column-gap, 10px );
}

.cb-loop--carousel {
	position: relative;
}

.cb-loop__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc( ( 100% - ( var( --swiper-slides-to-display, 4 ) - 1 ) * var( --swiper-slides-gap, 10px ) ) / var( --swiper-slides-to-display, 4 ) );
	gap: var( --swiper-slides-gap, 10px );
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.cb-loop__track::-webkit-scrollbar {
	display: none;
}

.cb-loop__slide {
	scroll-snap-align: start;
	min-width: 0;
}

.cb-loop .e-loop-item,
.cb-loop .e-loop-item > .elementor {
	height: 100%;
}

/* ---- Banner slider (Pro: Nested Carousel) --------------------------------------------- */

.cb-slider {
	position: relative;
}

.cb-slider__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.cb-slider__track::-webkit-scrollbar {
	display: none;
}

.cb-slider__slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
}

.cb-slider__slide img {
	display: block;
	width: 100%;
	height: auto;
}

/* Below the banner, not on it: the banner artwork has its own dotted decorations. */
.cb-slider__dots {
	padding-top: 10px;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.cb-slider__dots button {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba( 0, 0, 0, .25 );
	cursor: pointer;
}

.cb-slider__dots button[aria-selected="true"] {
	background: #d63864;
}

/* ---- Contact form (Pro: Form) ---------------------------------------------------------- */

.cb-contact-form .elementor-form-fields-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 0;
}

.cb-contact-form .elementor-field-group {
	width: 100%;
}

.cb-contact-form .elementor-field {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #d5d8dc;
	border-radius: 3px;
}

.cb-contact-trap {
	position: absolute !important;
	left: -9999px !important;
}

.elementor-message {
	margin: 0 0 12px;
	padding: 10px 14px;
	border-radius: 3px;
}

.elementor-message-success {
	color: #1e6b3a;
	background: #e6f4ea;
}

.elementor-message-danger {
	color: #8a1c1c;
	background: #fbeaea;
}

.elementor-screen-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
}

/* ---- Product page ---------------------------------------------------------------------- */

.cb-product-images .woocommerce-product-gallery {
	width: 100% !important;
	float: none !important;
}

.cb-notices:empty {
	display: none;
}

/* =========================================================================================
 * Design refresh (2026-10-30)
 * ======================================================================================= */

/* Nothing may widen the page past the screen (the floating cart waits off-screen to the right).
   clip, not hidden, so the sticky header keeps working. */
html,
body {
	max-width: 100%;
	overflow-x: clip;
}

/* Filters in the brand pink rather than the plugin's default blue. */
:root {
	--codebold-filters-accent: var( --e-global-color-primary, #fb6d87 );
}

/* ---- Phone header: one slim row — logo on the left; cart, account and menu on the right -- */

@media ( max-width: 767px ) {
	.elementor-location-header .elementor-element-923beef,
	.elementor-location-header .elementor-element-923beef > .e-con-inner {
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		gap: 8px !important;
	}

	.elementor-location-header .elementor-element-923beef {
		padding: 6px 14px !important;
		min-height: 0 !important;
	}

	.elementor-location-header .elementor-element-8bfaece,
	.elementor-location-header .elementor-element-2e97a57,
	.elementor-location-header .elementor-element-ed59378 {
		--width: auto;
		width: auto !important;
		min-height: 0 !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	.elementor-location-header .elementor-element-2e97a57 {
		order: 1;
		flex: 1 1 auto !important;
		align-items: flex-start !important;
	}

	.elementor-location-header .elementor-element-8bfaece {
		order: 3;
		flex: 0 0 40px !important;
	}

	.elementor-location-header .elementor-element-2e97a57 img {
		width: auto !important;
		max-height: 44px;
	}

	/* The home banner kept 64px of top padding that made room for the old three-row header. */
	.elementor-element-8650969 {
		padding-top: 0 !important;
	}

	.elementor-location-header .elementor-element-ed59378 {
		order: 2;
		flex: 0 0 auto !important;
		flex-direction: row !important;
		justify-content: flex-end !important;
		align-items: center !important;
		gap: 14px !important;
	}

	/* The wishlist already sits in the bottom bar on phones. */
	.elementor-location-header .elementor-element-c611db6 {
		display: none !important;
	}
}

/* ---- Product page: the price is the loudest thing beside the photo -------------------- */

.cb-free-single_product .elementor-element-46ce4c9 .price,
.cb-free-single_product .elementor-element-46ce4c9 .price .amount {
	font-size: 26px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	color: var( --e-global-color-text, #141414 ) !important;
}

.cb-free-single_product .elementor-element-8be1e55,
.cb-free-single_product .elementor-element-8be1e55 * {
	margin: 0 !important;
	font-size: 13px !important;
	font-style: normal !important;
	font-weight: 400 !important;
	color: #6b7280 !important;
}

/* ---- My Account: the customer's name fits the screen, however long --------------------- */

.elementor-element-17ff5cd .elementor-heading-title {
	overflow-wrap: anywhere;
	font-size: clamp( 22px, 6vw, 34px ) !important;
	font-style: normal !important;
}

/* WooCommerce notices with a button: the button drops below the text on phones. */
@media ( max-width: 767px ) {
	.woocommerce-info .button,
	.woocommerce-message .button {
		display: table !important;
		float: none !important;
		margin: 12px 0 0 !important;
	}
}

/* ---- Sort dropdown ---------------------------------------------------------------------- */

.cb-catalog-ordering select,
.woocommerce-ordering select {
	-webkit-appearance: none;
	appearance: none;
	min-width: 200px;
	padding: 10px 40px 10px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23141414' stroke-width='1.6'/%3E%3C/svg%3E" ) no-repeat right 14px center / 12px;
	font: inherit;
	font-size: 14px;
	color: var( --e-global-color-text, #141414 );
	cursor: pointer;
}

.cb-catalog-ordering select:focus-visible,
.woocommerce-ordering select:focus-visible {
	outline: 2px solid var( --e-global-color-primary, #fb6d87 );
	outline-offset: 1px;
}

/* ---- Phone bottom bar: four equal cells, cart labelled like the others ----------------- */

@media ( max-width: 1024px ) {
	.cb-mobile-footer > .e-con-inner {
		flex-wrap: nowrap !important;
	}

	.cb-mobile-footer > .e-con-inner > .e-con {
		--width: 25%;
		flex: 1 1 0 !important;
		width: auto !important;
		min-width: 0;
	}

	.cb-nav-cart .elementor-menu-cart__toggle_button {
		flex-direction: column;
		gap: 2px;
		padding: 0 !important;
		background: transparent !important;
		color: inherit !important;
	}

	.cb-nav-cart .elementor-menu-cart__toggle_button .elementor-button-text {
		display: none;
	}

	.cb-nav-cart .elementor-menu-cart__toggle_button::after {
		content: "CART";
		font-size: 11px;
		letter-spacing: .02em;
		color: var( --e-global-color-primary, #fb6d87 );
	}
}
