@keyframes buttonActive {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.75;
    }
    100% {
        opacity: 1;
    }
}

.button {
    align-items: center;
    border: 1px solid #333;
    background: #333;
    border-radius: 3px;
    color: #fff;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    padding: 4px 8px;
}
.button:active { 
    animation: buttonActive 0.75s ease-out;
}
.button:hover {
    color: #fff;
    text-decoration: none;
}
.button--primary {
    border-color: #5cb85c;
    background-color: #5cb85c;
    color: #fff;
}
.button--empty {
    border-color: transparent;
    background: none;
    color: #333;
}
.button--outline {
    background-color: transparent;
    color: #333
}
.button--empty:hover, .button--outline:hover {
    color: #333;
}
.button--big {
    min-height: 48px;
}
.button--fullwidth {
    width: 100%;
}
.button > img {
    max-height: 100%;
}



.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form__row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.form__row--inline {
    align-items: center;
    flex-direction: row;
    gap: 8px;
}
.form__row input {
    margin: 0;
    min-height: 48px;
    padding: 8px;
}
.form__row label {
    cursor: pointer;
    padding: 0;
    margin: 0;
    user-select: none;
}


.message {
    align-items: center;
    border: 1px solid #dcdcdc;
    border-radius: 3px;
    display: flex;
    justify-content: center;
    flex-direction: row;
    margin: 0;
    min-height: 48px;
    padding: 8px 0;
    text-align: center;
}
.message--alert {
    background-color: #f2dede;
    background-blend-mode: luminosity;
    border-color: var(--color-alert);
    color: var(--color-alert);
}


#page-product .header {
    padding: 0 0 8px 0;
}
#page-product .header__title {
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-bold);
    margin: 0;
    padding: 0 0 4px 0;
    text-transform: initial;
}
#page-product .header__rating {
    align-items: center;
    font-size: var(--font-size-text);
    font-weight: var(--font-weight-normal);
    display: flex;
    text-align: left;
}

#page-product .pictures__list {
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
    gap: 4px;
    margin: 0 -15px 0 -15px;
    padding: 0;
    scroll-snap-type: x mandatory;
}
#page-product .picture__container {
    position: relative;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}
#page-product .picture {
    display: block;
}
#page-product .picture img, #page-product .picture__container video {
    height: auto;
    width: 90vw;
}
#page-product .picture__counter {
    bottom: 16px;
    display:block;
    left: 0;
    position: absolute;
    text-align: center;
    width: 100%;;
}
#page-product .picture__counter span {
    background: #333;
    color:#fff;
    border-radius: 27px;
    display: inline-block;
    font-weight: var(--font-weight-bold);
    padding: 3px 9px;
}
#page-product .picture-desktop {
    display: none;
}
#page-product .infos {
    padding-top: 16px;
}

#page-product .prices {
    align-content: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 16px;
    margin-bottom: 16px;
}
#page-product .prices > span {
    align-self: center;
}
#page-product .price--deleted {
    text-decoration: line-through;
}
#page-product .price__reduction {
    background: var(--color-alert);
    color: #fff;
    font-weight: var(--font-weight-bold);
    padding: 4px 8px;
}
#page-product .price__multipayment {
    flex-basis: 100%;
}

#page-product .attributes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 16px;
}

#page-product .buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#page-product .buttons__order--fixed {
    background: #fff;
    bottom: 0;
    border-top: 1px solid #dcdcdc;
    left: 0;
    padding: 4px 8px;
    position: fixed;
    right: 0;
    z-index: 99;
}
.add-to-cart {
    text-transform: uppercase;
}
.add-to-cart__loader {
    display: none;
    max-height: 24px !important;
    width: auto;
}
.add-to-cart[disabled] {
    opacity: 0.75;
}
.add-to-cart[disabled] > span {
    display: none;
}
.add-to-cart[disabled] > .add-to-cart__loader {
    display: block;
}
.button--oos {
    display: none;
}
#page-product .buttons--oos .add-to-cart {
    display: none;
}
#page-product .buttons--oos .button--oos {
    display: initial;
}
#page-product .buttons .button {
    min-height: 48px;
    width: 100%;
}

#page-product .tabs {
    display: flex;
    flex-direction: column;
}
#page-product .tabs-header {
    display: none;
}
#page-product .tab {
    padding-bottom: 32px;
}
#page-product .tabcontent__title {
    border-bottom: 1px solid #dcdcdc;
    font-size: var(--font-size-h1);
    padding: 8px 0;
    margin: 0 0 8px 0;
}
#page-product .tabcontent__subtitle {
    align-items: center;
    display: flex;
    font-weight: var(--font-weight-bold);
    border-bottom: 1px solid #dcdcdc;
    padding: 16px 0;
    margin-bottom: 16px;
}
#page-product .tabcontent__subtitle::before {
    content: '•';
    color: var(--color-alert);
    font-size: 32px;
    padding-right: 8px;
    line-height: 0;
}
#module_ekoiguidedetaille_tab .dialog {
    display: block !important;
    height: auto;
    position:static;
}
#module_ekoiguidedetaille_tab .dialog__container {
    animation: none;
    box-shadow: none;
    margin-left: 0;
    max-height: none;
    min-height: auto;
    padding: 0;
    position: static;
    width: 100%;
    max-width: 100%;
}
#module_ekoiguidedetaille_tab .dialog__header {
    display: none;
}
#page-product .table-sizes--responsive {
    overflow-x: auto;
    width: 100%;
}
#page-product #table_size_block .dialog__subtitle {
    text-align: center;
}
#page-product .table-sizes {
    margin: 0 auto;
}
@media screen and (min-width: 1025px) {
    #page-product {
        display: flex;
        flex-wrap: wrap;
    }
    #page-product .header {
        align-items: center;
        display: flex;
        flex-basis: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
    #page-product .header__title {
        padding: 0;
    }
    #page-product .pictures {
        flex-basis: 60%;
        height: min-content;
        position: relative;
    }
    #page-product .pictures-pills {
        display: none;
    }
    #page-product .pictures__list {
        bottom: 0;
        flex-direction: column;
        gap: 4px;
        margin: 0;
        left: 0;
        overflow: hidden auto;
        position: absolute;
        top: 0;
        scroll-snap-type: none;
        width: 68px;
    }
    #page-product .pictures__list {
        scrollbar-width: thin;
        scrollbar-color: #9e9e9e #ffffff;
    }
    #page-product .pictures__list::-webkit-scrollbar {
        width: 8px;
    }

    #page-product .pictures__list::-webkit-scrollbar-track {
        background: #ffffff;
    }
    #page-product .pictures__list::-webkit-scrollbar-thumb {
        background-color: #9e9e9e;
        border-radius: 10px;
        border: 3px solid #ffffff;
    }
    #page-product .picture__container {
        cursor: pointer;
        width: 64px;
    }
    #page-product .picture img, #page-product .pictures__list video {
        height: auto;
        width: 100%;
    }
    #page-product .picture-desktop {
        display: block;
        margin-left: 68px;
    }
    #page-product .picture-desktop img {
        width: 100%;
    }
    #page-product .picture-desktop video {
        display: none;
    }
    #page-product .picture-desktop--video img {
        display: none;
    }
    #page-product .picture-desktop--video video {
        display: block;
    }
    #page-product .picture__counter {
        display: none;
    }
    #page-product .infos {
        flex-basis: 40%;
        padding: 0 0 0 32px;
    }
    #page-product .prices {
        justify-content: end;
    }
    #page-product .buttons__order--fixed {
        display: none;
    }
    
    #page-product .tabs {
        padding-top: 32px;
        width: 100%;
    }
    #page-product .tabs-header {
        border-bottom: 1px solid #DCDCDC;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin: 0 0 30px 0;
        padding: 0;
        list-style-type: none;
        width: 100%;
    }
    
    #page-product .tabs-header li {
        display: block;
        flex-grow: 1;
    }
    #page-product .tabs-header a {
        color: #C5C5C5;
        display: block;
        font-size: var(--font-size-h1);
        padding: 10px 0;
        text-align: center;
        text-transform: uppercase;
    }
    #page-product .tabs-header a:hover {
        color: var(--color-alert);
        text-decoration: none;
    }
    #page-product .tabs-header--selected {
        border-bottom: 1px solid var(--color-alert);
        color: var(--color-alert) !important;
    }
    #page-product .tabcontent__title {
        display: none;
    }
}




.size-pickers {
    display: block;
}
.size-picker {
    display: block;
    margin-bottom: 8px;
    
}
.size-picker__title {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}
.size-picker__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.size-picker__button {
    background: none;
    border: 1px solid #333;
    border-radius: 16px;
    text-align: center;
    min-width: 40px;
    padding: 5px 15px;
    transition: border-color 0.25s ease-out;
}
.size-picker__button--disabled {
    border-color: #c6c6c6;
    color: #c6c6c6;
    text-decoration: line-through;
}
.size-picker__button--selected {
    background: #333;
    border-color: #333;
    border-width: 1px;
    color: #fff;
    transition: background-color 0.5s ease;
    
}
.size-picker__helper {
    display: none;
    color: #333;
}
size-picker__button--disabled .size-picker__helper {
    color: #c6c6c6;
}
.size-picker__measure {
    padding-right: 8px;
}

.size-advices__group {
    background: #fafafa;
    display: none;
    font-size: 13px;
    margin: 0 0 8px 0;
    padding: 8px 8px 0 8px;
}
.size-advices__more {
    background: none;
    border: none;
    text-decoration: underline;
    padding: 8px 0;
    margin: 0;
}
.size-advices__more--desktop {
    margin: 0
}
@media screen and (max-width: 1024px) {
    .products_attributes {
        display: block !important;
    }
    .size-advices__group--selected {
        display: block;
    }
    .size-advices__header {
        color: #333;
        font-weight: bold;
        padding: 0 0 8px 0;
    }
    .size-advices__footer {
        border-top: 1px solid #e5e5e5;
        color: #333;
        display: none;
        flex-direction: row;
        justify-content: end;
    }
    .size-advices__attributes {
        list-style-type: none;
        margin: 0;
        padding: 0 0 8px 0;
    }
    .size-advices__attribute {
        display: none;
    }
    .size-advices__attribute--selected {
        display: block;
    }
    .size-advices__measures {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }
    .size-advices__measures li {
        display: inline;
        padding-right: 8px
    }
    
}

@media screen and (min-width: 1025px) {

    @keyframes fadeInFromNone {
        0% {
            display: none;
            opacity: 0;
        }
        1% {
            display: block;
            opacity: 0;
        }
        100% {
            display: block;
            opacity: 1;
        }
    }

    .size-picker__button-outer {
        position: relative;
    }
    .size-picker__helper {
        background: transparent;
        bottom: 100%;
        display: none;
        left: 0;
        min-width: 128px;
        opacity: 0;
        padding: 0 0 8px 0;
        position: absolute;
        z-index: 100;
    }
    .size-picker__helper-content {
        background: #fff;
        border-radius: 2px;
        box-shadow: 0 0 16px 4px rgba(0,0,0,0.15);
        font-size: 13px;
        padding: 16px;
        list-style-type: none;
        margin: 0;
        position: relative;
        text-align: left;
        white-space: nowrap;
    }
    .size-picker__helper-content:before {
        bottom: -4.5px;
        left: 20px;
        content: '';
        position: absolute;
        width: 0px;
        height: 0px;
        border: 5.25px solid #fff;
        transform: rotate(45deg);
    }
    .size-picker__button:hover .size-picker__helper {
        animation: fadeInFromNone 0.5s ease-out;
        display: block;
        opacity: 1;
    }
    .size-advices__more--desktop {
        display: block;
    }
}

.unit-selector {
    display: none;
}
.unit-selector:before {
    content: 'cm';
    background: #fff;
    border: 1px solid #333;
    height: 48px;
    width: 48px;
}
table.table-sizes--reponsive {
    width: 100%;
    overflow-x: auto;
}
.size-popup__body table.table-sizes {
    border-collapse: collapse;
    border: 1px solid #e5e5e5;
    margin-bottom: 16px;
    width: 100% !important;
}
.table-sizes th, .table-sizes td {
    border: 1px solid #e5e5e5;
    padding: 16px 8px;
    text-align: center;
    white-space: nowrap;
}
.table-sizes th, .table-sizes tr td:first-child {
    background: #fafafa;
    font-weight: bold;
}
.unit-imperial {
    display: none;
}
.display-unit-imperial .unit-imperial {
    display: inline;
} 
.display-unit-imperial .unit-si {
    display: none;
} 

.size-popup__close {
    background: none;
    border: none;
    min-height: 48px;
    text-decoration: underline;
}
.size-popup__si, .size-popup__imperial {
    border: 1px solid #333;
    background: #fff;
    padding: 4px 8px;
    margin: 0;
}
.size-popup__close {
    display: none;
}
.size-popup__si.selected, .size-popup__imperial.selected {
    background: #333;
    color: #fff;
}



.counter {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 8px;
}
.counter__section {
    display: flex;
    flex-direction: column;
}
.counter__time {
    font-size: 24px;
}
.counter__units {
    font-size: 10px;
    text-transform: uppercase;
}



@media screen and (max-width: 1025px) {
    #page-product .pictures .pictures__list img {
        cursor: zoom-in;
    }
}
#page-product .pictures .picture-desktop img,
#page-product .pictures .zoomimage img {
    cursor: zoom-in;
}
