img.esth-emoji {
  display: inline-block !important; width: 1.65em !important; height: 1.65em !important;
  min-width: 0 !important; max-width: none !important; object-fit: contain !important;
  vertical-align: -.4em; margin: 0 .08em !important; border: 0 !important;
  background: transparent !important; box-shadow: none !important; filter: none !important;
}
.ts-single-message > p img.esth-emoji {
  width: 40px !important; height: 40px !important; vertical-align: middle;
}
.ts-single-message > p.esth-emoji-only-message img.esth-emoji {
  width: 112px !important; height: 112px !important; margin: 4px !important;
}
.ts-single-message > p.esth-emoji-only-message,
.ts-single-message > p.esth-emoji-only-message > p {
  background: transparent !important; background-image: none !important;
  border-color: transparent !important; box-shadow: none !important;
}
.ts-single-message > p.esth-emoji-only-message { padding: 0 !important; }
.ts-single-message > p.esth-emoji-only-message::before,
.ts-single-message > p.esth-emoji-only-message::after { display: none !important; }
[data-esth-emoji="1"] > svg, [data-esth-emoji="1"] > i { display: none !important; }
[data-esth-emoji="1"] > img.esth-emoji { width: 25px !important; height: 25px !important; }
.esth-emoji-dialog {
  --esth-pink: #e50053; --esth-bg: #fff; --esth-soft: #f6f6f8; --esth-text: #25242b; --esth-line: #e8e4e9;
  position: fixed; z-index: 2147483000; box-sizing: border-box; width: min(580px, calc(100vw - 24px)); max-width: 580px;
  max-height: min(640px, calc(100dvh - 24px)); padding: 0; margin: 0;
  border: 1px solid var(--esth-line); border-radius: 22px; color: var(--esth-text);
  background: var(--esth-bg); box-shadow: 0 12px 45px #0005; font-family: inherit;
}
.esth-emoji-dialog[open] { display: flex; flex-direction: column; }
.esth-emoji-dialog * { box-sizing: border-box; }
.esth-emoji-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; }
.esth-emoji-brand { display: flex; align-items: center; gap: 12px; }
.esth-emoji-brand > img.esth-emoji { width: 38px !important; height: 38px !important; }
.esth-emoji-brand h2 { margin: 0; color: var(--esth-text); font-size: 18px; line-height: 1.3; letter-spacing: 3px; }
.esth-emoji-brand p { margin: 4px 0 0; color: var(--esth-text); font-size: 12px; }
.esth-emoji-close { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--esth-line); border-radius: 50%; background: var(--esth-bg); color: var(--esth-text); font-size: 28px; cursor: pointer; }
.esth-emoji-search { display: block; flex: 0 0 auto; margin: 0 16px 10px; }
.esth-emoji-search input { width: 100%; min-height: 44px; padding: 11px 16px; border: 1px solid var(--esth-line); border-radius: 12px; color: var(--esth-text); background: var(--esth-soft); font: inherit; font-size: 14px; }
.esth-emoji-tabs { display: flex; flex: 0 0 auto; gap: 6px; flex-wrap: nowrap; overflow-x: auto; padding: 0 16px 10px; border-bottom: 1px solid var(--esth-line); }
.esth-emoji-tabs button { flex: 0 0 auto; white-space: nowrap; min-height: 34px; padding: 7px 10px; border: 0; border-radius: 8px; background: var(--esth-soft); color: var(--esth-text); font: inherit; font-size: 12px; cursor: pointer; }
.esth-emoji-tabs button[aria-pressed="true"] { background: var(--esth-pink); color: #fff; }
.esth-emoji-results { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 6px 10px 10px; scrollbar-gutter: stable; }
.esth-emoji-section { padding: 10px 4px; }
.esth-emoji-section h3 { margin: 0 0 8px; padding: 9px 12px; font-size: 15px; line-height: 1.3; border-radius: 9px; color: var(--esth-text); background: var(--esth-soft); }
.esth-emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 4px; }
.esth-emoji-choice { position: relative; min-height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px 4px; border: 1px solid transparent; border-radius: 12px; background: var(--esth-bg); color: var(--esth-text); cursor: pointer; font: inherit; }
.esth-emoji-choice > img.esth-emoji { width: 45px !important; height: 45px !important; }
.esth-emoji-choice span { font-size: 11px; line-height: 1.25; text-align: center; }
.esth-emoji-choice:hover { border-color: #ed00545c; background: #ed00540b; }
.esth-emoji-dialog button:focus-visible, .esth-emoji-dialog input:focus-visible { outline: 3px solid #ed005475; outline-offset: 2px; }
.esth-emoji-footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--esth-line); color: var(--esth-text); font-size: 11px; }
.esth-emoji-choice[data-selected="true"]::after { content: attr(data-count); position: absolute; top: 3px; right: 3px; min-width: 19px; height: 19px; padding: 0 4px; display: grid; place-items: center; box-sizing: border-box; border-radius: 99px; background: #e50053; color: #fff; font: 700 11px/1 sans-serif; }
.esth-emoji-selection { flex: 0 0 auto; border-top: 1px solid var(--esth-line); padding: 10px 16px 8px; background: var(--esth-soft); }
.esth-emoji-selection-label { display: flex; align-items: center; gap: 8px; color: var(--esth-text); font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.esth-emoji-selection-count { font-size: 11px; opacity: .75; }
.esth-emoji-selection-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-height: 49px; max-height: 105px; overflow-y: auto; }
.esth-emoji-picked { position: relative; display: grid; place-items: center; flex: 0 0 47px; width: 47px; height: 47px; padding: 4px; border: 1px solid var(--esth-line); border-radius: 10px; background: var(--esth-bg); cursor: pointer; }
.esth-emoji-picked > img.esth-emoji { width: 34px !important; height: 34px !important; }
.esth-emoji-picked-remove { position: absolute; top: -2px; right: -2px; width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; background: #e50053; color: #fff; font: 700 12px/1 sans-serif; }
.esth-emoji-selection-empty { font-size: 12px; color: var(--esth-text); opacity: .7; }
.esth-emoji-done { min-height: 38px; padding: 8px 18px; border: 0; border-radius: 10px; background: var(--esth-pink); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.esth-emoji-status { color: var(--esth-pink); font-weight: 600; }
.esth-emoji-empty { padding: 20px; text-align: center; }
.esth-emoji-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.esth-emoji-preview { display: none !important; }
.esth-emoji-editor-host { position: relative; }
textarea.esth-emoji-source { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; min-height: 0 !important; opacity: 0 !important; pointer-events: none !important; resize: none !important; }
.esth-emoji-editor-host > .compose-placeholder, .esth-emoji-editor-host > .vxf-content__highlighter { display: none !important; }
.esth-emoji-editor { position: relative; z-index: 1; display: block; box-sizing: border-box; width: 100%; min-height: 42px; max-height: min(220px, 32dvh); padding: 10px 12px; border: 0; outline: none; background: transparent; color: inherit; font: inherit; font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; overflow-y: auto; cursor: text; }
.esth-emoji-editor[data-empty="true"]::before { content: attr(data-placeholder); position: absolute; opacity: .6; pointer-events: none; }
.esth-emoji-editor img.esth-emoji { width: 32px !important; height: 32px !important; vertical-align: middle; user-select: all; }
.vxf-create-post__content .esth-emoji-editor { min-height: 78px; padding: 16px; }
.esth-emoji-editor:focus-visible { outline: none; }
.esth-emoji-editor-host:focus-within { border-color: #e50053; }
html.wp-dark-mode-active .esth-emoji-dialog, body.wp-dark-mode-active .esth-emoji-dialog, [data-wp-dark-mode="true"] .esth-emoji-dialog {
  --esth-bg: #202128; --esth-soft: #2b2c34; --esth-text: #faf8fa; --esth-line: #3a3b46;
}
@media (max-width: 600px) {
  .esth-emoji-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 24px); border-radius: 16px; }
  .esth-emoji-header { padding: 16px 14px 12px; gap: 10px; }
  .esth-emoji-brand { gap: 6px; }
  .esth-emoji-brand h2 { font-size: 17px; letter-spacing: 2px; }
  .esth-emoji-brand p { font-size: 10px; }
  .esth-emoji-brand > img.esth-emoji { width: 38px !important; height: 38px !important; }
  .esth-emoji-search { margin: 0 14px 12px; }
  .esth-emoji-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 0 14px 12px; flex: 0 0 auto; }
  .esth-emoji-tabs button { white-space: nowrap; }
  .esth-emoji-results { padding: 5px 8px 12px; }
  .esth-emoji-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
  .esth-emoji-choice { min-height: 87px; }
  .esth-emoji-choice > img.esth-emoji { width: 44px !important; height: 44px !important; }
  .esth-emoji-footer { padding: 10px 14px; font-size: 10px; }
}
