/*
Theme Name: Easy to Market
Theme URI: https://www.easytomarket.ch/
Description: Child theme for easy to market, based on Hello Elementor.
Author: Armin Oppliger
Author URI: https://useit.ch/
Template: hello-elementor
Version: 1.0.8
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 */

/* Unternehmensregistration e-Learning purchase UI */
body.single-product form.cart:has(.apo-options) {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 18px;
	max-width: 520px;
}

body.single-product.postid-1111 form.cart .quantity {
	display: none !important;
}

body.single-product form.cart:has(.apo-options) .apo-options,
body.single-product form.cart:has(.apo-options) .apo-field,
body.single-product form.cart:has(.apo-options) .apo-breakdown {
	max-width: 100%;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
}

body.single-product form.cart:has(.apo-options) .apo-field {
	padding: 16px 18px 18px;
	border-radius: 12px;
	border-color: rgba(12, 80, 125, 0.16);
	background: #f6f8fb;
}

body.single-product form.cart:has(.apo-options) .apo-field.is-engaged {
	background: #fff;
	border-color: #0c507d;
	box-shadow: 0 1px 6px rgba(12, 80, 125, 0.08);
}

body.single-product form.cart:has(.apo-options) .apo-field__label {
	flex-wrap: wrap;
	align-items: center;
	margin-bottom: 10px;
	gap: 8px 12px;
}

/* Stop Elementor add-to-cart styles from leaking onto option controls. */
body.single-product form.cart .apo-tip-toggle {
	all: unset;
	box-sizing: border-box;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 18px !important;
	height: 18px !important;
	min-width: 18px;
	min-height: 18px;
	margin-left: 6px;
	padding: 0 !important;
	border: 1px solid rgba(12, 80, 125, 0.45) !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: #0c507d !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	cursor: pointer;
	opacity: 0.7;
}

body.single-product form.cart .apo-tip-toggle:hover,
body.single-product form.cart .apo-tip-toggle[aria-expanded="true"] {
	opacity: 1;
	background: #0c507d !important;
	color: #fff !important;
	border-color: #0c507d !important;
}

body.single-product.postid-1111 .apo-tip[hidden] {
	display: block !important;
}

body.single-product.postid-1111 .apo-field__desc {
	margin-bottom: 12px;
	color: #5b6b7c;
}

body.single-product form.cart .apo-qty {
	height: 48px;
	border-radius: 10px;
	border-color: rgba(12, 80, 125, 0.22);
	overflow: hidden;
}

body.single-product form.cart .apo-qty__btn {
	all: unset;
	box-sizing: border-box;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 48px !important;
	min-width: 48px;
	height: 48px !important;
	min-height: 48px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #0c507d !important;
	color: #fff !important;
	font-size: 22px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	cursor: pointer;
}

body.single-product form.cart .apo-qty__btn:hover {
	background: #0a4368 !important;
}

body.single-product form.cart .apo-qty input[type="number"] {
	width: 72px;
	min-height: 48px;
	border: 0;
	font-size: 18px;
	font-weight: 700;
	color: #0c507d;
}

body.single-product form.cart:has(.apo-options) .single_add_to_cart_button {
	display: inline-block;
	width: auto !important;
	max-width: max-content;
	align-self: flex-start;
	margin: 0 auto 0 0 !important;
	padding: 16px 24px;
}

body.single-product form.cart .apo-breakdown {
	background: #f6f8fb;
	border: 1px solid rgba(12, 80, 125, 0.12);
	border-radius: 12px;
	padding: 14px 18px;
}

body.single-product form.cart .apo-breakdown[hidden],
body.single-product form.cart .apo-breakdown:not(:has(li)) {
	display: none !important;
}

body.single-product form.cart .apo-breakdown__row--total {
	color: #0c507d;
	font-size: 1.15em;
}

body.single-product .elementor-widget-woocommerce-product-price .price {
	font-size: 32px;
	font-weight: 700;
	color: #0c507d;
	margin-bottom: 4px;
}

/* Thank-you page: do not offer pay/cancel again after checkout */
body.woocommerce-order-received .order-actions--heading,
body.woocommerce-order-received .order-actions-button {
	display: none;
}

body.woocommerce-order-received tr:has(.order-actions-button) {
	display: none;
}

/* My account: Elementor kit sets link color to white */
body.woocommerce-account .woocommerce-MyAccount-navigation a,
body.woocommerce-account .woocommerce-MyAccount-content a {
	color: #0c507d;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
body.woocommerce-account .woocommerce-MyAccount-content a:hover {
	color: #ed3857;
}

body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
	font-weight: 700;
}

/* Page content (Datenschutz TOC, pasted HTML): kit link color is white */
body.page .elementor[data-elementor-type="wp-page"] .elementor-widget-html a,
body.page .elementor[data-elementor-type="wp-page"] .elementor-widget-text-editor a,
body.page .elementor[data-elementor-type="wp-page"] .elementor-widget-theme-post-content a {
	color: #0c507d !important;
}

body.page .elementor[data-elementor-type="wp-page"] .elementor-widget-html a:hover,
body.page .elementor[data-elementor-type="wp-page"] .elementor-widget-text-editor a:hover,
body.page .elementor[data-elementor-type="wp-page"] .elementor-widget-theme-post-content a:hover {
	color: #ed3857 !important;
}

/* Footer sits on brand blue; keep links readable */
body footer.elementor[data-elementor-type="footer"] a,
body .elementor-location-footer a {
	color: #ffffff !important;
}

body footer.elementor[data-elementor-type="footer"] a:hover,
body .elementor-location-footer a:hover {
	color: #ed3857 !important;
}
