.kt-wysiwyg{border:1px solid var(--border,#cbd5e1);border-radius:9px;overflow:visible;margin-top:6px;width:100%;max-width:100%}
.kt-wysiwyg-toolbar{display:flex;flex-wrap:wrap;gap:5px;padding:9px;background:var(--panel,#eef3f7);border-bottom:1px solid var(--border,#cbd5e1);align-items:center}
.kt-wysiwyg-toolbar button,.kt-wysiwyg-toolbar select{width:auto!important;min-width:32px!important;margin:0!important;padding:6px 9px!important;font-size:13px!important;line-height:1.35!important;cursor:pointer}
.kt-wysiwyg-surface{min-height:190px;max-height:70vh;overflow:auto;padding:16px;background:var(--surface,#fff);color:var(--text,#182234);line-height:1.6;overflow-wrap:anywhere}
.kt-wysiwyg-surface:focus{outline:2px solid var(--accent,#2475bd);outline-offset:-2px}
.kt-rich-public table,.kt-legal-render table{border-collapse:collapse;width:100%;margin:12px 0;max-width:100%;font-size:inherit}
.kt-rich-public th,.kt-rich-public td,.kt-legal-render th,.kt-legal-render td{border:1px solid var(--border,#bdc7d3);padding:8px 12px;text-align:left;vertical-align:top;min-width:42px}
.kt-rich-public th,.kt-legal-render th{background:rgba(100,130,160,.12);font-weight:650}
.kt-rich-public ul,.kt-rich-public ol{margin:.6em 0 1em;padding-left:2em;list-style-position:outside}
.kt-rich-public ul{list-style-type:disc}.kt-rich-public ol{list-style-type:decimal}
.kt-rich-public p{margin:.5em 0}.kt-rich-public a{text-decoration:underline}
.kt-rich-public blockquote{border-left:3px solid var(--accent,#2475bd);padding:.3em 1em;margin:1em 0}
.kt-rich-public h2,.kt-rich-public h3,.kt-rich-public h4{margin:1em 0 .5em}

.kt-c-rich table{border-collapse:collapse;width:100%;margin:12px 0}.kt-c-rich td,.kt-c-rich th{border:1px solid #a6b6c9;padding:8px 10px;text-align:left}.kt-c-rich th{background:rgba(120,140,160,.15)}

/* 0.31.29: Labels are 600-weight in the general admin stylesheet; rich text is not a label. */
body.kt-admin-mode .kt-wysiwyg .kt-wysiwyg-surface,
body.kt-frontedit-frame .kt-wysiwyg .kt-wysiwyg-surface{font-weight:400!important;font-style:normal;text-decoration:none;text-align:left}
body.kt-admin-mode .kt-wysiwyg-surface strong, body.kt-admin-mode .kt-wysiwyg-surface b,
body.kt-frontedit-frame .kt-wysiwyg-surface strong, body.kt-frontedit-frame .kt-wysiwyg-surface b{font-weight:700}
body.kt-admin-mode .kt-wysiwyg-surface em, body.kt-admin-mode .kt-wysiwyg-surface i,
body.kt-frontedit-frame .kt-wysiwyg-surface em, body.kt-frontedit-frame .kt-wysiwyg-surface i{font-style:italic}
body.kt-admin-mode .kt-wysiwyg-surface u,body.kt-frontedit-frame .kt-wysiwyg-surface u{text-decoration:underline}
/* Global textarea { display:block } must never reveal the HTML transport field. */
textarea.kt-wysiwyg-input[hidden],textarea.kt-wysiwyg-input[data-kt-editor-ready="1"]{display:none!important;visibility:hidden!important}
.kt-wysiwyg-toolbar{font-weight:400}


/* V0.31.31 – the formatting toolbar stays within its editor while scrolling
   the page. The editor wrapper must not clip sticky descendants. */
.kt-wysiwyg-toolbar{
  position:sticky;
  top:8px;
  z-index:8;
  border-radius:8px 8px 0 0;
  box-shadow:0 3px 8px rgba(15,30,50,.09);
}
body.kt-admin-mode .kt-product-form .kt-wysiwyg-toolbar,
body.kt-frontedit-frame .kt-product-form .kt-wysiwyg-toolbar{
  top:116px; /* above: sticky product tabs and save bar */
}
@media (max-width:760px){
  body.kt-admin-mode .kt-product-form .kt-wysiwyg-toolbar,
  body.kt-frontedit-frame .kt-product-form .kt-wysiwyg-toolbar{top:116px}
}
.kt-wysiwyg-surface{border-radius:0 0 8px 8px}
