:root{--bg:#6a3f2b;--surface:#ffffff;--surface-2:#fbf8f4;--text:#1f2328;--muted:#5b616a;--brown:#6a3f2b;--brown-2:#8a5a44;--green:#79c142;--green-2:#24573d;--border:rgba(106,63,43,.18);--shadow:0 10px 30px rgba(0,0,0,.08);--radius:18px;--radius-sm:12px;--gap:18px;--focus:0 0 0 4px rgba(47,111,78,.18);--model-3d-bg:#f1f3f5}*{box-sizing:border-box}html,body{height:100%}body{margin:0;font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;background:#fafafa;color:var(--text)}main{max-width:1200px;margin:20px auto 60px;padding:0 18px}h1,h2,h3{margin:0 0 10px 0;color:var(--brown);letter-spacing:.2px}h1{font-size:28px}h2{font-size:18px}h3{font-size:16px}.small{font-size:13px;color:var(--muted);margin-top:4px}.card{background:rgba(255,255,255,.86);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.card.pad{padding:18px}.divider{height:1px;background:var(--border);margin:14px 0}label{display:block;font-size:13px;color:var(--muted);margin:0 0 6px;font-weight:700}input[type="text"],
input[type="number"],
select,
textarea{width:100%;padding:11px 12px;border-radius:12px;border:1px solid rgba(31,35,40,.18);background:#fff;outline:none;font-size:14px}input:focus, select:focus, textarea:focus{box-shadow:var(--focus);border-color:rgba(47,111,78,.45)}textarea{min-height:90px;resize:vertical}.radio-group{display:flex;flex-direction:row;gap:16px;flex-wrap:nowrap;align-items:center}.radio-pill{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(31,35,40,.18);
  cursor:pointer;
  user-select:none;
  transition:transform .12s ease, border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.radio-pill:hover{
  transform:translateY(-1px);
  border-color:rgba(47,111,78,.35);
}
.radio-pill input{
  accent-color:var(--green);
  margin:0 8px 0 0;
}
/* Checked state (modern browsers + JS fallback adds .is-checked) */
.radio-pill.is-checked,
.radio-pill:has(> input[type="radio"]:checked){
  border-color:rgba(47,111,78,.55);
  background:#f7fbf7;
  box-shadow:0 0 0 3px rgba(47,111,78,.14);
}
button,
.btn,
input[type="submit"]{appearance:none;border:1px solid rgba(0,0,0,0);background:var(--green);color:#fff;padding:11px 14px;border-radius:12px;cursor:pointer;font-weight:800;letter-spacing:.2px;transition:transform .12s ease, box-shadow .12s ease, background .12s ease}button:hover,
.btn:hover,
input[type="submit"]:hover{background:var(--brown);transform:translateY(-1px);box-shadow:0 12px 24px rgba(0,0,0,.12)}button:disabled{opacity:.55;cursor:not-allowed;transform:none;box-shadow:none}.live-error{margin-top:6px;font-weight:700;color:#b00020;display:none}.live-error.is-visible{display:block}.live-error--below-fields{grid-column:1 / -1;display:none;margin-top:-2px}
.live-error--below-fields.is-visible{display:block}
.section-title-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}.section-title-row .small{margin:0}.index-flow{display:flex;flex-direction:column;gap:18px}.index-two{}.index-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.index-columns .col{display:flex;flex-direction:column;gap:18px}@media (max-width: 980px){.index-columns{grid-template-columns:1fr}}@media (min-width: 981px){.section-cards-top .caisse-grid{grid-template-columns:repeat(3, 1fr)}}.section-cards-top .caisse-grid{max-height:40vh}.index-layout{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:22px;align-items:start}.index-left, .index-right{display:flex;flex-direction:column;gap:18px}@media (min-width: 981px){.index-right{position:sticky;top:80px}}@media (max-width: 980px){.index-layout{display:flex;flex-direction:column}}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}.form-grid .span-2{grid-column:1 / -1}@media (max-width: 560px){.form-grid{grid-template-columns:1fr}.form-grid .span-2{grid-column:auto}}#formLivraison{display:none;margin-top:10px;padding:14px;border-radius:14px;border:1px dashed rgba(47,111,78,.35);background:rgba(47,111,78,.06)}#formLivraison.show{display:block}.form-inline-action .action{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.form-inline-action .action button{width:100%}@media (max-width: 900px){.form-inline-action .action{grid-column:1 / -1}}@media (max-width: 560px){.section-cards-top .caisse-grid{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:10px}.section-cards-top .caisse-card{padding:10px;border-radius:16px}.section-cards-top .caisse-title{font-size:13px}.section-cards-top .caisse-visual{height:165px;border-radius:14px}.caisse-grid model-viewer:hover{transform:none;box-shadow:none}}.caisse-grid{max-height:62vh;overflow:auto;padding-right:2px;display:grid;grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));gap:14px}.caisse-card{display:flex;gap:12px;align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:14px;cursor:pointer;transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;text-align:left}.caisse-card:hover{transform:translateY(-2px);border-color:rgba(47,111,78,.35);box-shadow:0 14px 26px rgba(0,0,0,.10)}.caisse-card.selected{border-color:rgba(47,111,78,.65);box-shadow:0 0 0 4px rgba(47,111,78,.12)}.caisse-card img{width:46px;height:46px;border-radius:12px;border:1px solid var(--border);background:rgba(106,63,43,.05);object-fit:contain;flex:0 0 auto}.caisse-card img[src=""],
.caisse-card img:not([src]){display:none}.caisse-card h4{margin:0 0 6px;color:var(--brown)}.caisse-card .text{min-width:0}.caisse-card h4, .caisse-card .meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.caisse-card .meta{font-size:13px;color:var(--muted)}table{width:100%;border-collapse:collapse;background:var(--surface);border:1px solid var(--border);border-radius:14px;overflow:hidden}th,td{padding:10px 10px;border-bottom:1px solid rgba(0,0,0,.06);font-size:13px}th{text-align:left;color:var(--brown);background:rgba(106,63,43,.06)}.order-actions{margin-top:14px;display:flex;justify-content:flex-end}.btn-commander{display:inline-flex;align-items:center;gap:10px}.btn-commander.is-disabled{opacity:.72;box-shadow:none}.btn-commander.is-disabled .btn-dot{background:rgba(255,255,255,.65)}.btn-dot{width:10px;height:10px;border-radius:999px;background:rgba(255,255,255,.85)}.form{background:rgba(255,255,255,.86);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px}.orders-wrap{min-height:100vh}.orders-card{max-width:1100px;margin:18px auto 60px;padding:18px;background:rgba(255,255,255,.86);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.orders-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}.orders-head h3{margin:0;color:var(--brown);font-size:18px;font-weight:900}.orders-table-wrap{overflow:auto;border-radius:14px;border:1px solid var(--border);background:var(--surface)}.orders-table{width:100%;border-collapse:collapse}.orders-table th, .orders-table td{padding:12px 12px;border-bottom:1px solid rgba(0,0,0,.06);font-size:13px;white-space:nowrap}.orders-table th{position:sticky;top:0;background:rgba(106,63,43,.06);color:var(--brown);text-align:left;z-index:1}.orders-empty{padding:18px;color:var(--muted)}.t-right{text-align:right}.muted{color:var(--muted)}.orders-status{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;font-weight:900;font-size:12px;letter-spacing:.2px;border:1px solid rgba(0,0,0,.08);line-height:1;white-space:nowrap}.orders-status::before{content:"";width:8px;height:8px;border-radius:999px;background:currentColor;opacity:.9}.orders-status{color:#4b5563;background:rgba(75,85,99,.10);border-color:rgba(75,85,99,.20)}.orders-status.status-en_attente,
.orders-status.status-attente,
.orders-status.status-en_preparation{color:#8a5a00;background:rgba(255,193,7,.18);border-color:rgba(255,193,7,.35)}.orders-status.status-active,
.orders-status.status-en_verification{background:#ffefc6;color:#7a4b00;border:1px solid #f5d27a}.status-en_cours{color:#1e5a8a;background:rgba(30,90,138,.14);border-color:rgba(30,90,138,.28)}.orders-status.status-prete,
.orders-status.status-en_livraison{color:#5b3f8a;background:rgba(91,63,138,.14);border-color:rgba(91,63,138,.28)}.orders-status.status-livree{color:var(--green);background:rgba(47,111,78,.14);border-color:rgba(47,111,78,.28)}.orders-status.status-annulee,
.orders-status.status-cancelled{color:#b42318;background:rgba(180,35,24,.12);border-color:rgba(180,35,24,.25)}.orders-status.status-probleme{color:#b54708;background:rgba(255,127,17,.14);border-color:rgba(255,127,17,.28)}#refFaceSelect,
#faceRefSelect{width:100%;padding:12px 14px;border-radius:12px;border:1px solid rgba(0,0,0,0.12);background:#fff;font-size:14px;font-family:inherit;color:inherit;outline:none;transition:border-color .15s ease, box-shadow .15s ease}#refFaceSelect:focus,
#faceRefSelect:focus{border-color:rgba(0,0,0,0.25);box-shadow:0 0 0 4px rgba(0,0,0,0.06)}#refFaceSelect::placeholder,
#faceRefSelect::placeholder{color:rgba(0,0,0,0.45)}@media (max-width: 560px){.caisse-grid{grid-template-columns:repeat(2, minmax(0, 1fr))!important;gap:10px!important;max-height:58vh!important;overflow:auto!important;padding-right:0!important;-webkit-overflow-scrolling:touch!important}.caisse-card{padding:10px!important;border-radius:16px!important;gap:8px!important}.caisse-title{font-size:13px!important}.caisse-visual{height:170px!important;border-radius:12px!important}.caisse-visual model-viewer{width:100%!important;height:100%!important}}model-viewer{border-radius:12px;overflow:hidden;background:var(--model-3d-bg)}.caisse-grid model-viewer{transition:transform .2s ease, box-shadow .2s ease}.caisse-grid model-viewer:hover{transform:scale(1.03);box-shadow:0 10px 24px rgba(0,0,0,0.15)}.caisse-card{display:flex;flex-direction:column;align-items:center;gap:10px}.caisse-title{width:100%;text-align:center;font-weight:600}.caisse-visual{width:100%;height:400px;border-radius:12px;overflow:hidden}.caisse-visual model-viewer{width:100%;height:100%;display:block;background:var(--model-3d-bg)}.section-cards-top .caisse-grid{max-height:58vh;overflow:auto;padding-top:20px;padding-bottom:8px;padding-right:0;-webkit-overflow-scrolling:touch}.section-cards-top .caisse-grid::after{content:none}.section-cards-top{height:auto!important;max-height:none!important;overflow:visible!important}.socle-selector{margin-top:14px}.socle-grid{display:grid;grid-template-columns:auto 120px auto;grid-template-rows:auto auto auto;grid-template-areas:"none  back  ."
    "left  box   right"
    ".     front .";gap:6px;align-items:center;justify-items:center}#socleNone{grid-area:none;justify-self:start}.socle-btn[data-socle-side="back"]{grid-area:back}.socle-btn[data-socle-side="left"]{grid-area:left}.socle-btn[data-socle-side="right"]{grid-area:right}.socle-btn[data-socle-side="front"]{grid-area:front}.socle-box{grid-area:box}.socle-box{width:120px;height:80px;border:2px solid rgba(0,0,0,.35);border-radius:10px;background:rgba(0,0,0,.03);display:flex;align-items:center;justify-content:center;font-weight:600}.socle-btn, .socle-none{padding:7px 12px;border-radius:10px;border:1px solid rgba(0,0,0,.25);background:#fff;cursor:pointer;width:auto!important;white-space:nowrap;user-select:none}.socle-btn.active{border-color:rgba(0,0,0,.6);box-shadow:0 0 0 2px rgba(0,0,0,.08) inset;background:rgba(0,0,0,.06)}.socle-none.active{border-color:rgba(0,0,0,.6);font-weight:700;background:rgba(0,0,0,.06)}.socle-selector button{width:auto!important;padding:8px 14px;border:2px solid #ccc;background:#f8f9fa;color:#333;border-radius:6px;cursor:pointer;font-weight:600;transition:all 0.15s ease}.socle-selector button:hover{border-color:#007bff;background:#e9f2ff}.socle-selector button.active{background:#28a745;color:white;border:2px solid #1e7e34;box-shadow:0 0 0 3px rgba(40,167,69,0.25);transform:translateY(1px)}.socle-selector button.active::before{content:"✓ ";font-weight:bold}.socle-selector button{width:auto!important;padding:8px 14px;border:2px solid var(--border);background:var(--surface);color:var(--text);border-radius:6px;cursor:pointer;font-weight:600;transition:background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease}.socle-selector button:hover{border-color:var(--green);background:rgba(121,193,66,0.12)}.socle-selector button.active{background:var(--green);color:white;border-color:var(--green);box-shadow:0 0 0 3px rgba(121,193,66,0.25);transform:none!important}.socle-selector button.active::before{content:"✓ ";font-weight:bold}.socle-selector button{display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1;box-sizing:border-box}.socle-selector button::before{content:"✓";display:inline-block;width:1em;text-align:center;opacity:0}.socle-selector button.active::before{opacity:1}.socle-selector button,
.socle-selector button:hover,
.socle-selector button.active{border-width:2px}.section-add-tiroir 

.section-add-tiroir .form-inline-action .action{display:flex;justify-content:flex-end;align-items:center;gap:12px}.livraison-bundle #formLivraison{margin-top:10px}.livraison-bundle #formLivraison .form-grid{grid-column:1 / -1}.tiroir-bottom-row{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:12px}.tiroir-price{border:1px dashed #9bb89b;border-radius:8px;padding:8px 12px;background:#f7fbf7;text-align:right}.tiroir-price .label{font-size:12px;color:#666}.tiroir-price .value{font-size:18px;font-weight:bold;color:#1a2b49}.form-inline-action .tiroir-bottom-row{grid-column:1 / -1;display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:4px}.form-inline-action .tiroir-price-box{border:1px dashed #9bb89b;border-radius:10px;padding:10px 12px;background:#f7fbf7;text-align:right;min-width:150px}.form-inline-action .tiroir-price-label{font-size:12px;color:#666;margin-bottom:2px}.form-inline-action .tiroir-price-value{font-size:20px;font-weight:800;color:#1a2b49;line-height:1.1}.form-inline-action .tiroir-price-hint{grid-column:1 / -1;margin-top:-6px}.section-add-tiroir 

.section-add-tiroir .form-inline-action .tiroir-bottom-row{grid-column:1 / -1;display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:4px;flex-wrap:wrap}.section-add-tiroir .form-inline-action .tiroir-price-box{border:1px dashed #9bb89b;border-radius:10px;padding:10px 12px;background:#f7fbf7;text-align:right;min-width:160px}.section-add-tiroir .form-inline-action .tiroir-price-label{font-size:12px;color:#666;margin-bottom:2px}.section-add-tiroir .form-inline-action .tiroir-price-value{font-size:20px;font-weight:800;color:#1a2b49;line-height:1.1}.section-add-tiroir .form-inline-action .btn-add-tiroir{background:#78c043;color:#fff;border:none;border-radius:14px;padding:14px 22px;font-weight:800;cursor:pointer;min-width:220px}.section-add-tiroir .form-inline-action .btn-add-tiroir:hover{filter:brightness(0.95)}.section-add-tiroir .form-inline-action #tiroirPriceHint{grid-column:1 / -1;margin-top:-6px}.form-inline-action .tiroir-bottom-row{grid-column:1 / -1;display:flex;justify-content:flex-end;align-items:flex-end;gap:16px;margin-top:6px;flex-wrap:wrap}.form-inline-action .tiroir-bottom-item{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.form-inline-action .tiroir-bottom-label{font-size:12px;color:#6a6a6a;font-weight:600}.form-inline-action .tiroir-price-box{border:1px dashed #9bb89b;border-radius:12px;background:#f7fbf7;padding:11px 14px;min-width:170px;min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center;box-sizing:border-box}.form-inline-action .tiroir-price-value{font-size:22px;font-weight:900;color:#1a2b49;line-height:1}.form-inline-action{display:grid;grid-template-columns:repeat(3, 1fr);gap:16px;align-items:end}.form-inline-action > div{width:100%}.form-inline-action label{display:block;margin-bottom:6px}.section-add-tiroir .tiroir-bottom-row{margin-top:6px;display:flex;justify-content:flex-end;align-items:flex-end;gap:16px;flex-wrap:wrap}.section-add-tiroir .tiroir-bottom-item{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.section-add-tiroir .tiroir-bottom-label{font-size:12px;color:#6a6a6a;font-weight:600}.section-add-tiroir .tiroir-price-box{border:1px dashed #9bb89b;border-radius:12px;background:#f7fbf7;padding:11px 14px;min-width:170px;min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center;box-sizing:border-box}.section-add-tiroir .tiroir-price-value{font-size:22px;font-weight:900;color:#1a2b49;line-height:1}.form-inline-action select,
.form-inline-action input{width:100%;box-sizing:border-box}.form-inline-action .tiroir-bottom-row,
.form-inline-action .tiroir-price-hint{grid-column:1 / -1}.section-schema h2{letter-spacing:.06em}.schema-upload{position:relative;width:100%;max-width:760px;aspect-ratio:16 / 9;border-radius:14px;border:1px solid var(--border);background:rgba(255,255,255,.75);overflow:hidden;cursor:pointer;display:grid;place-items:center;box-shadow:inset 0 0 0 10px rgba(0,0,0,0.02)}.schema-upload:focus{outline:3px solid rgba(121,193,66,0.35);outline-offset:2px}#schemaPreview{width:100%;height:100%;object-fit:contain;display:none;background:#fff}.schema-placeholder{position:absolute;inset:12px;border-radius:12px;background:rgba(0,0,0,0.06);display:grid;place-items:center}.schema-plus{width:64px;height:64px;border-radius:12px;background:rgba(0,0,0,0.12);display:grid;place-items:center;font-size:44px;line-height:1;color:var(--green);font-weight:700}.schema-upload:hover .schema-placeholder{background:rgba(0,0,0,0.08)}.schema-upload:hover .schema-plus{background:rgba(0,0,0,0.16)}.section-add-rayons .rayon-hint{margin-top:10px;color:#6a6a6a;font-size:13px}.section-add-rayons .rayon-bottom-row{margin-top:10px;display:flex;justify-content:flex-end;align-items:flex-end;gap:16px;flex-wrap:wrap}.section-add-rayons .rayon-bottom-item{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.section-add-rayons .rayon-bottom-label{font-size:12px;color:#6a6a6a;font-weight:600}.section-add-rayons .rayon-price-box{border:1px dashed #9bb89b;border-radius:12px;background:#f7fbf7;padding:11px 14px;min-width:170px;min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center;box-sizing:border-box}.section-add-rayons .rayon-price-value{font-size:22px;font-weight:900;color:#1a2b49;line-height:1}.section-add-rayons .form-inline-action{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:16px;align-items:end}.section-add-rayons .rayon-inline-price{grid-column:2;justify-self:end}.section-add-rayons .rayon-inline-button{grid-column:3;justify-self:end}.section-add-rayons .rayon-bottom-label{font-size:12px;color:#6a6a6a;font-weight:600;margin-bottom:6px;text-align:right}.section-add-rayons .rayon-price-box{border:1px dashed #9bb89b;border-radius:12px;background:#f7fbf7;padding:11px 14px;min-width:170px;min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center;box-sizing:border-box}.section-add-rayons .rayon-price-value{font-size:22px;font-weight:900;color:#1a2b49}.section-add-caisse .caisse-bottom-row{margin-top:14px;display:flex;justify-content:flex-end;gap:16px;align-items:flex-end;flex-wrap:wrap}.section-add-caisse .caisse-bottom-row .rayon-bottom-item{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.section-add-caisse .pieds-choice .radio-group{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.section-add-caisse .pieds-choice .radio-pill{display:inline-flex;flex-direction:row;align-items:center;gap:8px;padding:10px 16px;min-width:140px;height:auto;white-space:nowrap}.section-add-caisse .pieds-choice .radio-pill input{margin:0}.section-add-caisse .rayon-bottom-label{font-size:12px;color:#6a6a6a;font-weight:600;margin-bottom:6px;text-align:right}.section-add-caisse .rayon-price-box{border:1px dashed #9bb89b;border-radius:12px;background:#f7fbf7;padding:11px 14px;min-width:170px;min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center;box-sizing:border-box}.section-add-caisse .rayon-price-value{font-size:22px;font-weight:900;color:#1a2b49;line-height:1}.section-add-caisse .caisse-bottom-row{display:flex;justify-content:flex-end;gap:16px;align-items:flex-end;flex-wrap:wrap}.section-add-caisse .caisse-bottom-row .rayon-bottom-item{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.section-add-face .face-bottom-row .rayon-bottom-item{grid-column:1;justify-self:end}

.section-add-face .face-bottom-row .rayon-bottom-item{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.section-add-face .face-price-box{border:1px dashed #9bb89b;border-radius:12px;background:#f7fbf7;padding:11px 14px;min-width:170px;min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center;box-sizing:border-box}.section-add-face .face-price-text{font-size:16px;font-weight:700;color:#1a2b49;line-height:1.2}.section-add-face .rayon-bottom-label{font-size:12px;color:#6a6a6a;font-weight:600;margin-bottom:6px;text-align:right}.section-add-face .face-bottom-row .rayon-bottom-item:first-child{justify-self:end}.section-add-face .face-bottom-row .rayon-bottom-item:last-child{justify-self:end}.section-add-face .face-bottom-row .rayon-bottom-item{align-items:flex-end}




.section-add-face .face-bottom-row{display:flex!important;justify-content:flex-end;align-items:flex-end;gap:16px;flex-wrap:nowrap;margin-top:6px}.section-add-face .face-bottom-row .rayon-bottom-item{display:flex;flex-direction:column;align-items:flex-end;gap:6px}@media (max-width: 600px){.section-add-face .face-bottom-row{display:flex!important;justify-content:flex-end;align-items:flex-end;gap:16px;flex-wrap:nowrap;margin-top:6px}}.section-add-face .form-inline-action .face-bottom-row{grid-column:1 / -1!important;align-self:end;margin-top:6px}.section-add-face .face-bottom-row{display:flex!important;justify-content:flex-end;align-items:flex-end;gap:16px;flex-wrap:nowrap;margin-top:6px}@media (max-width: 520px){.section-add-face .face-bottom-row{display:flex!important;justify-content:flex-end;align-items:flex-end;gap:16px;flex-wrap:nowrap;margin-top:6px}}.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,0.45);backdrop-filter:blur(2px);opacity:0;pointer-events:none;transition:opacity .15s ease;z-index:9998}.modal-backdrop.show{opacity:1;pointer-events:auto}.modal{position:fixed;inset:0;display:none;z-index:9999}.modal .modal-card{width:min(640px, calc(100% - 32px));background:#fff;border-radius:20px;margin:9vh auto 0;box-shadow:0 28px 90px rgba(0,0,0,0.28);border:1px solid rgba(0,0,0,0.10);overflow:hidden}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #eee}.modal-title-row{display:flex;align-items:center;gap:12px;min-width:0}.modal-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:rgba(0,0,0,0.06);color:#111;flex:0 0 auto}.modal-header h3{margin:0;font-size:1.12rem;line-height:1.2}.modal-subtitle{font-size:0.88rem;color:rgba(0,0,0,0.65);margin-top:2px}.modal-close{border:0;background:transparent;font-size:1.6rem;line-height:1;cursor:pointer;padding:6px 10px;border-radius:10px}.modal-close:hover{background:#f2f2f2}.modal-body{padding:16px 20px 8px}.modal-body p{margin:0 0 10px}.modal-info{background:rgba(0,0,0,0.03);border:1px solid rgba(0,0,0,0.06);border-radius:16px;padding:14px 14px 6px}.modal-list{list-style:none;padding:10px 2px 0;margin:0;display:grid;gap:8px}.modal-list li{display:flex;align-items:flex-start;gap:10px;color:rgba(0,0,0,0.78)}.modal-list-icon{width:22px;height:22px;border-radius:9px;display:grid;place-items:center;background:rgba(0,0,0,0.06);color:#111;flex:0 0 auto;font-weight:800;font-size:0.9rem;line-height:1;margin-top:1px}.modal-question{margin-top:12px;font-weight:700;color:rgba(0,0,0,0.85)}.modal-actions{display:flex;gap:10px;justify-content:flex-end;padding:14px 20px 20px}.btn-secondary, .btn-primary{border-radius:12px;padding:12px 16px;cursor:pointer;font-weight:600;border:1px solid #ddd;font-size:0.95rem;line-height:1;min-height:44px}.btn-secondary{background:#fff;color:#111}.btn-secondary:hover{background:#f6f6f6}.btn-primary{background:var(--green);color:#fff;border:1px solid rgba(0,0,0,0);font-weight:800;letter-spacing:.2px;transition:transform .12s ease, box-shadow .12s ease, background .12s ease}.btn-primary:hover{background:var(--brown);transform:translateY(-1px);box-shadow:0 12px 24px rgba(0,0,0,.12)}@media (max-width: 520px){.modal .modal-card{margin:6vh auto 0}.modal-actions{flex-direction:column-reverse}.btn-secondary, .btn-primary{width:100%}}.caisse-visual{position:relative}.caisse-feet-dots{position:absolute;inset:6px;pointer-events:none}.caisse-feet-dots span{position:absolute;width:6px;height:6px;background:#e30000;border-radius:50%;opacity:0;transition:opacity .2s ease}.caisse-feet-dots span:nth-child(1){bottom:4px;left:4px}.caisse-feet-dots span:nth-child(2){bottom:4px;right:4px}.caisse-feet-dots span:nth-child(3){top:4px;left:4px}.caisse-feet-dots span:nth-child(4){top:4px;right:4px}.caisse-visual.with-feet .caisse-feet-dots span{opacity:1}.caisse-visual{position:relative}.feet-dots{position:absolute;inset:0;pointer-events:none}.feet-dot{width:8px;height:8px;background:red;border-radius:50%;position:absolute;opacity:0;transition:opacity .2s ease}.feet-dot:nth-child(1){bottom:6px;left:6px}.feet-dot:nth-child(2){bottom:6px;right:6px}.feet-dot:nth-child(3){top:6px;left:6px}.feet-dot:nth-child(4){top:6px;right:6px}.caisse-visual.show-feet .feet-dot{opacity:1}.socle-box{position:relative}.socle-feet-dot{position:absolute;width:6px;height:6px;border-radius:999px;background:#e30000;opacity:0;pointer-events:none}.socle-box.with-feet .socle-feet-dot{opacity:1}.socle-feet-dot:nth-child(1){top:6px;left:6px}.socle-feet-dot:nth-child(2){top:6px;right:6px}.socle-feet-dot:nth-child(3){bottom:6px;left:6px}.socle-feet-dot:nth-child(4){bottom:6px;right:6px}.socle-box{position:relative}.socle-feet-dot:nth-child(1){top:14px;left:14px}.socle-feet-dot:nth-child(2){top:14px;right:14px}.socle-feet-dot:nth-child(3){bottom:14px;left:14px}.socle-feet-dot:nth-child(4){bottom:14px;right:14px}.socle-line{position:absolute;background:rgba(0,0,0,.35);opacity:0;pointer-events:none;border-radius:999px;z-index:3}.socle-line.front, .socle-line.back{height:4px;left:18px;right:18px}.socle-line.front{bottom:18px}.socle-line.back{top:18px}.socle-line.left, .socle-line.right{width:4px;top:18px;bottom:18px}.socle-line.left{left:18px}.socle-line.right{right:18px}.socle-box.with-feet.socle-front .socle-line.front{opacity:1}.socle-box.with-feet.socle-back  .socle-line.back{opacity:1}.socle-box.with-feet.socle-left  .socle-line.left{opacity:1}.socle-box.with-feet.socle-right .socle-line.right{opacity:1}.socle-feet-dot:nth-child(1){top:14px;left:14px}.socle-feet-dot:nth-child(2){top:14px;right:14px}.socle-feet-dot:nth-child(3){bottom:14px;left:14px}.socle-feet-dot:nth-child(4){bottom:14px;right:14px}.socle-line{position:absolute;background:rgba(0,0,0,.38);opacity:0;pointer-events:none;border-radius:999px;transition:opacity .15s ease, left .15s ease, right .15s ease, top .15s ease, bottom .15s ease}.socle-box{--m:12px;--corner:28px;--front-left:var(--m);--front-right:var(--m);--back-left:var(--m);--back-right:var(--m);--left-top:var(--m);--left-bottom:var(--m);--right-top:var(--m);--right-bottom:var(--m)}.socle-line.front, .socle-line.back{height:4px;left:var(--front-left);right:var(--front-right)}.socle-line.front{bottom:var(--m)}.socle-line.back{top:var(--m)}.socle-line.left, .socle-line.right{width:4px;top:var(--left-top);bottom:var(--left-bottom)}.socle-line.left{left:var(--m)}.socle-line.right{right:var(--m)}.socle-box.with-feet.socle-front .socle-line.front{opacity:1}.socle-box.with-feet.socle-back  .socle-line.back{opacity:1}.socle-box.with-feet.socle-left  .socle-line.left{opacity:1}.socle-box.with-feet.socle-right .socle-line.right{opacity:1}.socle-feet-dot{position:absolute;width:6px;height:6px;border-radius:999px;background:#e30000;opacity:0;pointer-events:none}.socle-box.with-feet .socle-feet-dot{opacity:1}.socle-feet-dot:nth-of-type(1){top:14px;left:14px}.socle-feet-dot:nth-of-type(2){top:14px;right:14px}.socle-feet-dot:nth-of-type(3){bottom:14px;left:14px}.socle-feet-dot:nth-of-type(4){bottom:14px;right:14px}.socle-line{position:absolute;background:rgba(0,0,0,.38);opacity:0;pointer-events:none;border-radius:999px;transition:opacity .15s ease, left .15s ease, right .15s ease, top .15s ease, bottom .15s ease}.socle-box{--m:12px;--corner:16px;--front-left:var(--m);--front-right:var(--m);--back-left:var(--m);--back-right:var(--m);--left-top:var(--m);--left-bottom:var(--m);--right-top:var(--m);--right-bottom:var(--m)}.socle-line.front{height:4px;left:var(--front-left);right:var(--front-right);bottom:var(--m)}.socle-line.back{height:4px;left:var(--back-left);right:var(--back-right);top:var(--m)}.socle-line.left{width:4px;top:var(--left-top);bottom:var(--left-bottom);left:var(--m)}.socle-line.right{width:4px;top:var(--right-top);bottom:var(--right-bottom);right:var(--m)}.socle-box.with-feet.socle-front .socle-line.front{opacity:1}.socle-box.with-feet.socle-back  .socle-line.back{opacity:1}.socle-box.with-feet.socle-left  .socle-line.left{opacity:1}.socle-box.with-feet.socle-right .socle-line.right{opacity:1}.socle-box{--m:2px;--t:3px;--corner:10px}.socle-feet-dot{position:absolute;width:6px;height:6px;border-radius:999px;background:#e30000;opacity:0;pointer-events:none}.socle-box.with-feet .socle-feet-dot{opacity:1}.socle-feet-dot.tl{top:12px;left:12px}.socle-feet-dot.tr{top:12px;right:12px}.socle-feet-dot.bl{bottom:12px;left:12px}.socle-feet-dot.br{bottom:12px;right:12px}.socle-line{position:absolute;background:rgba(0,0,0,.45);opacity:0;pointer-events:none;border-radius:999px}.socle-line.front, .socle-line.back{height:var(--t)}.socle-line.left, .socle-line.right{width:var(--t)}.socle-box.with-feet.socle-front .socle-line.front{opacity:1}.socle-box.with-feet.socle-back  .socle-line.back{opacity:1}.socle-box.with-feet.socle-left  .socle-line.left{opacity:1}.socle-box.with-feet.socle-right .socle-line.right{opacity:1}.socle-box{position:relative}.socle-box{--m:8px;--t:3px;--corner30:10px;--corner65:18px}.socle-feet-dot{position:absolute;width:6px;height:6px;border-radius:999px;background:#e30000;opacity:0;pointer-events:none}.socle-box.with-feet .socle-feet-dot{opacity:1}.socle-feet-dot.tl{top:12px;left:12px}.socle-feet-dot.tr{top:12px;right:12px}.socle-feet-dot.bl{bottom:12px;left:12px}.socle-feet-dot.br{bottom:12px;right:12px}.socle-line{position:absolute;background:rgba(0,0,0,.55);opacity:0;pointer-events:none;border-radius:999px}.socle-line.front, .socle-line.back{height:var(--t)}.socle-line.front{left:var(--front-left, var(--m));right:var(--front-right, var(--m));bottom:var(--m)}.socle-line.back{left:var(--back-left, var(--m));right:var(--back-right, var(--m));top:var(--m)}.socle-line.left, .socle-line.right{width:var(--t)}.socle-line.left{top:var(--left-top, var(--m));bottom:var(--left-bottom, var(--m));left:var(--m)}.socle-line.right{top:var(--right-top, var(--m));bottom:var(--right-bottom, var(--m));right:var(--m)}.socle-box.with-feet.socle-front .socle-line.front{opacity:1}.socle-box.with-feet.socle-back  .socle-line.back{opacity:1}.socle-box.with-feet.socle-left  .socle-line.left{opacity:1}.socle-box.with-feet.socle-right .socle-line.right{opacity:1}#socleBoxVisual.socle-box{border-radius:0!important}.socle-box{border-radius:0!important}.socle-line.front{left:var(--front-left);right:var(--front-right);bottom:var(--m)}.socle-line.back{left:var(--back-left);right:var(--back-right);top:var(--m)}.socle-line.left{top:var(--left-top);bottom:var(--left-bottom);left:var(--m)}.socle-line.right{top:var(--right-top);bottom:var(--right-bottom);right:var(--m)}.admin-wrap{max-width:1200px;margin:28px auto 60px;padding:0 16px}.admin-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:18px 0 8px}.admin-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.muted{color:var(--muted);font-size:13px}.search{appearance:none;border:1px solid var(--border);background:rgba(255,255,255,.85);border-radius:999px;padding:10px 12px;min-width:260px;outline:none}.search:focus{box-shadow:var(--focus)}.badge{display:inline-flex;align-items:center;justify-content:center;padding:2px 10px;border-radius:999px;border:1px solid var(--border);background:rgba(255,255,255,.7);font-weight:700}.admin-table{width:100%;border-collapse:collapse;font-size:14px}.admin-table thead th{position:sticky;top:0;background:var(--surface-2);color:var(--brown);text-align:left;font-weight:800;border-bottom:1px solid var(--border);padding:12px 12px;white-space:nowrap}.admin-table td{padding:10px 12px;border-bottom:1px solid rgba(106,63,43,.10);white-space:nowrap}.admin-table tbody tr:nth-child(even){background:rgba(255,255,255,.55)}.admin-table tbody tr:hover{background:rgba(121,193,66,.08)}.admin-wrap > div[style*="overflow:auto"],
.admin-wrap > div[style*="overflow: auto"]{background:rgba(255,255,255,.65)}.admin-wrap .card{background:rgba(255,255,255,.65);box-shadow:0 8px 20px rgba(0,0,0,.05)}@media (max-width: 720px){.search{min-width:180px;width:100%}.admin-actions{width:100%;justify-content:flex-start}}@media (max-width: 720px){.admin-elements-wrap{overflow:visible!important}.admin-elements-table thead{display:none}.admin-elements-table,
 .admin-elements-table tbody,
 .admin-elements-table tr,
 .admin-elements-table td{display:block;width:100%}.admin-elements-table tr{background:rgba(255,255,255,.85);border:1px solid var(--border);border-radius:16px;padding:10px 12px;margin:10px 0;box-shadow:0 8px 18px rgba(0,0,0,.05)}.admin-elements-table td{white-space:normal;padding:8px 0;border-bottom:1px dashed rgba(106,63,43,.18);display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.admin-elements-table td:last-child{border-bottom:none}.admin-elements-table td::before{content:attr(data-label);font-weight:900;color:var(--brown);flex:0 0 42%;max-width:42%}}@media (max-width: 720px){.admin-orders-table thead{display:none}.admin-orders-table,
 .admin-orders-table tbody,
 .admin-orders-table tr,
 .admin-orders-table td{display:block;width:100%}.admin-orders-table tr{background:rgba(255,255,255,.75);border:1px solid var(--border);border-radius:16px;padding:10px 12px;margin:10px 0;box-shadow:0 8px 18px rgba(0,0,0,.05)}.admin-orders-table td{white-space:normal;padding:8px 0;border-bottom:1px dashed rgba(106,63,43,.18);display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.admin-orders-table td:last-child{border-bottom:none}.admin-orders-table td::before{content:attr(data-label);font-weight:900;color:var(--brown);flex:0 0 42%;max-width:42%}.admin-orders-table .btn-debiter{width:100%;justify-content:center}}.section-add-rayons .form-inline-action{display:grid;grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));gap:18px;align-items:end}.section-add-rayons .rayon-inline-price,
.section-add-rayons .rayon-inline-button{display:flex;flex-direction:column;justify-content:flex-end}.section-add-rayons .rayon-price-box{height:44px;display:flex;align-items:center;justify-content:center}.section-add-rayons .rayon-inline-button button{height:44px;border-radius:10px}.section-add-rayons .rayon-grid{display:grid;gap:18px}.section-add-rayons .rayon-row{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:18px;align-items:end}@media (max-width: 900px){.section-add-rayons .rayon-row{grid-template-columns:1fr}}.section-add-rayons .rayon-inline-price .rayon-price-box{height:44px;display:flex;align-items:center;justify-content:center}.section-add-rayons .rayon-inline-button button{height:44px;border-radius:10px;width:100%}.recap-mobile{display:none}.recap-desktop{display:block}@media (max-width: 560px){html, body{overflow-x:hidden}main{padding:0 12px;margin:14px auto 44px}.card.pad{padding:14px}h1{font-size:22px}h2{font-size:17px}.form-inline-action{grid-template-columns:1fr!important;gap:12px!important}.form-inline-action > div{min-width:0!important}.section-add-caisse .caisse-bottom-row,
 .section-add-face .face-bottom-row,
 .form-inline-action .tiroir-bottom-row{flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:12px!important;flex-wrap:nowrap!important}.section-add-caisse .caisse-bottom-row .rayon-bottom-item,
 .section-add-face .face-bottom-row .rayon-bottom-item,
 .form-inline-action .tiroir-bottom-item{align-items:stretch!important}.section-add-rayons .rayon-bottom-label,
 .section-add-caisse .rayon-bottom-label,
 .section-add-face .rayon-bottom-label,
 .form-inline-action .tiroir-bottom-label{text-align:left!important}.section-add-rayons .rayon-price-box,
 .section-add-caisse .rayon-price-box,
 .section-add-face .rayon-price-box,
 .form-inline-action .tiroir-price-box{min-width:0!important;width:100%!important}.section-add-rayons .rayon-inline-button button,
 .section-add-caisse .caisse-bottom-row button,
 .section-add-face .face-bottom-row button,
 .form-inline-action .tiroir-bottom-row button,
 .form-inline-action .btn-add-tiroir{width:100%!important}.section-add-rayons .rayon-row-2{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important}.section-add-rayons .rayon-row-2 .rayon-field{width:100%!important;min-width:0!important}.section-add-rayons .rayon-row-2 .rayon-bottom-label{text-align:left!important}.section-add-rayons .rayon-row-2 .rayon-price-box{width:100%!important;min-width:0!important;border-radius:12px!important}.section-add-rayons .rayon-row-2 .rayon-inline-button button{width:100%!important;border-radius:12px!important}table{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.page-index .recap-desktop{display:none!important}.page-index .recap-mobile{display:block}.page-index .recap-mobile{display:flex;flex-direction:column;gap:10px}.page-index .recap-mobile details{margin:0}.page-index .recap-mobile summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 12px;border-radius:14px;border:1px solid var(--border);background:rgba(255,255,255,.92);box-shadow:0 10px 22px rgba(0,0,0,.07);cursor:pointer;font-size:14px}.page-index .recap-mobile summary::-webkit-details-marker{display:none}.page-index .recap-mobile .recap-title{font-weight:800}.page-index .recap-mobile .recap-price{font-weight:900;white-space:nowrap}.page-index .recap-mobile .recap-chevron{opacity:.55;font-weight:900}.page-index .recap-mobile .recap-details{margin-top:-8px;padding:12px;border-radius:0 0 14px 14px;border:1px solid var(--border);border-top:0;background:#fff}.page-index .recap-mobile .recap-kv{display:grid;grid-template-columns:1fr 1fr;gap:10px;font-size:13px}.page-index .recap-mobile .recap-kv .k span{display:block;font-size:11px;font-weight:900;color:var(--muted);margin-bottom:2px}.page-index .recap-mobile .recap-actions{margin-top:12px}.page-index .recap-mobile .recap-actions button{width:100%!important;border-radius:12px!important}}.section-add-face .form-inline-action > div[style*="min-width:260px"]{grid-column:1 / -1}@media (max-width: 820px){.section-add-face .form-inline-action{grid-template-columns:repeat(2, minmax(160px, 1fr))}.section-add-face .form-inline-action > div[style*="min-width:260px"]{grid-column:1 / -1}}@media (max-width: 480px){.section-add-face .form-inline-action{grid-template-columns:1fr}}@media (min-width:981px){.index-columns.index-columns-main{grid-template-columns:repeat(2, minmax(0, 1fr))}.index-columns.index-columns-main > .col{width:100%;justify-self:stretch}}


@media (min-width:981px){.index-columns.index-columns-main{grid-template-columns:repeat(2, minmax(0, 1fr))}.index-columns.index-columns-main > .col{width:100%;justify-self:stretch}}.section-add-face .form-inline-action{grid-template-columns:repeat(3, minmax(0, 1fr));align-items:end}.section-add-face .form-inline-action > div:nth-child(4){grid-column:1 / 2}.section-add-face .form-inline-action > div[style*="min-width:260px"]{grid-column:2 / -1}@media (max-width: 820px){.section-add-face .form-inline-action{grid-template-columns:repeat(2, minmax(0, 1fr))}}@media (max-width: 480px){.section-add-face .form-inline-action{grid-template-columns:1fr}}@media (max-width: 720px){.orders-table-wrap{overflow:visible;border:0;background:transparent}.orders-table{display:block;width:100%}.orders-table thead{display:none}.orders-table tbody{display:block}.orders-table tr.orders-row{background:rgba(255,255,255,.92);border:1px solid rgba(0,0,0,.10);border-radius:16px;box-shadow:0 10px 30px rgba(0,0,0,.06);padding:10px 10px 6px}.orders-table tr.orders-row:active{transform:translateY(1px)}.orders-table td{display:flex!important;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px 10px;border-bottom:1px solid rgba(0,0,0,.06);white-space:normal}.orders-table td:last-child{border-bottom:0;padding-bottom:12px}.orders-table td::before{content:attr(data-label);font-weight:900;color:rgba(106,63,43,.85);flex:0 0 auto}.orders-table td.t-right,
 .orders-table td .orders-status,
 .orders-table td button{margin-left:auto}.orders-btn-danger{width:100%;max-width:180px}.orders-table tr.orders-details-row{display:block;margin-top:-10px;margin-bottom:22px}.orders-table tr.orders-details-row > td{display:block!important;padding:0;border:0}.orders-table tr.orders-details-row > td::before{content:none}.orders-details{background:rgba(255,255,255,.92);border:1px solid rgba(0,0,0,.10);border-top:0;border-radius:0 0 16px 16px;box-shadow:0 10px 30px rgba(0,0,0,.06);overflow:hidden}.orders-details-tablewrap{overflow:auto}.orders-table{border-collapse:separate!important;border-spacing:0 22px!important}.orders-table tr.orders-row{display:block!important;margin:0 0 22px 0!important}.orders-table tr.orders-row:last-child{margin-bottom:0!important}.orders-table tbody tr.orders-row + tr.orders-row{margin-top:22px!important}.orders-wrap{padding-bottom:18px}}.orders-details-summary{margin:6px 0 12px 0;color:#6b7280;font-size:13px}.orders-details{padding:10px 10px 14px 10px}.orders-details-title{font-weight:700;margin:4px 0 6px 0}.orders-details-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.od-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid #e5e7eb;border-radius:999px;background:#f9fafb;font-size:13px;color:#374151}.od-chip b{font-weight:700;color:#111827}.orders-details-block{margin:10px 0 12px 0;border:1px solid #e5e7eb;border-radius:14px;background:#fff;overflow:hidden}.orders-details-subtitle{padding:10px 12px;font-weight:700;background:#f9fafb;border-bottom:1px solid #e5e7eb}.orders-details-tablewrap{padding:6px 10px 10px 10px}.orders-details-table{width:100%;border-collapse:separate;border-spacing:0 6px}.orders-details-table thead th{font-size:12px;color:#6b7280;font-weight:700;border:0;padding:6px 8px;text-transform:none}.orders-details-table tbody tr{background:#ffffff;border:1px solid #e5e7eb}.orders-details-table tbody td{border:0;padding:8px 8px;font-size:13px;color:#111827}.orders-details-table tbody tr td:first-child{border-top-left-radius:10px;border-bottom-left-radius:10px}.orders-details-table tbody tr td:last-child{border-top-right-radius:10px;border-bottom-right-radius:10px}.orders-details-table .muted{color:#6b7280;padding:10px 8px}@media (max-width: 720px){.orders-details-table{border-spacing:0 10px}.orders-details-table thead{display:none}.orders-details-table tbody tr{display:block;border-radius:14px;overflow:hidden}.orders-details-table tbody td{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-top:1px solid #f1f5f9}.orders-details-table tbody td:first-child{border-top:0}.orders-details-table tbody td::before{content:attr(data-label);font-weight:700;color:#6b7280}.orders-details-table tbody td.t-right{justify-content:space-between;text-align:left}.orders-details-table tbody td.t-right::before{margin-right:auto}}.orders-meta{display:grid;grid-template-columns:1fr;gap:10px;padding:14px 16px 0}.orders-meta-grid{display:grid;grid-template-columns:1fr;gap:10px}.orders-meta-item{border:1px solid rgba(0,0,0,.10);background:rgba(255,255,255,.9);border-radius:12px;padding:10px 12px}.orders-meta-item .k{font-size:.85rem;opacity:.75;margin-bottom:4px}.orders-meta-item .v{font-weight:600;word-break:break-word}.orders-schema{display:flex;gap:12px;align-items:flex-start}.orders-schema img{width:140px;height:auto;border-radius:10px;border:1px solid rgba(0,0,0,.10);background:#fff}@media (min-width: 720px){.orders-meta-grid{grid-template-columns:repeat(3, minmax(0, 1fr))}.orders-schema img{width:200px}}.row-cancelled{opacity:0.6}.btn-cancel{background:#d9534f;color:#fff;border:none;padding:6px 10px;border-radius:6px;cursor:pointer;font-size:13px}.btn-cancel:hover{background:#c9302c}.btn-cancel:disabled{opacity:0.65;cursor:not-allowed}
.face-preview-slot{display:block!important;min-height:150px}#facePreview2:not(.is-visible){display:none!important}#facePreview2[aria-hidden="true"]{display:none!important}#facePreviewImg2{display:block}#facePreviewImg2:not([src]),
#facePreviewImg2[src=""]{display:none}.face-inline-top{align-items:flex-start!important}#faceRefSelect{height:40px;box-sizing:border-box}/* Face: radios layout — mobile only */@media (max-width: 980px){.section-add-face .face-type-wrap .radio-group{display:flex;flex-direction:column;gap:12px;align-items:flex-start}.section-add-face .face-type-wrap .radio-pill{display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:10px 14px;min-height:42px;white-space:nowrap;width:auto}.section-add-face .face-type-wrap .radio-pill input[type="radio"]{position:static;margin:0 6px 0 0;transform:scale(.95)}}/* Face: radios layout — desktop restore */@media (min-width: 981px){.section-add-face .face-type-wrap .radio-group{display:flex;flex-direction:row;gap:16px;flex-wrap:wrap;align-items:center}.section-add-face .face-type-wrap .radio-pill{width:auto;justify-content:center;padding:10px 12px}}/* Face: preview + radios — desktop placement (qty left, ref+preview right) */@media (min-width: 981px){.section-add-face .face-type-preview-row{display:contents}.section-add-face .face-type-preview-row .face-type-wrap{grid-column:1 / 2;align-self:start}.section-add-face .face-type-preview-row .face-preview-slot{grid-column:2 / -1;align-self:start;display:flex;justify-content:flex-start;min-width:0}.section-add-face .face-type-preview-row .face-preview-slot img{max-width:100%;height:auto;width:auto}}.tiroir-face-block{min-width:260px;margin-top:18px}.tiroir-face-title{display:block;text-align:left;margin-top:0;margin-bottom:4px}.tiroir-face-radios{display:flex;gap:14px}.radio-inline{display:flex;align-items:center;gap:8px}.radio-inline span{white-space:nowrap}.tiroir-face-select{}.tiroir-face-color{display:flex;flex-direction:column}.tiroir-face-color-label{display:block;text-align:left}.tiroir-face-grid{display:grid;grid-template-columns:auto minmax(220px, 280px);column-gap:18px;row-gap:6px;margin-top:10px;align-items:start;width:100%}.tiroir-face-radios{grid-column:1;grid-row:1;align-self:start}.tiroir-face-left-col{grid-column:1;grid-row:2;display:flex;flex-direction:column;gap:10px;align-self:start}.tiroir-face-color{margin-top:4px;width:240px;max-width:240px}.tiroir-face-ref-label{display:block;text-align:left}.tiroir-face-select{grid-column:2;grid-row:1;margin-left:0;margin-top:-10px;display:none;align-self:start}.tiroir-3d-visual{position:relative;width:240px;max-width:240px;border:1px solid rgba(0,0,0,.10);border-radius:16px;background:rgba(106,63,43,.04);padding:8px;overflow:hidden}.tiroir-3d-visual model-viewer{display:block;width:100%;height:240px;border-radius:12px;background:var(--model-3d-bg)}.tiroir-3d-front-overlay{display:none !important}#tiroirFacePreview{display:none!important;grid-column:2;grid-row:2;margin-top:10px;border:1px solid rgba(0,0,0,.10);border-radius:16px;background:rgba(106,63,43,.04);padding:6px;overflow:hidden;width:240px;max-width:240px;box-sizing:border-box;align-items:center;justify-content:center}#tiroirFacePreview.is-visible{display:flex!important}#tiroirFacePreviewImg{display:block;width:100%;max-width:240px;height:auto;object-fit:cover;border-radius:12px}@media (max-width: 900px){.tiroir-face-grid{grid-template-columns:1fr;row-gap:6px}.tiroir-face-radios{grid-row:auto;grid-column:1}.tiroir-face-left-col{grid-column:1;grid-row:auto;width:100%;max-width:none}.tiroir-face-color{width:100%;max-width:none}.tiroir-face-ref-label{grid-column:1}.tiroir-face-select{grid-column:1;grid-row:auto;margin-top:0}#tiroirFacePreview{grid-column:1;width:100%;max-width:none}.tiroir-3d-visual{width:100%;max-width:none}.tiroir-3d-visual model-viewer{width:100%;height:240px}#tiroirFacePreviewImg{width:100%;max-width:none}}#tiroirFaceSelectWrap{display:none}#tiroirFaceSelectWrap.is-visible{display:flex;flex-direction:column;margin-top:-10px}.datalist-input-wrap{position:relative}.datalist-overlay{position:absolute;left:14px;right:38px;top:50%;transform:translateY(-50%);pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:none}.datalist-overlay.is-visible{display:block}@media (min-width: 981px){.index-columns.index-columns-main .section-schema{grid-column:2}}
/* Mobile fix: keep single-column layout + stack price & add buttons without changing desktop */
@media (max-width:520px){
  .section-add-face .face-bottom-row,
  .section-add-tiroir .tiroir-bottom-row{
    flex-wrap:wrap!important;
    justify-content:stretch!important;
    gap:12px!important;
  }
  .section-add-face .face-bottom-row .rayon-bottom-item,
  .section-add-tiroir .tiroir-bottom-row .tiroir-bottom-item{
    width:100%!important;
    align-items:stretch!important;
  }
  .section-add-face .face-price-box,
  .section-add-tiroir .tiroir-price-box{
    width:100%!important;
    min-width:0!important;
  }
  .section-add-face .face-bottom-row button,
  .section-add-tiroir .tiroir-bottom-row button{
    width:100%!important;
  }
}

/* Mobile/tablet: "Ajouter une face" -> 1 colonne, champs pleine largeur (sans toucher aux autres sections) */

.section-add-face.face-mode-linked .face-ref-col{grid-column:2 / -1;grid-row:1 / span 2;align-self:start}
.section-add-face.face-mode-linked #faceQtyField{grid-column:1 / 2;grid-row:2}
@media (max-width: 980px){.section-add-face .form-inline-action{grid-template-columns:1fr!important;gap:12px!important;align-items:stretch!important}.section-add-face .form-inline-action>div{grid-column:auto!important;min-width:0!important}.section-add-face .form-inline-action input,.section-add-face .form-inline-action select{width:100%!important}}

/* Mobile: placer les radios "Type de face" à côté de l'aperçu visuel (sans impacter les autres sections) */
@media (max-width: 980px){.section-add-face .face-type-preview-row{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap}.section-add-face .face-type-preview-row .face-type-wrap{flex:1 1 auto;min-width:0}.section-add-face .face-type-preview-row .face-preview-slot{flex:0 0 clamp(140px,45vw,220px);max-width:220px;display:flex;justify-content:flex-end;min-width:0}.section-add-face .face-type-preview-row .face-preview-slot img{max-width:100%;height:auto;width:100%}}


/* --- Mobile fix: section "Ajouter la face" (prix + bouton) --- */
@media (max-width: 520px){
  .section-add-face .face-bottom-row{
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    gap:12px !important;
    flex-wrap:nowrap !important;
  }
  .section-add-face .face-bottom-row .rayon-bottom-item{
    width:100% !important;
    align-items:stretch !important;
  }
  .section-add-face .rayon-bottom-label{
    text-align:left !important;
    margin-bottom:6px !important;
  }
  .section-add-face .face-price-box{
    width:100% !important;
    min-width:0 !important;
  }
  .section-add-face .face-bottom-row button{
    width:100% !important;
  }
}

/* --- Responsive fix: section "Ajouter la face" (prix + bouton) for small/tablet widths --- */
@media (max-width: 820px){
  .section-add-face .face-bottom-row{
    flex-wrap:wrap !important;
    justify-content:stretch !important;
    align-items:stretch !important;
    gap:12px !important;
  }
  .section-add-face .face-bottom-row .rayon-bottom-item{
    width:100% !important;
    align-items:stretch !important;
  }
  .section-add-face .rayon-bottom-label{
    text-align:left !important;
  }
  .section-add-face .face-price-box{
    width:100% !important;
    min-width:0 !important;
  }
  .section-add-face .face-bottom-row button{
    width:100% !important;
  }
}
@media (max-width: 360px){.section-add-face .face-type-preview-row{flex-wrap:wrap}.section-add-face .face-type-preview-row .face-preview-slot{max-width:100%;flex:0 0 100%;justify-content:flex-start}.section-add-face .face-type-preview-row .face-preview-slot img{max-width:260px;width:100%}}@media (max-width: 320px){.section-add-face .face-type-preview-row{flex-direction:column;flex-wrap:nowrap}.section-add-face .face-type-preview-row .face-type-wrap{min-width:0}.section-add-face .face-type-preview-row .face-preview-slot{justify-content:flex-start;flex:0 0 auto}.section-add-face .face-type-preview-row .face-preview-slot img{max-width:260px}}
/* --- Face: radio pills (dot + label) must stay side-by-side ---
   Scoped to the face section only; does not affect other radio groups. */
.section-add-face .face-type-wrap label.radio-pill{display:inline-flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;white-space:nowrap}
.section-add-face .face-type-wrap label.radio-pill>input[type="radio"]{flex:0 0 auto;display:inline-block;margin:0 8px 0 0}

/* Fix: keep Type de face text inside pill */
.section-add-face .face-type-wrap .radio-pill{display:inline-flex;align-items:center;gap:8px;}
.section-add-face .face-type-wrap .radio-pill span{display:inline-block;}


/* ===== CLEAN RADIO TYPE FACE (independent) ===== */

.face-type-clean{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin:10px 0 20px 0;
}

.face-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 18px;
  border-radius:999px;
  border:1px solid #d7cfc8;
  cursor:pointer;
  background:white;
}

.face-pill input{
  margin:0;
}

.face-pill span{
  white-space:nowrap;
}


/* === Fix Type de face radios: rond + texte sur la même ligne (section face uniquement) === */
.section-add-face .face-type-wrap .radio-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.section-add-face .face-type-wrap .radio-pill input[type="radio"]{ margin:0; }
.section-add-face .face-type-wrap .radio-pill span{ display:inline; }


/* ===== FACE SECTION: SAFE VISUAL TWEAKS (DESKTOP) ===== */
/* 1) Preview smaller, without breaking layout */
@media (min-width: 981px){
  .section-add-face .face-type-preview-row{
    align-items: flex-start;
    gap: 18px;
  }
  .section-add-face .face-preview-slot{
    max-width: 240px;
    width: 240px;
  }
  .section-add-face .face-preview-slot img{
    width: 100%;
    max-width: 240px;
    height: auto;
    object-fit: cover;
    display: block;
  }
}

/* 2) Radio text slightly more left INSIDE pill (face section only) */
.section-add-face .face-type-wrap .radio-pill{
  justify-content: flex-start;
  padding-left: 16px;
}

/* Guard: keep price + button in their bottom row */
.section-add-face .face-bottom-row{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

/* ===== Face: preview UNDER the reference field (desktop + mobile) ===== */
.section-add-face .face-ref-col{display:flex;flex-direction:column;min-width:260px}
.section-add-face .face-ref-col .face-preview-under{margin-top:10px;width:100%;max-width:100%}
.section-add-face .face-ref-col .face-preview-under img{width:100%;max-width:100%;height:auto;object-fit:cover;display:block}

/* ==========================================================
   FACE SECTION — DESIGN ALIGNMENT (radio + preview)
   Goal: same look & feel as the rest of the site.
   - Radio: dot + label inside the option, rounded corners
   - Preview: rounded corners + subtle border like cards
   Scoped to .section-add-face only.
   ========================================================== */

.section-add-face .face-type-wrap .radio-group{
  gap: 10px;
  align-items: stretch;
}

.section-add-face .face-type-wrap label.radio-pill{
  border-radius: 14px; /* rounded corners (not full pill) */
  padding: 10px 14px;
  min-width: 150px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: none;
}

.section-add-face .face-type-wrap label.radio-pill input[type="radio"]{
  margin: 0;
  width: 16px;
  height: 16px;
}

.section-add-face .face-type-wrap label.radio-pill span{
  font-weight: 800;
  color: var(--text);
  font-size: 13px;
}

/* Selected state (modern browsers). */
.section-add-face .face-type-wrap label.radio-pill:has(input:checked){
  border-color: rgba(47,111,78,.55);
  background: rgba(47,111,78,.08);
  box-shadow: 0 0 0 4px rgba(47,111,78,.12);
}

/* Fallback when :has() is not supported (class toggled via JS). */
.section-add-face .face-type-wrap label.radio-pill.is-checked{
  border-color: rgba(47,111,78,.55);
  background: rgba(47,111,78,.08);
  box-shadow: 0 0 0 4px rgba(47,111,78,.12);
}

.section-add-face .face-type-wrap label.radio-pill:focus-within{
  box-shadow: var(--focus);
  border-color: rgba(47,111,78,.55);
}

/* Preview card styling */
.section-add-face .face-preview-slot{
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(106,63,43,.04);
  padding: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-add-face #facePreviewImg2{
  border-radius: 12px;
  width: 100%;
  height: auto;
  object-fit: cover;
}


/* FACE SECTION — bring price closer to CTA (override) */
.section-add-face .face-bottom-row{
  justify-content:flex-end !important;
  gap:12px !important;
}
.section-add-face .face-bottom-row .rayon-bottom-item{
  flex:0 0 auto !important;
}


/* RADIO TEXT — UNIFORM LOOK (NOT DARKER/THICKER WHEN CHECKED) */
.radio-pill,
.radio-pill *,
.radio-pill.is-checked,
.radio-pill.is-checked * {
  font-weight: 400 !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}

/* Force same text color in normal + checked states */
.radio-pill,
.radio-pill span,
.radio-pill.is-checked,
.radio-pill.is-checked span {
  color: #2b2b2b !important;
}


/* RADIO TEXT — KEEP ORIGINAL FONT, FIX VISUAL THICKNESS ONLY */
.radio-pill,
.radio-pill span,
.radio-pill.is-checked,
.radio-pill.is-checked span {
  font-weight: 500 !important; /* restore readable weight */
  color: #1f1f1f !important;    /* same color normal + checked */
  text-shadow: none !important;
}


/* RADIO TEXT — RESTORE BOLD (ORIGINAL LOOK) */
.radio-pill,
.radio-pill span,
.radio-pill.is-checked,
.radio-pill.is-checked span {
  font-weight: 600 !important;
}


/* RADIO TEXT — FORCE REAL BOLD */
.radio-pill,
.radio-pill span,
.radio-pill * {
  font-weight: 700 !important;
  font-family: inherit !important;
  color: inherit !important;
}


/* RADIO PILLS — KEEP SAME SIZE/STYLE CHECKED vs UNCHECKED */
.radio-pill{
  border: 1px solid rgba(0,0,0,0.10) !important; /* base border so size doesn't jump */
  background: #fff !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}

.radio-pill span{
  font-weight: 700 !important;
}

/* Checked state: only color/halo, keep same border width + padding */
.radio-pill.is-checked{
  border-color: rgba(34,197,94,0.55) !important;
  background: rgba(34,197,94,0.08) !important;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.12) !important;
}

/* Ensure checked doesn't change text color/weight compared to unchecked */
.radio-pill.is-checked,
.radio-pill.is-checked span{
  color: inherit !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}


/* RADIO PILLS — FINAL OVERRIDE: restore site original green + consistent checked styling */
.radio-pill{
  border: 1px solid rgba(31,35,40,.18) !important;
  background: #fff !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}

.radio-pill span{
  font-weight: 700 !important;
  color: inherit !important;
  text-shadow: none !important;
}

.radio-pill.is-checked,
.radio-pill:has(> input[type="radio"]:checked){
  border-color: rgba(47,111,78,.55) !important;
  background: #f7fbf7 !important;
  box-shadow: 0 0 0 3px rgba(47,111,78,.14) !important;
  color: inherit !important;
}

/* --- Mobile fix: keep "Couleur" stable and avoid overlap when "Avec face" reveals reference + preview --- */
@media (max-width: 900px){
  /* Deterministic row order in the 1-column grid (prevents overlaps) */
  .tiroir-face-grid{
    grid-template-columns: 1fr !important;
    row-gap: 10px !important;
  }
  .tiroir-face-radios{ grid-column: 1 !important; grid-row: 1 !important; }
  #tiroirFaceSelectWrap{ grid-column: 1 !important; grid-row: 2 !important; }
  /* Put the preview (rendu) ABOVE the color field on mobile */
  #tiroirFacePreview{ grid-column: 1 !important; grid-row: 3 !important; margin-top: 0 !important; }
  .tiroir-face-color{ grid-column: 1 !important; grid-row: 4 !important; margin-top: 0 !important; }

  /* Remove the negative offset that breaks mobile layout */
  #tiroirFaceSelectWrap.is-visible{ margin-top: 0 !important; }
}

/* ==========================================================
   MOBILE — FIX "TYPE DE FACE" TEXT INSIDE BUTTONS
   Why it broke: earlier mobile rules place the preview beside the radios
   and force nowrap on .radio-inline span, so the label text overflows.
   This block is intentionally last to win the cascade.
   ========================================================== */
@media (max-width: 980px){
  /* Stack radios above the preview on mobile (same behavior as other sections) */
  .section-add-face .face-type-preview-row{
    display:flex !important;
    flex-direction:column !important;
    gap:12px !important;
    align-items:stretch !important;
  }

  .section-add-face .face-type-preview-row .face-preview-slot{
    width:100% !important;
    max-width:none !important;
    justify-content:center !important;
  }

  /* Make the options look/behave like the other site buttons */
  .section-add-face .face-type-wrap .radio-group{
    display:flex !important;
    flex-direction:column !important;
    gap:12px !important;
    align-items:stretch !important;
  }

  .section-add-face .face-type-wrap label.radio-pill{
    display:flex !important;
    width:100% !important;
    min-width:0 !important;
    justify-content:flex-start !important;
    white-space:normal !important;
  }

  /* Override global nowrap that was pushing text outside */
  .section-add-face .face-type-wrap .radio-inline span,
  .section-add-face .face-type-wrap label.radio-pill span{
    white-space:normal !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
    min-width:0 !important;
  }
}

/* ==========================================================
   FIX: Face type radios should look exactly like "Pieds"
   (side-by-side pill buttons, text inside, no weird overflow)
   This block is intentionally placed at the end to override
   older duplicated rules above.
   ========================================================== */

.section-add-face .face-type-wrap .radio-group{
  display:flex !important;
  flex-direction:row !important;
  gap:10px !important;
  flex-wrap:wrap !important;        /* allow wrap like Pieds */
  align-items:center !important;
}

.section-add-face .face-type-wrap label.radio-pill{
  display:inline-flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  padding:10px 16px !important;
  min-width:140px !important;
  width:auto !important;
  white-space:nowrap !important;
  margin:0 !important;              /* override global label margin */
}

.section-add-face .face-type-wrap label.radio-pill input[type="radio"]{
  margin:0 !important;
}

.section-add-face .face-type-wrap label.radio-pill span{
  white-space:nowrap !important;
}

/* ==========================================================
   HARD POSITIONING (PX): Face type radios must match "Pieds"
   User request: force the text INSIDE the pill with absolute
   positioning so it never drifts outside.
   Scoped to "Ajouter une face" only.
   ========================================================== */

.section-add-face .face-type-wrap .radio-group{
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.section-add-face .face-type-wrap label.radio-pill{
  position: relative !important;
  display: block !important;
  width: 170px !important;          /* hard width so it can't squash */
  height: 44px !important;          /* consistent button height */
  padding: 0 !important;            /* we place elements with px */
  margin: 0 !important;
  box-sizing: border-box !important;
  flex: 0 0 170px !important;        /* no shrink */
  justify-content: flex-start !important;
}

.section-add-face .face-type-wrap label.radio-pill > input[type="radio"]{
  position: absolute !important;
  left: 18px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
}

.section-add-face .face-type-wrap label.radio-pill > span{
  position: absolute !important;
  left: 416px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

/* ==========================================================
   MOBILE OVERRIDE: keep the two face-type pills side-by-side
   User request: NEVER stack on mobile, force hard px.
   This block is last to beat earlier mobile column rules.
   ========================================================== */

@media (max-width: 980px){
  .section-add-face .face-type-wrap .radio-group{
    display:flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .section-add-face .face-type-wrap label.radio-pill{
    width: 150px !important;
    height: 44px !important;
    flex: 0 0 10px !important;
  }

  .section-add-face .face-type-wrap label.radio-pill > input[type="radio"]{
    left: 16px !important;
  }

  .section-add-face .face-type-wrap label.radio-pill > span{
    left: 44px !important;
  }
}

/* =========================================================
   Face (Ajouter une face au meuble)
   Type de face — CSS from scratch (scoped, safe)
   ========================================================= */
.section-add-face .face-type-clean{
  margin-top:10px;
  display:flex;
  flex-direction:column; /* desktop: one under another */
  gap:8px;
}

.section-add-face .face-type-clean .face-type-opt{
  /* reset the global label styles */
  margin:0 !important;
  font-size:13px;
  font-weight:700;
  color:var(--text);

  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;

  height:38px;
  padding:0 10px;
  border-radius:12px;
  border:1px solid rgba(31,35,40,.18);
  background:#fff;
  cursor:pointer;
  user-select:none;
  box-sizing:border-box;
}

.section-add-face .face-type-clean .face-type-opt input[type="radio"]{
  width:15px;
  height:15px;
  margin:0;
  flex:0 0 auto;
  accent-color:var(--green);
}

.section-add-face .face-type-clean .face-type-opt:has(input[type="radio"]:checked){
  border-color:rgba(47,111,78,.55);
  background:#f7fbf7;
  box-shadow:0 0 0 3px rgba(47,111,78,.14);
}

/* Mobile: side-by-side 50/50 + bullet slightly left + compact */
@media (max-width: 600px){
  .section-add-face .face-type-clean{
    flex-direction:row;
    gap:8px;
  }
  .section-add-face .face-type-clean .face-type-opt{
    flex:1;
    height:36px;
    padding:0 6px;
    gap:13px;
  }
  .section-add-face .face-type-clean .face-type-opt input[type="radio"]{
    /* Force the radio itself to stay small (some global input rules were expanding it) */
    -webkit-appearance: radio !important;
    appearance: auto !important;
    display:inline-block !important;
    width:14px !important;
    height:14px !important;
    min-width:14px !important;
    max-width:14px !important;
    flex:0 0 14px !important;
    padding:0 !important;
    margin:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    outline:none !important;
    transform: translateX(6px);
  }

  /* Remove the big glow on mobile to avoid looking like a huge "radio zone" */
  .section-add-face .face-type-clean .face-type-opt:has(input[type="radio"]:checked){
    box-shadow:none !important;
  }
}



/* ===== Minimal iOS Safari Fix - Pieds radio bullet size only ===== */
/* Keeps EXACT same design as other radios */

.pieds-choice input[type="radio"]{
  width:16px;
  height:16px;
  margin:0;
  flex:0 0 16px;
}



/* ===== Calendar section (added) ===== */
.section-calendar .calendar-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}


@media (max-width: 560px){
  .section-calendar .calendar-grid{
    grid-template-columns: 1fr;
  }
}

/* ==============================
   Google-Agenda-like RDV picker
   ============================== */
.gcal-shell{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  align-items:start;
  width:100%;
  max-width:100%;
}
.section-calendar{position:relative;z-index:5}
.section-calendar *{pointer-events:auto}
.gcal-shell,.gcal-panel,.gcal-grid,.gcal-slots,.gcal-slot,.gcal-pill{position:relative;z-index:6}
.gcal-panel{background:var(--surface);border:1px solid rgba(31,35,40,.14);border-radius:16px;box-shadow:var(--shadow);padding:10px;min-width:0}
.gcal-panel-right{background:linear-gradient(180deg, rgba(121,193,66,.06), transparent 55%), var(--surface)}
.gcal-step{font-size:.72rem;font-weight:800;color:var(--muted);letter-spacing:.03em;text-transform:uppercase}

.gcal-segmented{display:flex;gap:8px;margin-top:8px}
.gcal-pill{flex:1;border:1px solid var(--border);background:var(--surface-2);border-radius:999px;padding:6px 8px;font-weight:900;font-size:.85rem;cursor:pointer;color:var(--text);transition:transform .08s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease}
.gcal-pill:hover{border-color:var(--green);background:var(--green);color:#fff;box-shadow:0 0 0 4px rgba(36,87,61,.18)}
.gcal-pill:hover *{color:#fff}

.gcal-pill.active{background:rgba(121,193,66,.22);border-color:rgba(121,193,66,.95);box-shadow:0 0 0 4px rgba(121,193,66,.18);color:var(--green)}

.gcal-date-row{display:flex;align-items:center;gap:8px;margin-top:8px}
.gcal-date-row input[type="date"]{width:100%;padding:8px 10px;border-radius:12px;border:1px solid var(--border);background:var(--surface-2);font-weight:700}
.gcal-date-row input[type="date"]:focus{outline:none;box-shadow:var(--focus);border-color:rgba(47,111,78,.55)}
.gcal-tz{white-space:nowrap;opacity:.75}

/* Mini calendar (always visible) */
.mini-cal-wrap{
  margin-top:8px;
  border:1px solid rgba(31,35,40,.18);
  background:#fff;
  border-radius:12px;
  padding:10px;
}
.mini-cal-head{
  display:grid;
  grid-template-columns:32px 1fr 32px;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
}
.mini-cal-title{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  line-height:1.1;
  min-width:0;
}
.mini-cal-label{
  font-weight:900;
  font-size:.95rem;
  text-transform:capitalize;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.mini-cal-tz{
  opacity:.65;
  white-space:nowrap;
  font-size:.72rem;
}
.mini-cal-nav{
  width:30px;
  height:30px;
  border-radius:8px;
  border:1px solid rgba(31,35,40,.18);
  background:#fff;
  cursor:pointer;
  font-weight:900;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--text);
}
.mini-cal-nav:hover{border-color:var(--brown);background:var(--brown);color:#fff;box-shadow:0 0 0 3px rgba(106,63,43,.16)}
.mini-cal-dow{
  display:grid;
  grid-template-columns:repeat(7, minmax(0,1fr));
  gap:4px;
  font-size:.70rem;
  color:var(--muted);
  text-transform:lowercase;
  margin-bottom:6px;
  padding:0 2px;
}
.mini-cal-dow span{ text-align:center; }
.mini-cal-grid{
  display:grid;
  grid-template-columns:repeat(7, minmax(0,1fr));
  gap:4px;
}
.mini-cal-day{
  border:1px solid rgba(31,35,40,.12);
  background:#fff;
  border-radius:8px;
  min-height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-weight:800;
  font-size:.80rem;
  color:var(--text);
  user-select:none;
  padding:0;
}
.mini-cal-day:hover{border-color:var(--brown);background:var(--brown);color:#fff;box-shadow:0 0 0 3px rgba(106,63,43,.14)}
.mini-cal-day.is-out{
  border-color:transparent;
  background:transparent;
  cursor:default;
  opacity:.25;
}
.mini-cal-day.is-out:hover{ border-color:transparent; background:transparent; box-shadow:none; }
.mini-cal-day.is-today{border-color:rgba(121,193,66,.85)}
.mini-cal-day.is-selected{background:var(--green);border-color:var(--green);color:#fff}
.mini-cal-hidden-input{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}


.gcal-selected{margin-top:8px;border-radius:12px;border:1px dashed rgba(106,63,43,.22);background:rgba(251,248,244,.75);padding:8px 10px;line-height:1.28;font-size:.92rem}
.gcal-selected strong{color:var(--text)}

.gcal-grid{margin-top:8px;border-radius:14px;border:1px solid var(--border);background:var(--surface-2);overflow:hidden;min-width:0}
.gcal-grid-empty{padding:14px;color:var(--muted)}
.gcal-grid-header{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;background:rgba(251,248,244,.95);border-bottom:1px solid rgba(31,35,40,.12)}
.gcal-grid-title{font-weight:800}
.gcal-grid-sub{font-size:.9rem;color:var(--muted)}
.gcal-slots{display:grid;grid-template-columns:repeat(4, minmax(0,1fr));gap:6px;padding:8px;min-width:0}
.gcal-slot{border:1px solid rgba(31,35,40,.14);background:var(--surface);border-radius:10px;padding:6px 8px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px;transition:transform .08s ease, box-shadow .12s ease, border-color .12s ease}
.gcal-slot:hover{border-color:var(--brown);background:var(--brown);box-shadow:0 10px 24px rgba(0,0,0,.10);color:#fff}
.gcal-slot:hover *{color:#fff}

.gcal-slot:active{transform:translateY(1px)}
.gcal-slot-time{font-weight:950;font-size:.84rem}
.gcal-slot-meta{font-size:.72rem;color:var(--muted)}
.gcal-slot.selected{border-color:var(--green);background:var(--green);box-shadow:0 0 0 4px rgba(36,87,61,.18);color:#fff}
.gcal-slot.selected *{color:#fff}
.gcal-slot.disabled{opacity:.45;cursor:not-allowed;filter:saturate(.2)}
.gcal-slot.disabled:hover{border-color:rgba(31,35,40,.14);background:var(--surface);box-shadow:none;color:var(--text)}
.gcal-slot.disabled:hover *{color:inherit}



@media (max-width: 900px){
  .gcal-shell{grid-template-columns:1fr}
  .gcal-slots{grid-template-columns:repeat(3, minmax(0,1fr))}
}
@media (max-width: 700px){
  .gcal-slots{grid-template-columns:repeat(2, minmax(0,1fr))}
}
@media (max-width: 560px){
  .gcal-panel{padding:10px}
  .gcal-segmented{gap:7px}
  .gcal-pill{padding:7px 8px;font-size:.86rem}
  .gcal-slots{grid-template-columns:repeat(2, minmax(0,1fr))}
}


@media (max-width: 420px){
  .gcal-slots{grid-template-columns:1fr}
}

@media (max-width: 380px){
  .gcal-slot{padding:8px 9px}
}

/* Calendar status spans full width */
.section-calendar #calendarStatus{grid-column:1 / -1;margin-top:8px}

/* =========================================================
   Notes client (textarea)
   - Desktop: affiché dans la colonne droite, avant "Tiroir"
   - Mobile: affiché après Calendrier et avant Récapitulatif
   ========================================================= */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.section-client-notes .small{margin:0 0 6px}
.client-notes-textarea{width:100%;min-height:120px;resize:vertical;padding:12px 14px;border-radius:14px;border:1px solid var(--border);background:rgba(255,255,255,.92);box-sizing:border-box;font:inherit;line-height:1.35;outline:none}
.client-notes-textarea:focus{border-color:rgba(47,111,78,.55);box-shadow:0 0 0 4px rgba(47,111,78,.10)}
@media (min-width: 981px){.section-client-notes--mobile{display:none!important}}
@media (max-width: 980px){.section-client-notes--desktop{display:none!important}}

/* ==============================
   Accessoires tiroir
   ============================== */
.check-pill{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border-radius:999px;border:1px solid rgba(0,0,0,0.10);background:rgba(255,255,255,.85);cursor:pointer;user-select:none;transition:transform .08s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;font-weight:700}
.check-pill:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(0,0,0,.08)}
.check-pill input{margin:0}
.check-pill:has(> input[type="checkbox"]:checked){border-color:rgba(47,111,78,.45);background:#f5fbf6;box-shadow:0 10px 24px rgba(0,0,0,.08)}
.accessoires-grid{display:flex;flex-wrap:wrap;gap:10px}
.section-accessoires-tiroir .form-inline-action{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:16px;align-items:end}
@media (max-width: 980px){.section-accessoires-tiroir .form-inline-action{grid-template-columns:1fr}.accessoires-grid{gap:12px}.check-pill{width:fit-content}}

/* -----------------------------
   UI tweaks requested (compact sections + pill style)
------------------------------*/
.page-index .card.pad{padding:16px}
.page-index .divider{margin:10px 0 12px}

/* Socle selector buttons like the "Devant" pill */
.socle-selector button{border-radius:999px!important;padding:10px 16px!important;display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1}
.socle-selector button.active{box-shadow:0 6px 16px rgba(0,0,0,.12),0 0 0 3px rgba(121,193,66,0.22)}

/* Accessoires tiroir (compact) */
.section-accessoires-tiroir .form-inline-action{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:12px;align-items:end}
.section-accessoires-tiroir .accessoires-checkboxes{grid-column:1 / -1}
.section-accessoires-tiroir .accessoires-grid{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.section-accessoires-tiroir .check-pill{border:2px solid rgba(36,87,61,.22);border-radius:999px;padding:8px 12px;min-width:unset;justify-content:flex-start;box-shadow:none;background:rgba(255,255,255,.92);font-weight:800;font-size:14px}
.section-accessoires-tiroir .check-pill:hover{border-color:rgba(121,193,66,.55);background:rgba(121,193,66,.08)}
.section-accessoires-tiroir .check-pill input[type="checkbox"]{appearance:none;-webkit-appearance:none;width:16px;height:16px;border-radius:4px;border:2px solid rgba(36,87,61,.35);display:inline-grid;place-items:center;background:#fff;flex:0 0 auto}
.section-accessoires-tiroir .check-pill input[type="checkbox"]::after{content:"";width:8px;height:4px;border-left:3px solid #fff;border-bottom:3px solid #fff;transform:rotate(-45deg);opacity:0;margin-top:-1px}
.section-accessoires-tiroir .check-pill input[type="checkbox"]:checked{background:var(--green);border-color:var(--green)}
.section-accessoires-tiroir .check-pill input[type="checkbox"]:checked::after{opacity:1}
.section-accessoires-tiroir .check-pill:has(> input[type="checkbox"]:checked){border-color:rgba(121,193,66,.9);background:rgba(121,193,66,.10)}
.section-accessoires-tiroir button{border-radius:12px;padding:10px 16px;font-weight:900}
@media (max-width: 900px){
  .section-accessoires-tiroir .form-inline-action{grid-template-columns:1fr}
  .section-accessoires-tiroir button{width:100%}
}


/* Petit texte d'aide en bas de section */
.section-help{
  margin-top:10px;
  font-size:14px;
  color:#7a7a7a;
}

/* Espace cohérent entre les dernières sections (index)
   (parfois le gap du layout ne s'applique pas à ces blocs) */
.page-index section[aria-label="Récap caisses"],
.page-index .section-final{
  margin-top:18px;
}

.help-text{opacity:.7;font-size:12px;line-height:1.2;margin-top:6px}

.section-add-tiroir .form-inline-action{align-items:start}

/* Alignement des champs sur une même ligne dans "Ajouter un tiroir"
   (les labels 1 ou 2 lignes ne doivent pas décaler les inputs) */
.section-add-tiroir .form-inline-action > div{
  display:flex;
  flex-direction:column;
}
.section-add-tiroir .form-inline-action > div > label{
  min-height:34px;
  line-height:1.2;
}

/* ===== Poignées (section "Créer un meuble") : radios + modèles + aperçu pied à droite ===== */
.poignees-pied-row{grid-column:1 / -1;width:100%;max-width:100%;display:grid;grid-template-columns:minmax(0, 1fr) 220px;gap:16px;align-items:start;margin-top:8px}
.poignees-pied-row .poignees-left{min-width:0}
.poignees-pied-row .poignees-radios{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:12px;align-items:stretch}
@media (max-width: 720px){.poignees-pied-row .poignees-radios{grid-template-columns:repeat(2, minmax(0, 1fr))}}
@media (max-width: 480px){.poignees-pied-row .poignees-radios{grid-template-columns:1fr}}
.poignees-pied-row .poignees-right{display:flex;justify-content:flex-end}
.socle-feet-preview--inline{margin:0}
.poignee-modeles-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  align-items:stretch;
}

/* Les modèles de poignées : même feeling que les radio-pill (pas de brun) */
.modele-poignee{appearance:none;border:1px solid rgba(31,35,40,.18);background:#fff;border-radius:14px;padding:10px 12px;cursor:pointer;user-select:none;transition:transform .12s ease, border-color .12s ease, box-shadow .12s ease, background .12s ease;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;width:100%}
.modele-poignee:hover{transform:translateY(-1px);border-color:rgba(47,111,78,.35);background:#f7fbf7;box-shadow:0 0 0 3px rgba(47,111,78,.10)}
.modele-poignee.is-selected{border-color:rgba(47,111,78,.55);background:#f7fbf7;box-shadow:0 0 0 3px rgba(47,111,78,.14)}
/* Les images ne doivent jamais forcer un débordement horizontal sur petits écrans */
.modele-poignee img{
  width:100%;
  max-width:120px;
  height:auto;
  max-height:46px;
  object-fit:contain;
  display:block;
}
.modele-poignee--upload img{max-height:70px}
.modele-poignee-plus{width:64px;height:64px;border-radius:12px;background:rgba(0,0,0,0.12);display:grid;place-items:center;font-size:44px;line-height:1;color:var(--green);font-weight:700;flex:0 0 auto}
.modele-poignee--upload:hover .modele-poignee-plus{background:rgba(0,0,0,0.16)}

@media (max-width: 980px){.poignees-pied-row{grid-template-columns:1fr}.poignees-pied-row .poignees-right{justify-content:flex-start}}

/* Les modèles passent en 2 colonnes puis 1 colonne sur petits écrans */
@media (max-width: 720px){.poignee-modeles-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}}
@media (max-width: 420px){.poignee-modeles-grid{grid-template-columns:1fr}}

/* Poignées: radios sur 3 colonnes */
.poignees-pied-row .poignees-radios .radio-pill{width:100%;justify-content:center;text-align:center}



/* Poignées du tiroir: radios sur 2 colonnes, modèles sur 3 colonnes (déjà via .poignee-modeles-grid) */
.tiroir-poignees-title{display:block;font-weight:600;margin-bottom:8px}
.tiroir-poignees-radios{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:12px;align-items:stretch}
@media (max-width: 480px){.tiroir-poignees-radios{grid-template-columns:1fr}}
.tiroir-poignees-radios .radio-pill{width:100%;justify-content:center;text-align:center}

/* ==========================================================
   Tiroir — "Référence de face"
   On garde ce champ dans la grille et on évite tout décalage vertical.
   (ne touche ni aux poignées, ni au reste du formulaire)
   ========================================================== */
#tiroirFaceSelectWrap.is-visible{
  margin-top:0;
  align-self:start;
}


/* Desktop tweak: align "Référence de face" with "Face du tiroir" */
@media (min-width: 901px){
  #tiroirFaceSelectWrap.is-visible{ margin-top:-25px !important; }
}



/* ===== ISA images (desktop + iPhone) ===== */
.isa-images{margin-top:12px}
.isa-images-grid{display:grid;grid-template-columns:repeat(2,minmax(120px,150px));gap:12px;align-items:start;justify-content:start;max-width:320px}
.isa-image-thumb{display:block;width:100%;height:auto;aspect-ratio:4 / 3;object-fit:contain;border:1px solid rgba(31,35,40,.10);border-radius:10px;background:#fff;padding:6px;cursor:zoom-in;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
.isa-lightbox{position:fixed;inset:0;background:rgba(0,0,0,.88);display:none;align-items:center;justify-content:center;padding:20px;z-index:9999}
.isa-lightbox.is-open{display:flex}
.isa-lightbox img{max-width:min(92vw,900px);max-height:86vh;width:auto;height:auto;border-radius:12px;background:#fff}
.isa-lightbox-close{position:absolute;top:16px;right:16px;width:42px;height:42px;border-radius:999px;border:0;background:#fff;color:#111;font-size:30px;line-height:1;cursor:pointer}
@media (max-width: 720px){.isa-images-grid{grid-template-columns:repeat(2,minmax(110px,1fr));gap:8px;justify-content:center;max-width:100%}.isa-image-thumb{max-width:140px;margin:0 auto;aspect-ratio:auto;max-height:none;padding:4px}.isa-lightbox{padding:12px}.isa-lightbox img{max-width:94vw;max-height:82vh}}
@media (max-width: 420px){.isa-images-grid{grid-template-columns:repeat(2,minmax(100px,1fr));gap:8px}.isa-image-thumb{max-width:120px}}

#facePreviewImg2,
#tiroirFacePreviewImg{cursor:zoom-in}


/* Mobile fix: prevent the page from stretching far beyond the last visible section */
@media (max-width: 560px){
  html, body{
    overflow-x:hidden;
  }
  .section-cards-top .caisse-grid,
  #caisseConfigurator.caisse-grid{
    max-height:58vh !important;
    overflow:auto !important;
    -webkit-overflow-scrolling:touch !important;
    padding-bottom:8px !important;
  }
  .face-preview-slot{
    min-height:0 !important;
  }
}


/* Desktop: NO SCROLL, show all cards */
@media (min-width: 981px){
  #cat-cuisine.caisse-grid,
  #cat-divers.caisse-grid{
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }
}


/* === Ajustements tiroir : option intérieure + alignement couleur/référence === */
.section-add-tiroir .tiroir-face-radios{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}
.section-add-tiroir .tiroir-face-radios .radio-pill{
  width:auto;
  justify-content:flex-start;
}
.section-add-tiroir .tiroir-face-radios .radio-pill.is-disabled,
.section-add-tiroir .tiroir-face-radios .radio-pill[aria-disabled="true"]{
  opacity:.55;
  cursor:not-allowed;
}
.section-add-tiroir .tiroir-face-radios .radio-pill.is-disabled input,
.section-add-tiroir .tiroir-face-radios .radio-pill[aria-disabled="true"] input{
  pointer-events:none;
}
.section-add-tiroir .tiroir-face-help{
  display:block;
  margin:6px 0 0;
}
.section-add-tiroir .tiroir-face-grid{
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  row-gap:10px;
}
.section-add-tiroir .tiroir-face-left-col{
  grid-column:1;
  grid-row:auto;
  width:100%;
  max-width:none;
}
.section-add-tiroir .tiroir-face-fields-row{
  display:grid;
  grid-template-columns:minmax(220px, 240px) minmax(280px, 1fr);
  gap:16px;
  align-items:end;
  max-width:720px;
}
.section-add-tiroir .tiroir-face-color{
  width:100%;
  max-width:none;
  margin-top:0;
}
.section-add-tiroir .tiroir-face-select{
  display:none;
  margin-top:0;
  width:100%;
}
.section-add-tiroir #tiroirFaceSelectWrap.is-visible{
  display:flex;
  flex-direction:column;
}
.section-add-tiroir .tiroir-3d-visual,
.section-add-tiroir #tiroirFacePreview{
  width:240px;
  max-width:100%;
}
@media (max-width: 900px){
  .section-add-tiroir .tiroir-face-fields-row{
    grid-template-columns:1fr;
    max-width:none;
  }
  .section-add-tiroir .tiroir-3d-visual,
  .section-add-tiroir #tiroirFacePreview{
    width:100%;
  }
}



/* --- Fix: keep the 3 drawer finish options on one line on desktop/tablet --- */
.section-add-tiroir .tiroir-face-radios{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  width:100%;
  max-width:980px;
  align-items:stretch;
}
.section-add-tiroir .tiroir-face-radios .radio-pill{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  justify-content:flex-start;
}
.section-add-tiroir .tiroir-face-radios .radio-pill span{
  white-space:normal;
  line-height:1.25;
}
@media (max-width: 760px){
  .section-add-tiroir .tiroir-face-radios{
    gap:10px;
  }
  .section-add-tiroir .tiroir-face-radios .radio-pill{
    padding:12px 14px;
  }
  .section-add-tiroir .tiroir-face-radios .radio-pill span{
    font-size:14px;
  }
}
@media (max-width: 560px){
  .section-add-tiroir .tiroir-face-radios{
    grid-template-columns:1fr;
  }
}



/* Fix radio row alignment */
.radio-row {
  display:flex;
  gap:12px;
  flex-wrap:nowrap;
}
.radio-card {
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
}




/* === Tiroir: alignement propre couleur / bibliothèque sans margin hack === */
.section-add-tiroir .tiroir-face-fields-row{
  display:grid;
  grid-template-columns:minmax(220px, 240px) minmax(280px, 1fr);
  gap:16px;
  align-items:start;
  max-width:720px;
}

.section-add-tiroir .tiroir-face-fields-row > .tiroir-face-color,
.section-add-tiroir .tiroir-face-fields-row > .tiroir-face-select{
  display:grid;
  grid-template-rows:auto auto;
  align-content:start;
  gap:8px;
  width:100%;
  margin:0;
}

.section-add-tiroir .tiroir-face-fields-row > .tiroir-face-color label,
.section-add-tiroir .tiroir-face-fields-row > .tiroir-face-select label{
  margin:0;
  line-height:1.2;
  min-height:1.2em;
}

.section-add-tiroir #tiroirFaceSelectWrap.is-visible{
  display:grid;
  grid-template-rows:auto auto;
  margin-top:0 !important;
}

.section-add-tiroir .datalist-input-wrap.ref-bibliotheque{
  margin:0 !important;
}

@media (max-width: 900px){
  .section-add-tiroir .tiroir-face-fields-row{
    grid-template-columns:1fr;
    max-width:none;
  }
}



/* === Ajustement fin: alignement parfait Couleur / Bibliothèque de référence === */
.section-add-tiroir .tiroir-face-fields-row{
  display:grid !important;
  grid-template-columns:minmax(220px, 240px) minmax(280px, 1fr) !important;
  gap:16px !important;
  align-items:start !important;
  max-width:720px !important;
}

.section-add-tiroir .tiroir-face-fields-row > .tiroir-face-color,
.section-add-tiroir .tiroir-face-fields-row > .tiroir-face-select,
.section-add-tiroir #tiroirFaceSelectWrap.is-visible{
  display:grid !important;
  grid-template-rows:22px auto !important;
  align-content:start !important;
  gap:6px !important;
  margin:0 !important;
  width:100% !important;
  align-self:start !important;
}

.section-add-tiroir .tiroir-face-color-label,
.section-add-tiroir .tiroir-face-ref-label{
  display:flex !important;
  align-items:flex-end !important;
  height:22px !important;
  line-height:1 !important;
  margin:0 !important;
  padding:0 !important;
}

.section-add-tiroir .tiroir-face-color select,
.section-add-tiroir .datalist-input-wrap.ref-bibliotheque{
  margin:0 !important;
}

.section-add-tiroir .datalist-input-wrap.ref-bibliotheque{
  align-self:start !important;
}

@media (max-width: 900px){
  .section-add-tiroir .tiroir-face-fields-row{
    grid-template-columns:1fr !important;
    max-width:none !important;
  }
}



/* === Fix visibilité: Bibliothèque de référence masquée si "Sans coté de finition" === */
.section-add-tiroir .tiroir-face-fields-row > .tiroir-face-select{
  display:none !important;
}

.section-add-tiroir .tiroir-face-fields-row > #tiroirFaceSelectWrap.is-visible{
  display:grid !important;
  grid-template-rows:22px auto !important;
  align-content:start !important;
  gap:6px !important;
  width:100% !important;
  margin:0 !important;
}



/* ===== Popup d'aide page index ===== */
.guide-backdrop.show{opacity:1;pointer-events:auto}
.guide-modal .guide-modal-card{
  width:min(760px, calc(100% - 28px));
  margin:4vh auto 0;
}
.guide-modal-header{align-items:flex-start}
.guide-modal-body{
  max-height:min(72vh, 760px);
  overflow:auto;
  padding-bottom:18px;
}
.guide-intro{
  margin:0 0 16px;
  color:#4d4d4d;
  line-height:1.5;
}
.guide-steps{
  display:grid;
  gap:12px;
}
.guide-step{
  display:grid;
  grid-template-columns:36px 1fr;
  gap:12px;
  align-items:start;
  padding:12px 14px;
  border:1px solid rgba(31,35,40,.10);
  border-radius:16px;
  background:rgba(247,249,247,.9);
}
.guide-step-num{
  width:36px;
  height:36px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  color:#fff;
  background:var(--green);
  box-shadow:0 8px 18px rgba(47,111,78,.18);
}
.guide-step-title{
  font-weight:800;
  color:#232323;
  margin:1px 0 6px;
}
.guide-step-content p{
  margin:0;
  line-height:1.55;
  color:#4d4d4d;
}
.guide-tip{
  margin-top:16px;
  padding:12px 14px;
  border-radius:14px;
  background:rgba(47,111,78,.08);
  color:#355940;
  line-height:1.5;
}
.guide-modal-actions{
  gap:10px;
}
@media (max-width: 640px){
  .guide-modal .guide-modal-card{
    width:min(100% - 18px, 100%);
    margin:14px auto 0;
    border-radius:18px;
  }
  .guide-modal-body{
    max-height:72vh;
  }
  .guide-step{
    grid-template-columns:32px 1fr;
    gap:10px;
    padding:11px 12px;
  }
  .guide-step-num{
    width:32px;
    height:32px;
    font-size:13px;
  }
  .guide-modal-actions{
    flex-direction:column-reverse;
  }
  .guide-modal-actions .btn-primary,
  .guide-modal-actions .btn-secondary{
    width:100%;
  }
}


/* Masquer la croix de fermeture popup */
#indexGuideClose{
  display:none !important;
}





/* === Guide popup: état d'ouverture + mobile amélioré === */
#indexGuideModal{
  display:none;
}
#indexGuideModal.is-open{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  position:fixed !important;
  inset:0 !important;
  z-index:1001 !important;
  padding:16px;
  box-sizing:border-box;
}
.guide-backdrop{
  z-index:1000 !important;
}
.guide-modal .guide-modal-card{
  width:min(760px, calc(100% - 28px));
  margin:0 !important;
  max-height:min(88vh, 860px);
  display:flex;
  flex-direction:column;
}
.guide-modal-body{
  max-height:none !important;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

@media (max-width: 640px){
  #indexGuideModal.is-open{
    align-items:flex-end !important;
    padding:10px;
  }
  .guide-modal .guide-modal-card{
    width:100%;
    max-width:100%;
    max-height:88vh;
    border-radius:20px;
  }
  .guide-modal-header{
    padding:14px 14px 10px;
  }
  .guide-modal-body{
    padding:0 14px 14px;
  }
  .guide-modal-actions{
    position:sticky;
    bottom:0;
    background:#fff;
    padding:12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top:1px solid rgba(31,35,40,.08);
  }
  .guide-step{
    border-radius:14px;
  }
  .guide-step-content p{
    font-size:14px;
    line-height:1.5;
  }
  .guide-intro,
  .guide-tip{
    font-size:14px;
  }
}


/* === Mobile premium (bottom-sheet) === */
@media (max-width: 640px){
  #indexGuideModal.is-open{
    align-items:flex-end !important;
    padding:0 !important;
  }
  .guide-backdrop.show{
    backdrop-filter: blur(2px);
  }
  .guide-modal .guide-modal-card{
    width:100%;
    max-width:100%;
    border-radius:22px 22px 0 0;
    max-height:92vh;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
    animation: guideSlideUp .25s ease;
  }
  @keyframes guideSlideUp{
    from{transform:translateY(40px);opacity:0}
    to{transform:translateY(0);opacity:1}
  }
  .guide-modal-header{
    position:sticky;
    top:0;
    background:#fff;
    z-index:2;
    border-bottom:1px solid rgba(0,0,0,0.05);
  }
  .guide-modal-body{
    padding:12px 16px 16px;
  }
  .guide-step{
    padding:10px 12px;
  }
  .guide-step-title{
    font-size:15px;
  }
  .guide-step-content p{
    font-size:13.5px;
  }
  .guide-modal-actions{
    position:sticky;
    bottom:0;
    background:#fff;
    padding:12px 16px calc(14px + env(safe-area-inset-bottom,0px));
    border-top:1px solid rgba(0,0,0,0.08);
    display:flex;
    gap:10px;
  }
  .guide-modal-actions .btn-primary{
    flex:1;
    height:44px;
    font-size:15px;
  }
  .guide-modal-actions .btn-secondary{
    flex:1;
    height:44px;
    font-size:14px;
  }
}


/* === Fix header coupé mobile === */
@media (max-width:640px){
  #indexGuideModal.is-open{
    align-items:flex-start !important;
    padding-top: env(safe-area-inset-top, 10px) !important;
  }

  .guide-modal .guide-modal-card{
    margin-top: 10px !important;
    max-height: calc(100vh - 20px);
  }

  .guide-modal-header{
    padding-top: 12px !important;
  }
}


/* === Mobile popup plus petite et mieux positionnée === */
@media (max-width:640px){
  #indexGuideModal.is-open{
    align-items:center !important;
    padding:10px !important;
  }

  .guide-modal .guide-modal-card{
    max-height:80vh !important;
    margin:0 auto !important;
    border-radius:18px !important;
  }

  .guide-modal-body{
    max-height:55vh !important;
  }
}


/* DEBUG PRIX CAISSE — bloc temporaire, facile à supprimer */
.price-debug-box{
  margin-top:10px;
  padding:10px 12px;
  border:1px dashed #cfcfcf;
  border-radius:10px;
  background:#fafafa;
  font-size:13px;
}
.price-debug-title{
  font-weight:700;
  margin-bottom:6px;
}
.price-debug-line{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:2px 0;
}
.price-debug-line.total{
  margin-top:6px;
  padding-top:6px;
  border-top:1px solid #e3e3e3;
  font-weight:700;
}


.recap-totals-box{margin-top:14px;border:1px solid #e6e6e6;border-radius:14px;padding:14px;background:#fafafa;max-width:520px;margin-left:auto}
.recap-totals-line{display:flex;justify-content:space-between;gap:14px;padding:6px 0}
.recap-totals-line.total{margin-top:6px;padding-top:10px;border-top:1px solid #ddd;font-weight:700}



/* ===== Bulle d'aide dimensions (Créer un meuble) ===== */
.dimension-help-bubble{
  position:absolute;
  z-index:2000;
  display:none;
  max-width:min(340px, calc(100vw - 24px));
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(106,63,43,.18);
  background:#fffdf8;
  box-shadow:0 18px 40px rgba(0,0,0,.16);
  color:#3d3028;
}
.dimension-help-bubble.is-visible{display:block}
.dimension-help-bubble::before{
  content:"";
  position:absolute;
  top:-10px;
  left:26px;
  width:18px;
  height:18px;
  background:#fffdf8;
  border-left:1px solid rgba(106,63,43,.18);
  border-top:1px solid rgba(106,63,43,.18);
  transform:rotate(45deg);
}
.dimension-help-title{
  font-size:13px;
  font-weight:800;
  color:var(--brown);
  margin-bottom:6px;
  padding-right:28px;
}
.dimension-help-text{
  font-size:13px;
  line-height:1.5;
}
.dimension-help-close{
  position:absolute;
  top:8px;
  right:8px;
  width:28px;
  height:28px;
  border:none;
  border-radius:999px;
  background:rgba(106,63,43,.08);
  color:var(--brown);
  font-size:18px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  cursor:pointer;
}
.dimension-help-close:hover{background:rgba(106,63,43,.14)}
@media (max-width: 640px){
  .dimension-help-bubble{
    position:fixed;
    left:12px !important;
    right:12px;
    top:88px !important;
    bottom:auto !important;
    width:auto !important;
    max-width:none;
  }
  .dimension-help-bubble::before{display:none}
  #largeur,
  #hauteur,
  #profondeur{
    font-size:16px !important;
  }
}


/* === Correctif mobile ciblé Safari/iPhone === */
@media (max-width: 980px){
  .section-cards-top .caisse-grid,
  #cat-cuisine.caisse-grid,
  #cat-divers.caisse-grid,
  #caisseConfigurator.caisse-grid,
  .caisse-grid{
    max-height:none !important;
    height:auto !important;
    overflow:visible !important;
    -webkit-overflow-scrolling:auto !important;
    padding-right:0 !important;
  }

  .section-add-face #facePreview2,
  .face-preview-slot#facePreview2{
    display:none;
    min-height:0 !important;
    padding:0 !important;
    border:none !important;
    background:transparent !important;
  }

  .section-add-face #facePreview2[style*="display: block"],
  .section-add-face #facePreview2[style*="display:block"]{
    display:block !important;
    padding:6px !important;
    border:1px solid var(--border) !important;
    background:rgba(106,63,43,.04) !important;
  }

  .section-add-face,
  .section-add-rayons,
  .section-add-caisse,
  .section-add-tiroir,
  .section-schema,
  .section-final,
  .section-client-notes,
  .section-calendar{
    overflow:visible !important;
  }

  model-viewer{
    transform:translateZ(0);
    backface-visibility:hidden;
    contain:layout paint style;
  }
}


.section-add-face .face-type-field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.section-add-face .face-type-label{
  font-size:14px;
  font-weight:700;
  color:var(--text);
}

.section-add-face .face-type-clean{
  margin:0;
}

.section-add-face .face-type-clean .face-type-opt{
  position:relative;
}

.section-add-face .face-type-clean .face-type-opt input[type="radio"]{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.section-add-face .face-type-clean .face-type-opt span{
  display:block;
}

.section-add-face .face-type-clean .face-type-opt.active,
.section-add-face .face-type-clean .face-type-opt:has(input[type="radio"]:checked){
  border-color:rgba(47,111,78,.55);
  background:#f7fbf7;
  box-shadow:0 0 0 3px rgba(47,111,78,.14);
}

.section-add-face .face-bottom-row button:disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}



.section-add-face .face-type-clean{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.section-add-face .face-type-clean .face-type-opt input[type="checkbox"]{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.section-add-face .face-type-clean .face-type-opt:has(input[type="checkbox"]:checked){
  border-color:rgba(47,111,78,.55);
  background:#f7fbf7;
  box-shadow:0 0 0 3px rgba(47,111,78,.14);
}


/* Face section: classic radios by default, accessory-style checks only when a meuble is selected */
.section-add-face .face-type-clean .face-type-opt.radio-pill{
  display:flex;
  align-items:center;
  gap:10px;
}
.section-add-face .face-type-clean .face-type-opt.radio-pill input[type="radio"]{
  position:static;
  opacity:1;
  pointer-events:auto;
  margin:0 8px 0 0;
}
.section-add-face .face-type-clean .face-type-opt.radio-pill input[type="checkbox"]{
  position:static;
  opacity:1;
  pointer-events:auto;
  margin:0 8px 0 0;
}
.section-add-face.face-mode-linked .face-type-clean{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.section-add-face.face-mode-linked .face-type-clean .face-type-opt.check-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  width:fit-content;
  max-width:100%;
  min-width:unset;
  justify-content:flex-start;
  border:2px solid rgba(36,87,61,.22);
  border-radius:999px;
  padding:8px 12px;
  box-shadow:none;
  background:rgba(255,255,255,.92);
  font-weight:800;
  font-size:14px;
  line-height:1.2;
}
.section-add-face.face-mode-linked .face-type-clean .face-type-opt.check-pill:hover{
  border-color:rgba(121,193,66,.55);
  background:rgba(121,193,66,.08);
}
.section-add-face.face-mode-linked .face-type-clean .face-type-opt.check-pill span{
  display:inline;
  white-space:nowrap;
}
.section-add-face.face-mode-linked .face-type-clean .face-type-opt.check-pill input[type="checkbox"]{
  appearance:none;
  -webkit-appearance:none;
  position:static;
  opacity:1;
  pointer-events:auto;
  margin:0;
  width:16px;
  height:16px;
  border-radius:4px;
  border:2px solid rgba(36,87,61,.35);
  display:inline-grid;
  place-items:center;
  background:#fff;
  flex:0 0 auto;
}
.section-add-face.face-mode-linked .face-type-clean .face-type-opt.check-pill input[type="checkbox"]::after{
  content:"";
  width:7px;
  height:4px;
  border-left:2px solid #fff;
  border-bottom:2px solid #fff;
  transform:rotate(-45deg);
  opacity:0;
  margin-top:-1px;
}
.section-add-face.face-mode-linked .face-type-clean .face-type-opt.check-pill input[type="checkbox"]:checked{
  background:var(--green);
  border-color:var(--green);
}
.section-add-face.face-mode-linked .face-type-clean .face-type-opt.check-pill input[type="checkbox"]:checked::after{
  opacity:1;
}
.section-add-face.face-mode-linked .face-type-clean .face-type-opt.check-pill.active,
.section-add-face.face-mode-linked .face-targets-clean{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:flex-start;
  justify-content:flex-start;
}
.section-add-face.face-mode-linked .face-targets-clean .face-type-opt{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:auto;
  max-width:100%;
  min-width:unset;
  justify-content:flex-start;
  padding:6px 10px;
  border:2px solid rgba(36,87,61,.22);
  border-radius:999px;
  background:rgba(255,255,255,.92);
  box-shadow:none;
  cursor:pointer;
  font-weight:700;
  font-size:13px;
  line-height:1.15;
  white-space:nowrap;
}
.section-add-face.face-mode-linked .face-targets-clean .face-type-opt span{
  display:inline;
  white-space:nowrap;
}
.section-add-face.face-mode-linked .face-targets-clean .face-type-opt input[type="checkbox"]{
  appearance:none;
  -webkit-appearance:none;
  position:static;
  opacity:1;
  pointer-events:auto;
  margin:0;
  width:14px;
  height:14px;
  border-radius:4px;
  border:2px solid rgba(36,87,61,.35);
  display:inline-grid;
  place-items:center;
  background:#fff;
  flex:0 0 auto;
}
.section-add-face.face-mode-linked .face-targets-clean .face-type-opt input[type="checkbox"]::after{
  content:"";
  width:8px;
  height:4px;
  border-left:3px solid #fff;
  border-bottom:3px solid #fff;
  transform:rotate(-45deg);
  opacity:0;
  margin-top:-1px;
}
.section-add-face.face-mode-linked .face-targets-clean .face-type-opt input[type="checkbox"]:checked{
  background:var(--green);
  border-color:var(--green);
}
.section-add-face.face-mode-linked .face-targets-clean .face-type-opt input[type="checkbox"]:checked::after{
  opacity:1;
}
.section-add-face.face-mode-linked .face-targets-clean .face-type-opt.active,
.section-add-face.face-mode-linked .face-targets-clean .face-type-opt:has(> input[type="checkbox"]:checked){
  border-color:rgba(121,193,66,.9);
  background:rgba(121,193,66,.10);
}


/* Face finition: équilibre propre des colonnes quand un meuble est sélectionné */
@media (min-width: 981px){
  .section-add-face.face-mode-linked .form-inline-action{
    grid-template-columns:minmax(0, 42%) minmax(0, 58%) !important;
    gap:18px !important;
    align-items:start !important;
  }
  .section-add-face.face-mode-linked .form-inline-action > div{
    min-width:0 !important;
  }
  .section-add-face.face-mode-linked #faceQtyField{
    grid-column:1 / 2 !important;
    grid-row:2 !important;
    min-width:0 !important;
    width:100% !important;
  }
  .section-add-face.face-mode-linked .face-ref-col{
    grid-column:2 / 3 !important;
    grid-row:1 / span 2 !important;
    min-width:0 !important;
    width:100% !important;
    max-width:none !important;
    overflow:hidden !important;
  }
  .section-add-face.face-mode-linked .face-ref-col .datalist-input-wrap,
  .section-add-face.face-mode-linked .face-ref-col input,
  .section-add-face.face-mode-linked .face-ref-col .face-preview-under,
  .section-add-face.face-mode-linked .face-ref-col .face-preview-under img{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }
  .section-add-face.face-mode-linked .face-type-clean{
    width:100%;
    align-items:flex-start;
    gap:12px;
  }
  .section-add-face.face-mode-linked .face-type-clean .face-type-opt.check-pill{
    display:flex !important;
    width:max-content !important;
    max-width:100% !important;
    min-width:0 !important;
    white-space:nowrap !important;
  }
  .section-add-face.face-mode-linked .face-targets-field{
    margin-top:12px;
  }
  .section-add-face .face-targets-help{
    margin-top:8px;
    opacity:.8;
  }
}


/* Face targets compact layout */
.section-add-face.face-mode-linked .face-targets-clean .face-type-opt input[type="checkbox"]::after{
  width:7px;
  height:4px;
  border-left:2px solid #fff;
  border-bottom:2px solid #fff;
}


/* Face finition: faces à personnaliser sur toute la largeur de la section */
@media (min-width: 981px){
  .section-add-face.face-mode-linked .form-inline-action{
    grid-template-columns:minmax(0, 42%) minmax(0, 58%) !important;
    align-items:start !important;
  }
  .section-add-face.face-mode-linked #faceQtyField{
    grid-column:1 / -1 !important;
    grid-row:2 !important;
    width:100% !important;
  }
  .section-add-face.face-mode-linked .face-ref-col{
    grid-column:2 / 3 !important;
    grid-row:1 !important;
  }
  .section-add-face.face-mode-linked .face-type-field{
    display:block !important;
    width:100% !important;
  }
  .section-add-face.face-mode-linked .face-targets-field{
    display:block;
    width:100% !important;
    margin-top:14px !important;
  }
  .section-add-face.face-mode-linked .face-targets-clean{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:10px !important;
    width:100% !important;
    align-items:flex-start !important;
  }
  .section-add-face.face-mode-linked .face-targets-clean .face-type-opt{
    flex:0 0 auto !important;
    width:auto !important;
    max-width:none !important;
  }
}


/* Face finition: full-width faces without changing vertical order */
@media (min-width: 981px){
  .section-add-face.face-mode-linked .form-inline-action{
    grid-template-columns:minmax(0, 42%) minmax(0, 58%) !important;
    align-items:start !important;
  }
  .section-add-face.face-mode-linked #faceQtyField{
    grid-column:1 / 2 !important;
    grid-row:2 !important;
    width:100% !important;
    min-width:0 !important;
    position:relative !important;
    overflow:visible !important;
  }
  .section-add-face.face-mode-linked .face-ref-col{
    grid-column:2 / 3 !important;
    grid-row:1 / span 2 !important;
    min-width:0 !important;
    width:100% !important;
  }
  .section-add-face.face-mode-linked .face-targets-field{
    display:block !important;
    width:calc(100% + var(--face-targets-extra-width, 0px)) !important;
    max-width:none !important;
    margin-top:14px !important;
  }
  .section-add-face.face-mode-linked .face-targets-clean{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:10px !important;
    width:100% !important;
    align-items:flex-start !important;
  }
  .section-add-face.face-mode-linked .face-targets-clean .face-type-opt{
    flex:0 0 auto !important;
    width:auto !important;
    max-width:none !important;
  }
}


/* Face finition: quand rien n'est sélectionné, remonter la bibliothèque à droite */
@media (min-width: 981px){
  .section-add-face.face-mode-empty .form-inline-action{
    grid-template-columns:minmax(0, 42%) minmax(0, 58%) !important;
    gap:18px !important;
    align-items:start !important;
  }
  .section-add-face.face-mode-empty .form-inline-action > div{
    min-width:0 !important;
  }
  .section-add-face.face-mode-empty #faceQtyField{
    grid-column:1 / 2 !important;
    grid-row:2 !important;
    width:100% !important;
    min-width:0 !important;
  }
  .section-add-face.face-mode-empty .face-ref-col{
    grid-column:2 / 3 !important;
    grid-row:1 / span 2 !important;
    min-width:0 !important;
    width:100% !important;
    max-width:none !important;
  }
  .section-add-face.face-mode-empty .face-ref-col .datalist-input-wrap,
  .section-add-face.face-mode-empty .face-ref-col input,
  .section-add-face.face-mode-empty .face-ref-col .face-preview-under,
  .section-add-face.face-mode-empty .face-ref-col .face-preview-under img{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }
}


/* Face finition: contraste amélioré + état déjà pris plus visible */
.section-add-face.face-mode-linked .face-targets-clean .face-type-opt,
.section-add-face.face-mode-linked .face-targets-clean .face-type-opt span{
  color:#111 !important;
}
.section-add-face.face-mode-linked .face-targets-clean .face-type-opt{
  border-color:rgba(36,87,61,.30);
  font-weight:800;
}
.section-add-face.face-mode-linked .face-targets-clean .face-type-opt:hover{
  border-color:rgba(121,193,66,.68);
  background:rgba(121,193,66,.08);
}
.section-add-face.face-mode-linked .face-targets-clean .face-type-opt.active,
.section-add-face.face-mode-linked .face-targets-clean .face-type-opt:has(> input[type="checkbox"]:checked){
  border-color:rgba(121,193,66,1);
  background:rgba(121,193,66,.18);
  box-shadow:0 0 0 1px rgba(121,193,66,.18);
}
.section-add-face.face-mode-linked .face-targets-clean .face-type-opt input[type="checkbox"]{
  border-color:rgba(36,87,61,.42);
}
.section-add-face.face-mode-linked .face-targets-clean .face-type-opt.is-disabled{
  position:relative;
  border-color:#b8b8b8 !important;
  background:#f1f1f1 !important;
  color:#686868 !important;
  cursor:not-allowed !important;
  opacity:1 !important;
  padding-right:78px;
}
.section-add-face.face-mode-linked .face-targets-clean .face-type-opt.is-disabled span{
  color:#686868 !important;
}
.section-add-face.face-mode-linked .face-targets-clean .face-type-opt.is-disabled::after{
  content:"Déjà choisi";
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  font-size:11px;
  line-height:1;
  font-weight:800;
  color:#7a7a7a;
  background:#e4e4e4;
  border:1px solid #cfcfcf;
  border-radius:999px;
  padding:4px 8px;
}
.section-add-face.face-mode-linked .face-targets-clean .face-type-opt.is-disabled input[type="checkbox"]{
  border-color:#a9a9a9 !important;
  background:#fff !important;
  pointer-events:none;
}
.section-add-face.face-mode-linked .face-targets-clean .face-type-opt.is-disabled input[type="checkbox"]::after{
  opacity:0 !important;
}


.orders-head{flex-wrap:wrap}
.orders-head-sub{width:100%;color:var(--muted);font-size:14px;line-height:1.45}
.orders-details-full{padding:16px 16px 18px}
.orders-full-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap;margin-bottom:14px}
.orders-full-chips{display:flex;gap:8px;flex-wrap:wrap}
.orders-full-section{margin:14px 0 0;border:1px solid #e5e7eb;border-radius:16px;background:#fff;overflow:hidden}
.orders-section-title{padding:12px 14px;background:#f8fafc;border-bottom:1px solid #e5e7eb;color:#3f2a1f;font-weight:900}
.orders-meta-grid--wide{grid-template-columns:repeat(4,minmax(0,1fr))}
.orders-item-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px}
.orders-item-card{border:1px solid #e5e7eb;border-radius:14px;background:#fff;padding:12px;box-shadow:0 6px 16px rgba(0,0,0,.04)}
.orders-item-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:10px}
.orders-item-head h5{margin:0;color:#2f241f;font-size:15px}
.orders-item-sub{color:#6b7280;font-size:13px;line-height:1.45}
.orders-item-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
.order-detail-pair{padding:8px 10px;border:1px solid #eef2f7;border-radius:10px;background:#fafafa;display:flex;flex-direction:column;gap:4px}
.order-detail-pair .k{font-size:12px;color:#6b7280;font-weight:700}
.order-detail-pair .v{font-size:14px;color:#111827;font-weight:600;word-break:break-word}
.meta-badge-holder .v{font-weight:400}
.meta-badge-holder .orders-status{margin-top:2px}
.meta-note{grid-column:1 / -1}
.orders-empty-block{padding:14px;color:#6b7280}
.orders-schema-card{display:flex;gap:14px;align-items:flex-start;padding:14px}
.orders-schema-card img{width:220px;max-width:100%;height:auto;border-radius:12px;border:1px solid rgba(0,0,0,.12);background:#fff}
.orders-note-block{margin:12px;padding:12px 14px;border:1px solid #eef2f7;border-radius:12px;background:#fafafa}
.orders-note-block .k{font-size:12px;color:#6b7280;font-weight:700;margin-bottom:6px}
.orders-note-block .v{font-size:14px;color:#111827;font-weight:600;line-height:1.5;white-space:pre-wrap;word-break:break-word}
@media (max-width:980px){
  .orders-meta-grid--wide{grid-template-columns:repeat(2,minmax(0,1fr))}
  .orders-item-cards{grid-template-columns:1fr}
}
@media (max-width:720px){
  .orders-details-full{padding:12px}
  .orders-item-grid{grid-template-columns:1fr}
  .orders-meta-grid--wide,.orders-meta-grid{grid-template-columns:1fr}
  .orders-schema-card{flex-direction:column}
}


.orders-full-face-summary{margin:0 0 14px 0;padding:12px 14px;border:1px solid rgba(0,0,0,.08);border-radius:12px;background:#fafafa;line-height:1.45}



/* Fix production: aperçu coté de finition caché tant qu'aucune référence n'est choisie */
#facePreview2{display:none !important;min-height:0 !important;padding:0 !important;border:none !important;background:transparent !important;}
#facePreview2.is-visible{display:block !important;min-height:150px !important;padding:6px !important;border:1px solid rgba(76,117,96,.14) !important;background:#fafafa !important;}
#facePreview2:not(.is-visible) img{display:none !important;}

/* ===== Mobile responsiveness hardening (April 2026) ===== */
img, canvas, svg, model-viewer{max-width:100%}

@media (max-width: 900px){
  html, body{overflow-x:hidden}
  main{padding-left:12px;padding-right:12px}

  .radio-group{flex-wrap:wrap}
  .radio-pill{white-space:normal}

  .section-add-caisse > div[style*="display:flex"][style*="gap:16px"]{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:12px !important;
  }
  .section-add-caisse > div[style*="display:flex"][style*="gap:16px"] > div{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    flex:1 1 auto !important;
  }

  .section-add-caisse [style*="min-width:260px"],
  .section-add-face [style*="min-width:260px"],
  .face-ref-col,
  .tiroir-face-block,
  .tiroir-face-color,
  .tiroir-3d-visual,
  #tiroirFacePreview,
  #tiroirFaceSelectWrap,
  #facePreview2,
  .orders-schema,
  .orders-schema img{
    min-width:0 !important;
    max-width:100% !important;
    width:100% !important;
  }

  .section-add-face .form-inline-action,
  .section-add-rayons .form-inline-action,
  .section-add-tiroir .form-inline-action,
  .section-add-face .face-inline-top,
  .section-add-rayons .rayon-row,
  .section-add-tiroir .tiroir-face-grid{
    grid-template-columns:1fr !important;
    display:grid !important;
  }

  .section-add-face .face-bottom-row,
  .section-add-caisse .caisse-bottom-row,
  .section-add-rayons .rayon-bottom-row,
  .section-add-tiroir .tiroir-bottom-row{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    gap:12px !important;
    flex-wrap:nowrap !important;
  }

  .section-add-face .face-bottom-row .rayon-bottom-item,
  .section-add-caisse .caisse-bottom-row .rayon-bottom-item,
  .section-add-rayons .rayon-bottom-item,
  .section-add-tiroir .tiroir-bottom-item{
    width:100% !important;
    align-items:stretch !important;
    justify-self:stretch !important;
  }

  .section-add-face .face-bottom-row button,
  .section-add-caisse .caisse-bottom-row button,
  .section-add-rayons button,
  .section-add-tiroir button,
  .order-actions button,
  .btn-commander{
    width:100% !important;
    max-width:none !important;
  }

  .section-add-face .face-price-box,
  .section-add-caisse .rayon-price-box,
  .section-add-rayons .rayon-price-box,
  .section-add-tiroir .tiroir-price-box,
  .recap-totals-box{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    margin-left:0 !important;
  }

  .section-add-face .face-type-clean,
  .section-add-face .face-targets-clean,
  .tiroir-poignees-radios,
  .poignee-modeles-grid{
    grid-template-columns:1fr !important;
  }

  .poignees-pied-row,
  .orders-head,
  .orders-schema,
  .admin-top,
  .admin-actions{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
  }

  .admin-actions .search,
  .admin-actions button,
  .orders-head > *{
    width:100%;
    max-width:none;
  }

  .price-debug-box{
    overflow:auto;
  }
}

@media (max-width: 560px){
  .card.pad,
  .orders-card,
  .orders-details,
  .admin-wrap .card{
    padding:14px !important;
  }

  h1{font-size:22px}
  h2{font-size:17px}

  /* Garder 2 caisses par ligne sur mobile pour éviter une page trop longue */
  .section-cards-top .caisse-grid,
  #cat-cuisine.caisse-grid,
  #cat-divers.caisse-grid,
  #caisseConfigurator.caisse-grid,
  .caisse-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:10px !important;
  }

  .caisse-card{
    padding:10px !important;
  }

  .caisse-visual{
    height:165px !important;
  }

  .socle-selector .socle-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }

  .orders-table td,
  .orders-details-table tbody td,
  .admin-elements-table td,
  .admin-orders-table td{
    gap:10px !important;
  }

  .orders-table td::before,
  .orders-details-table tbody td::before,
  .admin-elements-table td::before,
  .admin-orders-table td::before{
    flex:0 0 38% !important;
    max-width:38% !important;
  }
}



/* Fix mobile: aucun encadrement parasite autour des champs tiroir */
.section-add-tiroir .form-inline-action > div{
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  background:transparent !important;
}
.section-add-tiroir .form-inline-action > div::before,
.section-add-tiroir .form-inline-action > div::after,
.section-add-tiroir .help-text::before,
.section-add-tiroir .help-text::after{
  content:none !important;
  display:none !important;
}

/* Unifier toutes les zones de prix avec le vert du site */
.section-add-tiroir .tiroir-price-box,
.section-add-rayons .rayon-price-box,
.section-add-caisse .rayon-price-box{
  border-color:rgba(121,193,66,.35) !important;
  background:rgba(121,193,66,.08) !important;
}
.section-add-tiroir .btn-add-tiroir{
  background:var(--green) !important;
}


/* Correctifs mobile finaux */
@media (max-width: 560px){
  html, body{overflow-x:hidden}
  main{padding:0 12px}
  .section-cards-top details > summary{margin-bottom:10px}
  .section-add-tiroir .form-inline-action,
  .section-add-rayons .form-inline-action,
  .section-add-face .face-bottom-row,
  .section-add-caisse .caisse-bottom-row{
    gap:12px !important;
  }
  .section-add-tiroir .form-inline-action .tiroir-price-box,
  .section-add-rayons .rayon-price-box,
  .section-add-face .face-price-box,
  .section-add-caisse .rayon-price-box{
    min-width:0 !important;
    width:auto !important;
  }
}


/* Fix final mobile: toujours 2 meubles par ligne dans les catégories. */
#caisseConfigurator{
  display:none !important;
}

@media (max-width: 767px){
  .caisse-categories #cat-cuisine,
  .caisse-categories #cat-divers,
  .section-cards-top details .caisse-grid,
  .section-cards-top .caisse-categories .caisse-grid{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:10px !important;
  }

  .caisse-categories #cat-cuisine > .caisse-card,
  .caisse-categories #cat-divers > .caisse-card,
  .section-cards-top details .caisse-grid > .caisse-card,
  .section-cards-top .caisse-categories .caisse-grid > .caisse-card{
    width:auto !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:0 !important;
  }
}

@media (max-width: 320px){
  .caisse-categories #cat-cuisine,
  .caisse-categories #cat-divers,
  .section-cards-top details .caisse-grid,
  .section-cards-top .caisse-categories .caisse-grid{
    grid-template-columns:1fr !important;
  }
}

/* ===== Mobile fix: face finition checkboxes ===== */
@media (max-width: 900px){
  .section-add-face.face-mode-linked .face-type-clean,
  .section-add-face.face-mode-linked .face-targets-clean{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:10px !important;
    align-items:stretch !important;
    width:100% !important;
  }

  .section-add-face.face-mode-linked .face-type-clean .face-type-opt.check-pill,
  .section-add-face.face-mode-linked .face-targets-clean .face-type-opt{
    display:grid !important;
    grid-template-columns:18px minmax(0,1fr) !important;
    align-items:center !important;
    gap:10px !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    min-height:56px !important;
    padding:10px 12px !important;
    border-radius:16px !important;
    white-space:normal !important;
    box-sizing:border-box !important;
  }

  .section-add-face.face-mode-linked .face-type-clean .face-type-opt.check-pill span,
  .section-add-face.face-mode-linked .face-targets-clean .face-type-opt span{
    display:block !important;
    min-width:0 !important;
    white-space:normal !important;
    overflow-wrap:break-word !important;
    line-height:1.2 !important;
  }

  .section-add-face.face-mode-linked .face-type-clean .face-type-opt.check-pill input[type="checkbox"],
  .section-add-face.face-mode-linked .face-targets-clean .face-type-opt input[type="checkbox"]{
    width:18px !important;
    height:18px !important;
    min-width:18px !important;
    max-width:18px !important;
    margin:0 !important;
    justify-self:start !important;
    align-self:center !important;
  }
}

@media (max-width: 380px){
  .section-add-face.face-mode-linked .face-type-clean,
  .section-add-face.face-mode-linked .face-targets-clean{
    grid-template-columns:1fr !important;
  }
}


/* ===== Mobile final fix: face finition layout ===== */
@media (max-width: 900px){
  .section-add-face.face-mode-linked .form-inline-action{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    gap:12px !important;
    align-items:start !important;
  }

  .section-add-face.face-mode-linked .form-inline-action > div{
    min-width:0 !important;
    width:100% !important;
  }

  .section-add-face.face-mode-linked .form-inline-action > div:first-child{
    grid-column:1 !important;
    grid-row:1 !important;
  }

  .section-add-face.face-mode-linked .face-ref-col{
    grid-column:2 !important;
    grid-row:1 !important;
    min-width:0 !important;
    width:100% !important;
    max-width:none !important;
  }

  .section-add-face.face-mode-linked .face-ref-col .datalist-input-wrap,
  .section-add-face.face-mode-linked .face-ref-col input,
  .section-add-face.face-mode-linked .face-ref-col .face-preview-under,
  .section-add-face.face-mode-linked .face-ref-col .face-preview-under img{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  .section-add-face.face-mode-linked #faceQtyField{
    grid-column:1 / -1 !important;
    grid-row:2 !important;
    width:100% !important;
    min-width:0 !important;
    display:block !important;
  }

  .section-add-face.face-mode-linked #faceQtyControls{
    width:100% !important;
    margin-bottom:12px !important;
  }

  .section-add-face.face-mode-linked .face-type-field,
  .section-add-face.face-mode-linked .face-targets-field{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin-top:0 !important;
  }

  .section-add-face.face-mode-linked .face-targets-field{
    margin-top:12px !important;
  }

  .section-add-face.face-mode-linked .face-type-clean,
  .section-add-face.face-mode-linked .face-targets-clean{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
    gap:12px !important;
    width:100% !important;
    align-items:stretch !important;
  }

  .section-add-face.face-mode-linked .face-type-clean .face-type-opt,
  .section-add-face.face-mode-linked .face-targets-clean .face-type-opt{
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    min-height:58px !important;
    padding:12px 14px !important;
    box-sizing:border-box !important;
    white-space:normal !important;
    justify-content:flex-start !important;
    border-radius:16px !important;
  }

  .section-add-face.face-mode-linked .face-type-clean .face-type-opt span,
  .section-add-face.face-mode-linked .face-targets-clean .face-type-opt span{
    display:block !important;
    min-width:0 !important;
    width:auto !important;
    white-space:normal !important;
    word-break:normal !important;
    overflow-wrap:anywhere !important;
    line-height:1.25 !important;
    text-align:left !important;
    font-size:14px !important;
    font-weight:700 !important;
  }

  .section-add-face.face-mode-linked .face-type-clean .face-type-opt input[type="checkbox"],
  .section-add-face.face-mode-linked .face-targets-clean .face-type-opt input[type="checkbox"]{
    flex:0 0 18px !important;
    width:18px !important;
    height:18px !important;
    min-width:18px !important;
    min-height:18px !important;
    margin:0 !important;
    align-self:center !important;
  }

  .section-add-face.face-mode-linked .face-type-clean .face-type-opt:has(input[type="checkbox"]:checked),
  .section-add-face.face-mode-linked .face-targets-clean .face-type-opt:has(input[type="checkbox"]:checked){
    background:rgba(121,193,66,.10) !important;
    border-color:rgba(121,193,66,.95) !important;
    box-shadow:0 0 0 2px rgba(121,193,66,.12) inset !important;
  }
}

@media (max-width: 340px){
  .section-add-face.face-mode-linked .form-inline-action{
    grid-template-columns:1fr !important;
  }
  .section-add-face.face-mode-linked .face-ref-col{
    grid-column:1 !important;
    grid-row:2 !important;
  }
  .section-add-face.face-mode-linked #faceQtyField{
    grid-row:3 !important;
  }
  .section-add-face.face-mode-linked .face-type-clean,
  .section-add-face.face-mode-linked .face-targets-clean{
    grid-template-columns:1fr !important;
  }
}

/* ===== Mobile fix: face reference preview full width ===== */
@media (max-width: 900px){
  .section-add-face.face-mode-linked .face-ref-col{
    overflow:visible !important;
  }
  .section-add-face.face-mode-linked .face-ref-col .face-preview-under{
    display:block !important;
    width:calc(200% + 12px) !important;
    max-width:none !important;
    min-width:0 !important;
    margin-left:calc(-100% - 12px) !important;
    margin-top:12px !important;
    box-sizing:border-box !important;
  }
  .section-add-face.face-mode-linked .face-ref-col .face-preview-under img{
    width:100% !important;
    max-width:none !important;
    display:block !important;
    height:auto !important;
    box-sizing:border-box !important;
  }
}

@media (max-width: 340px){
  .section-add-face.face-mode-linked .face-ref-col .face-preview-under{
    width:100% !important;
    margin-left:0 !important;
  }
}

/* ===== Mobile fix: face reference preview spans both columns ===== */
@media (max-width: 900px){
  .section-add-face.face-mode-linked .face-ref-col{
    overflow:visible !important;
  }
  .section-add-face.face-mode-linked .face-ref-col .face-preview-under{
    display:block !important;
    position:relative !important;
    left:calc(-100% - 12px) !important;
    width:calc(200% + 12px) !important;
    max-width:calc(200% + 12px) !important;
    min-width:0 !important;
    margin:12px 0 0 0 !important;
    box-sizing:border-box !important;
  }
  .section-add-face.face-mode-linked .face-ref-col .face-preview-under img{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    box-sizing:border-box !important;
  }
}

@media (max-width: 340px){
  .section-add-face.face-mode-linked .face-ref-col .face-preview-under{
    left:0 !important;
    width:100% !important;
    max-width:100% !important;
  }
}


/* ===== Final mobile fix: face reference preview spans both top columns only ===== */
@media (max-width: 900px){
  .section-add-face.face-mode-linked #faceQtyField{
    display:block !important;
  }
  .section-add-face.face-mode-linked #faceQtyField > .face-preview-under{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:12px 0 12px 0 !important;
    position:static !important;
    left:auto !important;
    box-sizing:border-box !important;
  }
  .section-add-face.face-mode-linked #faceQtyField > .face-preview-under img{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    box-sizing:border-box !important;
  }
  .section-add-face.face-mode-linked .face-ref-col > .face-preview-under{
    display:none !important;
  }
}
@media (min-width: 901px){
  .section-add-face.face-mode-linked .face-ref-col > .face-preview-under{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    margin-top:12px !important;
    position:static !important;
    left:auto !important;
  }
  .section-add-face.face-mode-linked #faceQtyField > .face-preview-under{
    display:none !important;
  }
}

/* Face preview: hard hide when empty or broken */
#facePreview2[hidden],
#facePreview2[aria-hidden="true"]{display:none !important;visibility:hidden !important;height:0 !important;min-height:0 !important;overflow:hidden !important;margin:0 !important;padding:0 !important;border:0 !important;background:transparent !important;}
#facePreviewImg2[hidden]{display:none !important;}


/* Mobile only: rayon color field full width, price and button below */
@media (max-width: 768px){
  .section-add-rayons .rayon-row-2{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
    align-items:stretch !important;
  }
  .section-add-rayons .rayon-row-2 > .rayon-field{
    width:100% !important;
    min-width:0 !important;
    grid-column:auto !important;
    justify-self:stretch !important;
  }
  .section-add-rayons .rayon-row-2 .rayon-inline-price,
  .section-add-rayons .rayon-row-2 .rayon-inline-button{
    grid-column:auto !important;
    justify-self:stretch !important;
  }
  .section-add-rayons .rayon-row-2 .rayon-bottom-label{
    text-align:left !important;
  }
  .section-add-rayons .rayon-row-2 .rayon-price-box,
  .section-add-rayons .rayon-row-2 button,
  .section-add-rayons .rayon-row-2 select{
    width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }
}


/* Fix demandé : supprimer l'encadrement vert parasite dans la section tiroir */
.section-add-tiroir input:focus,
.section-add-tiroir select:focus{
  box-shadow:none !important;
  border-color:rgba(31,35,40,.18) !important;
}
.section-add-tiroir .form-inline-action > div,
.section-add-tiroir .form-inline-action > div:focus-within{
  border:none !important;
  outline:none !important;
  box-shadow:none !important;
  background:transparent !important;
}


/* Fix alignement champ N° meuble parent dans la section rayons */
.section-add-rayons .rayon-row-1{
  align-items:start !important;
}
.section-add-rayons .rayon-row-1 > .rayon-field{
  align-self:start !important;
}


/* Récap panier : affichage du rabais comme configurateur */
.recap-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  line-height: 1.1;
}
.recap-price-final {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.recap-price-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.recap-price-before {
  text-decoration: line-through;
  opacity: 0.7;
  font-size: 13px;
  white-space: nowrap;
}
.recap-price-badge {
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .recap-price-final {
    font-size: 20px;
  }
  .recap-price-meta {
    font-size: 12px;
  }
  .recap-price-before,
  .recap-price-badge {
    font-size: 12px;
  }
}
