.mt-feedback[data-site-ui-late-overlay] {
  display: block;
  position: fixed;
  right: 30px;
  bottom: 24px;
  z-index: 990;
  font: inherit;
  color: var(--color-text);
}
.mt-feedback-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 50px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-full, 999px);
  background: var(--color-accent);
  color: var(--color-on-accent, #fff) !important;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  touch-action: manipulation;
  transition: background-color .16s ease, box-shadow .16s ease;
}
.mt-feedback-trigger:hover { background: var(--color-accent-strong); box-shadow: var(--shadow-lg); }
.mt-feedback-trigger svg, .mt-feedback-mark svg { flex: 0 0 auto; }
.mt-feedback-trigger-label {
  max-inline-size: 0;
  margin-inline-start: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-inline-size .18s ease, margin-inline-start .18s ease, opacity .18s ease;
}
.mt-feedback-trigger:focus-visible .mt-feedback-trigger-label {
  max-inline-size: 20rem;
  margin-inline-start: 10px;
  opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
  .mt-feedback-trigger:hover .mt-feedback-trigger-label {
    max-inline-size: 20rem;
    margin-inline-start: 10px;
    opacity: 1;
  }
}
.mt-feedback-dialog {
  box-sizing: border-box;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 28px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg, 20px);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
  text-align: start;
}
.mt-feedback-dialog:not([open]) { display: none; }
.mt-feedback-dialog::backdrop { background: var(--scrim, rgb(0 0 0 / .5)); }
.mt-feedback-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 25px; }
.mt-feedback-mark { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid var(--color-border); border-radius: 13px; color: var(--color-accent); }
.mt-feedback-heading h2 { margin: 0 0 7px; font-size: 23px; font-weight: 600; line-height: 1.25; }
.mt-feedback-heading p { margin: 0; color: var(--color-muted); font-size: 13px; line-height: 1.6; }
.mt-feedback-close { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; margin-inline-start: auto; margin-top: -10px; margin-inline-end: -12px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--color-muted); cursor: pointer; }
.mt-feedback-close:hover { background: var(--surface-hover); color: var(--color-text); }
.mt-feedback label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 600; }
.mt-feedback-required { color: var(--color-accent); }
.mt-feedback textarea, .mt-feedback input {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid var(--color-border);
  border-radius: 11px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
}
.mt-feedback textarea { min-height: 155px; max-height: 280px; resize: vertical; }
.mt-feedback textarea::placeholder, .mt-feedback input::placeholder { color: var(--color-muted); opacity: .85; }
.mt-feedback-email { margin-top: 21px; }
.mt-feedback-submit { width: 100%; min-height: 48px; margin-top: 22px; padding: 12px 16px; border: 0; border-radius: 11px; background: var(--color-accent); color: var(--color-on-accent, #fff); font: inherit; font-weight: 600; cursor: pointer; }
.mt-feedback-submit:hover:not(:disabled) { background: var(--color-accent-strong); }
.mt-feedback-submit:disabled { opacity: .55; cursor: wait; }
.mt-feedback-message { margin: 18px 0 0; font-size: 14px; line-height: 1.6; color: var(--color-text); overflow-wrap: anywhere; }
.mt-feedback-message[data-state="error"] { color: var(--status-danger); }
.mt-feedback-message[data-state="success"] { color: var(--status-success); }
.mt-feedback :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
body:has(.mt-feedback-dialog[open]) { overflow: hidden; }
html:has([data-feedback-root]), html.mt-feedback-enabled { --site-floating-button-bottom: 86px; }
body:has(.ck-banner.show) .mt-feedback-trigger { visibility: hidden; }
@media (max-width: 768px) {
  .mt-feedback[data-site-ui-late-overlay] { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .mt-feedback-trigger { min-height: 48px; padding: 0 11px; }
  .mt-feedback-dialog { width: 100%; max-width: 100%; margin: auto 0 0; max-height: calc(100dvh - 16px); border-bottom: 0; border-radius: 20px 20px 0 0; padding: 24px 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
  .mt-feedback textarea { min-height: 125px; }
  html:has([data-feedback-root]), html.mt-feedback-enabled { --site-floating-button-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .mt-feedback-trigger, .mt-feedback-trigger-label { transition: none; }
}
