:root{
    --modal-logo-info-fs: 13px;
    --modal-logo-fs: 14px;
    --texts-fs: 15px;
    --buttons-fs: 16px;
    --titles-fs: 17px;
    --libraryTitle-fs: 18px;
    --tabs-fs: 19px;
    --price-fs: 20px;
    --picked-color: 21px;
    --dicount-price: 24px;
    --fonts-fs: 20px;
    --product-title: 28px;
    --product-attributes: 20px;
    --close-icon: 29px;


    /* Module defaults. Override in the theme stylesheet to match the shop. */
    /* Colors */
    --mm-accent: #000000;
    --mm-accent-soft: #000000a3;
    --mm-accent-dark: #1a1a1a;
    --mm-action: #000000;
    --mm-text-btn: #fff;
    --mm-text-btn-hover: #fff;
    --mm-text-btn-cart: #fff;
    --mm-text: #1b272c;
    --mm-border: #cecece;
    --mm-radius: 0;
}

/* --- Module buttons --- */
.mm-btn, .mm-btn-cart, .mm-btn-alt{
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    user-select: none;
    padding: 8px 21px;
    border: none;
    border-radius: var(--mm-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.mm-btn:hover, .mm-btn-cart:hover{
    background-color: var(--mm-action);
    color: var(--mm-text-btn-hover);
}

.mm-btn{
    background-color: var(--mm-action);
    color: var(--mm-text-btn);
}

.mm-btn-cart{
    background-color: var(--mm-accent);
    color: var(--mm-text-btn-cart);
}

.mm-btn-alt{
    border: 1px solid #ccc;
    background: #fff;
    color: #292b2c;
}

/* --- Info notice (product page: combination without template) --- */
.mm-info{
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 16px;
    background-color: #f7f7f8;
    border: 1px solid #e5e5e7;
    border-left: 3px solid #1b272c;
    color: #1b272c;
}

.mm-info p{
    margin: 0;
}

/* MODALS */
.mm-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.mm-modal-overlay.is-open {
    display: flex;
}

.mm-modal {
    background: #fff;
    border-radius: 8px;
    padding: 28px;
    width: calc(100% - 32px);
    max-width: 500px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
}

.mm-modal p {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.4;
}

.mm-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}


/*CSS MAT
#header,
.footer-container,
#footer {
    display: none !important;
}

#wrapper,
#main,
#content,
.page-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.mm-custom-fullscreen {
    overflow-x: hidden;
}

.module-page--fullscreen {
    width: 100%;
    min-height: 100vh;
}
CSS MAT*/


/* MOBILE MESSAGE */
.mobile-message{
    display: none;
    margin: 140px 30px;
    border: 1.5px solid var(--mm-accent);
    border-radius: 9px;
    padding: 16px;
    background-color: #ffffff;
    box-shadow: 3px 3px 8px #c5c5c5;
}

.mobile-message p{
    color: #1a1a1a;
    font-size: 20px !important;
    font-weight: 400;
    text-align: center;
}


/* LOADING PAGE  */
#loading-page{
    display: flex;
    justify-content: center;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: white;
}

#loading-page .loading-block{
    text-align: center;
}

#loading-page .loading-block p{
    margin-top: 20px;
    color: var(--mm-accent);
    font-size: var(--tabs-fs) !important;
    font-weight: 500;
    text-transform: uppercase;
}

@keyframes ldio-m5dbm54bhvb {
    0% {
      opacity: 1;
      backface-visibility: hidden;
      transform: translateZ(0) scale(1.5,1.5);
    } 100% {
      opacity: 0;
      backface-visibility: hidden;
      transform: translateZ(0) scale(1,1);
    }
  }
  .ldio-m5dbm54bhvb div > div {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--mm-accent);
    animation: ldio-m5dbm54bhvb 0.9900990099009901s linear infinite;
  }.ldio-m5dbm54bhvb div:nth-child(1) > div {
    left: 76px;
    top: 44px;
    animation-delay: -0.8663366336633663s;
  }
  .ldio-m5dbm54bhvb > div:nth-child(1) {
    transform: rotate(0deg);
    transform-origin: 82px 50px;
  }.ldio-m5dbm54bhvb div:nth-child(2) > div {
    left: 67px;
    top: 67px;
    animation-delay: -0.7425742574257426s;
  }
  .ldio-m5dbm54bhvb > div:nth-child(2) {
    transform: rotate(45deg);
    transform-origin: 73px 73px;
  }.ldio-m5dbm54bhvb div:nth-child(3) > div {
    left: 44px;
    top: 76px;
    animation-delay: -0.6188118811881188s;
  }
  .ldio-m5dbm54bhvb > div:nth-child(3) {
    transform: rotate(90deg);
    transform-origin: 50px 82px;
  }.ldio-m5dbm54bhvb div:nth-child(4) > div {
    left: 21px;
    top: 67px;
    animation-delay: -0.49504950495049505s;
  }
  .ldio-m5dbm54bhvb > div:nth-child(4) {
    transform: rotate(135deg);
    transform-origin: 27px 73px;
  }.ldio-m5dbm54bhvb div:nth-child(5) > div {
    left: 12px;
    top: 44px;
    animation-delay: -0.3712871287128713s;
  }
  .ldio-m5dbm54bhvb > div:nth-child(5) {
    transform: rotate(180deg);
    transform-origin: 18px 50px;
  }.ldio-m5dbm54bhvb div:nth-child(6) > div {
    left: 21px;
    top: 21px;
    animation-delay: -0.24752475247524752s;
  }
  .ldio-m5dbm54bhvb > div:nth-child(6) {
    transform: rotate(225deg);
    transform-origin: 27px 27px;
  }.ldio-m5dbm54bhvb div:nth-child(7) > div {
    left: 44px;
    top: 12px;
    animation-delay: -0.12376237623762376s;
  }
  .ldio-m5dbm54bhvb > div:nth-child(7) {
    transform: rotate(270deg);
    transform-origin: 50px 18px;
  }.ldio-m5dbm54bhvb div:nth-child(8) > div {
    left: 67px;
    top: 21px;
    animation-delay: 0s;
  }
  .ldio-m5dbm54bhvb > div:nth-child(8) {
    transform: rotate(315deg);
    transform-origin: 73px 27px;
  }
  .loadingio-spinner-spin-dolb57g5lph {
    width: 92px;
    height: 92px;
    display: inline-block;
    overflow: hidden;
    background: none;
    margin-top: 40vh;
  }
  .ldio-m5dbm54bhvb {
    width: 100%;
    height: 100%;
    position: relative;
    transform: translateZ(0) scale(0.92);
    backface-visibility: hidden;
    transform-origin: 0 0; /* see note above */
  }
  .ldio-m5dbm54bhvb div { box-sizing: content-box; }


/* PAGE ELEMENT DISPOSITION TO TAKE THE WHOLE SPACE */
body#module-mm_custom-customModule section#wrapper{
    padding-top: 0;
}

body#module-mm_custom-customModule .container{
    width: 100%;
}

body#module-mm_custom-customModule #content-wrapper{
    padding: 0;
}

body#module-mm_custom-customModule section#main{
    margin-bottom: 0;
}

body#module-mm_custom-customModule #content{
    width: 100% !important;
    margin-bottom: 0 !important;
}

body#module-mm_custom-customModule .module-top-bar{
    border-bottom: 1px solid black;
    padding: 18px 0 18px 27px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body#module-mm_custom-customModule .module-top-bar .module-title{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

body#module-mm_custom-customModule .module-top-bar .module-title h1{
    color: black;
    font-weight: 700;
    font-size: var(--product-title);
    transform: none;
    margin: 0;
}

body#module-mm_custom-customModule .module-top-bar .module-title .module-attributes{
    margin: 0;
    font-weight: 700;
    font-size: var(--product-attributes);
    font-style: italic;
}

.module-container{
    display: flex;
    justify-content: space-between;
    margin-bottom: 45px;
    margin-top: 10px;
}

/*///////// TOOLS SIDE ////////*/

    /* WHOLE BLOCK */
    .module-container .info{
        width: 30%;
    }

    .module-container .tools{
        margin-top: 20px;
        margin-left: 27px;
        height: 500px;
    }

    /* HIDE CLASS */
    .hide{
        display: none !important;
    }

    /* PRESENTATION */
    .module-container .tools .mm-introduction{
        height: stretch;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .module-container .tools .mm-introduction-text{
        background-color: #f0f0f0;
        padding: 20px;
        border-radius: 6px;
        border: 1px solid var(--mm-border);
    }

    .module-container .tools .mm-introduction h2{
        font-size: var(--titles-fs);
        margin-bottom: 11px;
    }

    body#module-mm_custom-customModule .module-container .tools .mm-introduction p{
        text-align: initial;
        font-size: var(--texts-fs) !important;
        line-height: 20px;
        margin: 0;
    }

    .module-container .tools .mm-introduction-text hr{
        border-color: black;
        width: 70%;
        margin: 20px auto;
    }

    .module-container .tools .mm-introduction-text .picto-container{
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .module-container .tools .mm-introduction-text .picto-bloc{
        display: flex;
        align-items: center;
        gap: 3%;
    }

    .module-container .tools .mm-introduction-text .picto-bloc img{
        width: 60px;
    }

    .module-container .tools .mm-introduction-text .picto-bloc p{
        font-weight: 600;
    }

    /* TEXT CHOICE AND LOGO CHOICE*/
    .module-container .tools .text-choice, .logos-choice{
        padding: 18px 22px;
    }

    body#module-mm_custom-customModule .module-container .tools .text-design-subtext,
    body#module-mm_custom-customModule .module-container .tools .logo-design-subtext{
        font-size: var(--buttons-fs) !important;
    }

    .module-container .tools .text-choice .text-choice-buttons, .logos-choice-buttons{
        margin-top: 45px;
    }

    .module-container .tools .text-choice .add-text,  .module-container .tools .logos-choice .add-logo, .module-container .tools .leave-empty-button{
        display: block;
        margin-left: 50%;
        transform: translateX(-50%);
        border: 1px solid var(--mm-border);
        border-radius: 4px;
        padding: 15px 31px;
        background-color: transparent;
        font-weight: 700;
        font-size: var(--buttons-fs);
        margin-bottom: 60px;
        min-width: 246px;
        transition-duration: 0.1s;
    }

    .module-container .tools .text-choice .add-text:hover, .module-container .tools .leave-empty-button:hover, .module-container .tools .logos-choice .add-logo:hover{
        border: 1px solid var(--mm-accent);
        cursor: pointer;
    }

    .module-container .tools .text-choice .add-text:hover:disabled{
        border: 1px solid var(--mm-border);
        cursor: default;
    }

    .module-container .tools .text-choice-buttons img, .logos-choice-buttons img{
        width: 47px;
        display: block;
        margin-left: 50%;
        transform: translateX(-50%);
        margin-bottom: 4px;
    }

    /* TEXT DESIGN TOOL */
    .module-container .tools .text-design{
        padding: 18px 22px;
        height: 500px;
        overflow: scroll;
    }

    .module-container .tools .text-design::-webkit-scrollbar{
        width: 20px;
      }
      
    .module-container .tools .text-design::-webkit-scrollbar-track{
        background-color: transparent;
    }

    .module-container .tools .text-design::-webkit-scrollbar-thumb{
        background-color: var(--mm-accent);
        border-radius: 20px;
        border: 6px solid transparent;
        background-clip: content-box;
    }


    /* SHARED SUB-TITLE OF EVERY TOOL BLOCK
       Single source of truth: every sub-title of the tools panel carries .mm-tools-title,
       whatever its tag. Only spacing is adjusted per context below. */
    body#module-mm_custom-customModule .module-container .tools .mm-tools-title{
        font-weight: 700;
        font-size: var(--titles-fs) !important;
        margin-bottom: 0;
        color: black;
        text-align: left;
    }

    .module-container .tools .text-design label{
        margin-top: 10px;
    }

        /* INPUT TEXT */
        body#module-mm_custom-customModule .module-container .tools .text-design .inputTextDesign input{
            width: 100%;
            padding: 6px 18px;
            font-size: var(--buttons-fs);
            border: 1px solid var(--mm-border);
            border-radius: 4px;
        }

        /* INPUT RANGE TEXT WIDTH AND POSITION*/
        .slider-text-width, .slider-text-position, .slider-text-border, .slider-logo-size, .slider-logo-position{
            -webkit-appearance: none;
            width: 100%;
            height: 3px;
            border-radius: 5px;
            background: var(--mm-border);
            outline: none;
            -webkit-transition: .2s;
            transition: opacity .2s;
            z-index: 1;
            position: relative;
            margin-top: 17px;
        }
          
        .slider-text-width::-webkit-slider-thumb, .slider-text-position::-webkit-slider-thumb, .slider-text-border::-webkit-slider-thumb, .slider-logo-size::-webkit-slider-thumb, .slider-logo-position::-webkit-slider-thumb{
            -webkit-appearance: none;
            appearance: none;
            width: 25px;
            height: 25px;
            border-radius: 50%;
            background: var(--mm-accent);
            cursor: pointer;
            margin-right: 10px;
            border: none;
        }
          
        .slider-text-width::-moz-range-thumb, .slider-text-position::-moz-range-thumb, .slider-text-border::-moz-range-thumb, .slider-logo-size::-moz-range-thumb, .slider-logo-position::-moz-range-thumb{
            -webkit-appearance: none;
            appearance: none;
            width: 25px;
            height: 25px;
            border-radius: 50%;
            background: var(--mm-accent);
            cursor: pointer;
            margin-right: 10px;
            border: none;
        }

        .module-container .tools .text-design .slider-input{
            margin-top: 0;
        }

        .module-container .tools .text-design .slider-input span{
            font-size: var(--buttons-fs);
            font-weight: 600;
        }

        .tools .text-design .slider-text-width-container .slider-text-width-pixel-top, .tools .text-design .slider-text-position-container .slider-text-position-pixel-top{
            display: flex;
            justify-content: space-between;
            margin-top: 0;
        }

        .tools .text-design .slider-text-width-container .slider-text-width-pixel-top p, .slider-text-position-pixel-top p{
            opacity: 0;
            width: 30px;
            text-align: center;
            color: var(--mm-accent);
            font-weight: 600;
            margin-bottom: 0px;
        }

        /* FONT CHOICE */
        .module-container .tools .text-design .fonts .fonts-grid{
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 10px 0;
        }

        .module-container .tools .text-design .fonts .fonts-grid .font{
            width: 47%;
            text-align: center;
            border: 1px solid var(--mm-border);
            border-radius: 4px;
            font-size: var(--fonts-fs) !important;
            color: var(--mm-border);
            padding: 5px;
            transition-duration: 0.1s;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .module-container .tools .text-design .fonts .fonts-grid .font:hover{
            border: 1px solid var(--mm-accent);
            color: var(--mm-accent);
            cursor: pointer;
        }

        .module-container .tools .text-design .fonts .fonts-grid .font:hover + .active-font{
            border: 1px solid var(--mm-accent-soft) !important;
            color: var(--mm-accent-soft) !important;
        }

        .module-container .tools .text-design .fonts .fonts-grid .active-font{
            border: 1px solid var(--mm-accent);
            color: var(--mm-accent);
        }
        
        /* COLOR FONT */
        .module-container .tools .text-design .font-colors .font-colors-buttons{
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .module-container .tools .text-design .font-colors .font-colors-buttons div{
            width: 47%;
            font-size: var(--tabs-fs);
            font-weight: 600;
            color: black;
            text-align: center;
            border: 1px solid var(--mm-border);
            border-radius: 4px;
            color: var(--mm-border);
            padding: 5px;
            transition-duration: 0.1s;
        }

        .module-container .tools .text-design .font-colors .font-colors-buttons div:hover{
            color: var(--mm-accent);
            border: 1px solid var(--mm-accent);
            cursor: pointer;
        }

        .module-container .tools .text-design .font-colors .font-colors-buttons div.active{
            color: white;
            background-color: var(--mm-accent);
            border: 1px solid var(--mm-accent);
        }

        .module-container .tools .text-design .font-colors .slider-input-border{
            position: relative;
        }

        #main .page-content .module-container .tools .text-design .font-colors .slider-input-border p.erase-border{
            font-size: var(--modal-logo-fs) !important;
            position: absolute;
            top: 11px;
            right: 0px;
            font-weight: 500;
            color: #5a5a5a;
        }

        .module-container .tools .text-design .font-colors .slider-input-border p.erase-border:hover{
            cursor: pointer;
            color: var(--mm-accent) !important;
        }

        .module-container .tools .text-design .font-colors .slider-border-levels{
            display: flex;
            justify-content: space-between;
            margin-top: -17px;
        }

        .module-container .tools .text-design .font-colors .slider-border-levels p{
            background-color: var(--mm-border);
            width: 3px;
            height: 15px;
            border-radius: 3px;
        }

        .module-container .tools .text-design .font-colors .slider-border-pixels{
            display: flex;
            justify-content: space-between;
            margin-top: -12px;
        }

        .module-container .tools .text-design .font-colors .slider-border-pixels p{
            color: var(--mm-border);
        }

        /* Auto-fill grid: as many columns as fit, each stretched to take up the
           leftover, so a row always ends flush with both edges of the panel */
        .module-container .tools .text-design .font-colors .colors-grid{
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(27px, 1fr));
            gap: 7px;
            align-items: center;
        }

        /* .module-container .tools .text-design .font-colors .colors-grid::after{
            content: "";
            flex: auto;
        } */

        /* Width comes from the grid column, the square is kept by the ratio */
        .module-container .tools .text-design .font-colors .colors-grid .font-color{
            aspect-ratio: 1;
            border-radius: 3px;
            transition-duration: 0.2s;
        }

        .module-container .tools .text-design .font-colors .colors-grid .font-color:hover{
            transform: scale(1.1);
            cursor: pointer;
        }

        .module-container .tools .text-design .font-colors .colors-grid .picked{
            outline: 3px solid #454545;
        }
    
        .module-container .tools .text-design .font-colors .colors-grid .picked::after{
            content: url('../img/icons/check_white.svg');
            margin-left: 11%;
        }
    
        .module-container .tools .text-design .font-colors .colors-grid .white::after{
            color: #505050;
            margin-left: 9%;
        }
    
    /* COLORS-DESIGN */
    svg .eyedropper{
        cursor: url('../img/icons/eyedropper.png') 0 23, pointer;
    }

    svg .hoverBorder{
        stroke: rgb(22, 134, 255);
        stroke-width: 13;
        stroke-linejoin: bevel;
    }

    svg .hoverBorder-for-background{
        stroke: rgb(22, 134, 255);
        stroke-width: 26;
        stroke-linejoin: bevel;
    }

    .module-container .tools .colors-design{
        padding: 18px 22px;
        height: 500px;
        /* Three sections plus the color wheel no longer fit in the fixed height */
        overflow-y: auto;
    }

    /* COLORS SECTIONS (brands / trends / color wheel), shared by both color zones */
    .module-container .tools .colors-section{
        margin-bottom: 16px;
    }

    body#module-mm_custom-customModule .module-container .tools .colors-section .colors-section-title{
        margin: 10px 0 6px;
    }

    /* Brand name tooltip. ::before is used because ::after already carries the
       "picked" check icon of the selected swatch. */
    .module-container .tools .brand-color{
        position: relative;
    }

    .module-container .tools .brand-color::before{
        content: attr(data-brand);
        position: absolute;
        bottom: calc(100% + 5px);
        left: 50%;
        transform: translateX(-50%);
        padding: 2px 7px;
        border-radius: 3px;
        background-color: #363a41;
        color: #ffffff;
        font-size: 12px;
        line-height: 17px;
        white-space: nowrap;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: visibility 0.15s, opacity 0.15s;
        z-index: 5;
    }

    .module-container .tools .brand-color:hover::before{
        visibility: visible;
        opacity: 1;
    }

    /* COLOR WHEEL CONTAINER */
    /* The spectrum fills whatever width this container has, at a fixed height */
    .module-container .tools .color-wheel{
        --mm-wheel-height: 200px;
    }

    /* Same auto-fill grid as the texts zone, see the comment there */
    .module-container .tools .colors-design .colors-grid{
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(27px, 1fr));
        gap: 7px;
        align-items: center;
    }

    .module-container .tools .colors-design .colors-grid .colors-color{
        aspect-ratio: 1;
        border-radius: 3px;
        transition-duration: 0.2s;
    }

    .module-container .tools .colors-design .colors-grid .colors-color:hover{
        transform: scale(1.1);
        cursor: pointer;
    }

    .module-container .tools .colors-design .colors-grid .picked{
        outline: 3px solid #454545;
        position: relative;
    }

    .module-container .tools .colors-design .colors-grid .picked::after{
        content: url('../img/icons/check_white.svg');
        width: 72%;
        display: block;
        position: absolute;
        top: 55%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .module-container .tools .colors-design .colors-grid .picked.white::after{
        content: url('../img/icons/check_black.svg');
    }


    /* LOGOS */
        /* LOGOS LEAVE EMPTY INPUT */
        .leave-empty-logo, .leave-empty-text{
            display: flex;
            align-items: center;
            margin-left: 50%;
            transform: translateX(-50%);
            margin-bottom: 32px;
            width: 100%;
            justify-content: center;
        }
    
        body#module-mm_custom-customModule .module-container .tools .logos-choice .logos-choice-buttons .leave-empty-logo p,
        body#module-mm_custom-customModule .module-container .tools .text-choice .text-choice-buttons .leave-empty-text p{
            margin-right: 15px;
            font-size: var(--buttons-fs) !important;
        }
    
        .leave-empty {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 34px;
            margin-bottom: 0;
        }
          
        .leave-empty input { 
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .leave-empty-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--mm-accent);
            -webkit-transition: .4s;
            transition: .4s;
            border-radius: 34px;
        }
        
        .leave-empty-slider:before {
            position: absolute;
            content: "";
            height: 26px;
            width: 26px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            -webkit-transition: .4s;
            transition: .4s;
            border-radius: 50%;
            -webkit-transform: translateX(26px);
            -ms-transform: translateX(26px);
            transform: translateX(26px);
        }
        
        input:checked + .leave-empty-slider {
            background-color: #ccc;
        }
        
        input:checked + .leave-empty-slider:before {
            -webkit-transform: translateX(0px);
            -ms-transform: translateX(0px);
            transform: translateX(0px);
        }
    

        /* MODAL IMPORT OR LIBRARY LOGOS */
        #modal-logo-choice{
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgb(0,0,0);
            background-color: rgba(0,0,0,0.4);
        }

        #modal-logo-choice-content{
            position: relative;
            background-color: white;
            margin: 13% auto;
            padding: 15px;
            border: 1px solid #888;
            width: 57%;
            border-radius: 3px;
        }

        #modal-logo-choice-content p.library-title{
            font-size: var(--libraryTitle-fs) !important;
            font-weight: 600;
            margin-bottom: 0;
        }

        #modal-logo-choice-content hr{
            border: 0.1px solid #e0e0e0;
            margin-top: 9px;
        }

        #modal-logo-choice-content form{
            display: flex;
            justify-content: space-between;
            margin-bottom: 14px;
        }

        #modal-logo-choice-content form .logo-choice-left, .logo-choice-right{
            width: 50%;
            text-align: center;
            margin-top: 4%;
        }

        #modal-logo-choice-content form .logo-choice-left img, .logo-choice-right img{
            width: 60%;
            margin-bottom: 20px;
        }
        
        #modal-logo-choice-content form .logo-choice-left label, .logo-choice-right button{
            background: var(--mm-accent);
            border: none;
            border-radius: 5px;
            color: white;
            font-size: var(--modal-logo-fs);
            font-weight: 600;
            padding: 5px 27px;
            margin-bottom: 15px;
            transition-duration: 0.2s;
        }
        
        #modal-logo-choice-content form .logo-choice-left label:hover, .logo-choice-right button:hover{
            cursor: pointer;
            box-shadow: 2px 2px 5px #c5c5c5;
        }

        #modal-logo-choice-content form .logo-choice-left input{
            display: none;
        }
        
        #modal-logo-choice-content form .logo-choice-left p, #modal-logo-choice-content form .logo-choice-right p{
            font-size: var(--modal-logo-fs) !important;
            margin-bottom: -27px;
        }

        #modal-logo-choice-content form .logo-choice-center{
            position: relative;
            background-color: #e0e0e0;
            width: 1px;
            height: 396px;
            z-index: 1;
            margin-bottom: 15px;
        }

        #modal-logo-choice-content form .logo-choice-center .logo-choice-circle{
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 34px;
            height: 34px;
            border: 2.5px solid #e0e0e0;
            border-radius: 50%;
            text-align: center;
            z-index: 2;
            background-color: white;
        }

        #modal-logo-choice-content form .logo-choice-center .logo-choice-circle p{
            color: #6a6a6a;
            font-weight: 600;
            font-size: var(--modal-logo-fs) !important;
            margin-top: 50%;
            transform: translateY(-50%);
        }

        #modal-logo-choice-content form button.close-logo-modal{
            background: none;
            border: none;
        }

        #modal-logo-choice-content form .close-logo-modal{
            position: absolute;
            top: 9px;
            right: 10px;
            font-size: var(--close-icon);
            color: #a2a2a2;
            cursor: pointer;
        }

        #modal-logo-choice-content .logo-choice-info{
            background-color: #f8f8f8;
            border: 1px solid #efefef;
            padding: 5px 20px;
        }

        #modal-logo-choice-content .logo-choice-info p{
            font-size: var(--modal-logo-info-fs) !important;
            font-weight: 600;
            text-align: left;
            color: #7f7f7f;
            margin-bottom: 0;
        }

        #modal-logo-choice-content .logo-choice-info p a{
            color: var(--mm-accent);
        }

        #modal-logo-choice-content .logo-choice-info p a:hover{
            color: var(--mm-accent-dark);
        }

        /* LOGOS LIBRARY MODAL */
        #modal-logos-library{
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgb(0,0,0);
            background-color: rgba(0,0,0,0.4);
        }

        #modal-logos-library-content{
            position: relative;
            background-color: white;
            margin: 13% auto;
            padding: 15px;
            border: 1px solid #888;
            width: 65%;
            border-radius: 3px;
            padding: 40px 40px;
        }

        #modal-logos-library-content #close-logos-library-modal{
            position: absolute;
            top: 9px;
            right: 10px;
            font-size: var(--close-icon);
            color: #a2a2a2;
            background: none;
            border: none;
            cursor: pointer;
        }

        #modal-logos-library-content .sort-letters{
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 0 12px;
        }

        #modal-logos-library-content .sort-letters button{
            border: 1.5px solid transparent;
            background-color: #f8f8f8;
            font-size: var(--titles-fs);
            font-weight: 500;
            border-radius: 5px;
            padding: 3px 13px;
        }

        #modal-logos-library-content .sort-letters button:hover{
            background: var(--mm-accent);
            cursor: pointer;
            color: white;
        }

        #modal-logos-library-content .sort-letters button.active{
            border: 1.5px solid var(--mm-accent);
            background: transparent;
        }

        #modal-logos-library-content .sort-letters button.active:hover{
            background: var(--mm-accent);
            cursor: pointer;
        }

        #modal-logos-library-content .logos-block{
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            margin-top: 30px;
        }

        #modal-logos-library-content .logos-block img{
            margin: 12px;
            /* background: #f7f7f7; */
            background: #e5e5e5;
            padding: 25px 12px;
            width: 143px;
            height: 133px;
            border-radius: 3px;
        }

        #modal-logos-library-content .logos-block img:hover{
            cursor: pointer;
        }

        /* LOGO DESIGN TOOL BLOCK */
        .module-container .tools .logo-design .slider-logo-level{
            display: flex;
            justify-content: space-between;
            margin-top: -17px;
        }

        .module-container .tools .logo-design .slider-logo-level p{
            background-color: var(--mm-border);
            width: 3px;
            height: 15px;
            border-radius: 3px;
            margin-left: 75px;
        }

        .module-container .tools .logo-design .slider-logo-pixel, .slider-logo-pixel-top{
            display: flex;
            justify-content: space-between;
            margin-top: -12px;
        }

        .module-container .tools .logo-design .slider-logo-pixel p{
            color: var(--mm-border);
            margin-left: 15%;
        }

        .module-container .tools .logo-design .slider-logo-pixel-top p{
            width: 30px;
            text-align: center;
            color: var(--mm-accent);
            font-weight: 600;
            margin-left: 13%;
            margin-bottom: -8px;
        }



/*///////// TEMPLATE SIDE /////////*/

    .module-container .template{
        width: 70%;
        display: flex;
        justify-content: center;
        position: relative;
        container-type: inline-size;
    }

    .module-container .template .mat-pattern{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 83%;
        outline: 1cqi solid #333333;
    }

    .module-container .template svg:not(#logo_group svg){
        width: 83%;
    }

    .module-container .template:not(.barnum) svg:not([id*="logo_group"] svg){
        opacity: 0.90;
        mix-blend-mode: overlay;
        filter: blur(0.30px);
    }

    .module-container .template.quad svg:not(#logo_group svg),
    .module-container .template.karting svg:not(#logo_group svg){
        width: 63%;
    }

    .module-container .template.quad .mat-pattern,
    .module-container .template.karting .mat-pattern{
        width: 63% !important;
    }

    .module-container .template svg text{
        cursor: pointer;
    }

    .module-container .template svg [id*='logo']{
        cursor: pointer;
    }

    .module-container .template button.reload-template{
        position: absolute;
        right: 40px;
        top: 80px;
        background: #f8f8f8;
        border: 1px solid var(--mm-border);
        border-radius: 3px;
        font-weight: 600;
        padding: 4px 7px;
        color: #424242;
    }

    .module-container .template button.reload-template:hover{
        cursor: pointer;
        background: #f3f3f3;
    }


/*///////// FOOTER /////////*/
    .module-footer{
        border-top: 1px solid black;
        padding: 18px 0 18px 27px;
    }

    .module-footer .add-to-shopping-cart{
        display: flex;
        align-items: center;
        justify-content: end;
    }

    body#module-mm_custom-customModule .module-footer .add-to-shopping-cart p.price{
        font-size: 22px !important;
        font-weight: 800;
        margin-right: 40px;
        margin-bottom: 0;
        color: var(--mm-accent);
    }

    body#module-mm_custom-customModule .module-footer .add-to-shopping-cart p.original-price{
        text-decoration: line-through;
        font-size: var(--price-fs) !important;
        font-weight: 800;
        margin-bottom: 0;
        margin-right: 22px;
    }

    body#module-mm_custom-customModule .module-footer .add-to-shopping-cart p.discount-price{
        font-size: var(--dicount-price) !important;
        font-weight: 800;
        margin-bottom: 0;
        margin-right: 30px;
        color: var(--mm-accent);
    }

    .module-footer i.fa-close{
        position: absolute;
        top: 11px;
        right: 30px;
        font-size: 27px;
        color: #a2a2a2;
    }

    .module-footer i.fa-close:hover{
        cursor: pointer;
    }

    .module-footer .closed{
        transform: translateY(-100%);
    }

    .module-footer-fixed{
        position: fixed;
        width: 100%;
        left: 0;
        bottom: 0;
        z-index: 100;
    }

    /* Product added to cart message */
    .product-added-to-cart{
        transform: translateX(100%);
        z-index: 1000;
        position: absolute;
        top: 11px;
        right: 0;
        padding: 18px 20px;
        background: #43ab34;
        /* border: 1.5px solid #43ab34; */
        border-top-left-radius: 16px;
        border-bottom-left-radius: 16px;
        box-shadow: 4px 2px 5px #aeaeae;
        animation: productAddedSlideIn cubic-bezier(0.58, 0, 0.58, 1);
        animation-duration: 4s;
        animation-delay: 2s;
    }

    .product-added-to-cart p{
        margin-bottom: 0;
        font-weight: 600;
        color: white;
        display: flex;
        align-items: center;
    }

    .product-added-to-cart p i{
        font-size: 23px;
        font-weight: 600px !important;
        margin-right: 11px;
    }

    @keyframes productAddedSlideIn{
        0%{
            transform: translateX(100%);
        }
        20%{
            transform: translateX(0%);
        }
        80%{
            transform: translateX(0%);
        }
        100%{
            transform: translateX(100%);
        }
    }


.save-auth-close {
    position: absolute;
    top: 1px;
    right: 1px;
    border: none;
    background: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #888;
}

/* Tabs */
.save-auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.save-auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: #999;
    border-bottom: 2px solid transparent;
}


/* Save success modal */
#save-success-modal .mm-modal{
    max-width: fit-content;
}

.save-auth-modal-content{
    width: fit-content !important;
    max-width: none;
}

.save-success-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.save-limit-link {
    display: block;
    margin-top: 18px;
    text-align: center;
}

/* Active tab state, driven by the .active class the JS adds */
.save-auth-tab.active {
    color: #222;
    border-bottom-color: #222;
}

/* Forms */
.save-auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.save-auth-form input[type="text"],
.save-auth-form input[type="email"],
.save-auth-form input[type="password"] {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.save-auth-forgot-link {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #666;
    text-align: center;
    text-decoration: underline;
}

/* GDPR consent line: checkbox and label side by side */
.save-auth-gdpr {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #555;
}

.save-auth-gdpr input {
    margin-top: 2px;
}

/* Error message, shown by the JS on failure */
.save-auth-error {
    margin: 0;
    padding: 10px 12px;
    background: #fdecea;
    color: #a12622;
    border-radius: 6px;
    font-size: 14px;
}

/* Small screens */
@media (max-width: 480px) {
    .save-auth-modal-content {
        padding: 22px 18px;
    }
}


/* ---- Existing-creations modal -------------------------------- */

.mm-existing-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998; /* above the module, below the auth modal (9999) */
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.mm-existing-overlay.is-open {
    display: flex;
}

.mm-existing-modal {
    position: relative;
    width: 100%;
    max-width: 860px;
    margin: 16px;
    padding: 32px 28px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
}

.mm-existing-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #888;
}

.mm-existing-title {
    margin: 0 0 20px;
    font-size: 17px;
    font-weight: 600;
    color: #222;
}

.mm-existing-new {
    display: inline-block;
    margin: 0 auto 24px;
}

/* Up to 5 fixed columns on desktop; wraps to a new row beyond that. */
.mm-existing-grid {
    display: grid;
    grid-template-columns: repeat(5, 150px);
    justify-content: center;
    gap: 16px;
}

.mm-existing-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 10 / 7;
    background: #f7f7f7;
}

.mm-existing-preview {
    position: absolute;
    inset: 0;
}

.mm-existing-iframe {
    border: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* preview only, not interactive */
}

.mm-existing-loader {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    text-align: center;
    font-size: 12px;
    color: #999;
}

/* Reveal layer: dims the preview and centers the resume action. */
.mm-existing-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.15s ease;
}

/* Desktop: reveal on hover, but only on real pointer devices. */
@media (hover: hover) {
    .mm-existing-item:hover .mm-existing-hover {
        opacity: 1;
    }
}

/* Mobile: reveal on tap (the JS toggles .is-revealed). */
.mm-existing-item.is-revealed .mm-existing-hover {
    opacity: 1;
}

.mm-existing-resume {
    padding: 8px 16px;
    background: #fff;
    color: #222;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}



/* MEDIA QUERIES */
@media screen and (max-width: 1366px){

    /* FONT SIZE */
    :root{
        --modal-logo-info-fs: 12px;
        --modal-logo-fs: 13px;
        --texts-fs: 14px;
        --buttons-fs: 15px;
        --titles-fs: 16px;
        --libraryTitle-fs: 17px;
        --tabs-fs: 18px;
        --price-fs: 19px;
        --picked-color: 20px;
        --dicount-price: 23px;
        --fonts-fs: 25px;
        --product-title: 26px;
        --product-attributes: 18px;
        --close-icon: 26px;
    }

    /* TOOLS AND TEMPLATE REPARTITION */
    .module-container .info {
        width: 34%;
    }

    .module-container .template{
        width: 66%;
    }

    .module-container .template svg:not(#logo_group svg){
        width: 88%;
    }

    .module-container .template.quad svg:not(#logo_group svg),
    .module-container .template.karting svg:not(#logo_group svg){
        width: 63%;
    }

    .module-container .template .mat-pattern{
        width: 88%;
    }

    .module-container .template.quad .mat-pattern,
    .module-container .template.karting .mat-pattern{
        width: 63% !important;
    }

    /* BUTTONS */
    .module-container .tools .text-choice .add-text, .module-container .tools .logos-choice .add-logo, .module-container .tools .leave-empty-button{
        min-width: 235px;
    }

    /* COLORS GRID */
    /* Smaller minimum on narrow screens: the swatch size follows the column */
    .module-container .tools .colors-design .colors-grid,
    .module-container .tools .text-design .font-colors .colors-grid{
        grid-template-columns: repeat(auto-fill, minmax(25px, 1fr));
    }

    /* MODAL LOGO */
    #modal-logo-choice-content{
        width: 72%;
    }

    #modal-logos-library-content{
        width: 72%;
    }

    #modal-logos-library-content .sort-letters button{
        padding: 3px 11px;
    }

    #modal-logos-library-content .logos-block img{
        width: 123px;
        height: 113px;
    }
}

@media screen and (min-width: 1367px) and (max-width: 1440px){

    /* TOOLS AND TEMPLATE REPARTITION */
    .module-container .info {
        width: 34%;
    }

    .module-container .template{
        width: 66%;
    }
    .module-container .template svg:not(#logo_group svg){
        width: 88%;
    }

    .module-container .template.quad svg:not(#logo_group svg),
    .module-container .template.karting svg:not(#logo_group svg){
        width: 63%;
    }
    
    .module-container .template .mat-pattern{
        width: 88%;
    }

    .module-container .template.quad .mat-pattern,
    .module-container .template.karting .mat-pattern{
        width: 63% !important;
    }

    /* MODAL LOGO */
    #modal-logo-choice-content{
        width: 67%;
    }

    #modal-logos-library-content{
        width: 76%;
    }
}

@media screen and (min-width: 1367px) and (max-width: 1540px){
    :root{
        --titles-fs: 16px;
    }
}

@media screen and (min-width: 1441px) and (max-width: 1640px) {
    #modal-logos-library-content .sort-letters button{
        padding: 3px 11px;
    }

    .module-container .template svg:not(#logo_group svg){
        width: 81%;
    }

    .module-container .template.quad svg:not(#logo_group svg),
    .module-container .template.karting svg:not(#logo_group svg){
        width: 63%;
    }

    .module-container .template .mat-pattern{
        width: 81%;
    }

    .module-container .template.quad .mat-pattern,
    .module-container .template.karting .mat-pattern{
        width: 63% !important;
    }
}


/* FAIRE LA FONT SIZE DES BUTTONS SORTING LETTERS */