/* WOOCOMMERCE:Custom Styles
* ------------------------------------------ */

/* PAGE: Boutique */
.archive.post-type-archive-product .wc-block-product-template__responsive {
    grid-gap: 5px;
    margin: 0 !important;
}

.ct-custom-product-image-wrapper {
	position:relative;
}

.woocommerce .wp-block-query-pagination-numbers {
	
}

.woocommerce .woocommerce-breadcrumb a:hover {
	color:var(--wp--preset--color--secondary);
}

/* Mini Panier */
.wc-block-mini-cart__footer .wc-block-mini-cart__footer-actions .wc-block-components-button {
	font-size:var(--wp--preset--font-size--small);
}

.wc-block-components-button:not(.is-link) .wc-block-components-button__text {
	
}

/* Header on specific pages
 * ------------------------------------------- */
.woocommerce-cart header, .woocommerce-account header, .woocommerce-checkout header {
	background-color: var(--wp--preset--color--base);
}


/* Single Product
 * ------------------------------------------- */

/*  Do not display Download Details Tab on specific products: Abonnement + Donation */
.single-product.product_cat-donation details.download-details-tab {
	display:none;
}


/* Add to cart: button */
.archive.post-type-archive-product .wp-block-button.wc-block-components-product-button.is-style-outline .wp-block-button__link {
	border:0;
}

.wp-block-woocommerce-add-to-cart-form .variations_button, 
.wp-block-woocommerce-add-to-cart-form form.cart {
    grid-template-columns: min-content auto;
}

.woocommerce div.product form.cart::after {
	display:none;
}

form.cart .wp-element-button, .wp-block-button__link {
	width:100%;
	padding-top:0.5rem;
	padding-bottom:0.5rem;
}


.wc-block-components-notices:has(.wp-block-add-to-cart-with-options){
	margin-bottom:0;
}

/* Qty: Add to cart */
.wc-block-components-quantity-selector,
.wc-block-components-quantity-selector>.wc-block-components-quantity-selector__button--plus,
.wc-block-components-quantity-selector>.wc-block-components-quantity-selector__button--minus,
.wc-block-components-quantity-selector:after {
	border-radius:0;
}

/* Single product */
.woocommerce div.product {
	margin-top:0
}

/* Product Gallery */
.woocommerce .wp-block-woocommerce-product-image-gallery span.onsale {
	display:none;
}

/* Product Gallery for Category product: Guides, Magazines */
.ct-simple-product-gallery {
	display:flex;
    justify-content:center;
	align-content:center;
	align-items:center;
	width:100%;
	height:100vh;
	overflow:hidden;
}

.ct-simple-product-gallery-img {
	position:absolute;
	width:100%;
	height:100%;
	max-height:100vh;
	object-fit:cover;
}

.ct-simple-product-gallery-img:nth-child(2) {
	width:50%;
	right:25px;
}

/* Product Gallery for Category product: Fonds d'ecran */
.ct-animated-product-gallery {
	display:flex;
    justify-content:center;
	align-content:center;
	align-items:center;
	width:100%;
	height:100vh;
	overflow:hidden;
}

.ct-animated-product-gallery-img {
	position:absolute;
	width:100%;
	height:100vh !important;
	object-fit:cover;
	transition: opacity 1s ease;
}

/* Show only the first image by default */
.ct-animated-product-gallery-img:nth-child(1) {
	opacity: 1;
	z-index: 1;
}

/* Hide the second image */
.ct-animated-product-gallery-img:nth-child(2) {
	opacity: 0;
	z-index: 0;
}

/* On hover: fade out 1st, fade in 2nd */
.ct-animated-product-gallery:hover .ct-animated-product-gallery-img:nth-child(1) {
	opacity: 0;
}

.ct-animated-product-gallery:hover .ct-animated-product-gallery-img:nth-child(2) {
	opacity: 1;
}

/* Product tags */
.taxonomy-product_tag.wp-block-post-terms a:before {
	content:'#';
}

.taxonomy-product_tag.wp-block-post-terms a {
	font-weight:normal;
}


/* Checkout Page */
.woocommerce-checkout p,
.woocommerce-checkout span,
.woocommerce-checkout label {
	font-size:.9rem !important ;
}

.wc-block-components-sidebar-layout {
	gap:25px;
}

.wc-block-components-sidebar-layout .wc-block-components-main {
	padding:25px;
	background-color:var(--wp--preset--color--base);
}

.wc-block-components-sidebar {
	padding:25px;
	background-color:var(--wp--preset--color--base);
	box-sizing: content-box;
    width: calc(35% - 75px);
}

.wp-block-woocommerce-checkout-order-summary-block {
	border:0;
}

.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title {
	margin-top:0;
	margin-bottom:16px;
	border-bottom: 1px solid hsla(0,0%,7%,.11);
}


.woocommerce-checkout .wc-block-components-product-metadata__description,
.wc-block-components-product-details__montant-du-don {
	display:none;
}

.woocommerce-page input,
.wc-block-components-address-form__country.wc-block-components-country-input,
.wc-block-checkout__form.wc-block-components-address-form__country.wc-blocks-components-select,
.wc-blocks-components-select .wc-blocks-components-select__container,
.wc-blocks-components-select .wc-blocks-components-select__select {
	border-radius:0 !important;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__quantity {
	border-radius:0 !important;
}

.wc-blocks-components-select .wc-blocks-components-select__select {
	font-size:14px;
}


/* Notices */
.wc-block-components-notice-banner {
   border-radius:0 !important;
}

.woocommerce-store-notice, p.demo_store {
	font-size:.95rem;
	padding:1em;
	background-color:var(--wp--preset--color--contrast);
	box-sizing:border-box;
}

.wc-block-components-notice-banner.is-info {
	background-color:transparent;
	border-color:var(--wp--preset--color--contrast);
}

.wc-block-components-notice-banner.is-info>svg {
	background-color:transparent !important;
	fill: var(--wp--preset--color--secondary);
	padding-left:20px;
}

.wc-block-components-validation-error svg {
	display:none;
}

.wc-block-components-notice-banner.is-success {
    background-color: white !important;
    border-color: var(--wp--preset--color--accent-green) !important;
}

.wc-block-components-notice-banner.is-success>svg {
    background-color: var(--wp--preset--color--accent-green) !important;
}


.wc-block-components-notice-banner.is-error {
    background-color: white !important;
}

.wc-block-components-notice-banner.is-error .wc-block-components-notice-banner__content {
	align-items: self-start;
}

/* PAGE: My Account */
.woocommerce-page main header {
	position:relative;
}

.woocommerce-account main .woocommerce {
	max-width:100%;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	background-color: var(--wp--preset--color--accent-green-three);
	padding:25px;
	box-sizing:border-box;
}

.woocommerce-account .woocommerce-MyAccount-content {
	border: 25px solid var(--wp--preset--color--accent-green-three);
	padding:25px;
	box-sizing:border-box;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover,
.woocommerce-account .woocommerce-MyAccount-content a:hover,
.woocommerce-account .woocommerce-Address .woocommerce-Address-title.title a:hover,
.dashboard-back-to-store-button a:hover {
   color:inherit;
   font-weight: 600;
}

.woocommerce-account .woocommerce-Address .woocommerce-Address-title.title {
	margin:25px 0;
}

.woocommerce-account .woocommerce-Address .woocommerce-Address-title.title h2 {
	font-size: 1.25rem;
	font-weight:500;
}

.woocommerce-account .woocommerce-Address .woocommerce-Address-title.title a,
.woocommerce-account .woocommerce-Address address {
	padding: 0 25px 25px 25px;
}

.woocommerce-account .wc-block-components-notice-banner>.wc-block-components-notice-banner__content .wc-forward {
	background-color: var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--base) !important;
	opacity:1 !important;
    padding: 12px !important;
	text-decoration:none;
	display:none;
}

.woocommerce-account .wc-block-components-notice-banner__content {
	display:flex;
	justify-content:space-between;
	align-items:center;
}

