/* V8: Impression thermique GUISA'O Junior (80mm), styles isolés */
.thermal-print-open{border:1px solid #233c30;background:#233c30;color:#fff;padding:12px 16px;border-radius:12px;min-height:46px;font-size:15px;font-weight:650;display:inline-flex;align-items:center;gap:9px;cursor:pointer}
.thermal-print-open svg{width:18px;height:18px}
.thermal-modal[hidden]{display:none!important}
.thermal-modal{position:fixed;inset:0;z-index:5000;display:grid;place-items:center;padding:12px;font-family:inherit}
.thermal-backdrop{position:absolute;inset:0;background:rgba(13,25,19,.75);backdrop-filter:blur(8px)}
.thermal-panel{position:relative;background:#fcfaf4;color:#243c30;max-width:520px;width:100%;max-height:calc(100dvh - 24px);overflow-y:auto;border-radius:22px;box-shadow:0 24px 95px #06170b70;padding:clamp(19px,4vw,30px);overscroll-behavior:contain}
.thermal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.thermal-head h2{font:normal clamp(29px,6vw,41px)/1.08 Georgia,serif;margin:8px 0 6px}.thermal-head h2 em{font-style:italic}.thermal-close{font-size:30px;line-height:1;border-radius:50%;border:1px solid #bbb;background:transparent;color:#273f31;width:42px;height:42px;cursor:pointer;flex-shrink:0}
.thermal-intro,.thermal-status,.thermal-wifi,.thermal-privacy{font-size:15px;line-height:1.5}.thermal-intro{margin:8px 0 14px}
.thermal-field{display:flex;flex-direction:column;gap:5px;font-size:15px;font-weight:650;margin-bottom:12px}.thermal-field small{font-size:12px;color:#74786d;font-weight:400}.thermal-field input,.thermal-settings input,.thermal-settings select{color:#243c30;border:1px solid #bdb8a9;border-radius:10px;padding:11px 12px;font-size:16px;width:100%;background:white;min-height:44px}
.thermal-preview-box{background:#e6e3db;border-radius:13px;display:flex;flex-direction:column;align-items:center;padding:14px;gap:9px;max-height:36vh;overflow-y:auto}
#thermalTicketPreview{display:block;width:auto;max-width:100%;max-height:min(33vh,380px);height:auto;object-fit:contain;box-shadow:0 2px 15px #0002;background:#fff;image-rendering:auto}.thermal-paper-label{font-size:11px;color:#54544f;letter-spacing:.08em;font-weight:700}
.thermal-wifi{border-radius:10px;background:#e3ece7;padding:11px;color:#31523e;display:flex;gap:9px;align-items:flex-start;margin:14px 0}.thermal-wifi svg{width:16px;height:16px;flex-shrink:0;margin-top:2px}
.thermal-controls{display:grid;grid-template-columns:1fr;gap:9px}.thermal-primary,.thermal-secondary{min-height:50px;cursor:pointer;font-size:16px;font-weight:650;border-radius:11px;padding:11px 15px}.thermal-primary{background:#243d30;color:#fff;border:1px solid #243d30}.thermal-primary:disabled{opacity:.55;cursor:wait}.thermal-secondary{background:#fff;color:#243d30;border:1px solid #9dada0}
.thermal-status{margin:9px 0;color:#5b655d}.thermal-status[data-tone=error]{color:#a03823}.thermal-status[data-tone=ok]{color:#28633c}
.thermal-settings{margin:12px 0;border-top:1px solid #d4d0c5;padding-top:10px}.thermal-settings summary{font-size:13px;color:#4b5b50;cursor:pointer;min-height:38px;padding:8px 0}.thermal-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.thermal-settings label{display:flex;flex-direction:column;font-size:12px;gap:5px}.thermal-settings p,.thermal-privacy{color:#697168;font-size:12px;line-height:1.5}
body.thermal-open{overflow:hidden}
@media(max-width:600px){.thermal-modal{padding:0;place-items:end center}.thermal-panel{max-height:92dvh;border-radius:22px 22px 0 0;padding:22px 18px calc(18px + env(safe-area-inset-bottom))}.thermal-preview-box{max-height:38vh}.thermal-settings-grid{grid-template-columns:1fr}.thermal-controls{gap:8px}}
@media(prefers-reduced-motion:no-preference){.thermal-panel{animation:thermal-in .24s ease-out}@keyframes thermal-in{from{transform:translateY(18px);opacity:.7}to{transform:translateY(0);opacity:1}}}

.thermal-fallback{margin:13px 0;padding:10px 0;border-top:1px solid #d4d0c5}.thermal-fallback summary{color:#465e50;font-size:14px;font-weight:600;cursor:pointer;min-height:42px;display:flex;align-items:center}.thermal-fallback p{color:#667064;font-size:14px;margin:6px 0 11px;line-height:1.5}.thermal-fallback .thermal-secondary{width:100%}
