/* KOZE-W 2.12.9.244 — flèche retour (vert émeraude + crème doré) */
.kwm-ov-back,.kwm-gback{-webkit-appearance:none;appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid rgba(217,190,127,.75);background:#fffaf0;color:#0f4d3a;font:700 14px/1 inherit;cursor:pointer;box-shadow:0 4px 14px rgba(15,77,58,.16);touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
.kwm-ov-back svg,.kwm-gback svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
.kwm-ov-back:hover,.kwm-gback:hover{background:#fff;box-shadow:0 6px 18px rgba(15,77,58,.22)}
.kwm-ov-back:active,.kwm-gback:active{transform:scale(.94)}
.kwm-ov-back:focus-visible,.kwm-gback:focus-visible{outline:3px solid #d9be7f;outline-offset:2px}

/* flèche dans les fenêtres : ronde, 44 px, collée en haut à gauche */
.kwm-ov-back{position:sticky;top:0;left:0;z-index:6;width:44px;height:44px;min-width:44px;padding:0;margin:0 0 -44px 0;border-radius:50%;float:left}
.kwm .kwm-ov-back,.kwm-overlay-portal .kwm-ov-back{background:#fffaf0!important;color:#0f4d3a!important;border-color:rgba(217,190,127,.75)!important}
.kwm-overlay-portal .kwm-product-detail-dialog>.kwm-ov-back{grid-column:1/-1!important;grid-row:1!important;justify-self:start!important;float:none!important;margin:0 0 -54px 0!important}
.kwm-product-detail-dialog>.kwm-ov-back~.kwm-detail-business,.kwm-product-detail-dialog>.kwm-ov-back~h2{clear:both}
@media(max-width:700px){.kwm .kwm-product-detail-dialog{padding-top:14px}}

/* barre « Retour » en haut des sous-pages */
.kwm-gback-bar{position:sticky;top:var(--wp-admin--admin-bar--height,0px);z-index:40;display:flex;align-items:center;padding:calc(env(safe-area-inset-top,0px) + 8px) 12px 8px;margin:0 0 4px;pointer-events:none}
.kwm-gback-bar .kwm-gback{pointer-events:auto}
.kwm-gback{height:42px;min-width:42px;padding:0 16px 0 10px;border-radius:999px}
.kwm-gback.is-float{position:fixed;z-index:99990;left:12px;top:calc(env(safe-area-inset-top,0px) + var(--wp-admin--admin-bar--height,0px) + 10px)}
.kwm .kwm-gback-bar .kwm-gback{background:#fffaf0!important;color:#0f4d3a!important}
html.kwm-vd-lock .kwm-gback,html.kwm-vd-lock .kwm-gback-bar,body.kwm-modal-open .kwm-gback{display:none!important}
@media(max-width:782px){.kwm-gback.is-float{top:calc(env(safe-area-inset-top,0px) + var(--wp-admin--admin-bar--height,46px) + 10px)}}
@media(prefers-reduced-motion:reduce){.kwm-ov-back,.kwm-gback{transition:none}}


/* v2.12.9.344 — flèche retour : petite, animée, SANS titre (dashboard, POS, business, vitrines) */
@keyframes kwmBackIn{from{opacity:0;transform:translateX(-14px) scale(.8)}to{opacity:1;transform:none}}
@keyframes kwmBackNudge{0%,60%,100%{transform:translateX(0)}30%{transform:translateX(-3px)}}
.kwm-gback{height:38px;width:38px;min-width:38px;padding:0;gap:0;border-radius:50%;animation:kwmBackIn .45s cubic-bezier(.2,.8,.2,1) both}
.kwm-gback span{display:none}
.kwm-gback svg,.kwm-ov-back svg{width:18px;height:18px;animation:kwmBackNudge 2.6s ease-in-out 1s infinite}
.kwm-ov-back{animation:kwmBackIn .4s cubic-bezier(.2,.8,.2,1) both}
.kwm-storefront-back,.kwm-standalone-back,.kwm-pos-backlink,.kwm-wsp-back,.kwm-chat-back{font-size:0!important;line-height:0;display:inline-flex!important;align-items:center;justify-content:center;width:38px;height:38px;min-width:38px;padding:0!important;margin:0 0 8px!important;border-radius:50%;border:1px solid rgba(217,190,127,.75);background:#fffaf0!important;color:#0f4d3a!important;box-shadow:0 4px 14px rgba(15,77,58,.16);text-decoration:none;overflow:hidden;animation:kwmBackIn .45s cubic-bezier(.2,.8,.2,1) both}
.kwm-storefront-back::before,.kwm-standalone-back::before,.kwm-pos-backlink::before,.kwm-wsp-back::before,.kwm-chat-back::before{content:"";width:18px;height:18px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E") center/contain no-repeat;animation:kwmBackNudge 2.6s ease-in-out 1s infinite}
.kwm-storefront-back:active,.kwm-standalone-back:active,.kwm-pos-backlink:active,.kwm-wsp-back:active,.kwm-chat-back:active{transform:scale(.92)}
@media(prefers-reduced-motion:reduce){.kwm-gback,.kwm-ov-back,.kwm-gback svg,.kwm-ov-back svg,.kwm-storefront-back,.kwm-standalone-back,.kwm-pos-backlink,.kwm-wsp-back,.kwm-chat-back,.kwm-storefront-back::before,.kwm-standalone-back::before,.kwm-pos-backlink::before,.kwm-wsp-back::before,.kwm-chat-back::before{animation:none!important}}

/* v2.12.9.346 — pas de flèche retour sur l'accueil client */
.kwm-home-client:not(.kwm-standalone-list) .kwm-gback-bar{display:none!important}


/* v2.12.9.349 — flèche retour intégrée à l'en-tête de l'espace POS d'un business (petite, ronde, sans texte) */
.kwm-pos-ws-hero-main{display:flex;align-items:center;gap:10px;min-width:0;flex:1 1 auto}
.kwm-pos-ws-hero-main h2{min-width:0}
.kwm-pos-home-back{-webkit-appearance:none;appearance:none;flex:none;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-width:36px;padding:0;border-radius:50%;border:1px solid rgba(217,190,127,.75);background:#fffaf0;color:#0f4d3a!important;box-shadow:0 2px 8px rgba(15,77,58,.14);text-decoration:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:transform .15s ease,box-shadow .15s ease}
.kwm-pos-home-back svg{width:18px;height:18px;display:block}
.kwm-pos-home-back:hover{box-shadow:0 4px 12px rgba(15,77,58,.22)}
.kwm-pos-home-back:active{transform:scale(.92)}
.kwm-pos-home-back:focus-visible{outline:3px solid #d9be7f;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.kwm-pos-home-back{transition:none}}

/* v2.12.9.349 — adaptation à tous les appareils (téléphone, tablette, laptop, grand écran) */
.kwm-gback.is-float{left:max(12px,env(safe-area-inset-left,0px));background:rgba(255,250,240,.94)!important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.kwm-gback-bar{padding-left:max(12px,env(safe-area-inset-left,0px))}
@media(min-width:1024px){
 .kwm-gback,.kwm-pos-home-back,.kwm-storefront-back,.kwm-standalone-back,.kwm-pos-backlink,.kwm-wsp-back,.kwm-chat-back{width:40px!important;height:40px!important;min-width:40px!important}
 .kwm-gback.is-float{left:max(16px,calc(50vw - 600px));top:calc(var(--wp-admin--admin-bar--height,0px) + 16px)}
 .kwm-gback-bar{padding:14px 16px 10px}
 .kwm-gback:hover,.kwm-pos-home-back:hover{transform:translateX(-2px)}
}
@media(hover:none){.kwm-gback:hover,.kwm-pos-home-back:hover{transform:none}}
@media(max-width:360px){.kwm-gback,.kwm-pos-home-back{width:34px;height:34px;min-width:34px}}

/* v2.12.9.351 — fenêtre « Informations du produit / service » : titre à taille normale, entre la flèche et la croix (plus de chevauchement) */
.kwm .kwm-product-form-dialog>h3,.kwm-overlay-portal .kwm-product-form-dialog>h3{font-size:clamp(19px,5.2vw,26px)!important;line-height:1.2!important;margin:0 52px 12px 52px!important;min-height:44px;display:flex;align-items:center;clear:none}
.kwm .kwm-product-form-dialog .kwm-li h4,.kwm-overlay-portal .kwm-product-form-dialog .kwm-li h4{font-size:16px!important;line-height:1.3!important}
.kwm .kwm-product-form-dialog .kwm-li small,.kwm-overlay-portal .kwm-product-form-dialog .kwm-li small{font-size:13px!important;line-height:1.45!important}
