/*
	Theme Name: Hello Biz Child - ASRLS
	Theme URI: https://asrls.ch
	Description: Child theme for Hello Biz, customized for ASRLS.
	Author: Neoservice
	Author URI: https://neoservice.ch
	Template: hello-biz
	Version: 1.2.0
	Requires at least: 6.0
	Tested up to: 6.8
	Requires PHP: 7.4
	License: GNU General Public License v3 or later.
	License URI: https://www.gnu.org/licenses/gpl-3.0.html
	Text Domain: hello-biz-child
*/

/* Make header wrap so top bar gets its own row */
.has-top-bar .ehp-header {
	flex-wrap: wrap !important;
}

/* ── Top Bar (lives inside .ehp-header) ── */
.top-bar {
	background-color: #1a1a2e;
	color: #ffffff;
	font-size: 13px;
	line-height: 1;
	flex: 0 0 100%;
	order: -1;
}

.top-bar__inner {
	padding: 0 32px;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.top-bar__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0;
}

.top-bar__menu li {
	margin: 0;
}

.top-bar__menu li a {
	display: block;
	padding: 8px 14px;
	color: #ffffff;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.top-bar__menu li a:hover,
.top-bar__menu li a:focus {
	background-color: rgba(255, 255, 255, 0.1);
	color: #ffffff;
}

/* ── Custom Font ── */
@font-face {
	font-family: 'The Series';
	font-style: normal;
	font-weight: normal;
	font-display: auto;
	src: url('https://www.asrls.ch/wp-content/uploads/2025/11/The_Series.eot');
	src: url('https://www.asrls.ch/wp-content/uploads/2025/11/The_Series.eot?#iefix') format('embedded-opentype'),
		url('https://www.asrls.ch/wp-content/uploads/2025/11/The_Series.woff') format('woff'),
		url('https://www.asrls.ch/wp-content/uploads/2025/11/The_Series.ttf') format('truetype'),
		url('https://www.asrls.ch/wp-content/uploads/2025/11/The_Series.svg#TheSeries') format('svg');
}

/* ── Homepage ── */
.home footer .elementor-shape-top .elementor-shape-fill {
	fill: white !important;
}

.home .space-footer {
	background-color: white !important;
}

/* QA 1.2 — Increase margin between last block and footer */
.home footer>.elementor-element {
	margin-top: 0px;
}

/* ── MEC (Modern Events Calendar) ── */
.mec-single-event .mec-events-meta-group-booking .mec-field-wrapper span.mec-field-icon {
	display: none;
}

.mec-single-event .mec-events-meta-group-booking .mec-field-wrapper input {
	border: 1px solid #e3e5e7;
}

.lity-content .mec-events-meta-group-booking ul li.col-md-6:nth-child(2),
.mec-single-event .mec-events-meta-group-booking ul li.col-md-6:nth-child(2),
.mec-single-event .mec-events-meta-group-booking ul li {
	width: 100%;
	margin-left: 0;
}

.wpgb-facet>fieldset:last-child {
	margin-bottom: 0 !important;
}

.wpgb-grid-5 .wpgb-area-top-1,
.wpgb-facet .wpgb-button[aria-pressed=true] {
	border-radius: 16px;
}

.wpgb-facet .wpgb-button[aria-pressed=true] {
	background-color: #E0D7F5 !important;
	border-color: #E0D7F5 !important;
	color: #064B80 !important;
}

.wpgb-facet .wpgb-selection-facet .wpgb-button-control:after,
.wpgb-facet .wpgb-selection-facet .wpgb-button-control:before {
	background-color: #064B80 !important;
}

.wpgb-facet button.wpgb-apply,
.wpgb-facet button.wpgb-reset {
	margin: 0 0 40px;
	padding: 12px 36px;
	background-color: transparent !important;
	color: #064B80 !important;
}

.wp-grid-builder .wpgb-card-2:hover .wpgb-block-7 {
	color: #fff;
	background: #F4A261 !important;
	border-color: #F4A261 !important;
	box-shadow: none !important;
}

.mec-container {
	margin-top: 20px;
}

.mec-single-liquid-wrap .mec-single-event-bar {
	border-left: 7px solid #0E3150;
}

.mec-event-grid-classic .mec-event-article {
	border: none;
	box-shadow: none;
	border-radius: 16px;
	background-color: #E0D7F5;
}

.mec-event-grid-classic .mec-event-image {
	border-radius: 16px 16px 0 0;
}

.mec-event-footer {
	background-color: transparent;
	border: none;
}

.mec-event-grid-classic .mec-event-footer>.mec-event-sharing-wrap {
	border: none;
}

.mec-event-grid-classic .mec-event-sharing-wrap>li:first-of-type {
	border: none;
}

.mec-event-grid-classic .mec-event-sharing-wrap>li:first-of-type:hover {
	border-radius: 8px;
}

.mec-event-grid-classic .mec-event-footer>.mec-booking-button {
	text-align: center;
	width: 100%;
	position: static;
	display: block;
	background-color: white;
	border-radius: 8px;
	border: none;
	color: #064B80;
	font-weight: 600;
}

.mec-event-grid-classic .mec-event-footer .mec-booking-button:hover {
	background-color: #F4A261;
	border: none;
	color: white;
}

.mec-event-grid-classic .mec-event-grid-classic .mec-event-title {
	text-align: left;
	text-transform: none;
}

.mec-event-grid-classic .mec-categories-wrapper {
	position: absolute;
	top: 15px;
	background-color: white;
	padding: 3px;
	border-radius: 5px;
}

.mec-event-grid-classic .mec-event-title {
	text-align: left;
}

/* ── Header ── */
.ehp-header__button:hover>.ehp-header__button-text {
	color: white;
}

.ehp-header__button:hover>svg {
	fill: white;
}

/* ── Handwritten style (span.hand) ── */
span.hand {
	font-size: 70px;
	font-weight: 500 !important;
	transform: rotate(-2deg);
	-webkit-transform: rotate(-2deg);
	-moz-transform: rotate(-2deg);
	-ms-transform: rotate(-2deg);
	-o-transform: rotate(-2deg);
	line-height: 0.8 !important;
	font-family: "The Series", Sans-serif;
	display: inline-block;
	margin-top: 1px;
	color: var(--e-global-color-primary);
	position: relative;
	top: 10px;
}

/* ── Cart ── */
.editor-styles-wrapper table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name,
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
	color: #064B80;
	font-size: 24px;
}

.wc-block-cart .wc-block-cart__submit-container>a {
	background-color: #064B80 !important;
	color: white !important;
	border-radius: 8px;
}

.wc-block-cart .wc-block-cart__submit-container>a:hover {
	background-color: #F4A261 !important;
}

/* ── Donation ── */
.widget_wc-donation-widget .wc-donation-in-action .in-action-elements>.row2 {
	display: flex;
	justify-content: space-between;
}

.button.wc-donation-social-share {
	background-color: white !important;
	color: #0E3150 !important;
}

/* ── CheckoutWC custom fields ── */
.cfw-date-input #billing_birth_date {
	width: 100% !important;
	padding: 21.6px 12.8px 4.48px !important;
	border: 1px solid #d9d9d9 !important;
	border-radius: 5px !important;
	font-size: 16px !important;
	font-family: inherit !important;
	background-color: #fff !important;
	box-sizing: border-box !important;
	height: 48px !important;
	-webkit-appearance: none;
	appearance: none;
}

/* ── Ultimate Member Account page ── */
.um-account .um-button,
.um-account a.um-request-button,
.um-account .button,
.um-account a.button {
	background-color: #064B80 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 8px;
	padding: 10px 24px;
	text-decoration: none;
	display: inline-block;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.um-account .um-button:hover,
.um-account a.um-request-button:hover,
.um-account .button:hover,
.um-account a.button:hover {
	background-color: #F4A261 !important;
	color: #fff !important;
}

.um-account .um-account-side .um-account-tab a.current i,
.um-account .um-account-side .um-account-tab a:hover i {
	color: #064B80 !important;
}

/* ── Non-Elementor pages: add top margin to content ── */
body:not([class*=elementor-page-]) .site-main {
	margin-top: 50px;
}

/* ── Mailster newsletter form (footer) ── */
.wp-block-mailster-form-outside-wrapper .mailster-block-form-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	background: transparent;
	padding: 0;
	gap: 0;
}

/* QA 1.3 — Show newsletter validation/success messages */
.wp-block-mailster-form-outside-wrapper .wp-block-mailster-messages {
	flex: 0 0 100%;
	order: 4;
	padding: 8px 20px 0;
	font-size: 14px;
	color: #fff;
}

.wp-block-mailster-form-outside-wrapper .wp-block-mailster-field-email {
	flex: 1 1 auto;
	min-width: 0;
	order: 1;
	background: #fff;
	border-radius: 12px 0 0 12px;
	padding: 7px 0 7px 7px;
}

.wp-block-mailster-form-outside-wrapper .wp-block-mailster-field-email input[type="email"] {
	width: 100%;
	border: none !important;
	background: transparent !important;
	padding: 10px 20px !important;
	font-size: 15px;
	outline: none;
	box-shadow: none !important;
	height: auto !important;
	line-height: 1.3 !important;
}

.wp-block-mailster-form-outside-wrapper .wp-block-mailster-field-email .mailster-label {
	display: none !important;
}

.wp-block-mailster-form-outside-wrapper .wp-block-mailster-field-email input[type="email"]::placeholder {
	color: #999 !important;
	opacity: 1 !important;
}

.wp-block-mailster-form-outside-wrapper .wp-block-mailster-field-submit {
	flex: 0 0 auto;
	order: 2;
	background: #fff;
	border-radius: 0 12px 12px 0;
	padding: 7px 7px 7px 0;
}

.wp-block-mailster-form-outside-wrapper .wp-block-mailster-field-submit input[type="submit"] {
	background-color: #1a1a2e !important;
	color: #fff !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 0 24px !important;
	height: 40px !important;
	line-height: 1 !important;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.2s ease;
}

.wp-block-mailster-form-outside-wrapper .wp-block-mailster-field-submit input[type="submit"]:hover {
	background-color: #F4A261 !important;
}

.wp-block-mailster-form-outside-wrapper .wp-block-mailster-gdpr {
	flex: 0 0 100%;
	order: 3;
	padding: 10px 20px 0;
	font-size: 13px;
	color: #fff;
}

.wp-block-mailster-form-outside-wrapper .wp-block-mailster-gdpr .mailster-label {
	color: inherit !important;
}

@media only screen and (max-width: 400px) {
	.wp-block-mailster-form-outside-wrapper .wp-block-mailster-field-email {
		flex: 0 0 100%;
		border-radius: 12px 12px 0 0;
		padding: 7px 7px 0 7px;
	}

	.wp-block-mailster-form-outside-wrapper .wp-block-mailster-field-submit {
		flex: 0 0 100%;
		border-radius: 0 0 12px 12px;
		padding: 0 7px 7px 7px;
	}

	.wp-block-mailster-form-outside-wrapper .wp-block-mailster-field-submit input[type="submit"] {
		width: 100%;
		border-radius: 8px !important;
	}
}

/* ══════════════════════════════════════
   QA V.2 Fixes — 11.03.2026
   ══════════════════════════════════════ */

/* QA 1.2 — Fix footer tagline overflow (P and G clipped) */
footer .elementor-widget-heading .elementor-heading-title {
	overflow: visible !important;
	line-height: 1.4 !important;
}

/* QA 2.2 — Partner section carousel arrows in blue */
.mec-event-grid-classic .mec-owl-carousel .owl-nav button,
.elementor-widget-image-carousel .elementor-swiper-button,
.e-con .elementor-widget-loop-carousel .elementor-swiper-button {
	color: #064B80 !important;
}

.elementor-widget-image-carousel .elementor-swiper-button svg,
.e-con .elementor-widget-loop-carousel .elementor-swiper-button svg {
	fill: #064B80 !important;
}

/* QA 4.1 — Increase line-height for news single title */
.single-post .elementor-widget-theme-post-title .elementor-heading-title,
.single-post .entry-title {
	line-height: 1.4 !important;
}

/* QA 5.1 — Reduce line-height in shop product titles */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-grid__product-title {
	line-height: 1.3 !important;
}

/* QA 5.1 — Reduce gap between description and CTA + narrower CTA */
.woocommerce ul.products li.product .woocommerce-loop-product__link+a.button,
.woocommerce ul.products li.product a.add_to_cart_button {
	max-width: 200px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 8px !important;
}

/* QA 5.3 — Fix "Voir le panier" alignment after adding product */
.woocommerce-message,
.wc-block-components-notice-banner {
	display: flex;
	align-items: center;
	gap: 12px;
}

.woocommerce-message .button.wc-forward {
	order: 2;
	margin-left: auto;
}

/* QA 5.4 — Remove auto-capitalize on checkout form labels */
#cfw-checkout label,
#cfw-checkout .cfw-input-wrap label,
.woocommerce-checkout .form-row label,
.cfw-module label {
	text-transform: none !important;
}

/* QA 6.1 — Fix donation header title overlap */
.page-template-default .elementor-widget-ehp-page-hero .elementor-heading-title,
.wc-donation-page .elementor-widget-heading .elementor-heading-title {
	line-height: 1.3 !important;
	overflow: visible !important;
}

/* QA 6.3 — Remove capitalize on block section titles (keep sentence case) */
.elementor-widget-heading .elementor-heading-title {
	text-transform: none !important;
}

/* QA 5.2 — Improve empty cart page */
.wc-block-cart--is-empty .wp-block-woocommerce-cart {
	margin-inline: 0;
}

.wc-block-cart--is-empty .wc-block-cart__empty-cart__title {
	font-size: 24px;
}

.woocommerce-cart .cart-empty {
	text-align: center;
	font-size: 18px;
}

/* Global — Force no text-transform on all headings */
h1,
h2,
h3,
h4,
h5,
h6 {
	text-transform: none !important;
}

/* WooCommerce — Product title styling */
.woocommerce div.product .product_title {
	clear: none;
	margin-top: 0;
	padding: 0;
	line-height: initial;
	font-size: 32px !important;
}

/* WooCommerce — Space between button and "View cart" link */
.woocommerce a.added_to_cart {
	margin-left: 10px;
}

/* WooCommerce — Full-width add to cart button in product loop */
.woocommerce-loop-product__buttons .add_to_cart_button {
	width: 100%;
	text-align: center;
}

/* MEC — Hide ticket subtotal wrapper */
.mec-ticket-subtotal-wrapper {
	display: none !important;
}