
/* Cart button */
.elementor-menu-cart__toggle_button {
    padding-left: 10px !important;
    padding-right: 10px !important;
    height: 42px;
    border: 2px solid transparent !important;
    transition: all 0.4s ease-in-out !important;
}

.elementor-menu-cart__toggle_button:has(bdi.bold) {
    border-color: white !important;
    color: var(--jaune);
}

.elementor-menu-cart__toggle_button:has(bdi.bold):hover {
    color: #0f3e69;
    background: var(--jaune);
}
.elementor-menu-cart__toggle_button:has(bdi.bold):hover svg {
    fill: #0f3e69;
}
.elementor-menu-cart__toggle_button.max-cart bdi.bold {
		color: red !important;
}

.elementor-menu-cart__toggle_button svg {
    transition: all 0.4s ease-in-out;
}
.elementor-menu-cart__toggle_button:hover svg {
    transform: scale(1.3);
    transition: all 0.4s ease-in-out;
}

.elementor-menu-cart__main {
    transition: 1.5s;
    width: 370px !important;
}
@keyframes flash-cart {
	0% {
	}
	50% {
		color: var(--orange);
	}
}


/*************
 * Mini cart *
 *************/

/* Close button */
.elementor-menu-cart__close-button {
    height: 32px !important;
    border-radius: 3px;
}
.elementor-menu-cart__close-button::before,
.elementor-menu-cart__close-button::after {
    height: 4px !important;
    width: 80% !important;
    top: 46% !important;
    left: 9% !important;
}
.elementor-menu-cart__close-button:hover {
    background: #C70000;
}

/* Title */
.widget_shopping_cart_content:before {
    content: 'Mon panier';
    color: var(--orange);
    text-align: center;
    font-weight: bold;
    font-size: 35px;
    margin-bottom: 50px;
}

/* Products*/
.elementor-menu-cart__products {
    padding-bottom: 5px; /* to correct displayed scrollbar bug with overflow-y set to auto */
}
.elementor-menu-cart__product {
	grid-template-columns: 20% auto !important;
}
.elementor-menu-cart__product-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 42px !important;
}
.elementor-menu-cart__product-image a {
    border: 1px solid  #515151cc;
}
.elementor-menu-cart__product-image a,
.elementor-menu-cart__product-name a {
    cursor: default;
    pointer-events: none;
}

/* Prices and quantities */
.elementor-menu-cart__product-name,
.elementor-menu-cart__product-price {
    padding: 0 5px 0 0 !important;
}

.elementor-menu-cart__product-price .quantity {
    display: flex;
    flex-direction: row;
    justify-content: space-between; 
}

.elementor-menu-cart__product-price .quantity .cart-cnc-picto {
    width: 20px;
    vertical-align: middle;
    padding-right: 5px;
    transform: translateY(-2px);
}
.elementor-menu-cart__product-price .product-quantity,
.elementor-menu-cart__product-price .woocommerce-Price-amount amount {
    color: #9BE301;
    font-weight: normal;
}

.elementor-menu-cart__product-price .arrow {
    color: white;
}

/* Remove button */
.elementor-menu-cart__product-remove::before,
.elementor-menu-cart__product-remove::after {
    height: 3px !important;
    width: 40% !important;
    top: 57% !important;
    left: 29% !important;
}
.elementor-menu-cart__product-remove:hover::before,
.elementor-menu-cart__product-remove:hover::after {
    background: #C70000 !important;
}
.elementor-menu-cart__product-remove {
    transform: translateY(44%);
    border-radius: 0;
    border: 1px solid #798185A6;
    background: url(/wp-content/uploads/trash.svg);
    background-repeat: no-repeat;
    background-position: 42% 60%;
    background-size: 66%;
    --remove-item-button-hover-color: transparent !important;
}
.elementor-menu-cart__product-remove:before,
.elementor-menu-cart__product-remove:after {
    margin-top: 0 !important;
}
.remove_from_cart_button:after,
.remove_from_cart_button:after:hover {
    background: transparent;
}
.elementor-menu-cart__product-remove:hover {
    transition: all 0.5s ease-in-out;
}

/* Empty cart & continue buttons */
.mini-cart-added-buttons {
    display:flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 20px;
}
.mini-cart-added-buttons a {
    color: var(--gris) !important;
    border: 1px solid #798185A6;
    padding: 5px 8px;
    font-size: 12px;
}
.mini-cart-added-buttons a:hover {
    color: var(--gris);
    background: #798185A6;
    cursor: pointer;
}

/* Subtotal */
.elementor-menu-cart__subtotal {
    margin-top: 40px;
}

/* Validation button */
.elementor-menu-cart__footer-buttons {
    padding-top: 30px;
}
.elementor-menu-cart__footer-buttons .elementor-button--checkout.button-disabled {
	  cursor: not-allowed;
	  pointer-events: none;
	  background-color: grey;
}
.elementor-menu-cart__footer-buttons .elementor-button--checkout:hover {
    color: #104D6E !important;
}
.elementor-menu-cart__footer-buttons .elementor-button--checkout:not(.button-disabled):active:hover {
    border: 2px solid white !important;
}
.checkout-disabled-button-tooltip {
    z-index: 9999;
    background: var(--bleu);
    opacity: 0;
    color: white;
    font-size: 10px;
    padding: 10px 12px;
    margin: 20px auto 0;
    border: 2px solid #ddd;
    border-radius: 0 0 17px 17px;
    transition: all 0.3s ease-in-out;
}
.checkout-disabled-button-tooltip :is(.cart-minimum-amount, .cart-minimum-missing-amount) {
    padding: 1px 3px;
    border-radius: 3px;
}
.checkout-disabled-button-tooltip .cart-minimum-amount {
    background-color: #146015;
}
.checkout-disabled-button-tooltip .cart-minimum-missing-amount {
    background-color: #aa0202;
}
.checkout-disabled-button-tooltip:before {
    content: "";
    display: inline-block;
    position: relative;
    top: -34px;
    left: calc(50% - 8px);
    width: 16px;
    height: 16px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent var(--bleu);
}
.elementor-menu-cart__footer-buttons:has(.button-disabled):hover + .checkout-disabled-button-tooltip {
    opacity: 1;
}
