:root {
  --mm-blue: #284062;
  --mm-blue-dark: #172b46;
  --mm-yellow: #f9b041;
  --mm-ink: #1c2734;
  --mm-muted: #647184;
  --mm-line: #dce3eb;
  --mm-soft: #f5f8fb;
  --mm-white: #ffffff;
}

.mm-feedback {
  box-sizing: border-box;
  width: 100%;
  margin: 28px 0 0;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--mm-line);
  border-radius: 22px;
  background: var(--mm-white);
  box-shadow: 0 16px 44px rgba(23, 43, 70, 0.08);
  color: var(--mm-ink);
  font-family: inherit;
}

.mm-feedback *,
.mm-feedback *::before,
.mm-feedback *::after {
  box-sizing: border-box;
}

.mm-feedback__title {
  margin: 0;
  color: var(--mm-blue-dark);
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  line-height: 1.28;
}

.mm-feedback__subtitle {
  max-width: 760px;
  margin: 8px 0 20px;
  color: var(--mm-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.mm-feedback button {
  min-height: 46px;
  border: 1px solid var(--mm-line);
  border-radius: 13px;
  background: var(--mm-white);
  color: var(--mm-blue-dark);
  font: inherit;
  font-weight: 680;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.mm-feedback button:hover {
  transform: translateY(-1px);
  border-color: rgba(40, 64, 98, 0.48);
  box-shadow: 0 8px 20px rgba(23, 43, 70, 0.08);
}

.mm-feedback button:focus-visible {
  outline: 3px solid rgba(249, 176, 65, 0.48);
  outline-offset: 2px;
}

.mm-feedback__scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(44px, 68px));
  gap: 10px;
}

.mm-feedback__rating {
  aspect-ratio: 1;
  min-height: 48px !important;
  font-size: 1.05rem !important;
}

.mm-feedback__rating[aria-pressed="true"] {
  border-color: var(--mm-blue);
  background: var(--mm-blue);
  color: var(--mm-white);
}

.mm-feedback__scale-labels {
  display: flex;
  justify-content: space-between;
  width: min(100%, 380px);
  margin-top: 7px;
  color: var(--mm-muted);
  font-size: 0.78rem;
}

.mm-feedback__favorites,
.mm-feedback__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mm-feedback__favorite,
.mm-feedback__action {
  padding: 12px 15px;
  text-align: left;
}

.mm-feedback__favorite:first-child {
  border-color: rgba(249, 176, 65, 0.72);
  background: #fffaf0;
}

.mm-feedback__favorite--none {
  color: var(--mm-muted) !important;
  background: var(--mm-soft) !important;
}

.mm-feedback__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.mm-feedback__chip {
  min-height: 40px !important;
  padding: 8px 13px;
  border-radius: 999px !important;
  font-size: 0.9rem !important;
}

.mm-feedback__skip {
  display: block;
  min-height: auto !important;
  margin-top: 16px;
  padding: 4px 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--mm-muted) !important;
  font-size: 0.86rem !important;
  font-weight: 560 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mm-feedback__skip:hover {
  transform: none !important;
  color: var(--mm-blue) !important;
}

.mm-feedback__privacy,
.mm-feedback__status {
  margin: 16px 0 0;
  color: var(--mm-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.mm-feedback__status:empty {
  display: none;
}

.mm-feedback__status[data-kind="soft-error"] {
  color: #805c17;
}

.mm-feedback--complete {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-block: 20px;
  background: var(--mm-soft);
  box-shadow: none;
}

.mm-feedback--complete .mm-feedback__subtitle {
  margin-bottom: 0;
}

.mm-feedback__complete-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--mm-blue);
  color: var(--mm-white);
  font-weight: 900;
}

@media (max-width: 680px) {
  .mm-feedback {
    border-radius: 17px;
  }

  .mm-feedback__favorites,
  .mm-feedback__actions {
    grid-template-columns: 1fr;
  }

  .mm-feedback__scale {
    grid-template-columns: repeat(5, 1fr);
  }
}
