/* Shared editor shell: document typography is isolated inside the iframe. */
[hidden]{display:none!important}.description-editor{border:1px solid #c6d4de;border-radius:8px;overflow:hidden;margin:0 0 24px;background:#fff}.editor-heading{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:14px 16px;font-size:.9rem}.editor-expand{font-size:.78rem;color:#006cb8;background:#fff;border:1px solid #dce5eb;border-radius:4px;padding:5px 9px}.editor-tabs{display:flex;padding:0 14px;gap:4px;border-bottom:1px solid #dce5eb;background:#f6f9fb}.editor-tabs button{background:transparent;color:#546c7a;border:0;border-bottom:3px solid transparent;padding:12px 24px;font-size:.9rem;font-weight:650}.editor-tabs button[aria-selected=true]{background:#fff;color:#006cb8;border-bottom-color:#006cb8}.editor-toolbar{background:#f5f8fa;border-bottom:1px solid #dce5eb;padding:8px;display:grid;gap:6px}.editor-tools{display:flex;flex-wrap:wrap;gap:4px;align-items:center}.editor-tools button{background:#fff;border:1px solid #dce5eb;border-radius:4px;color:#243f50;min-width:32px;min-height:32px;padding:5px 8px;font-size:.78rem;line-height:1.3}.editor-tools button:hover,.editor-tools button[aria-pressed=true]{background:#dcecf8;border-color:#006cb8;color:#005896}.editor-tools select{width:auto;max-width:165px;padding:5px 6px;margin:0;min-height:32px;font-size:.78rem}.editor-tools .color-tool{margin:0;display:flex;align-items:center;gap:3px;font-size:.85rem;padding:3px;border:1px solid #dce5eb;border-radius:4px;background:#fff}.editor-tools input[type=color]{width:23px;height:23px;padding:0;margin:0;border:0}.tool-divider{height:23px;width:1px;background:#c6d4de;margin:0 3px}.rich-frame{display:block;border:0;width:100%;height:600px;background:#fff}.html-source{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:14px;line-height:1.65;min-height:620px;width:100%;tab-size:2;border:0!important;border-radius:0!important;margin:0!important;padding:18px!important;resize:vertical}.editor-status,.editor-hint{font-size:.78rem;color:#586c7b;padding:10px 14px;margin:0;border-top:1px solid #dce5eb;background:#fafcfd}.editor-status.error{color:#a0172a;background:#fff0f1}.editor-dialog{width:min(470px,calc(100% - 30px));max-height:90vh;overflow:auto;border:1px solid #dce5eb;border-radius:10px;padding:22px;color:#183447;box-shadow:0 20px 80px #17344740}.editor-dialog::backdrop{background:#0d273a88}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.dialog-heading h3{margin:0}.dialog-heading button{background:transparent;border:0;font-size:26px;color:#586c7b}.dialog-fields label{margin-bottom:14px}.dialog-fields .help{margin:6px 0;font-size:.8rem}.dialog-actions{display:flex;justify-content:flex-end;gap:10px}.dialog-error{font-size:.85rem;color:#a0172a}.description-editor.expanded{position:fixed;inset:15px;z-index:80;margin:0;overflow:auto;box-shadow:0 0 0 20px #0d273a80}.description-editor.expanded .rich-frame{height:calc(100vh - 310px);min-height:300px}.description-editor.expanded .html-source{height:calc(100vh - 170px)}.product-document{display:block;width:100%;height:640px;border:0;background:white}.product-article{min-width:0}.product-info .product-actions{min-width:0}.product-info dd{overflow-wrap:anywhere}.description-editor:focus-within{border-color:#80b4da}
@media(max-width:760px){.editor-tools select{max-width:145px}.rich-frame{height:500px}.editor-heading{padding:12px}.description-editor.expanded{inset:5px}.editor-tools button{min-height:36px}.editor-tools{gap:5px}.editor-dialog{padding:18px}}
/* PDF description: the same viewer is used for local preview and published documents. */
.pdf-upload-fields{padding:20px}.pdf-upload-fields>p{font-size:.9rem;color:#546c7a}.pdf-upload-fields label{margin-bottom:18px}.pdf-viewer{border:1px solid #dce5eb;border-radius:9px;overflow:hidden;background:#e9eff4;min-width:0}.pdf-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;background:#f6f9fb;border-bottom:1px solid #dce5eb}.pdf-caption{font-size:.85rem;font-weight:650;overflow-wrap:anywhere;min-width:0}.pdf-controls{display:flex;align-items:center;flex-wrap:wrap;gap:7px;font-size:.8rem}.pdf-controls button{padding:6px 10px;min-height:34px;border:1px solid #cbdbe6;border-radius:4px;background:white;color:#006cb8}.pdf-controls label{display:flex;align-items:center;gap:7px;margin:0;font-size:.8rem}.pdf-controls input{width:58px;padding:5px;margin:0;min-height:32px}.pdf-canvas-wrap{overflow:auto;padding:16px;max-height:85vh;min-width:0}.pdf-canvas-wrap canvas{display:block;margin:auto;background:#fff;box-shadow:0 3px 18px #14334a26}.pdf-status{padding:10px 16px;margin:0;color:#536b7b;font-size:.8rem;background:#f6f9fb}.pdf-status.error{color:#a0172a}.pdf-fallback{padding:12px 16px;display:flex;gap:15px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:#fff;border-top:1px solid #dce5eb;font-size:.78rem;color:#536b7b}.pdf-product-title{font-size:1.8rem;margin:0 0 22px}.description-editor .pdf-viewer{border-width:1px 0 0;border-radius:0}.description-editor.expanded #panel-pdf{max-width:1200px;margin:auto}.description-editor #panel-pdf .pdf-canvas-wrap{max-height:640px}
@media(max-width:600px){.pdf-upload-fields{padding:15px}.pdf-bar{padding:10px}.pdf-controls{gap:5px}.pdf-controls button{padding:5px 8px}.pdf-canvas-wrap{padding:8px}.pdf-fallback{padding:12px}.editor-tabs{padding:0 10px}.editor-tabs button{padding:12px 18px}.pdf-product-title{font-size:1.5rem}}

/* v1.4: show the rendered page at its natural height without an inner scrollbar. */
.pdf-canvas-wrap{overflow:visible;max-height:none}
.description-editor #panel-pdf .pdf-canvas-wrap{max-height:none}
.pdf-viewer:fullscreen,.pdf-viewer.pdf-fullscreen-fallback{background:#e9eff4;width:100vw;height:100vh;overflow:auto;padding:18px;z-index:100}
.pdf-viewer:fullscreen .pdf-canvas-wrap,.pdf-viewer.pdf-fullscreen-fallback .pdf-canvas-wrap{max-height:none;overflow:visible}
.file-current{display:flex;align-items:center;gap:8px;margin:8px 0;min-width:0}
.file-current[hidden]{display:none}
.file-current .upload-preview{margin:0;max-width:210px}
.file-remove{width:30px;height:30px;border:1px solid #f0b8be;border-radius:50%;background:#fff;color:#c91022;font-size:21px;line-height:1;cursor:pointer}
.file-remove:hover{background:#fff0f1}

.pdf-navigation,.pdf-zoom{display:flex;align-items:center;gap:5px;flex-wrap:nowrap}
.product-detail .pdf-viewer[data-pdf-state="ready"] .pdf-status {
  display: none;
}