/* ==========================================================
   Magic Kado — correctifs du site (chargé par functions.php)
   13 Icône « Mon compte »   14 Fiche produit : exemples
   ========================================================== */

/* 13. Icône « Mon compte » dans l'en-tête ---------------------
   Même principe que panier (rose) et recherche (orange) :
   pastille ronde de 40 px + anneau pointillé qui tourne au survol. */
.wgl-theme-header .mk-account { display: inline-block; position: relative; vertical-align: middle; }
.wgl-theme-header .mk-account.woocommerce { display: inline-flex; align-items: center; line-height: 0; padding-top: 0; }
.wgl-theme-header .mk-account a.mk-account__link {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--mk-navy, #12265a); color: #fff !important; cursor: pointer; opacity: 1;
}
.wgl-theme-header .mk-account a.mk-account__link:before {
    content: ""; position: absolute; top: -6px; left: -6px;
    width: calc(100% + 8px); height: calc(100% + 8px);
    border: 2px dashed var(--mk-navy, #12265a); border-radius: inherit;
    animation: spin_left 5s linear infinite; animation-play-state: paused;
}
.wgl-theme-header .mk-account a.mk-account__link:hover:before,
.wgl-theme-header .mk-account a.mk-account__link:focus-visible:before { animation-play-state: running; }
.wgl-theme-header .mk-account a.mk-account__link:hover { background: var(--mk-pink, #ed306f); }
.wgl-theme-header .mk-account a.mk-account__link:hover:before { border-color: var(--mk-pink, #ed306f); }
.wgl-theme-header .mk-account.is-logged .mk-account__link:after {
    content: ""; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px;
    border-radius: 50%; background: #2fb26a; border: 2px solid #fff;
}
.wgl-theme-header .mk-account + .mini-cart,
.wgl-theme-header .mini-cart + .header_search { margin-left: 22px; }
.wgl-theme-header .mk-account__icon { display: block; }
.wgl-mobile-header .mk-account { margin-right: 0px; }

/* 14. Fiche produit : « Comment ça marche » + « Avant / Après » ---
   Textes et images : Apparence > Page produit MagicKado. */
.mk-how { margin: 70px auto 0; padding: 0 15px; text-align: center; }
.mk-how__title, .mk-example__text h2 { font-family: inherit; color: var(--mk-navy, #12265a); margin-bottom: 30px; }
.mk-how__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mk-how__step { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; margin: 0; line-height: 1.4; }
.mk-how__step:before { display: none; }
.mk-how__img { position: relative; display: block; width: 150px; height: 150px; margin-bottom: 10px; }
.mk-how__img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px dashed var(--mk-pink, #ed306f); padding: 5px; background: #fff; }
.mk-how__num {
    position: absolute; left: -4px; bottom: 6px; width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--mk-pink, #ed306f); color: #fff; font-weight: 800; font-size: 16px; box-shadow: 0 0 0 4px #fff;
}
.mk-how__name { font-size: 20px; color: var(--mk-navy, #12265a); }
.mk-how__text { max-width: 280px; font-size: 16px; color: var(--mk-text, #464254); }

.mk-example { margin: 80px auto 20px; padding: 0 15px; display: grid; grid-template-columns: minmax(260px, 440px) 1fr; gap: 56px; align-items: center; }
.mk-example__text h2 { margin-bottom: 14px; }
.mk-example__text p { font-size: 18px; color: var(--mk-text, #464254); margin: 0; }
.mk-compare {
    --mk-pos: 50%; position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
    border-radius: 28px; background: #eee; box-shadow: 0 14px 36px rgba(18, 38, 90, .18);
    border: 3px dashed var(--mk-orange, #f39d23); touch-action: pan-y;
}
.mk-compare__img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; display: block; border-radius: 0; }
.mk-compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--mk-pos)) 0 0); }
.mk-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--mk-pos); width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 6px rgba(0, 0, 0, .25); }
.mk-compare__handle:after {
    content: "\2039  \203A"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--mk-navy, #12265a);
    display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; white-space: pre; box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}
.mk-compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; }
.mk-compare__range:focus-visible ~ .mk-compare__handle:after { outline: 3px solid var(--mk-pink, #ed306f); outline-offset: 2px; }
.mk-compare__tag { position: absolute; top: 14px; padding: 4px 14px; border-radius: 999px; background: rgba(18, 38, 90, .78); color: #fff; font-size: 14px; font-weight: 700; pointer-events: none; }
.mk-compare__tag--before { left: 14px; }
.mk-compare__tag--after { right: 14px; background: rgba(237, 48, 111, .9); }

@media (max-width: 900px) {
    .mk-how__list { grid-template-columns: 1fr; gap: 34px; }
    .mk-example { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; }
    .mk-compare { max-width: 440px; margin: 0 auto; }
    .mk-example__text { text-align: center; }
}


/* ==========================================================
   15. Mon compte — menu en carte, icônes, contenu lisible
   (retire les puces orange du thème, liens contrastés)
   ========================================================== */
body.woocommerce-account .wgl_col-12 .woocommerce-MyAccount-navigation,
body.woocommerce-account .wgl_col-12 .woocommerce-MyAccount-content { float: none; width: auto; }

body.logged-in.woocommerce-account .wgl_col-12 .woocommerce {
    display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start;
    max-width: 1140px; margin: 0 auto 40px;
}
body.logged-in.woocommerce-account .wgl_col-12 .woocommerce::after, body.logged-in.woocommerce-account .wgl_col-12 .woocommerce::before {
    display: none;
}
.blog-post_meta-desc {
    margin-left: 15px;
}
body.logged-in.woocommerce-account .wgl_col-12 .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }

.woocommerce-MyAccount-navigation {
    background: #fff; border: 2px dashed var(--mk-pink); border-radius: var(--mk-radius-lg);
    padding: 16px; box-shadow: var(--mk-shadow); position: sticky; top: 0px;
}
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.woocommerce-MyAccount-navigation li { list-style: none; margin: 0; padding: 0; position: static; }
.woocommerce-MyAccount-navigation li:before,
.woocommerce-MyAccount-navigation li:after { content: none !important; display: none !important; }
.woocommerce-MyAccount-navigation li a {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    border-radius: var(--mk-radius-md); background: transparent; color: var(--mk-navy);
    font-weight: 800; font-size: 16px; line-height: 1.25; text-decoration: none;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.woocommerce-MyAccount-navigation li a:before {
    content: ""; flex: 0 0 22px; width: 22px; height: 22px; background-color: currentColor;
    -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat;
}
.woocommerce-MyAccount-navigation-link--dashboard a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 11l9-8 9 8%22/%3E%3Cpath d=%22M5 10v10h14V10%22/%3E%3Cpath d=%22M10 20v-6h4v6%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 11l9-8 9 8%22/%3E%3Cpath d=%22M5 10v10h14V10%22/%3E%3Cpath d=%22M10 20v-6h4v6%22/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--orders a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 7h12l1 13H5z%22/%3E%3Cpath d=%22M9 7a3 3 0 016 0%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 7h12l1 13H5z%22/%3E%3Cpath d=%22M9 7a3 3 0 016 0%22/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--downloads a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 4v11%22/%3E%3Cpath d=%22M7 11l5 5 5-5%22/%3E%3Cpath d=%22M5 20h14%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 4v11%22/%3E%3Cpath d=%22M7 11l5 5 5-5%22/%3E%3Cpath d=%22M5 20h14%22/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--edit-address a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 21s7-6.2 7-11a7 7 0 10-14 0c0 4.8 7 11 7 11z%22/%3E%3Ccircle cx=%2212%22 cy=%2210%22 r=%222.5%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 21s7-6.2 7-11a7 7 0 10-14 0c0 4.8 7 11 7 11z%22/%3E%3Ccircle cx=%2212%22 cy=%2210%22 r=%222.5%22/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--edit-account a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%228%22 r=%224%22/%3E%3Cpath d=%22M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%228%22 r=%224%22/%3E%3Cpath d=%22M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7%22/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--mes-personnalisations a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3l2.2 5.3L20 9l-4.3 3.8L17 18.5 12 15.6 7 18.5l1.3-5.7L4 9l5.8-.7z%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3l2.2 5.3L20 9l-4.3 3.8L17 18.5 12 15.6 7 18.5l1.3-5.7L4 9l5.8-.7z%22/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--customer-logout a:before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9 4H5v16h4%22/%3E%3Cpath d=%22M16 8l4 4-4 4%22/%3E%3Cpath d=%22M20 12H9%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9 4H5v16h4%22/%3E%3Cpath d=%22M16 8l4 4-4 4%22/%3E%3Cpath d=%22M20 12H9%22/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation li a:hover { background: var(--mk-blush); color: var(--mk-pink-dark); transform: translateX(3px); }
.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li.is-active a:hover { background: var(--mk-pink); color: #fff; transform: none; }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 8px; padding-top: 8px; border-top: 2px dashed var(--mk-line); }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--mk-text); }

.woocommerce-account .woocommerce-MyAccount-content {
    background: #fff; border: 2px solid var(--mk-line); border-radius: var(--mk-radius-lg);
    padding: 30px 34px; box-shadow: var(--mk-shadow); font-size: 17px !important;
    line-height: 1.7 !important;
    color: var(--mk-text) !important;
}
.woocommerce .col2-set::after, .woocommerce .col2-set::before, .woocommerce-page .col2-set::after, .woocommerce-page .col2-set::before {
    display: none;
}
    
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 { color: var(--mk-navy); margin: 0 0 16px; }
.woocommerce-account .woocommerce-MyAccount-content a:not(.button):not(.woocommerce-button) { color: var(--mk-pink-dark); text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-account .woocommerce-MyAccount-content a:not(.button):not(.woocommerce-button):hover { color: var(--mk-pink); }
.woocommerce-account .woocommerce-MyAccount-content strong { color: var(--mk-navy); }

/* Tableaux : commandes (Woo) et personnalisations (plugin) */
.woocommerce-account table.woocommerce-orders-table,
.woocommerce-account table.woocommerce-table,
.woocommerce-account table.my_account_orders {
    width: 100%; border: 0; border-collapse: separate; border-spacing: 0 10px; background: transparent;
}
.woocommerce-account table.woocommerce-orders-table th,
.woocommerce-account table.woocommerce-table th {
    background: var(--mk-blush); color: var(--mk-navy) !important; font-weight: 800; text-align: left;
    padding: 12px 16px; border: 0; font-size: 14px !important; text-transform: uppercase; letter-spacing: .04em;
}
.woocommerce-account table.woocommerce-orders-table th:first-child,
.woocommerce-account table.woocommerce-table th:first-child { border-radius: 16px 0 0 16px; }
.woocommerce-account table.woocommerce-orders-table th:last-child,
.woocommerce-account table.woocommerce-table th:last-child { border-radius: 0 16px 16px 0; }
.woocommerce-account table.woocommerce-orders-table td,
.woocommerce-account table.woocommerce-table td {
    padding: 14px 16px; border: 0; border-bottom: 2px dashed var(--mk-line); vertical-align: middle; background: #fff;
}
.woocommerce-account table.woocommerce-orders-table td a { font-weight: 800; }
.woocommerce-account .woocommerce-orders-table__cell-order-actions .button,
.woocommerce-account .mk-approve, .woocommerce-account .mk-request-change {
    display: inline-block; margin: 2px 4px 2px 0; padding: 9px 18px; border-radius: 999px; border: 2px solid var(--mk-pink);
    background: var(--mk-pink); color: #fff !important; font-weight: 800; font-size: 14px; line-height: 1.2; cursor: pointer; text-decoration: none;
}
.woocommerce-account .mk-request-change,
.woocommerce-account .woocommerce-orders-table__cell-order-actions .button.view { background: #fff; color: var(--mk-pink-dark) !important; }
.woocommerce-account .woocommerce-orders-table__cell-order-actions .button:hover,
.woocommerce-account .mk-approve:hover, .woocommerce-account .mk-request-change:hover { background: var(--mk-pink-dark); border-color: var(--mk-pink-dark); color: #fff !important; }

/* Adresses */
.woocommerce-account .woocommerce-Addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.woocommerce-account .woocommerce-Addresses .woocommerce-Address { float: none !important; width: auto !important; background: var(--mk-cream); border: 2px dashed var(--mk-line); border-radius: var(--mk-radius-md); padding: 20px 22px; }
.woocommerce-account .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.woocommerce-account .woocommerce-Address-title h3 { margin: 0 0 8px; }
.woocommerce-account address { font-style: normal; }

/* Formulaires (détails du compte, adresses) */
.woocommerce-account .woocommerce-MyAccount-content form .form-row label { color: var(--mk-navy); font-weight: 800; margin-bottom: 6px; }
.woocommerce-account .woocommerce-MyAccount-content fieldset { border: 2px dashed var(--mk-line); border-radius: var(--mk-radius-md); padding: 8px 22px 18px; margin: 18px 0; }
.woocommerce-account .woocommerce-MyAccount-content legend { padding: 0 10px; color: var(--mk-navy); font-weight: 800; }
.woocommerce-account .woocommerce-MyAccount-content button.button[type="submit"],
.woocommerce-account .woocommerce-MyAccount-content button.woocommerce-Button {
    background: var(--mk-pink); color: #fff; border-radius: var(--mk-radius-md); padding: 14px 30px; font-weight: 800;
}

/* Connexion / inscription (visiteur non connecté) */
body.woocommerce-account:not(.logged-in) .wgl_col-12 .woocommerce { max-width: 1000px; margin: 0 auto 40px; }
body.woocommerce-account:not(.logged-in) .wgl_col-12 .u-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
body.woocommerce-account:not(.logged-in) .wgl_col-12 .u-columns .u-column1,
body.woocommerce-account:not(.logged-in) .wgl_col-12 .u-columns .u-column2 { float: none; width: auto; }
.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword {
    background: #fff; border: 2px dashed var(--mk-pink) !important; border-radius: var(--mk-radius-lg) !important; padding: 28px 30px !important; box-shadow: var(--mk-shadow); margin: 0 !important;
}
.woocommerce-form-login .button, .woocommerce-form-register .button, .woocommerce-ResetPassword .button { background: var(--mk-pink); color: #fff; padding: 14px 30px; }

@media (max-width: 900px) {
    body.logged-in.woocommerce-account .wgl_col-12 .woocommerce { grid-template-columns: 1fr; gap: 22px; }
    .woocommerce-MyAccount-navigation { position: static; padding: 10px; }
    .woocommerce-MyAccount-navigation ul { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
    .woocommerce-MyAccount-navigation li { flex: 0 0 auto; }
    .woocommerce-MyAccount-navigation li a { white-space: nowrap; padding: 10px 14px; background: var(--mk-cream); }
    .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout { margin: 0; padding: 0; border: 0; }
    .woocommerce-account .woocommerce-MyAccount-content { padding: 22px 18px; }
    .woocommerce-account table.woocommerce-table, .woocommerce-account table.woocommerce-orders-table { display: block; overflow-x: auto; }
}

/* ==========================================================
   16. Panier (bloc WooCommerce « Panier »)
   ========================================================== */
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { margin-bottom: 50px; }

/* Colonnes : on remplace les marges internes par un espace (gap) pour pouvoir
   encadrer proprement chaque colonne dans une carte (valable panier + commande). */
.wc-block-components-sidebar-layout.is-large { gap: 32px; flex-wrap: nowrap; align-items: flex-start; }
.wc-block-components-sidebar-layout.is-large .wc-block-components-main { width: calc(64% - 16px) !important; padding-right: 0 !important; }
.wc-block-components-sidebar-layout.is-large .wc-block-components-sidebar { width: calc(36% - 16px) !important; }

.wc-block-cart__main {
    background: #fff; border: 2px solid var(--mk-line); border-radius: var(--mk-radius-lg);
    padding: 8px 28px 22px !important; box-shadow: var(--mk-shadow);
}
.wc-block-cart__sidebar, .wc-block-checkout__sidebar {
    background: var(--mk-cream); border: 2px dashed var(--mk-pink); border-radius: var(--mk-radius-lg);
    padding: 22px 26px 26px !important; box-shadow: var(--mk-shadow);
}
.wc-block-components-sidebar-layout.is-large .wc-block-components-sidebar { position: sticky; top: 110px; }

table.wc-block-cart-items { border: 0; background: transparent; width: 100%; table-layout: auto; }
/* La colonne « Total » sortait de la carte (texte coupé à droite) */
.wc-block-cart-items__header-total, .wc-block-cart-items .wc-block-cart-item__total { padding-right: 18px !important; white-space: nowrap; }
.wc-block-cart__main { overflow: visible; box-sizing: border-box; }
.wc-block-cart-items__header th, .wc-block-cart-items__header-image, .wc-block-cart-items__header-product, .wc-block-cart-items__header-total {
    color: var(--mk-navy); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px dashed var(--mk-line) !important;
}
.wc-block-cart-items__row { border-bottom: 2px dashed var(--mk-line); }
.wc-block-cart-items__row td { vertical-align: top; }
.wc-block-cart-item__image img { border-radius: 18px; border: 2px solid var(--mk-line); background: #fff; }
a.wc-block-components-product-name, .wc-block-components-product-name {
    color: var(--mk-pink-dark); font-weight: 900; font-size: 18px; line-height: 1.3; text-decoration: none;
}
a.wc-block-components-product-name:hover { color: var(--mk-pink); text-decoration: underline; text-underline-offset: 3px; }
.wc-block-components-product-metadata, .wc-block-components-product-details, .wc-block-components-product-metadata__description { color: var(--mk-text); font-size: 14px; line-height: 1.5; }
.wc-block-components-product-details__name { font-weight: 800; color: var(--mk-navy); }
.wc-block-cart-item__prices, .wc-block-components-product-price { color: var(--mk-navy); font-weight: 800; }
.wc-block-components-product-price__value { color: var(--mk-navy); }
.wc-block-cart-item__total .wc-block-components-product-price__value { color: var(--mk-pink); font-weight: 900; font-size: 18px; }

.wc-block-components-quantity-selector {
    border: 2px solid var(--mk-line) !important; border-radius: 999px !important; background: #fff; overflow: hidden; box-shadow: none;
}
.wc-block-components-quantity-selector:after { display: none !important; }
.wc-block-components-quantity-selector__input { font-weight: 800; color: var(--mk-navy); border: 0 !important; background: transparent !important; box-shadow: none !important; }
.wc-block-components-quantity-selector__button { color: var(--mk-pink) !important; opacity: 1 !important; height: auto;}
.wc-block-components-quantity-selector__button:hover:not(:disabled) { background: var(--mk-blush); }
.wc-block-cart-item__remove-link { color: var(--mk-text) !important; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.wc-block-cart-item__remove-link:hover { color: var(--mk-pink) !important; }

.wc-block-cart__totals-title, .wc-block-components-totals-wrapper .wc-block-components-title, .wp-block-woocommerce-cart-order-summary-heading-block {
    color: var(--mk-navy); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; padding: 0 0 12px;
}
.wc-block-components-totals-wrapper { border-color: var(--mk-line) !important; }
.wc-block-components-totals-item__label { color: var(--mk-text); font-weight: 700; }
.wc-block-components-totals-item__value { color: var(--mk-navy); font-weight: 800; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label { color: var(--mk-navy); font-weight: 900; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item-tax-value { color: var(--mk-pink); font-weight: 900; font-size: 26px; }
.wc-block-components-totals-coupon .wc-block-components-panel__button, .wc-block-components-panel__button { color: var(--mk-navy); font-weight: 800; }
.wc-block-components-totals-coupon__button { border-radius: var(--mk-radius-md); }

/* Boutons : « Valider la commande » (panier) et « Commander » (paiement) */
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wc-block-components-button.contained {
    background: var(--mk-pink) !important; color: #fff !important; border: 0 !important;
    border-radius: var(--mk-radius-md) !important; font-family: "Nunito", sans-serif; font-weight: 900 !important; font-size: 18px;
    padding: 16px 28px !important; box-shadow: 0 6px 0 var(--mk-pink-dark); text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-button.contained:hover:not(:disabled) {
    background: var(--mk-pink-dark) !important; transform: translateY(-2px); box-shadow: 0 8px 0 rgba(201, 31, 90, .65);
}
.wc-block-components-button:focus-visible { outline: 3px solid var(--mk-navy); outline-offset: 3px; }
.wc-block-cart__submit-container { padding-top: 6px; }

/* Panier vide */
.wp-block-woocommerce-empty-cart-block { text-align: center; padding: 20px 0 10px; }
.wc-block-cart__empty-cart__title { color: var(--mk-navy); }
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product { background: #fff; border: 2px dashed var(--mk-line); border-radius: var(--mk-radius-md); padding: 14px; }

/* ==========================================================
   17. Commande (bloc WooCommerce « Paiement »)
   ========================================================== */
.wc-block-checkout__main .wc-block-components-checkout-step,
.wc-block-checkout__main .wc-block-checkout__actions {
background: #fff !important;
    border: 2px solid var(--mk-line) !important;
    border-radius: var(--mk-radius-lg);
    padding: 22px 26px 26px !important;
    margin: 0 0 22px !important;
    box-shadow: var(--mk-shadow);
}
.wc-block-components-checkout-step:before, .wc-block-components-checkout-step:after { display: none !important; }
.wc-block-components-checkout-step__title, .wc-block-components-title.wc-block-components-checkout-step__title {
    color: var(--mk-navy); font-family: "Bubblegum Sans", "Nunito", sans-serif; font-size: 26px; font-weight: 400; line-height: 1.2;
}
.wc-block-components-checkout-step__description { color: var(--mk-text); }

.wc-block-components-text-input input,
.wc-block-components-form .wc-block-components-text-input input[type="text"],
.wc-block-components-form .wc-block-components-text-input input[type="email"],
.wc-block-components-form .wc-block-components-text-input input[type="tel"],
.wc-block-components-form .wc-block-components-text-input input[type="password"],
.wc-block-components-combobox .components-combobox-control__input,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-textarea {
    border: 2px solid var(--mk-line) !important; border-radius: 16px !important; background: #fff !important; box-shadow: none !important;
}
.wc-block-components-text-input input:focus,
.wc-block-components-combobox .components-combobox-control__input:focus,
.wc-blocks-components-select .wc-blocks-components-select__select:focus,
.wc-block-components-textarea:focus {
    border-color: var(--mk-pink) !important; box-shadow: 0 0 0 4px rgba(237, 48, 111, .15) !important; outline: none !important;
}
.wc-block-components-text-input label, .wc-blocks-components-select__label { color: var(--mk-text); }
.wc-block-components-text-input.has-error input { border-color: #d63638 !important; }

/* Livraison et paiement : cartes à choisir */
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option {
    border: 2px solid var(--mk-line) !important; border-radius: 16px !important; margin-bottom: 10px; background: #fff; box-shadow: none !important;
}
.wc-block-components-radio-control__option-checked, .wc-block-components-radio-control-accordion-option--checked-option-helper,
.wc-block-components-radio-control__option-checked.wc-block-components-radio-control__option { border-color: var(--mk-pink) !important; background: var(--mk-blush); }
.wc-block-components-radio-control .wc-block-components-radio-control__input, .wc-block-components-checkbox .wc-block-components-checkbox__input { accent-color: var(--mk-pink); }
.wc-block-components-radio-control__input:checked:before { background: var(--mk-pink) !important; }
.wc-block-components-checkbox .wc-block-components-checkbox__input:checked { background: var(--mk-pink); border-color: var(--mk-pink); }
.wc-block-components-radio-control__label, .wc-block-components-radio-control__description { color: var(--mk-navy); font-weight: 700; }

/* Résumé de la commande */
.wc-block-components-order-summary .wc-block-components-order-summary-item__image img { border-radius: 14px; border: 2px solid var(--mk-line); }
.wc-block-components-order-summary-item__quantity { background: var(--mk-pink); color: #fff; border: 2px solid #fff; box-shadow: none; }
.wc-block-components-order-summary .wc-block-components-product-name { font-size: 16px; }
.wc-block-components-checkout-return-to-cart-button { color: var(--mk-pink-dark); font-weight: 800; text-decoration: none; }
.wc-block-components-checkout-return-to-cart-button:hover { color: var(--mk-pink); text-decoration: underline; }
.wc-block-checkout__actions_row { align-items: center; gap: 14px; }

.wc-block-components-notice-banner { border-radius: 14px; }
.wc-block-components-notice-banner.is-error { border-color: #d63638; }

@media (max-width: 781px) {
    .wc-block-cart__main { padding: 8px 16px 18px !important; }
    .wc-block-cart__sidebar, .wc-block-checkout__sidebar { margin-top: 24px; padding: 18px !important; }
    .wc-block-checkout__main .wc-block-components-checkout-step { padding: 18px 16px 20px !important; }
}

/* ==========================================================
   18. Commande reçue (« Merci, votre commande est validée »)
   ========================================================== */
.woocommerce-order .woocommerce-thankyou-order-received {
    position: relative; margin: 0 0 26px; padding: 26px 28px 26px 96px;
    background: var(--mk-blush); border: 3px dashed var(--mk-pink); border-radius: var(--mk-radius-lg);
    color: var(--mk-navy); font-family: "Bubblegum Sans", "Nunito", sans-serif; font-size: 26px; line-height: 1.3;
}
.woocommerce-order .woocommerce-thankyou-order-received:before {
    content: ""; position: absolute; left: 28px; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%; background: #2fb26a center / 28px no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 12.5l4.5 4.5L19 7.5%22/%3E%3C/svg%3E");
}
.woocommerce-order ul.woocommerce-order-overview, .woocommerce-order ul.order_details {
    list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px;
}
.woocommerce-order ul.woocommerce-order-overview:before, .woocommerce-order ul.woocommerce-order-overview:after { display: none; }
.woocommerce-order ul.woocommerce-order-overview li, .woocommerce-order ul.order_details li {
    float: none; margin: 0; padding: 14px 18px; border: 2px dashed var(--mk-line); border-radius: var(--mk-radius-md); background: #fff;
    font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mk-text); line-height: 1.4;
}
.woocommerce-order ul.woocommerce-order-overview li strong { display: block; margin-top: 4px; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--mk-navy); }
.woocommerce-order p.woocommerce-thankyou-order-details, .woocommerce-order > p { color: var(--mk-text); }

.woocommerce-order-details__title, .woocommerce-column__title, .woocommerce-order h2 { color: var(--mk-navy); margin: 8px 0 14px; }
.woocommerce-order table.woocommerce-table--order-details { border-collapse: separate; border-spacing: 0; overflow: hidden; margin-bottom: 30px; }
.woocommerce-order table.woocommerce-table--order-details th,
.woocommerce-order table.woocommerce-table--order-details td { padding: 14px 18px; border-color: var(--mk-line); }
.woocommerce-order table.woocommerce-table--order-details thead th { background: var(--mk-blush); color: var(--mk-navy); font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .05em; }
.woocommerce-order table.woocommerce-table--order-details td.product-name a { color: var(--mk-pink-dark); font-weight: 800; }
.woocommerce-order table.woocommerce-table--order-details tfoot th { color: var(--mk-navy); }
.woocommerce-order table.woocommerce-table--order-details tfoot tr:last-child td { color: var(--mk-pink); font-weight: 900; font-size: 20px; }
.woocommerce-order .woocommerce-customer-details .woocommerce-columns--addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.woocommerce-order .woocommerce-customer-details .woocommerce-column { float: none; width: auto; }
.woocommerce-order .woocommerce-customer-details address { background: var(--mk-cream); border: 2px dashed var(--mk-line); border-radius: var(--mk-radius-md); padding: 18px 20px; font-style: normal; line-height: 1.7; }

/* « Et maintenant ? » (ajouté par inc/mk-account.php) */
.mk-thanks-next { margin: 0 0 30px; padding: 24px 28px; background: var(--mk-cream); border: 2px solid var(--mk-line); border-radius: var(--mk-radius-lg); }
.mk-thanks-next h2 { margin: 0 0 14px; }
.mk-thanks-next ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: mk-next; }
.mk-thanks-next li { position: relative; padding-left: 46px; line-height: 1.5; color: var(--mk-text); counter-increment: mk-next; }
.mk-thanks-next li:before {
    content: counter(mk-next); position: absolute; left: 0; top: -1px; width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; background: var(--mk-pink); color: #fff; font-weight: 900;
}
.mk-thanks-next li strong { color: var(--mk-navy); }
@media (max-width: 600px) {
    .woocommerce-order .woocommerce-thankyou-order-received { padding: 20px 18px 20px 18px; padding-top: 86px; font-size: 22px; }
    .woocommerce-order .woocommerce-thankyou-order-received:before { left: 18px; top: 18px; transform: none; }
}
/* ==========================================================
   19. Fiche produit : personnalisation en PLEINE LARGEUR
   (section « mk-buy-box » créée par inc/mk-product-layout.php)
   ========================================================== */
html { scroll-behavior: smooth; }

.mk-cta-wrap { margin: 22px 0 0; }
.mk-cta-personalize {
    display: inline-block; padding: 14px 30px; border-radius: var(--mk-radius-md);
    background: var(--mk-pink); color: #fff; font-weight: 900; font-size: 17px; text-decoration: none;
    box-shadow: 0 6px 0 var(--mk-pink-dark); transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.mk-cta-personalize:hover { background: var(--mk-pink-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 0 rgba(201, 31, 90, .65); }

.mk-buy-box {
    clear: both; width: 100%;margin: 56px auto 56px; padding: 38px 40px 42px; box-sizing: border-box;
    background: #fff; border: 3px dashed var(--mk-pink); border-radius: var(--mk-radius-lg); box-shadow: var(--mk-shadow);
    scroll-margin-top: 110px;
}
.mk-buy-box__title { margin: 0 0 6px; text-align: center; color: var(--mk-navy); }
.mk-buy-box__sub { margin: 0 0 28px; text-align: center; color: var(--mk-text); font-size: 18px; }
.mk-buy-box form.cart { margin: 0; max-width: none; width: 100%; }

/* Variations (ex. « Nombre de pièces ») : centrées, au-dessus de la photo */
.mk-buy-box table.variations { margin: 0 auto 22px; width: auto; }
.mk-buy-box .woocommerce-variation-price { text-align: center; margin: 0 0 18px; }

/* Bloc de personnalisation : toute la largeur, centré */
.mk-buy-box .mk-personalization-fields { flex: 0 0 100%; width: 100%; max-width: none; margin: 0 0 24px !important; }
.mk-buy-box .mk-personalization-fields textarea { width: 100% !important; max-width: none; box-sizing: border-box; height: auto !important; min-height: 100px; }
.mk-buy-box .mk-personalization-fields > p { margin: 22px 0 0; }

/* Carte « Votre photo » : conseils à gauche, zone de dépôt à droite */
.mk-buy-box .mk-photo-upload-card {
    max-width: none; margin: 0; padding: 30px 34px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; align-items: center;
    border: 2px dashed var(--mk-line); border-radius: var(--mk-radius-lg); box-shadow: none; background: var(--mk-cream);
}
.mk-buy-box .mk-upload-tips { border: 0; border-right: 2px dashed var(--mk-line); margin: 0; padding: 0 40px 0 0; }
.mk-buy-box .mk-tips-label { color: var(--mk-pink-dark); font-size: 13px; }
.mk-buy-box .mk-tips-row { justify-content: center; gap: 18px; }
.mk-buy-box .mk-tip { max-width: 120px; }
.mk-buy-box .mk-tip-caption { font-size: 13px; line-height: 1.35; }
.mk-buy-box .mk-upload-dropzone { text-align: center; }
.mk-buy-box .mk-upload-trigger { width: 100%; max-width: 380px; margin: 0 auto; padding: 16px 20px; font-size: 18px; background: var(--mk-pink) !important; border-radius: var(--mk-radius-md); box-shadow: 0 5px 0 var(--mk-pink-dark); }
.mk-buy-box .mk-upload-privacy { grid-column: 1 / -1; justify-content: center; margin-top: 24px; padding-top: 16px; border-top: 2px dashed var(--mk-line); }

/* Parcours en étapes (livre / puzzle personnalisé) : centré, largeur confortable */
.mk-buy-box .mk-flow { max-width: 900px; margin: 0 auto 26px; }
.mk-buy-box .mk-details-card { max-width: 640px; margin-left: auto; margin-right: auto; }
.mk-buy-box .mk-step-details .mk-preview-generate { max-width: 420px; display: block; margin: 18px auto 0; }
.mk-buy-box .mk-step-preview { text-align: center; }

/* Quantité + bouton : sur une ligne, centrés sous le bloc */
.mk-buy-box form.cart:not(.variations_form),
.mk-buy-box .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 26px; }
.mk-buy-box .quantity.number-input, .mk-buy-box .button__wrapper { margin: 0; }

@media (min-width: 801px) {
    .mk-buy-box .mk-preview-result:not([hidden]) { display: grid; grid-template-columns: minmax(240px, 400px) 1fr; gap: 14px 36px; align-items: center; text-align: left; }
    .mk-buy-box .mk-preview-result .mk-cover-stage { grid-row: 1 / span 4; }
}
@media (max-width: 800px) {
    .mk-buy-box { padding: 26px 18px 30px; margin-top: 40px; }
    .mk-buy-box .mk-photo-upload-card { grid-template-columns: 1fr; padding: 22px 18px 18px; gap: 20px; }
    .mk-buy-box .mk-upload-tips { border-right: 0; border-bottom: 2px dashed var(--mk-line); padding: 0 0 20px; }
    .mk-buy-box .mk-tips-row { flex-wrap: wrap; }
    .mk-buy-box .mk-upload-privacy { margin-top: 0; }
}
