/*
CTC Separate Stylesheet
Updated: 2024-04-09 09:14:59
*/

/*
 * CSS pour Ferrante
*/

:root {
	--color1:	rgb(44,47,87);		/* bleu foncé */
	--color2:	#FC485E;/*rgb(252,72,94);		/* fuschia */
	--color3:	rgb(236,236,241);	/* gris clair */
	--font1: 	Hind;
	--font2: 	Rasa;
	--calendar-rdv-width: 50vw;
}

.centre { text-align: center; }
.gauche { text-align: left; }
.droite { text-align: right; }
.italique { font-style: italic; }
.gras { font-weight: bold; }
.txt-white { color: white !important; }
.nonsouligne, .nonsouligne * { text-decoration: none !important; }
.invisible {
	display: none;
}
.nowrap { white-space: nowrap; }

.ferrante-button { cursor: pointer; }

.ferrante-underline-on-hover, .ferrante-underline-on-hover > a {
	text-decoration: none;
}
.ferrante-underline-on-hover:hover, .ferrante-underline-on-hover > a:hover {
	text-decoration: underline;
}

.ferrante-top-menu > p, .ferrante-top-menu li {
	padding: 15px 0;
	color: var(--color2);
}

.ferrante-top-menu .current-menu-item {
	color: var(--color2);
	border-bottom: 3px solid var(--color2);
}

ul.ferrante-top-menu li {
	padding: 15px 0;
}

.ferrante-border-bottom-transparent {
	border-bottom: 3px solid transparent;
}

.ferrante-border-bottom-color-1 {
	border-bottom: 3px solid var(--color1);
}

.ferrante-border-bottom-color-2 {
	border-bottom: 3px solid var(--color2);
}

.ferrante-color-1 {
	color: var(--color1);
}

.ferrante-color-2 {
	color: var(--color2);
}

.ferrante-bgcolor-1 {
	background-color: var(--color1);
}

.ferrante-bgcolor-2 {
	background-color: var(--color2);
}

.ferrante-bordercolor-1 {
	border: 1px solid var(--color1);
}

.ferrante-bordercolor-2 {
	border: 1px solid var(--color2);
}

.ferrante-font1, .ferrante-font1 * {
	font-family: var(--font1);
}

.ferrante-font2, .ferrante-font2 * {
	font-family: var(--font2);
}

.ferrante-font1-300, .ferrante-font1-300 * {
	font-family: var(--font1);
	font-weight: 300;
}

.ferrante-font1-400, .ferrante-font1-400 * {
	font-family: var(--font1);
	font-weight: 400;
}

.ferrante-font1-500, .ferrante-font1-500 * {
	font-family: var(--font1);
	font-weight: 500;
}

.ferrante-font1-600, .ferrante-font1-600 * {
	font-family: var(--font1);
	font-weight: 600;
}

.ferrante-font1-700, .ferrante-font1-700 * {
	font-family: var(--font1);
	font-weight: 700;
}

.ferrante-font2-300, .ferrante-font2-300 * {
	font-family: var(--font2);
	font-weight: 300;
}

.ferrante-font2-400, .ferrante-font2-400 * {
	font-family: var(--font2);
	font-weight: 400;
}

.ferrante-font2-500, .ferrante-font2-500 * {
	font-family: var(--font2);
	font-weight: 500;
}

.ferrante-font2-600, .ferrante-font2-600 * {
	font-family: var(--font2);
	font-weight: 600;
}

.ferrante-font2-700, .ferrante-font2-700 * {
	font-family: var(--font2);
	font-weight: 700;
}

.ferrante-min-150-w {
	min-width: 150px;
}

.ferrante-top-bar-blocks {
	max-height: 55px;
}

.woocommerce-account .wp-block-post-title, .woocommerce-account main .woocommerce, .woocommerce-cart .wp-block-post-title, .woocommerce-cart main .woocommerce, .woocommerce-checkout .wp-block-post-title, .woocommerce-checkout main .woocommerce {
	max-width: 80%;
}

.woocommerce-account .wp-block-post-title, .woocommerce-account main .woocommerce, .woocommerce-cart .wp-block-post-title, .woocommerce-cart main .woocommerce, .woocommerce-checkout .wp-block-post-title, .woocommerce-checkout main .woocommerce {
	width: 80%;
}

.wc-tabs .active, .wc-tabs li:hover {
	border-color: var(--color2) !important;
}

.woocommerce table.shop_attributes th {
	min-width: 250px !important;
	width: 20vw !important;
}

.cal-container .cal-line:first-child {
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
}

.cal-container .cal-line:last-child {
	border-bottom-right-radius: 5px;
	border-bottom-left-radius: 5px;
}

.cal-container p:empty {
	#background-color: red !important;
	#border: 1px solid red !important;
	display:none;
}

.calendar, .creneau {
	width: var(--calendar-rdv-width);
	#border: 1px solid red;
	margin: 10px auto;
	#display: table-cell;
	border-collapse: collapse;
}

.calendar div.cal-line > div {
	display: table-cell;
	width: calc(var(--calendar-rdv-width) / 7);
	padding: 5px 10px;
}

.cal-line {
	background-color: #F8F8F8;
	font-size: 1em;
}

.calendar-day-allowed {
	cursor: pointer;
}

.calendar-day-allowed:hover {
	opacity: 0.7;
}

.calendar-day-excluded {
	cursor: not-allowed;
}

.calendar-day-selected {
	opacity: 0.5;
	font-weight: bold;
}

.calendar-day-inner {
	border-radius: 5px;
	padding: 5px;
}

.creneau div.creneau-line > div {
	display: table-cell;
	padding: 5px 10px;
}

.creneau-horaire {
	text-align: center;
	width: calc(var(--calendar-rdv-width) / 7 * 2);
	font-size: 1em;
}

.creneau-horaire-selected, .creneau-horaire-unavailable, .creneau-horaire-default {
	border-radius: 5px;
	padding: 5px;
}

.creneau-horaire-selected {
	color: white;
	background-color: var(--color2);
	font-weight: bold;
	opacity: 0.7;
	border: 1px solid var(--color2);
	cursor: pointer;
}

.creneau-horaire-unavailable {
	color: white !important;
	background-color: var(--color2);
	opacity: 0.5;
	cursor: not-allowed;
}

.creneau-horaire-default {
	color: var(--color2);
	border: 1px solid var(--color2);
	opacity: 1;
	cursor: pointer;
}

.ferrante-titre-prenez-rdv {
	font-size: 3em;
	margin-bottom: 1em;
}

/*
.elementor-element.e-child + p:empty,
.elementor-element.e-parent + p:empty,
.ferrante-menu-item + p:empty, 
.ferrante-menu-item .elementor-widget-container + p:empty, 
.ferrante-menu-item-container + p:empty, 
.ferrante-menu-item-container .elementor-widget-heading + p:empty, 
.ferrante-menu-item-container .elementor-widget-container + p:empty, 
.ferrante-menu-item-container .elementor-heading-title + p:empty { display: none; }
*/

.woocommerce-MyAccount-navigation-link {
	list-style-type: none;
	margin: 5px auto;
}

.woocommerce-MyAccount-navigation-link > a > br { display:none; }

.woocommerce-MyAccount-navigation ul li a {
	color: var(--e-global-color-secondary) !important;
}

.woocommerce-MyAccount-navigation ul li a:hover, .woocommerce-MyAccount-navigation ul li.is-active a {
	color: var(--e-global-color-primary) !important;
}

.woocommerce {
	#margin-bottom: 100px;
	margin: auto auto 100px;
}

/*
 On masque les boutons "Quick View" et "Add to Compare" sous les produits
 On masque aussi les fils d'ariane de la boutique
*/
.wopb-cart-bottom, .wp-block-product-blocks-product-breadcrumb {
	display: none !important;
}

.wc-block-components-sidebar {
	width: 30% !important;
}

.alignwide {
	margin-left: auto;
	margin-right: auto;
}

.entry-content .alignwide {
	margin-left: auto !!important;
	margin-right: auto !!important;
}
.entry-content .alignfull {
	margin-left  : calc( -100vw / 2 + 100% / 2 );
	margin-right : calc( -100vw / 2 + 100% / 2 );
	max-width    : 100vw;
}
.alignfull img {
	width: 100vw;
}

.woocommerce-Price-amount, .price {
	color: var(--color1) !important;
	font-size: 1.1em !important;
	font-family: var(--font2) !important;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

h2.ferrante-groupe-h, .wp-block-product-blocks-product-additional-info h2 {
	border-bottom: 1px solid #AEAEAE;
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 9px;
	color: rgb(252,74,92);
	font-size: 1.5em;
	#padding-bottom: 0 !important;
	#margin-bottom: 0 !important;
}
/*
.ferrante-groupe-h h2 {
	text-decoration: underline;
	border-bottom: 3px solid #AEAEAE;
}
*/

.products > .product {
	text-align: center;
}

.wopb-main-image > img {
	max-height: 400px;
	width: auto !important;
	margin: auto;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button {
	background-color: rgb(252,74,92) !important;
	color: white !important;
	border-radius: 50px;
}

.wp-block-woocommerce-cart {
	width: 80%;
}

.ferrante_produit_info {
	border-radius: 5px;	border: 1px solid #41457533;
	padding-top: 1em;
}

table tbody > tr:nth-child(2n+1) > td, table tbody > tr:nth-child(2n+1) > th {
	background-color: transparent !important;
}

.border-radius-10 {
	border-radius: 10px;
}

.wp-block-product-blocks-product-description, .wp-block-product-blocks-product-description * {
	color: #2C2F57 !important;
}

.reset_variations, .wc-block-components-button__text, .woocommerce-terms-and-conditions-link, .woocommerce-privacy-policy-link, .wc-block-components-product-name {
	color: var(--color2);	
}

/* Marge autour du WooCommerce */
.wopb-builder-container {
	margin-top: 3em !important;
	margin-bottom: 3em !important;
}

/*#main:has(header.woocommerce-products-header),*/ #content:has(.page-content .wp-block-woocommerce-cart), #content:has(.page-content .woocommerce) {
	margin-top: 3em !important;
	margin-bottom: 3em !important;
}

[type="submit"]:hover {
	color: #000 !important;
	background-color: var(--color2);
}

.woocommerce ul.products li.product .button {
	margin-top: 0.5em !important;
	padding-top: 15px !important;
	padding-bottom: 15px !important;
}

h2.woocommerce-loop-product__title {
	color: var(--color2) !important;
	font-weight: 700;
	height: 4em;
	line-height: 1.5em;
	padding: .5em 3em !important;
	overflow : hidden;
}

.woocommerce-Price-amount, .woocommerce-Price-amount * {
	color: var(--color2);
	font-size: 2em;
	font-weight: 500;
}

.variations_form_cart table td, table th {
	#padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.wopb-block-65c872 .wopb-product-wrapper {
	padding: 0 !important;
}

.wopb-block-76f600 .wopb-product-wrapper {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.wopb-block-905a45 .woocommerce-Price-amount, .wopb-block-905a45 .price {
	font-family: var(--font1) !important;
	font-size: 1.5em !important;
	margin: auto;
	text-align: center;
}

.wopb-block-905a45 .woocommerce-Price-amount {
	clear: both;
}

.wopb-builder-cart form.cart div.quantity .input-text, body.woocommerce div.product .wopb-builder-cart form.cart div.quantity .input-text {
	-moz-appearance: textfield;
	text-align: center;
}

.wopb-cart-button, .single_variation_wrap, .wp-block-product-blocks-product-cart {
	width: 100% !important;
}

.ferrante_produit_top_single_text {
	font-size: 1.2em;
	text-transform: uppercase;
}

.woocommerce-Price-currencySymbol {
	font-size: 1em !important;
}

body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link):focus {
	box-shadow: inset 0 0 0 1px #fff,0 0 0 2px var(--color2) !important;
}

#order_comments {
	height: 100px;
}

abbr.required {
	color: var(--color2) !important;
}

body.term-chaudieres h1.woocommerce-products-header__title, body.term-chauffe-eau h1.woocommerce-products-header__title, body.term-thermostats h1.woocommerce-products-header__title {
	display: none;
}

body.term-chaudieres .woocommerce-products-header, body.term-chauffe-eau .woocommerce-products-header, body.term-thermostats .woocommerce-products-header {
	margin-top: 3em !important;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb a {
	color: var(--e-global-color-primary) !important;
	font-weight: 700 !important;
	#font-size: 0.8em;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb {
	color: var(--e-global-color-text) !important;
	#font-size: 0.8em;
	font-weight: 400 !important;
}

.wopb-product-gallery-wrapper .slick-slide img {
    object-fit: contain !important;
}

.wopb-block-bc5b32 .single_add_to_cart_button, .woocommerce .wopb-block-bc5b32 .wopb-builder-cart .cart .single_add_to_cart_button {
	padding-top: 15px !important;
	padding-bottom: 15px !important;
}

.woocommerce-LostPassword a {
	color: var(--e-global-color-secondary) !important;
}

.woocommerce-LostPassword a:hover {          
        color: var(--e-global-color-primary) !important;
}

/* Media Queries */

@media screen and (max-width: 768px) {
	:root {
		--calendar-rdv-width: 80vw;
	}
	.cal-line, .creneau-horaire {
		font-size: 0.7em;
	}
}

.ferrante_add_custom_banner_account_page {
	margin: -10px;
}