/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* =========================================================================
 * KNX fixes (24 Nov 2026). Design-system CSS stays in Elementor
 * Site Settings > Custom CSS; this file is only for plugin/theme fixes.
 * ====================================================================== */

/* 1. WooCommerce block checkboxes + radios (Checkout).
 * Site Settings > Form Fields styles every input that isn't a button,
 * giving these 14px/18px padding and the dark field background. Undo that
 * only for the WooCommerce block controls. */
html body .wc-block-components-checkbox input.wc-block-components-checkbox__input[type="checkbox"],
html body .wc-block-components-radio-control input.wc-block-components-radio-control__input[type="radio"] {
	padding: 0;
	background-color: #fff;
	border: 1px solid #333;
	box-shadow: none;
}
html body .wc-block-components-checkbox input.wc-block-components-checkbox__input[type="checkbox"] {
	width: 20px;
	height: 20px;
	min-width: 20px;
	min-height: 20px;
	border-radius: 0;
}
html body .wc-block-components-radio-control input.wc-block-components-radio-control__input[type="radio"] {
	width: 20px;
	height: 20px;
	min-width: 20px;
	min-height: 20px;
	border-radius: 50%;
}
html body .wc-block-components-radio-control input.wc-block-components-radio-control__input[type="radio"]:checked {
	border-color: #EE2B2F;
}
html body .wc-block-components-radio-control input.wc-block-components-radio-control__input[type="radio"]:checked::before {
	background: #EE2B2F;
}
html body .wc-block-components-checkbox input.wc-block-components-checkbox__input[type="checkbox"]:checked {
	background-color: #EE2B2F;
	border-color: #EE2B2F;
}
html body .wc-block-components-checkbox input.wc-block-components-checkbox__input[type="checkbox"]:checked + .wc-block-components-checkbox__mark {
	fill: #fff;
}

/* 2. Checkout order summary: stick below the fixed header, not behind it. */
html body .wc-block-checkout__sidebar.is-sticky,
html body .wc-block-checkout__sidebar {
	top: 96px;
}
html body.admin-bar .wc-block-checkout__sidebar.is-sticky,
html body.admin-bar .wc-block-checkout__sidebar {
	top: 128px;
}

/* 2b. White "paper" panel (Cart / Checkout / My account / Terms / Privacy).
 * It is a wrapping column flexbox; with the WooCommerce blocks inside, that
 * made phones over-measure its height (Checkout: 3,937px panel for 1,986px
 * of content = a huge blank area under Place order). No wrap = exact height. */
html body .knx-paper {
	flex-wrap: nowrap;
}

/* 2c. Product cards: the "Out of stock" ribbon (Site Settings sets 15px /
 * 2px tracking on phones) was clipped to "OUT OF STOC" on the Home cards. */
@media (max-width: 767px) {
	html body .woocommerce ul.products.products li.product.product.outofstock .knx-im::after {
		font-size: 13px;
		letter-spacing: 1px;
	}
}

/* 2d. Home "Our products" filter tabs: arrow on phones to show there are
 * more tabs to swipe to. Button is added by functions.php (knx_tabs_arrow). */
html body .knx-tabs-next {
	display: none;
}
@media (max-width: 767px) {
	html body .knx-tabs-w.knx-has-more .knx-tabs {
		padding-right: 36px;
	}
	html body .knx-tabs-w.knx-has-more .knx-tabs-next {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 2px;
		right: 2px;
		bottom: 2px;
		width: 36px;
		padding: 0;
		margin: 0;
		border: 0;
		border-radius: 0;
		background: #0A0A0A;
		cursor: pointer;
		z-index: 2;
		box-shadow: -10px 0 12px -4px rgba(236, 236, 236, 0.95);
	}
	html body .knx-tabs-next::before {
		content: "";
		width: 9px;
		height: 9px;
		border-top: 2px solid #fff;
		border-right: 2px solid #fff;
		transform: translateX(-2px) rotate(45deg);
		transition: transform 0.2s;
	}
	html body .knx-tabs-w.knx-at-end .knx-tabs-next::before {
		transform: translateX(2px) rotate(-135deg);
	}
	html body .knx-tabs-next:focus-visible {
		outline: 2px solid #EE2B2F;
		outline-offset: 2px;
	}
}

/* 3. YITH Points & Rewards notice: one icon (the trophy), smaller, centred. */
html [class*="yith-par-message"].woocommerce-info {
	padding-left: 20px;
}
html [class*="yith-par-message"].woocommerce-info::before {
	display: none;
}
html [class*="yith-par-message"] img {
	display: inline-block;
	max-width: 22px !important;
	height: auto;
	margin: -3px 8px 0 0 !important;
	vertical-align: middle;
}

/* 3b. WooCommerce notices ("added to your cart", info, errors) in the KNX
 * style. Dark pages: same look as .knx-notice (red tint + red left bar).
 * Light "paper" panels (Cart / Checkout / My account): light version.
 * Button = same red Teko button as Add to cart. */
html body .woocommerce-message,
html body .woocommerce-info,
html body .woocommerce-error {
	background: rgba(238, 43, 47, 0.08);
	border-top: 0;
	border-left: 5px solid #EE2B2F;
	border-radius: 0;
	color: #D6D6D6;
	font-family: "Rubik", sans-serif;
	font-size: 15px;
	line-height: 1.7;
	padding: 18px 26px 18px 58px;
}
/* WooCommerce focuses the notice for screen readers; no outline for that. */
html body .woocommerce-message:focus,
html body .woocommerce-info:focus,
html body .woocommerce-error:focus {
	outline: none;
}
html body .woocommerce-message::before,
html body .woocommerce-info::before,
html body .woocommerce-error::before {
	color: #EE2B2F;
	top: 18px;
	left: 26px;
}
html body .woocommerce-message strong,
html body .woocommerce-info strong,
html body .woocommerce-error strong {
	color: #fff;
	font-weight: 500;
}
html body .woocommerce-message a:not(.button),
html body .woocommerce-info a:not(.button),
html body .woocommerce-error a:not(.button) {
	color: #fff;
	text-decoration: underline;
}
html body .woocommerce-message .button,
html body .woocommerce-info .button,
html body .woocommerce-error .button {
	background: #EE2B2F;
	color: #fff;
	font-family: "Teko", sans-serif;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 2px;
	line-height: 1;
	text-transform: uppercase;
	padding: 9px 26px 5px;
	margin: -4px 0 -4px 16px;
	border: 0;
	border-radius: 0;
	clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
	transition: background 0.2s, color 0.2s;
}
html body .woocommerce-message .button:hover,
html body .woocommerce-info .button:hover,
html body .woocommerce-error .button:hover {
	background: #fff;
	color: #0A0A0A;
}
/* Light panels (overrides the Site Settings .knx-paper notice rule). */
html body .knx-paper .woocommerce-message,
html body .knx-paper .woocommerce-info,
html body .knx-paper .woocommerce-error {
	background: #F4F4F4;
	color: #333;
	border-top: 0;
	border-left: 5px solid #EE2B2F;
}
html body .knx-paper .woocommerce-message strong,
html body .knx-paper .woocommerce-info strong,
html body .knx-paper .woocommerce-error strong,
html body .knx-paper .woocommerce-message a:not(.button),
html body .knx-paper .woocommerce-info a:not(.button),
html body .knx-paper .woocommerce-error a:not(.button) {
	color: #0A0A0A;
}
html body .knx-paper .woocommerce-message .button:hover,
html body .knx-paper .woocommerce-info .button:hover,
html body .knx-paper .woocommerce-error .button:hover {
	background: #0A0A0A;
	color: #fff;
}
/* Block cart/checkout notices (coupon errors, stock messages, etc.). */
html body .wc-block-components-notice-banner.wc-block-components-notice-banner {
	background: #F4F4F4;
	color: #333;
	border: 0;
	border-left: 5px solid #EE2B2F;
	border-radius: 0;
	font-size: 15px;
	line-height: 1.7;
}
html body .wc-block-components-notice-banner.wc-block-components-notice-banner > svg {
	background-color: #EE2B2F;
	fill: #fff;
	border-radius: 50%;
}
@media (max-width: 767px) {
	html body .woocommerce-message .button,
	html body .woocommerce-info .button,
	html body .woocommerce-error .button {
		float: none;
		display: table;
		margin: 12px 0 0;
	}
}

/* 4. Floating WhatsApp/Email buttons + WPBot.
 * Side by side in the bottom-right corner: WPBot in the corner, contact
 * toggle to its left. Both sit under the cart drawer (z-index 9998) and the
 * age-verification popup. */
html body #wp-chatbot-chat-container {
	right: 30px !important;
	bottom: 30px !important;
	z-index: 9994;
}
html body .e-contact-buttons {
	top: auto !important;
	bottom: 35px !important;
	right: 104px !important;
	transform: none !important;
	z-index: 9996;
}
html body #surbma-yes-no-popup.uk-modal {
	z-index: 10050;
}
/* The cart drawer lives inside the header's stacking context, so z-index
 * can't lift it above these; hide them while the drawer is open instead. */
/* Same reason the top bar (.knx-topbar, z 1000) covered the drawer: the
 * drawer sits in .knx-hdr-wrap (z 999). Lift that row while the cart is open. */
html body .knx-hdr-wrap:has(.elementor-menu-cart--shown) {
	z-index: 1001;
}
html body:has(.elementor-menu-cart--shown) .e-contact-buttons,
html body:has(.elementor-menu-cart--shown) #wp-chatbot-chat-container {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}
/* WPBot welcome bubble: the 60px avatar + welcome line was 1px too wide, so
 * the welcome line wrapped onto the message text. Smaller avatar = one line. */
html body #wp-chatbot-notification-container .wp-chatbot-notification-widget-avatar,
html body #wp-chatbot-notification-container .wp-chatbot-notification-widget-avatar img {
	width: 48px !important;
	height: 48px !important;
}
html body #wp-chatbot-notification-container .wp-chatbot-notification-welcome {
	margin-left: 6px;
	white-space: nowrap;
}
/* Avatar is 12px shorter than WPBot's 60px, so drop the row 12px (WPBot: -40px)
 * to keep the welcome line inside the card instead of on its top edge. */
html body #wp-chatbot-notification-container .wp-chatbot-notification-agent-profile {
	top: -28px;
}
/* The card is white but the text inherited the site's light-grey body colour. */
html body #wp-chatbot-notification-container .wp-chatbot-notification-welcome,
html body #wp-chatbot-notification-container .wp-chatbot-notification-message {
	color: #222;
}
@media (max-width: 767px) {
	html body #wp-chatbot-chat-container {
		right: 16px !important;
		bottom: 16px !important;
	}
	html body #wp-chatbot-chat-container .wp-chatbot-ball,
	html body #wp-chatbot-chat-container .wp-chatbot-ball img {
		width: 52px !important;
		height: 52px !important;
	}
	html body .e-contact-buttons {
		bottom: 17px !important;
		right: 80px !important;
	}
	/* The welcome bubble is too narrow on phones (text overlaps); hide it. */
	html body #wp-chatbot-notification-container {
		display: none !important;
	}
}
