#mc-configurator {
    margin-top: 30px;
}

.mc-preview {
    position: relative;
    width: 300px;
}

#mc-base-image {
    width: 100%;
}

#mc-overlay {
    position:absolute;
    pointer-events:none;
    background:transparent !important;
}
.mc-pastille-selector{
    position:relative;
    max-width:350px;
}

.mc-pastille-current{
    border:1px solid #ccc;
    padding:10px;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:10px;
    background:#fff;
}

.mc-pastille-list{
    display:none;
    position:absolute;
    left:0;
    right:0;
    background:#fff;
    border:1px solid #ccc;
    z-index:100;
    max-height:250px;
    overflow:auto;
}

.mc-pastille-list.open{
    display:block;
}

.mc-pastille-item{
    display:flex;
    align-items:center;
    gap:10px;
    padding:8px;
    cursor:pointer;
}

.mc-pastille-item:hover{
    background:#f5f5f5;
}

.mc-pastille-item-image{
    width:100px;
    height:100px;
    object-fit:contain;
}
.mc-pastille-current{
    border:1px solid #ccc;
    padding:10px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#fff;
}

.mc-pastille-selected{
    display:flex;
    align-items:center;
    gap:10px;
}

.mc-arrow{
    font-size:12px;
    color:#666;
}
.mc-ruban-item {
    cursor: pointer;
}

.mc-ruban-item:hover {
    background: #f5f5f5;
}
#mc-ruban-overlay {
    position:absolute;
    pointer-events:none;
    background:transparent !important;
    z-index:10;
    max-width:none !important;
    max-height:none !important;
}
/*.product-cover {
    position:relative;
}*/
.product-cover {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.product-cover .js-qv-product-cover {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
}

@media (max-width: 767px) {
    .product-cover {
        max-width: 100%;
    }
}
#mc-ecrin-current,
.mc-ecrin-item {
    cursor: pointer;
}

#mc-ecrin-current:hover,
.mc-ecrin-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/*personnalisation panier*/
.mc-cart-hook-row {
    display: block;
    clear: both;
    width: 100%;
    padding: 10px 15px 0;
    box-sizing: border-box;
}

.mc-cart-configuration {
    display: block;
    width: 100%;
    max-width: none;
    padding: 12px 15px;
    background: #f5f5f5;
    border-left: 4px solid #1390E6;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.5;
}

.mc-cart-configuration-title {
    margin-bottom: 6px;
    color: #1390E6;
    font-weight: 700;
}

.mc-cart-configuration-line {
    margin-bottom: 3px;
}

.mc-cart-engraving-list {
    margin-top: 4px;
}

.mc-cart-engraving {
    margin-bottom: 4px;
}

/* mise en forme compte client commande*/
.mc-customer-order-configuration {
    margin: 6px 0;
    font-size: 13px;
    line-height: 1.5;
}

.mc-customer-order-configuration div {
    margin-bottom: 2px;
}
/*amelioration graphique page produit*/

#mc-sport-container,
#mc-rubans,
#mc-ecrins,
#mc-engraving-block,
#mc-configurator .mc-field {
    border-top: 3px solid #dcdcdc;
    padding-top: 20px;
    margin-top: 20px;
}
/*affichage quantite en bas de la page produit*/
.mc-grand-total {
    margin-bottom: 15px;
    padding: 0;
    border: none;
    background: none;
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: red;
}

.mc-grand-total strong {
    margin-left: 4px;
    font-size: 18px;
    color: red;
}
.mc-grand-total {
    border-top: 3px solid #dcdcdc;
    padding-top: 15px;
    margin-top: 15px;
    margin-bottom: 10px;

    color: #d60000;
    font-size: 18px;
    font-weight: 700;
}

.mc-grand-total strong {
    color: #d60000;
    font-size: 18px;
    font-weight: 700;
}
/*bouton ajouter*/
.product-add-to-cart .btn-primary.add-to-cart {
    background: #d60000;
    border-color: #d60000;
    color: #fff;

    border-radius: 30px;

    padding: 12px 28px;

    font-size: 16px;
    font-weight: 600;

    transition: all .2s ease;
}

.product-add-to-cart .btn-primary.add-to-cart:hover {
    background: #b80000;
    border-color: #b80000;
}

.product-add-to-cart .btn-primary.add-to-cart:focus,
.product-add-to-cart .btn-primary.add-to-cart:active {
    background: #a50000;
    border-color: #a50000;
    box-shadow: none;
}
/*selecteur sport largeur*/


#mc-sport {
    width: auto !important;
    min-width: 180px;
    display: block;
}
#mc-finition {
    width: fit-content !important;
    min-width: 180px;
}
#mc-configurator {
    margin-top: 30px;
}

.mc-preview {
    position: relative;
    width: 300px;
}

#mc-base-image {
    width: 100%;
}

#mc-overlay {
    position:absolute;
    pointer-events:none;
    background:transparent !important;
}
.mc-pastille-selector{
    position:relative;
    max-width:350px;
}

.mc-pastille-current{
    border:1px solid #ccc;
    padding:10px;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:10px;
    background:#fff;
}

.mc-pastille-list{
    display:none;
    position:absolute;
    left:0;
    right:0;
    background:#fff;
    border:1px solid #ccc;
    z-index:100;
    max-height:250px;
    overflow:auto;
}

.mc-pastille-list.open{
    display:block;
}

.mc-pastille-item{
    display:flex;
    align-items:center;
    gap:10px;
    padding:8px;
    cursor:pointer;
}

.mc-pastille-item:hover{
    background:#f5f5f5;
}

.mc-pastille-item-image{
    width:100px;
    height:100px;
    object-fit:contain;
}
.mc-pastille-current{
    border:1px solid #ccc;
    padding:10px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#fff;
}

.mc-pastille-selected{
    display:flex;
    align-items:center;
    gap:10px;
}

.mc-arrow{
    font-size:12px;
    color:#666;
}
.mc-ruban-item {
    cursor: pointer;
}

.mc-ruban-item:hover {
    background: #f5f5f5;
}
#mc-ruban-overlay {
    position:absolute;
    pointer-events:none;
    background:transparent !important;
    z-index:10;
    max-width:none !important;
    max-height:none !important;
}
.product-cover {
    position:relative;
}
#mc-ecrin-current,
.mc-ecrin-item {
    cursor: pointer;
}

#mc-ecrin-current:hover,
.mc-ecrin-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/*personnalisation panier*/
.mc-cart-hook-row {
    display: block;
    clear: both;
    width: 100%;
    padding: 10px 15px 0;
    box-sizing: border-box;
}

.mc-cart-configuration {
    display: block;
    width: 100%;
    max-width: none;
    padding: 12px 15px;
    background: #f5f5f5;
    border-left: 4px solid #1390E6;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.5;
}

.mc-cart-configuration-title {
    margin-bottom: 6px;
    color: #1390E6;
    font-weight: 700;
}

.mc-cart-configuration-line {
    margin-bottom: 3px;
}

.mc-cart-engraving-list {
    margin-top: 4px;
}

.mc-cart-engraving {
    margin-bottom: 4px;
}

/* mise en forme compte client commande*/
.mc-customer-order-configuration {
    margin: 6px 0;
    font-size: 13px;
    line-height: 1.5;
}

.mc-customer-order-configuration div {
    margin-bottom: 2px;
}
/*amelioration graphique page produit*/

#mc-sport-container,
#mc-rubans,
#mc-ecrins,
#mc-engraving-block,
#mc-configurator .mc-field {
    border-top: 3px solid #dcdcdc;
    padding-top: 20px;
    margin-top: 20px;
}
/*affichage quantite en bas de la page produit*/
.mc-grand-total {
    border-top: 3px solid #dcdcdc;
    padding-top: 15px;
    margin-top: 15px;
    margin-bottom: 10px;

    font-size: 24px;
    font-weight: 700;
    color: #d60000; /* "Prix total :" en rouge */
}
.mc-grand-total .mc-ttc {
    font-size: 16px;
    font-weight: 600;
    vertical-align: middle;
}

.mc-grand-total strong {
    color: #000; /* le prix en noir */
    font-size: 28px;
    font-weight: 700;
}
/*bouton ajouter*/
.product-add-to-cart .btn-primary.add-to-cart {
    background: #d60000;
    border-color: #d60000;
    color: #fff;

    border-radius: 30px;

    padding: 12px 28px;

    font-size: 16px;
    font-weight: 600;

    transition: all .2s ease;
}

.product-add-to-cart .btn-primary.add-to-cart:hover {
    background: #b80000;
    border-color: #b80000;
}

.product-add-to-cart .btn-primary.add-to-cart:focus,
.product-add-to-cart .btn-primary.add-to-cart:active {
    background: #a50000;
    border-color: #a50000;
    box-shadow: none;
}
/*selecteur sport largeur*/


#mc-sport {
    width: auto !important;
    min-width: 180px;
    display: block;
}
#mc-finition {
    width: fit-content !important;
    min-width: 180px;
}
/* ruban*/
/* Sélecteur ruban sous le label */
#mc-rubans .mc-pastille-selector {
    display: block;
    width: max-content;
    max-width: 100%;
}

/* Sélecteur adapté à la longueur du texte */
#mc-rubans .mc-pastille-current {
    display: flex;
    width: max-content;
    min-width: 350px;
    max-width: 100%;
    box-sizing: border-box;
}

/* Texte du ruban sélectionné sur une ligne */
#mc-rubans .mc-pastille-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

/* Image du ruban actuellement sélectionné */
#mc-rubans .mc-pastille-selected img {
    width: 120px !important;
    height: 120px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    flex: 0 0 120px;
}

/* Liste adaptée au texte le plus long */
#mc-rubans .mc-pastille-list {
    left: 0;
    right: auto;
    width: max-content;
    min-width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* Lignes de la liste */
#mc-rubans .mc-ruban-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    white-space: nowrap;
}

/* Images des rubans dans la liste ouverte */
#mc-rubans .mc-ruban-item img {
    width: 120px !important;
    height: 120px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    flex: 0 0 120px;
}
/*bouton ajouter gravure*/
.mc-show-engraving {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-top: 12px;
    margin-bottom: 12px;
    padding: 12px 18px;

    border: 2px solid #1390E6;
    border-radius: 8px;

    background: #1390E6;
    color: #fff;

    font-size: 17px;
    font-weight: 700;

    cursor: pointer;
    transition: all 0.2s ease;
}

.mc-show-engraving:hover {
    background: #fff;
    color: #1390E6;
}

.mc-show-engraving small {
    font-size: 13px;
    font-weight: 500;
}

#mc-add-engraving-price {
    font-size: 18px;
    font-weight: 700;
}
.mc-label {
    font-weight: bold;
}
/*bouton marquage*/
.mc-engraving-button-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mc-engraving-button-row .mc-show-engraving {
    flex: 0 0 auto;
    width: auto !important;
    max-width: max-content;
}
.mc-marking-image {
    display: block;
    width: 90px;
    height: auto;
    flex: 0 0 auto;
}
@media (max-width: 767px) {

    .mc-engraving-button-row {
        width: 100%;
        max-width: 100%;
    }

    .mc-engraving-button-row .mc-show-engraving {
        display: flex;

        flex-direction: column;
        align-items: center;
        justify-content: center;

        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;

        padding: 10px 14px;
        gap: 2px;

        box-sizing: border-box;

        text-align: center;
    }

    .mc-engraving-main-text {
        display: block;

        font-size: 14px;
        font-weight: 700;
        line-height: 1.25;

        white-space: nowrap;
    }

    #mc-add-engraving-price {
        font-size: 15px;
        font-weight: 700;
    }

    .mc-engraving-unit-price {
        display: block;

        font-size: 10px;
        font-weight: 500;
        line-height: 1.2;

        white-space: nowrap;
    }
}
/* ==========================================================
   LOGO PERSONNALISÉ
   ========================================================== */

#mc-logo-panel {
    border-top: 3px solid #ddd;
    padding-top: 20px;
    margin-top: 15px;
}
/* ==========================================================
   SPORT + LOGO PERSONNALISÉ SUR LA MÊME LIGNE
   ========================================================== */

#mc-sport-logo-zone {
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

#mc-sport-logo-zone #mc-sport-container {
    flex: 0 0 auto;
}

#mc-logo-choice {
    flex: 0 0 auto;
    margin: 0;
}

.mc-logo-button {
    height: 38px;
    padding: 0 18px;

    border: 2px solid #1390E6;
    border-radius: 6px;

    background: #1390E6;
    color: #fff;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
}

.mc-logo-button:hover {
    background: #fff;
    color: #1390E6;
}
@media (max-width: 767px) {

    #mc-sport-logo-zone {
        display: flex;
        align-items: flex-end;
        gap: 10px;
        flex-wrap: wrap;
    }

    .mc-logo-button {
        white-space: nowrap;
    }
}
/* ==========================================================
   LOGO PERSONNALISÉ
   ========================================================== */

#mc-logo-panel {
    border-top: 3px solid #dcdcdc;
    padding-top: 20px;
    margin-top: 20px;
}

.mc-logo-zone {
    margin-top: 15px;
}

.mc-logo-zone-title,
.mc-logo-upload-label {
    display: block;
    margin-bottom: 8px;
}

.mc-logo-upload-price {
    margin-bottom: 12px;
    font-size: 15px;
}

.mc-logo-upload-price strong {
    color: #d60000;
    font-size: 17px;
}

.mc-logo-upload-price small {
    display: block;
    font-size: 14px;
    font-style: italic;
    color: #666;
    line-height: 1.4;
}

#mc-logo-file {
    display: block;
    margin-top: 8px;
}

.mc-logo-cancel {
    margin-top: 18px;
    padding: 8px 14px;

    border: 1px solid #999;
    border-radius: 5px;

    background: #fff;
    color: #555;

    cursor: pointer;
}

.mc-logo-cancel:hover {
    background: #f5f5f5;
}
/* ==========================================================
   CORRECTION BLOC LOGO PERSONNALISÉ
   ========================================================== */

#mc-logo-panel {
    display: none;
    width: 100%;
    clear: both;
}

#mc-logo-panel[style*="display: block"] {
    display: block !important;
}

#mc-logo-selector {
    display: block !important;
    width: 100%;
}

#mc-new-logo-zone {
    display: block !important;
    width: 100%;
    margin-top: 15px;
}

#mc-new-logo-zone .mc-logo-upload-label {
    display: block !important;
    width: 100%;
    margin: 0 0 8px 0;
    text-align: left !important;
    float: none !important;
}

.mc-logo-upload-price {
    display: block;
    width: 100%;
    margin: 0 0 12px 0;
    clear: both;
}

#mc-logo-file {
    display: block;
    width: auto;
    margin: 0 0 15px 0;
    clear: both;
}

.mc-logo-cancel {
    display: inline-block;
    clear: both;
    float: none !important;
    margin-top: 5px;
}
#mc-logo-upload-status {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
}

#mc-logo-upload-status.mc-logo-upload-success {
    color: #218838;
}

#mc-logo-upload-status.mc-logo-upload-error {
    color: #d60000;
}

#mc-logo-overlay {
    position: absolute !important;
    object-fit: contain !important;

    margin: 0 !important;
    padding: 0 !important;

    z-index: 20;
    pointer-events: none;
}

.mc-cart-logo {
    margin-top: 10px;
}

.mc-cart-logo-image {
    display: block;
    width: 90px;
    height: 90px;
    object-fit: contain;
}
/* ==========================================================
   MES LOGOS - FICHE PRODUIT
   ========================================================== */

#mc-my-logos-zone {
    width: 100%;
    margin-bottom: 20px;
}

#mc-my-logos {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 10px;
    padding-bottom: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
}

.mc-my-logo-item {
    flex: 0 0 110px;
}

.mc-my-logo-item {
    width: 110px;
    padding: 8px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    text-align: center;
}

.mc-my-logo-item img {
    display: block;
    width: 90px;
    height: 90px;
    max-width: 100%;
    margin: 0 auto 6px;
    object-fit: contain;
}

.mc-my-logo-item span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: 12px;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mc-my-logo-item small {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: #1390E6;
    font-weight: 600;
}
/* ==========================================================
   MES LOGOS - FLÈCHES DE DÉFILEMENT
   ========================================================== */

.mc-logo-zone-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mc-logo-scroll-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mc-logo-scroll-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;
    padding: 0;

    border: 1px solid #1390E6;
    border-radius: 50%;

    background: #fff;
    color: #1390E6;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;
}

.mc-logo-scroll-button:hover {
    background: #1390E6;
    color: #fff;
}

#mc-my-logos {
    scroll-behavior: smooth;
}
@media (max-width: 767px) {

    #mc-my-logos {
        gap: 8px;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .mc-my-logo-item {
        flex: 0 0 95px;
        width: 95px;
        padding: 6px;
    }

    .mc-my-logo-item img {
        width: 75px;
        height: 75px;
    }

    .mc-my-logo-item span {
        font-size: 11px;
    }

    .mc-my-logo-item small {
        font-size: 10px;
    }
}
/* ==========================================================
   LOGO PERSONNALISÉ - CLIENT NON CONNECTÉ
   ========================================================== */

.mc-logo-login-required {
    margin-top: 10px;
}

.mc-logo-login-text {
    margin-bottom: 20px;
}

.mc-logo-login-text > strong {
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
    color: #222;
}

.mc-logo-login-text > small {
    display: block;
    font-size: 14px;
    font-style: italic;
    color: #666;
    line-height: 1.4;
}

.mc-logo-login-price {
    margin-bottom: 20px;
    font-size: 14px;
}

.mc-logo-login-price > strong {
    color: #222;
}

.mc-logo-login-price > span {
    margin-left: 5px;
    color: #e30613;
    font-size: 16px;
    font-weight: 700;
}

.mc-logo-login-price > small {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    font-style: italic;
    color: #666;
}

.mc-logo-login-actions {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 18px;
}

.mc-logo-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 18px;
    border: 2px solid #333;
    background: #fff;
    color: #333 !important;
    font-size: 13px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.mc-logo-login-button:hover {
    background: #333;
    color: #fff !important;
}

/* Mobile */
@media (max-width: 767px) {
    .mc-logo-login-actions {
        gap: 12px;
        flex-wrap: wrap;
    }

    .mc-logo-login-button {
        padding: 7px 12px;
    }
}
.mc-sport-logo-or {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    height: 38px;
    font-weight: 700;
    padding: 0 12px;
}
/* Logo personnalisé sélectionné : miniature + nom */
#mc-logo-file-name {
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.mc-logo-selected-preview {
    width: 100px;
    height: 100px;
    flex: 0 0 100px;
    object-fit: contain;
    padding: 3px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#mc-logo-file-name span {
    font-size: 14px;
    line-height: 1.3;
    word-break: break-word;
}