/**
* 2007-2023 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2023 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/
.price__declinaison {
    margin: 4px 0 7px 0;
}
.custom-input-wrapper {
  position: relative;
  display: inline-block;
}
#product_container .customSelectAttributes {
    height: 100%;
    margin: 0;
    padding: 0;
    width: 60px;
    text-align: center;
}
.add-to-cart-container-button, .product-miniature-button-container {
    display: flex;
    gap: 10px;
    flex-grow: 1;
    justify-content: end;
}
#product_container input.qte_custom_input {
    text-align: center;
    flex-shrink: 1;
    width: 65px;
    padding: 0 13px 0 0;
    border-radius: 11px;
    outline: none;
    border: 1px solid #BCBFCB;
    height: 100%;
}
.product-miniature-button-container .customSelectAttributes:not(.product-miniature .product-miniature-button-container .customSelectAttributes) {
    margin: 0;
    width: min-content;
}
.customSelectAttributes {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    z-index: 3;
    border: 0.5px solid #0A174066;
    width: 100%;
    padding: 14px 17px;
    margin: 7px 0;
    border-radius: 9px;
    color: #0A1740;
    font-size: 16px;
}
.customSelectWrapper::after {
    content: '\276F';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    pointer-events: none;
    font-size: 12px;
    color: #000;
    z-index: 10;
}
.disabledDeclinaison {
    background: #f1f1f1 !important;
    cursor: unset !important;
    opacity: 0.8;
}
button.btn.add-to-cart-custom-button.disabled:hover::before {
    background: #ffffff;
    content: attr(data-outofstock);
    z-index: 1;
    width: 100%;
    height: 100%;
    left: 0;
    display: flex;
    font-size: 22px;
    justify-content: center;
    align-items: center;
    top: 0;
    position: absolute !important;
    transition: opacity 0.2s ease;
    position: relative;
    color: #0A1740;
    border-radius: 8px;
    z-index: 21;
}
.product-miniature button.btn.add-to-cart-custom-button.disabled:hover::before{
    height: 60px;
    top:auto;
    bottom:0;
}
#bottom_addtocart .product-actions {
    margin-bottom:0;
    flex-grow: 1;
}
.customProductAttributes .product-actions form {
    display:flex;
    flex-direction:row;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.customProductAttributes .product-actions form .product-miniature-form-container{
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}
.product-miniature .product-miniature-button-container .customSelectAttributes {
    padding: 0;
    outline:none;
    margin: 0;
    text-align: center;
    width: 50px;
    border:1px solid #D3D5DD;
}    
.customSelectWrapper {
    position: relative;
    flex-shrink: 0;
}
.product-miniature .miniature-prices-container {
    display: flex;
    flex-direction: column;
}
label.customLinkAttribute[data-attribute-value="5 Grammes"]:after {
    content: 'Pour tester';
    border: 1px solid #9ECBC7;
    font-size: 12px;
    position: absolute;
    bottom: -10px;
    padding: 1px 5px;
    background: #DAE6E0;
    line-height: normal;
    border-radius:4px;
    color:#409A90;
}
label.customLinkAttribute.selectedAttribute[data-attribute-value="5 Grammes"]:after{
    border-color:#2DA094;
}
label.customLinkAttribute[data-attribute-value="20G"]:after {
    content: 'Achat malin 🌿';
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    position: absolute;
    top: -10px;
    right: 9px;
    padding: 1px 2px 2px 6px;
    background: #0A1740;
    line-height: normal;
    border-radius: 8px;
}
@supports (-webkit-appearance: none) {
    .customSelectAttributes {
        border: 0.5px solid #0A174066;
    }
    .customSelectAttributes option{
        font-weight: 800;
    }
    .customSelectAttributes option .price {
        font-weight:400;
    }

}
.add-to-cart-custom-button svg {
    width:30px;
    height:22px;
    fill:none;
}
.add-to-cart-custom-button {
    overflow: hidden;
    background-color: #0A1740;
    color: #fff;
    font-weight: 800;
    padding: 10px 16px;
    border-radius: 9px;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition-duration: 0.15s;
    gap: 6px;
    outline: none !important;
    
}
#bottom_addtocart .add-to-cart-custom-button {
    width: -webkit-fill-available;
}
#bottom_addtocart .customSelectAttributes {
    margin: 0;
}
#bottom_addtocart .miniature-prices-container {
    display: flex;
    flex-direction: column;
}
#bottom_addtocart .price-regular-item {
    font-size: 21px;
}
.price-regular-item {
    position: relative;
    font-size: 18px;
    color: #FF5722;
    font-weight: 800;
    text-decoration: line-through;
    letter-spacing: 0;
}
#product_container .add-to-cart-custom-button:hover {
    background:#DDF37C;
}
#product_container .add-to-cart-custom-button:hover .cta-text, #product_container .add-to-cart-custom-button:hover .ce-product-price {
    color: #0A1740;
}
#product_container .add-to-cart-custom-button:hover svg path{
    stroke: #0A1740;
}
.miniature-prices-container .price {
    font-size: 24px;
    font-weight: 800;
    color: #0A1740;
    letter-spacing: 0;
    white-space: nowrap;
}
.product-miniature .add-to-cart-custom-button:hover svg path, .product-miniature .add-to-cart-custom-button:hover svg {
    stroke: #0A1740;
}
.product-miniature .add-to-cart-custom-button:hover{
    color:#0A1740;
    background:#DDF37C;
}
.customProductPageAttributes:not(.product-miniature .customProductAttributes) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 5px;
}


@media(max-width:1024px) {
    .product-miniature .selected_variant_add_to_cart:not(.swiper-wrapper .product-miniature .selected_variant_add_to_cart) {
        display: none;
    }
    .product-miniature .product-miniature-button-container .customSelectAttributes {
        width:35px;
    }
    .product-miniature .add-to-cart-custom-button {
        padding:8px;
    }
}
@media(max-width:1074px) {
    .customProductPageAttributes:not(.product-miniature .customProductAttributes){
        grid-template-columns: repeat(2, 1fr);
    }
    .miniature-prices-container .price {
        font-size:21px;
    }
    .customSelectAttributes {
        padding:10px 17px;
    }
}

