[data-shop-brand]{display:flex;align-items:center;gap:12px;max-width:100%;min-width:0}
[data-shop-brand] img{object-fit:contain;width:auto;max-width:150px;max-height:70px;background:transparent;border-radius:0;padding:0}
[data-shop-brand] strong{font-size:18px;overflow-wrap:anywhere}
[data-shop-brand] small{display:block;font-size:12px;font-weight:normal}
.desktop-taskbar-brand[data-shop-brand] img{max-height:30px;max-width:90px}
.shop-brand-text[hidden]{display:none!important}
#branding-editor .branding-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
#branding-editor label{display:block;margin:12px 0 6px;font-weight:600}
#branding-editor input:not([type=checkbox]),#branding-editor textarea,#branding-editor select{box-sizing:border-box;width:100%;max-width:100%}
#branding-editor textarea{min-height:110px}
#branding-editor input:not([type=checkbox]),#branding-editor select,#branding-editor textarea{background:var(--bg,#111827);color:var(--text,#e6edf5);border:1px solid var(--border,#526070);border-radius:8px;padding:10px;font:inherit}
#branding-editor button{border:1px solid var(--border,#526070);border-radius:8px;padding:10px 14px;background:var(--panel,#172333);color:var(--text,#e6edf5);cursor:pointer;font:inherit}
#branding-editor button[type=submit]{background:var(--shop-accent,#087f8c);color:white}
#branding-editor button:disabled{opacity:.55;cursor:wait}
#branding-editor input[type=color]{height:44px;padding:4px}
#branding-editor .branding-preview{background:#fff;color:#17212b;border:1px solid #aaa;border-top:4px solid var(--shop-accent,#087f8c);padding:24px;overflow-wrap:anywhere;border-radius:8px}
#branding-editor .branding-preview pre{font:14px/1.6 Arial,sans-serif;white-space:pre-wrap}
#branding-editor .branding-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
#branding-editor .branding-preview img{max-width:180px;max-height:90px;object-fit:contain}
#branding-editor .branding-hint{font-size:13px;overflow-wrap:anywhere}
@media(max-width:700px){#branding-editor .branding-grid{grid-template-columns:1fr}}

.portal-product{font:12px/1.5 system-ui,sans-serif;text-align:center;color:#526176;margin:24px 12px}
.rich-editor-box{border:1px solid var(--stroke,#526070);border-radius:9px;overflow:hidden;margin:8px 0 16px}
.rich-toolbar{display:flex;flex-wrap:wrap;gap:5px;padding:8px;background:var(--surface2,#edf1f6);border-bottom:1px solid var(--stroke,#526070)}
#branding-editor .rich-toolbar button{padding:7px 9px;min-height:36px;font-size:12px}
#branding-editor .rich-toolbar select{width:auto;max-width:150px;padding:6px;font-size:12px}
#branding-editor .rich-editor{min-height:170px;max-height:420px;overflow:auto;padding:16px;outline-offset:-3px;background:white;color:#17212b;font:14px/1.6 Arial,sans-serif;overflow-wrap:anywhere}
#branding-editor .rich-editor:focus{outline:2px solid var(--brand,#006b80)}
#branding-editor .rich-editor :is(p,h3,span,li){color:inherit}
#branding-editor .rich-toggle{font-size:12px;margin:8px 0}
@media(max-width:700px){#branding-editor .rich-toolbar button{min-height:42px}.rich-editor{max-height:300px}}

#branding-editor .branding-preview img{background-color:transparent;background-image:conic-gradient(#b9c0c844 25%,transparent 0 50%,#b9c0c844 0 75%,transparent 0);background-size:16px 16px}
