.habee-studio{--hb:#111827;--hb-accent:#d4a441;--hb-soft:#f6f6f7;--hb-border:#dedfe3;font-family:inherit;color:var(--hb)}
.habee-premium-layout{display:grid;grid-template-columns:92px minmax(420px,1fr) minmax(330px,430px);gap:18px;align-items:start}
.habee-side-rail,.habee-preview-wrap,.habee-config{background:#fff;border:1px solid var(--hb-border);border-radius:16px}
.habee-side-rail{padding:10px}.habee-side-switch{display:grid;gap:10px}.habee-side-switch button{background:#fff;border:1px solid var(--hb-border);border-radius:12px;padding:7px;cursor:pointer}.habee-side-switch button.is-active{border-color:var(--hb-accent);box-shadow:0 0 0 2px rgba(212,164,65,.15)}.habee-side-switch img{width:100%;height:76px;object-fit:contain}.habee-side-switch span{display:block;font-size:12px;margin-top:4px}
.habee-preview-wrap{padding:14px;position:sticky;top:20px}.habee-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.habee-zoom{display:flex;align-items:center;gap:8px}.habeeZoom{width:140px}.habee-tool-link,.habee-tool-muted{font-size:13px;opacity:.7}.habee-stage{position:relative;aspect-ratio:1/1;overflow:hidden;border-radius:14px;background:linear-gradient(135deg,#fafafa,#f0f1f3);touch-action:none}.habee-product-img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}.habee-print-zone{position:absolute;border:2px dashed rgba(0,0,0,.35);display:flex;align-items:flex-start;justify-content:center;pointer-events:none}.habee-print-zone span{background:rgba(255,255,255,.9);padding:2px 6px;border-radius:0 0 6px 6px;font-size:11px}.habee-layer-area{position:absolute;inset:0}.habee-layer{position:absolute;display:flex;align-items:center;justify-content:center;cursor:move;user-select:none;touch-action:none;transform-origin:center center}.habee-layer.is-selected{outline:2px solid #2271b1;outline-offset:2px}.habee-layer img{width:100%;height:100%;object-fit:contain;pointer-events:none}.habee-layer .habee-text-content{white-space:pre-wrap;text-align:center;line-height:1.05;pointer-events:none}.habee-resize-handle{position:absolute;right:-7px;bottom:-7px;width:16px;height:16px;border-radius:50%;background:#2271b1;border:2px solid #fff;cursor:nwse-resize;display:none}.habee-layer.is-selected .habee-resize-handle{display:block}.habee-actions{display:flex;gap:10px;margin-top:12px}.habee-message{margin-top:10px;font-size:14px;min-height:20px}.habee-message.is-error{color:#b42318}.habee-message.is-success{color:#067647}
.habee-config{padding:22px}.habee-tech-link{float:right;font-size:13px}.habee-pill-group{margin-bottom:10px}.habee-pill,.habee-light-btn,.habee-options button{border:1px solid var(--hb-border);background:#fff;border-radius:999px;padding:8px 13px;cursor:pointer}.habee-pill.is-active,.habee-options button.is-active{border-color:var(--hb-accent);background:#fff8e8}.habee-ref{font-size:12px;opacity:.6;margin:10px 0 2px}.habee-title{font-size:24px;margin:0 0 12px}.habee-small-actions{margin-bottom:18px}.habee-light-btn{text-decoration:none;display:inline-block}.habee-section-title{font-weight:700;margin:18px 0 8px}.habee-control-box,.habee-tab{background:var(--hb-soft);border-radius:12px;padding:12px}.habee-input{width:100%;border:1px solid var(--hb-border);border-radius:9px;padding:10px;background:#fff}.habee-help{font-size:12px;opacity:.65;margin:7px 0 0}.habee-tool-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.habee-tool-card{border:1px solid var(--hb-border);background:#fff;border-radius:10px;padding:10px 5px;cursor:pointer}.habee-tool-card.is-active{border-color:var(--hb-accent);background:#fff8e8}.habee-icon{display:block;font-size:20px}.habee-tab{display:none;margin-top:8px}.habee-tab.is-active{display:block}.habee-row{display:grid;grid-template-columns:1fr 54px;gap:8px;margin-top:8px}.habeeTextColor{width:54px;height:42px;border:0;background:transparent}.habee-font-size-label{display:block;margin:10px 0}.habeeTextSize{width:70%}.habee-designs,.habee-emojis{display:flex;flex-wrap:wrap;gap:8px}.habee-designs button,.habee-emojis button{min-width:46px;height:42px;border:1px solid var(--hb-border);border-radius:8px;background:#fff;cursor:pointer}.habee-options{display:flex;flex-wrap:wrap;gap:8px}.habee-sizes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.habee-sizes label{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--hb-border);background:#fff;border-radius:9px;padding:8px}.habee-sizes input{width:52px}.habee-btn{border:0;border-radius:10px;padding:12px 16px;background:var(--hb);color:#fff;font-weight:700;cursor:pointer}.habee-btn.secondary{background:#fff;color:var(--hb);border:1px solid var(--hb-border)}.habee-addcart{width:100%;margin-top:16px;background:var(--hb-accent);color:#111}.habee-note-wrap{display:none;margin-top:8px}.habee-note-wrap.is-open{display:block}
.habee-cart-preview-image{width:110px!important;height:110px!important;object-fit:contain!important;background:#fff;border:1px solid #e3e3e3;border-radius:8px}.habee-cart-inline-previews{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.habee-cart-inline-previews a{display:flex;flex-direction:column;align-items:center;text-decoration:none;font-size:11px}.habee-cart-inline-previews img{width:90px;height:90px;object-fit:contain;border:1px solid #ddd;border-radius:7px;background:#fff}.woodmart-cart-design-2 .habee-cart-preview-image,.wd-cart-table .habee-cart-preview-image{max-width:120px!important}
@media(max-width:1100px){.habee-premium-layout{grid-template-columns:72px 1fr}.habee-config{grid-column:1/-1}.habee-preview-wrap{position:relative;top:auto}}
@media(max-width:700px){.habee-premium-layout{display:block}.habee-side-rail{margin-bottom:10px}.habee-side-switch{grid-template-columns:1fr 1fr}.habee-side-switch img{height:70px}.habee-preview-wrap,.habee-config{margin-bottom:12px}.habee-tool-cards{grid-template-columns:repeat(2,1fr)}.habee-sizes{grid-template-columns:repeat(2,1fr)}.habee-stage{aspect-ratio:4/5}.habee-toolbar{flex-wrap:wrap}}

/* V6.1 – éditeur texte modernisé */
.habee-tabs-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.habee-tabs-two .habee-tool-card{display:flex;align-items:center;justify-content:center;gap:9px;min-height:54px;padding:11px 14px;font-weight:700;text-align:left}
.habee-tabs-two .habee-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;background:#f1f3f5;font-size:18px}
.habee-tabs-two .habee-tool-card.is-active .habee-icon{background:#fff1c9}
.habee-upload-card{display:flex;align-items:center;gap:12px;border:1.5px dashed #c9ccd2;border-radius:12px;background:#fff;padding:16px;cursor:pointer;transition:.2s ease}
.habee-upload-card:hover{border-color:var(--hb-accent);background:#fffaf0}
.habee-upload-card input{position:absolute;opacity:0;pointer-events:none}
.habee-upload-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;background:#111827;color:#fff;font-size:22px}
.habee-upload-card strong,.habee-upload-card small{display:block}.habee-upload-card small{margin-top:2px;font-size:12px;opacity:.65}
.habee-text-editor{display:grid;gap:12px}.habee-field-label{font-weight:700;font-size:13px}.habeeTextInput{min-height:72px;resize:vertical;font-size:16px;line-height:1.35}
.habee-text-toolbar{display:grid;grid-template-columns:minmax(120px,1fr) 42px 42px 48px 48px;gap:8px;align-items:center}
.habee-format-btn,.habee-color-button{height:42px;border:1px solid var(--hb-border);border-radius:9px;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.habee-format-btn.is-active{background:#111827;color:#fff;border-color:#111827}.habee-color-button{position:relative;overflow:hidden}.habee-color-button input{position:absolute;inset:-8px;width:70px;height:70px;opacity:0;cursor:pointer}.habee-color-button span{width:22px;height:22px;border-radius:50%;background:currentColor;border:2px solid #fff;box-shadow:0 0 0 1px #cfd2d7}.habee-color-button:has(input[value="#111111"]) span{color:#111111}
.habee-size-control{display:grid;grid-template-columns:auto 36px minmax(90px,1fr) 36px 58px;gap:8px;align-items:center;padding:10px 12px;border:1px solid var(--hb-border);border-radius:10px;background:#fff}.habee-size-control>span{font-weight:700;font-size:13px}.habee-size-step{width:36px;height:36px;border:1px solid var(--hb-border);border-radius:8px;background:#f8f8f9;font-size:20px;cursor:pointer}.habee-size-step:hover{background:#eee}.habeeTextSize{width:100%}.habeeTextSizeValue{font-size:12px;text-align:right}.habee-editor-hint{margin:0;font-size:12px;line-height:1.4;opacity:.65}
.habee-side-switch button{transition:.18s ease}.habee-side-switch button:hover{border-color:#b8bbc1;background:#fafafa}.habee-side-switch button.is-active span{font-weight:800}
@media(max-width:700px){.habee-text-toolbar{grid-template-columns:1fr repeat(4,40px)}.habee-size-control{grid-template-columns:auto 36px 1fr 36px}.habeeTextSizeValue{grid-column:1/-1;text-align:center}.habee-tabs-two{grid-template-columns:1fr 1fr}}

/* V7.0 – moteur Fabric.js */
.habee-stage .canvas-container{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;z-index:4}
.habee-stage .canvas-container canvas{width:100%!important;height:100%!important}
.habee-stage .upper-canvas{touch-action:none!important}
.habee-print-zone{z-index:5}
.habee-product-img{z-index:1}
.habee-object-toolbar{display:flex;flex-wrap:wrap;gap:8px}
.habee-object-toolbar .habee-btn{padding:9px 12px;font-size:12px}
.habee-object-toolbar .habee-btn:disabled,.habee-object-toolbar .is-disabled{opacity:.38;cursor:not-allowed}
.habee-message:empty{display:none}
.habee-message{padding:10px 12px;border-radius:9px;background:#effaf3}
.habee-message.is-error{background:#fff0ef}
.habee-upload-card{position:relative}
.habee-preview-wrap{overflow:visible}
@media(max-width:700px){.habee-object-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.habee-object-toolbar .habeeClear{grid-column:1/-1}}

.habee-sizes label.is-unavailable{opacity:.38;filter:grayscale(1)}
.habee-sizes label.is-unavailable input{cursor:not-allowed}

/* V8.1.2 : la zone est pilotée uniquement par les boutons Avant / Dos. */
.habee-zone-hidden{display:none!important}

/* Pastille du sélecteur de couleur synchronisée sur mobile et ordinateur. */
.habee-color-button span{background:var(--habee-picker-color,#111111)!important;color:transparent!important}

/* V8.1.3 – libellés et actions principales plus visibles */
.habee-mobile-size-picker{display:none}
.habeeAddText{width:100%;min-height:50px;background:var(--hb-accent);color:#111;font-size:16px;box-shadow:0 8px 20px rgba(212,164,65,.22)}
.habeeAddText:hover,.habee-addcart:hover{filter:brightness(.97);transform:translateY(-1px)}
.habee-addcart{min-height:62px;font-size:17px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;box-shadow:0 10px 24px rgba(212,164,65,.3);transition:.18s ease}
.habee-addcart span{font-size:17px;font-weight:800}.habee-addcart small{font-size:11px;font-weight:600;opacity:.72}
.habee-size-box{position:relative}

@media(max-width:700px){
  .habee-sizes{display:none!important}
  .habee-mobile-size-picker{display:grid;gap:9px}
  .habee-mobile-size-picker .habee-field-label{margin-top:2px}
  .habeeMobileSizeSelect,.habeeMobileSizeQty{min-height:48px;font-size:16px}
  .habeeMobileAddSize{width:100%;min-height:48px;background:#111827;font-size:15px}
  .habee-mobile-size-summary{display:flex;flex-wrap:wrap;gap:7px;margin-top:4px}
  .habee-mobile-size-summary>small{opacity:.6}
  .habee-size-chip{display:inline-flex;align-items:center;gap:5px;border:1px solid #d9dce1;background:#fff;border-radius:999px;padding:7px 8px 7px 11px;font-size:13px}
  .habee-size-chip button{width:24px;height:24px;border:0;border-radius:50%;background:#f1f2f4;cursor:pointer;font-size:17px;line-height:1}
  .habeeAddText{min-height:54px;font-size:17px}
  .habee-addcart{position:sticky;bottom:10px;z-index:30;min-height:66px;border:2px solid rgba(255,255,255,.8)}
}


/* V8.1.4 – supplément dos visible directement sur la carte */
.habee-side-switch button{display:flex;flex-direction:column;align-items:center;justify-content:center}
.habee-side-extra{display:inline-flex!important;align-items:center;justify-content:center;margin-top:5px!important;padding:3px 7px;border-radius:999px;background:#fff3d6;color:#8a5a00;font-size:11px!important;font-weight:800;line-height:1.2;white-space:nowrap}
.habee-side-extra .woocommerce-Price-amount{font-size:inherit;font-weight:inherit;color:inherit}
.habee-side-switch button.is-active .habee-side-extra{background:var(--hb-accent);color:#111}
@media(max-width:700px){.habee-side-extra{font-size:12px!important;padding:4px 8px}}

/* V8.1.5 – titre de zone hors du cadre et ajout de texte mis en avant */
.habee-zone-heading{
  position:relative;
  z-index:7;
  display:flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  max-width:100%;
  margin:0 auto 10px;
  padding:7px 13px;
  border:1px solid #e1e4e8;
  border-radius:999px;
  background:#fff;
  color:#111827;
  font-size:13px;
  font-weight:800;
  line-height:1.2;
  box-shadow:0 5px 15px rgba(17,24,39,.08);
}
.habee-print-zone{align-items:initial;justify-content:initial}
.habee-print-zone span{display:none!important}
.habee-text-entry-card{
  position:relative;
  border:2px solid var(--hb-accent)!important;
  background:linear-gradient(135deg,#fff9e9,#fff)!important;
  box-shadow:0 8px 22px rgba(212,164,65,.22);
}
.habee-text-entry-card strong,.habee-text-entry-card small{display:block}
.habee-text-entry-card strong{font-size:14px;letter-spacing:.01em}
.habee-text-entry-card small{margin-top:2px;font-size:11px;font-weight:600;opacity:.7}
.habee-text-entry-card .habee-icon{background:var(--hb-accent)!important;color:#111!important}
.habee-text-entry-card:after{
  content:'À découvrir';
  position:absolute;
  top:-9px;
  right:8px;
  padding:3px 7px;
  border-radius:999px;
  background:#111827;
  color:#fff;
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.habeeAddText{
  display:flex!important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  min-height:62px!important;
  border:2px solid rgba(255,255,255,.75)!important;
  background:var(--hb-accent)!important;
  color:#111!important;
  box-shadow:0 12px 28px rgba(212,164,65,.38)!important;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
.habeeAddText span{font-size:17px;font-weight:900}
.habeeAddText small{font-size:11px;font-weight:650;opacity:.72}
.habeeAddText:hover{transform:translateY(-2px);box-shadow:0 15px 32px rgba(212,164,65,.46)!important}
@media(max-width:700px){
  .habee-zone-heading{margin-bottom:8px;padding:7px 12px;font-size:12px}
  .habee-text-entry-card{min-height:72px!important}
  .habeeAddText{position:sticky;bottom:8px;z-index:25;min-height:66px!important}
}

/* V8.1.6 – ajustements d'interface */
/* Le bouton texte retrouve le même style que le bouton image. */
.habee-text-entry-card{
  border:1px solid var(--hb-border)!important;
  background:#fff!important;
  box-shadow:none!important;
}
.habee-text-entry-card:after{display:none!important;content:none!important}
.habee-text-entry-card .habee-icon{background:#f1f3f5!important;color:inherit!important}
.habee-text-entry-card.is-active{border-color:var(--hb-accent)!important;background:#fff8e8!important}
.habee-text-entry-card.is-active .habee-icon{background:#fff1c9!important}

/* Le supplément dos reste toujours sur une seule ligne. */
.habee-side-extra{
  white-space:nowrap!important;
  flex-wrap:nowrap!important;
  width:auto!important;
  max-width:none!important;
  padding:3px 5px!important;
  font-size:10px!important;
  letter-spacing:-.01em;
}
.habee-side-extra .woocommerce-Price-amount,
.habee-side-extra .woocommerce-Price-currencySymbol{display:inline!important;white-space:nowrap!important}

/* Espace entre l'ajout au panier et la consigne. */
.habee-consigne-toggle{margin-top:14px!important}

@media(max-width:700px){
  .habee-side-extra{font-size:10px!important;padding:3px 5px!important}
  .habee-consigne-toggle{margin-top:16px!important}
}

/* V8.1.9 – couleurs, tailles multiples mobile et fiche produit dédiée */
.habee-colors-hidden{display:none!important}

@media(max-width:700px){
  .habee-mobile-size-picker{display:grid;gap:12px}
  .habee-mobile-size-intro{margin:0;font-size:13px;line-height:1.45;color:#5f6368}
  .habee-mobile-size-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .habee-mobile-size-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:58px;padding:10px 11px;border:1px solid #dfe2e6;border-radius:12px;background:#fff}
  .habee-mobile-size-row>strong{font-size:15px;color:#111827}
  .habee-mobile-stepper{display:grid;grid-template-columns:34px 34px 34px;align-items:center;border:1px solid #d7dae0;border-radius:10px;overflow:hidden;background:#f8f9fa}
  .habee-mobile-stepper button{width:34px;height:36px;padding:0;border:0;background:#fff;color:#111827;font-size:21px;line-height:1;cursor:pointer}
  .habee-mobile-stepper button:first-child{border-right:1px solid #e2e4e8}
  .habee-mobile-stepper button:last-child{border-left:1px solid #e2e4e8}
  .habee-mobile-stepper output{display:flex;align-items:center;justify-content:center;height:36px;font-size:15px;font-weight:800;color:#111827}
  .habee-mobile-size-row.is-unavailable{opacity:.42;background:#f4f4f4}
  .habee-mobile-size-row.is-unavailable button{cursor:not-allowed}
  .habee-mobile-size-summary{display:flex;flex-wrap:wrap;gap:7px;margin-top:0;padding-top:2px}
  .habee-size-chip{padding:7px 10px}
}

@media(max-width:390px){
  .habee-mobile-size-grid{grid-template-columns:1fr}
}

/* V8.1.10 – correction de l'affichage des sélecteurs de tailles sur mobile */
@media(max-width:700px){
  .habee-mobile-size-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .habee-mobile-size-row{
    min-width:0;
    min-height:56px;
    padding:8px;
    gap:4px;
    overflow:visible;
  }
  .habee-mobile-size-row>strong{
    flex:0 0 auto;
    min-width:20px;
    font-size:14px;
  }
  .habee-mobile-stepper{
    flex:0 0 88px;
    width:88px;
    min-width:88px;
    grid-template-columns:29px 30px 29px;
    overflow:hidden;
  }
  .habee-mobile-stepper button{
    display:flex!important;
    align-items:center;
    justify-content:center;
    width:29px!important;
    min-width:29px!important;
    height:38px;
    padding:0!important;
    font-size:20px;
    line-height:1;
    visibility:visible!important;
    opacity:1!important;
  }
  .habee-mobile-stepper output{
    width:30px;
    min-width:30px;
    height:38px;
  }
}

@media(max-width:340px){
  .habee-mobile-size-grid{grid-template-columns:1fr}
  .habee-mobile-size-row{padding:9px 11px}
  .habee-mobile-stepper{flex-basis:102px;width:102px;min-width:102px;grid-template-columns:34px 34px 34px}
  .habee-mobile-stepper button{width:34px!important;min-width:34px!important}
  .habee-mobile-stepper output{width:34px;min-width:34px}
}


/* V9.0.1 – retour visuel pendant la génération et l’envoi des aperçus */
.habee-addcart.is-loading{cursor:wait!important;opacity:.88;transform:none!important}
.habee-addcart.is-loading small{opacity:.9}
.habee-processing{display:none;margin-top:12px;padding:14px 15px;border:1px solid #ead9ac;border-radius:12px;background:#fffaf0;color:#252525}
.habee-processing.is-visible{display:block;animation:habeeProcessingIn .18s ease-out}
.habee-processing-head{display:flex;align-items:center;gap:10px}
.habee-processing-title{font-size:14px;line-height:1.3}
.habee-processing-text{margin:8px 0 10px;font-size:13px;line-height:1.45;color:#5d5543}
.habee-processing-bar{height:7px;overflow:hidden;border-radius:999px;background:#eadfca}
.habee-processing-bar span{display:block;width:0;height:100%;border-radius:inherit;background:var(--hb-accent);transition:width .35s ease}
.habee-processing-step{display:block;margin-top:7px;font-size:11px;color:#756b57}
.habee-processing-spinner{width:18px;height:18px;flex:0 0 18px;border:2px solid rgba(0,0,0,.14);border-top-color:var(--hb-accent);border-radius:50%;animation:habeeSpin .75s linear infinite}
.habee-processing.is-success{border-color:#b9d9c0;background:#f3fbf5}
.habee-processing.is-success .habee-processing-spinner{border-color:#4d9b60;border-top-color:#4d9b60;animation:none}
.habee-processing.is-success .habee-processing-bar span{background:#4d9b60}
@keyframes habeeSpin{to{transform:rotate(360deg)}}
@keyframes habeeProcessingIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media(max-width:700px){
  .habee-processing{margin-top:10px;padding:13px}
  .habee-processing-text{font-size:12px}
}
