.demo-editor { --demo-gold: #d8bf94; --demo-bg: #151515; --demo-line: #3c3a35; color: #f5f2eb; font: 400 14px/1.6 Arial, 'Microsoft YaHei', sans-serif; }
.demo-editor *, .demo-editor *::before, .demo-editor *::after { box-sizing: border-box; }
.demo-editor [hidden], [data-demo-section][hidden], .ui-site :is(#header, #footer)[hidden] { display: none !important; }
.demo-editor :is(button, input, select, textarea) { font: inherit; color: inherit; letter-spacing: 0; }
.demo-editor button, .demo-editor .demo-file-button { min-height: 42px; padding: 8px 12px; border: 1px solid var(--demo-line); border-radius: 5px; background: #242320; color: #eeeae2; cursor: pointer; line-height: 1.5; text-transform: none; text-align: center; }
.demo-editor button:hover, .demo-editor .demo-file-button:hover { border-color: var(--demo-gold); background: #302c25; }
.demo-editor button:disabled { opacity: .4; cursor: default; }
.demo-editor :is(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--demo-gold); outline-offset: 3px; }
.demo-editor :is(input:not([type='checkbox']):not([type='file']), select, textarea) { width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 10px 12px; border: 1px solid var(--demo-line); border-radius: 4px; color: #f5f2eb; background: #0d0d0d; box-shadow: none; }
.demo-editor textarea { display: block; resize: vertical; line-height: 1.7; }
.demo-editor select { appearance: none; padding-inline-end: 36px; background: #0d0d0d url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14"%3E%3Cpath d="m3 5 4 4 4-4" fill="none" stroke="%23d8bf94" stroke-width="1.3"/%3E%3C/svg%3E') right 12px center / 14px no-repeat; }
.demo-editor[dir='rtl'] select { background-position: left 12px center; }
.demo-editor input[type='checkbox'] { width: 17px; height: 17px; flex: none; margin: 0; accent-color: var(--demo-gold); }
.demo-editor .demo-primary { background: var(--demo-gold); color: #17140e; border-color: var(--demo-gold); font-weight: 600; }
.demo-editor .demo-primary:hover { background: #ead6b4; }
.demo-editor .demo-danger { border-color: #754c43; color: #ffc0af; background: transparent; }
.demo-editor .demo-text-button { border: 0; background: none; padding-inline: 0; color: var(--demo-gold); }
.demo-editor .demo-launch { position: fixed; inset-inline-start: 20px; bottom: 20px; z-index: 2000; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid #756750; border-radius: 24px; box-shadow: 0 4px 24px #0008; background: #171612ee; color: #e8d4b0; }
body.ui-site { padding-bottom: 76px; }
.demo-editor .demo-toolbar { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 2000; display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; max-width: calc(100% - 32px); margin-inline: auto; padding: 8px; border: 1px solid #5e5342; border-radius: 10px; background: #171613f5; box-shadow: 0 6px 36px #000a; }
.demo-toolbar nav { display: flex; gap: 4px; }
.demo-toolbar button { white-space: nowrap; border-color: transparent; background: transparent; }
.demo-toolbar button[aria-current='true'], .demo-toolbar button[aria-pressed='true'] { color: var(--demo-gold); border-color: #6c5d43; background: #29251f; }
.demo-toolbar .demo-preview { border-color: #6c5d43; color: var(--demo-gold); }
.demo-editing .ui-floating-actions { visibility: hidden; }
.demo-editor .demo-drawer { position: fixed; z-index: 1999; inset-block: 14px 92px; inset-inline-end: 14px; display: flex; flex-direction: column; width: 430px; max-width: calc(100vw - 28px); margin: 0; padding: 0; border: 1px solid #574e40; border-radius: 10px; background: var(--demo-bg); box-shadow: 0 14px 60px #000b; }
.demo-drawer-head { display: flex; align-items: center; justify-content: space-between; flex: none; gap: 12px; min-height: 68px; padding: 12px 18px; border-bottom: 1px solid var(--demo-line); }
.demo-editor .demo-drawer-head h2 { margin: 0; padding: 0; color: #eee7d9; font: 500 18px/1.4 Arial, 'Microsoft YaHei', sans-serif; overflow-wrap: anywhere; }
.demo-drawer-head button { flex: none; width: 42px; font-size: 24px; border: 0; background: transparent; }
.demo-drawer-body { min-height: 0; flex: 1; overflow: auto; overscroll-behavior: contain; padding: 18px; scrollbar-color: #736349 #151515; }
.demo-editor p { margin: 0 0 16px; font: inherit; color: inherit; }
.demo-editor .demo-help { margin-block: 8px 18px; color: #b5afa4; font-size: 14px; line-height: 1.7; }
.demo-field { display: block; margin-block: 0 18px; }
.demo-field > span, .demo-image-field label > span:first-child { display: block; margin-bottom: 7px; color: #d9d2c6; }
.demo-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo-editor fieldset { min-width: 0; margin: 20px 0; padding: 16px 0; border: 0; border-top: 1px solid var(--demo-line); }
.demo-editor legend { padding-inline-end: 10px; color: #d9c39f; font-size: 14px; }
.demo-check { display: flex; align-items: center; gap: 10px; margin: 10px 0; color: #e1dcd3; overflow-wrap: anywhere; }
.demo-form-actions { position: sticky; bottom: -18px; z-index: 2; padding-block: 14px; background: linear-gradient(transparent, #151515 16%); margin-top: 12px; }
.demo-form-actions .demo-primary { width: 100%; }
.demo-image-field { margin-block: 18px 24px; }
.demo-image-field label { display: block; position: relative; cursor: pointer; }
.demo-image-field img { display: block; width: 100%; height: 180px; object-fit: contain; background: repeating-conic-gradient(#242424 0 25%, #181818 0 50%) 0 / 20px 20px; border: 1px solid var(--demo-line); border-radius: 5px; }
.demo-upload-label { position: absolute; bottom: 8px; inset-inline-end: 8px; padding: 6px 12px; border-radius: 4px; background: #171612ee; color: #e8d4b0; border: 1px solid #6c5d43; }
.demo-image-field input[type='file'] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.demo-image-field label:focus-within { outline: 2px solid var(--demo-gold); outline-offset: 3px; }
.demo-file-button { position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; margin-block: 10px; }
.demo-file-button input[type='file'] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.demo-file-button:focus-within { outline: 2px solid var(--demo-gold); outline-offset: 3px; }
.demo-list-tools { position: sticky; top: -18px; z-index: 1; display: grid; gap: 12px; padding-block: 0 16px; background: var(--demo-bg); }
.demo-item { display: flex; align-items: center; gap: 10px; min-height: 88px; padding-block: 12px; border-bottom: 1px solid var(--demo-line); }
.demo-item img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.demo-editor .demo-item-name { flex: 1; min-width: 0; padding: 8px 0; border: 0; background: none; color: #eee7d9; text-align: start; overflow-wrap: anywhere; }
.demo-editor .demo-open-link { flex: none; padding: 8px; color: var(--demo-gold); font-size: 14px; line-height: 1.4; max-width: 80px; text-decoration: none; }
.demo-gallery { display: grid; gap: 8px; }
.demo-gallery-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 7px; background: #1e1d1a; border-radius: 5px; }
.demo-gallery-row img { width: 70px; height: 70px; object-fit: contain; }
.demo-gallery-row > div, .demo-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.demo-gallery-row button, .demo-row-actions button { min-width: 38px; min-height: 38px; padding: 6px 8px; }
.demo-variant { display: grid; grid-template-columns: 1fr 84px 1.2fr; align-items: center; gap: 8px; margin-bottom: 8px; }
.demo-member-list { max-height: 420px; overflow: auto; overscroll-behavior: contain; }
.demo-member { display: flex; align-items: center; gap: 8px; justify-content: space-between; border-bottom: 1px solid #302e29; }
.demo-member .demo-check { flex: 1; }
.demo-member > div { display: flex; gap: 3px; }
.demo-member button { font-size: 13px; padding-inline: 6px; }
.demo-editor .demo-current-page { font-size: 14px; color: #a49c8f; overflow-wrap: anywhere; }
.demo-section-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; justify-content: space-between; min-height: 70px; padding-block: 10px; border-bottom: 1px solid var(--demo-line); }
.demo-section-row > .demo-item-name { flex-basis: 130px; }
.demo-section-types { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-editor .demo-slide { padding: 14px; border: 1px solid var(--demo-line); border-radius: 6px; }
.demo-file-actions { display: flex; flex-direction: column; gap: 14px; margin-block: 24px; }
.demo-file-actions .demo-file-button { margin: 0; }
.demo-editor .demo-error { flex: none; max-height: 130px; overflow: auto; margin: 0; padding: 14px 18px; border-top: 1px solid #745046; background: #35221d; color: #ffd4c7; }
.demo-editor .demo-confirm { position: fixed; inset: 0; width: min(430px, calc(100% - 32px)); margin: auto; padding: 24px; border: 1px solid #807050; border-radius: 8px; background: #171613; color: #f5f2eb; font: inherit; }
.demo-confirm::backdrop { background: #0009; backdrop-filter: blur(3px); }
.demo-confirm form > div { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.demo-editor .demo-status, .demo-editor .demo-pick-hint { position: fixed; z-index: 2001; inset-inline: 16px; bottom: 94px; width: fit-content; max-width: calc(100% - 32px); margin: auto; padding: 10px 16px; border-radius: 6px; background: #e1ca9f; color: #17140e; box-shadow: 0 6px 24px #0008; }
.demo-picking #container :is([data-demo-text], img):hover { outline: 2px solid #e8c785; outline-offset: 4px; cursor: crosshair; }
.demo-load-error { position: fixed; inset: 24px 24px auto; z-index: 9999; padding: 20px; background: #35221d; color: #ffd4c7; font: 16px/1.6 Arial, sans-serif; border: 1px solid #a47660; }
.ui-site .demo-custom-logo { background-size: contain !important; background-repeat: no-repeat !important; background-position: center !important; }
.ui-site .demo-custom-logo::before { display: none !important; }
.ui-site .demo-custom-seal { background-color: transparent !important; background-repeat: no-repeat !important; background-position: center !important; background-size: contain !important; mask: none !important; -webkit-mask: none !important; }
.demo-custom-section { display: grid; align-items: center; gap: clamp(24px, 5vw, 80px); padding: clamp(40px, 7vw, 100px) max(24px, calc((100vw - 1240px) / 2)); background: #000; }
.demo-custom-section > img { display: block; width: 100%; max-height: 80vh; object-fit: contain; }
.demo-custom-split { grid-template-columns: 1fr 1fr; }
.demo-custom-copy { max-width: 680px; }
.demo-custom-copy h2 { margin-bottom: 24px; font-size: clamp(28px, 3vw, 42px); line-height: 1.3; }
.demo-custom-copy p { white-space: pre-wrap; line-height: 1.9; }
.demo-custom-copy .btn { margin-top: 18px; }
.demo-custom-text .demo-custom-copy { margin-inline: auto; text-align: center; }
@media (max-width: 850px) {
  .demo-editor .demo-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 4px; width: calc(100% - 16px); max-width: none; inset-inline: 8px; bottom: 8px; }
  .demo-toolbar > [data-action='pick'] { grid-column: 1; grid-row: 1; justify-self: start; }
  .demo-toolbar .demo-preview { grid-column: 2; grid-row: 1; }
  .demo-toolbar nav { grid-column: 1 / -1; grid-row: 2; gap: 0; min-width: 0; max-width: 100%; overflow-x: auto; }
  .demo-toolbar button { padding-inline: 10px; }
  .demo-editor .demo-drawer { inset-block: 8px 142px; inset-inline-end: 8px; max-width: calc(100vw - 16px); }
  .demo-editor .demo-pick-hint, .demo-editor .demo-status { bottom: 146px; }
  .demo-editor .demo-launch { bottom: 16px; inset-inline-start: 14px; }
  .demo-custom-split { grid-template-columns: 1fr; }
  .demo-custom-section { padding-inline: 24px; }
}
@media (max-width: 390px) {
  .demo-drawer-body { padding: 14px; }
  .demo-variant { grid-template-columns: .8fr 72px 1.2fr; gap: 5px; }
  .demo-editor .demo-section-row { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-editor *, .demo-custom-section * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.demo-editor .demo-launch-controls { position: fixed; z-index: 2000; inset-inline-start: 20px; bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: calc(100vw - 94px); }
.demo-editor .demo-launch-controls .demo-launch { position: static; }
.demo-editor .demo-template-switch { min-height: 42px; border-radius: 24px; background: #171612ee; color: #d6c3a4; box-shadow: 0 4px 24px #0008; }
.demo-image-preview-empty { display: block; height: 180px; border: 1px dashed #635743; border-radius: 5px; background: #1c1b18; }
.demo-thumbnail-empty { display: block; width: 56px; height: 56px; flex: none; background: #24221e; border: 1px dashed #635743; }
.demo-image-empty { position: relative; display: block; width: 100%; min-height: 80px; aspect-ratio: var(--demo-slot-ratio, 4/3); }
.demo-image-empty.abs-box { position: absolute; aspect-ratio: auto; }
.demo-copy-slot:empty { display: inline-block; min-width: 6em; min-height: 1.6em; max-width: 100%; vertical-align: top; }
.demo-editing .demo-image-empty { outline: 1px dashed #6c5a3c; outline-offset: -1px; background-color: #13120f; cursor: pointer; }
.demo-editing .demo-image-empty::after { content: attr(data-placeholder); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; color: #d7c29d; font: 400 14px/1.6 Arial, 'Microsoft YaHei', sans-serif; }
.demo-editing .demo-copy-slot { cursor: text; outline: 1px dashed #66563b; outline-offset: 5px; }
.demo-editing .demo-copy-slot:empty::after { content: attr(data-placeholder); color: #bba77f; font: 400 16px/1.7 Arial, 'Microsoft YaHei', sans-serif; }
.demo-image-empty:focus-visible, .demo-copy-slot:focus-visible { outline: 2px solid #e8d5b5; outline-offset: 4px; }
.demo-empty-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.demo-custom-section > .demo-image-empty { max-height: 80vh; }
.ui-site :is(.ui-appointment-action, .ui-whatsapp)[hidden] { display: none !important; }
.ui-creation-reference > .demo-image-empty { width: 84px; height: 84px; min-height: 0; flex: none; }
.ui-site.ui-blank #logo.demo-brand-empty::before, .ui-site.ui-blank .logo-modal.demo-brand-empty::before { display: none !important; }
.ui-site.ui-blank #header #logo.demo-brand-empty { display: flex; align-items: center; justify-content: center; background: none !important; color: inherit; font: 400 18px/1.3 var(--serif); overflow-wrap: anywhere; }
.ui-site.ui-blank .marque { mask: none !important; -webkit-mask: none !important; }
.ui-site.ui-blank .marque:not(.demo-custom-seal) { background: none !important; }
.ui-site.ui-blank.demo-editing .demo-brand-empty { outline: 1px dashed #77603e; cursor: pointer; }
.ui-site.ui-blank.demo-editing .demo-brand-empty:empty::after { content: attr(data-placeholder); display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #d7c29d; font: 400 14px/1.5 Arial, 'Microsoft YaHei', sans-serif; }
@media (max-width: 767px) {
  .demo-editor .demo-launch-controls { inset-inline-start: 14px; bottom: 16px; gap: 6px; }
  .demo-empty-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
