.korthos-feedback {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.45;
  text-transform: none;
}

.korthos-feedback--inline {
  display: inline;
}

.korthos-feedback__trigger {
  appearance: none;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.korthos-feedback__trigger:hover,
.korthos-feedback__trigger:focus-visible {
  border-bottom-color: currentColor;
}

.korthos-feedback--editorial {
  margin-top: 8px;
}

.korthos-feedback--editorial .korthos-feedback__trigger {
  color: inherit;
  font-weight: 650;
}

.korthos-feedback--floating {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
}

.korthos-feedback--floating .korthos-feedback__trigger {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(17, 16, 13, 0.2);
  border-radius: 2px;
  color: #11100d;
  background: rgba(247, 246, 242, 0.96);
  box-shadow: 0 2px 12px rgba(17, 16, 13, 0.08);
}

.korthos-feedback__backdrop[hidden] {
  display: none !important;
}

.korthos-feedback__backdrop {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 16, 13, 0.36);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.korthos-feedback__dialog {
  position: relative;
  width: min(100%, 680px);
  max-height: min(680px, calc(100dvh - 40px));
  overflow: auto;
  box-sizing: border-box;
  padding: 32px;
  border: 0;
  border-radius: 28px;
  color: #11100d;
  background: #f4f2ec;
  box-shadow: 0 30px 80px rgba(17, 16, 13, 0.24);
}

.korthos-feedback__dialog h2 {
  margin: 0 42px 8px 0;
  color: #11100d;
  font-family: Inter, system-ui, sans-serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  text-transform: none;
}

.korthos-feedback__dialog p {
  margin: 0 0 22px;
  color: #5b5952;
  font-size: 13.5px;
  line-height: 1.48;
}

.korthos-feedback__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 11px;
  color: #5b5952;
  background: rgba(255, 255, 253, 0.7);
  font: 24px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}

.korthos-feedback__types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.korthos-feedback__types label {
  display: block;
  cursor: pointer;
}

.korthos-feedback__types input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.korthos-feedback__types span {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 64px;
  padding: 13px 15px;
  border: 0;
  border-radius: 13px;
  color: #34332e;
  background: #eadcff;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: normal;
}

.korthos-feedback__types label:nth-child(2) span {
  background: #d9e8ff;
}

.korthos-feedback__types label:nth-child(3) span {
  background: #ffdcd5;
}

.korthos-feedback__types input:checked + span {
  color: #11100d;
  box-shadow: inset 0 0 0 2px #11100d;
}

.korthos-feedback__types input:focus-visible + span {
  outline: 2px solid #2d69d7;
  outline-offset: 2px;
}

.korthos-feedback__message-label {
  display: block;
  margin-bottom: 6px;
  color: #68665f;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.korthos-feedback textarea {
  display: block;
  width: 100%;
  min-height: 132px;
  resize: vertical;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 0;
  border-radius: 13px;
  color: #11100d;
  background: #fffdfa;
  font: 14px/1.45 Inter, system-ui, sans-serif;
}

.korthos-feedback textarea:focus {
  outline: 2px solid rgba(47, 92, 61, 0.24);
  outline-offset: 2px;
}

.korthos-feedback__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.korthos-feedback__status {
  color: #5b5952;
  font-size: 12px;
}

.korthos-feedback__submit {
  min-width: 82px;
  min-height: 44px;
  padding: 8px 19px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #11100d;
  font: 700 13px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}

.korthos-feedback__submit:disabled {
  cursor: wait;
  opacity: 0.58;
}

html.korthos-feedback-open {
  overflow: hidden;
}

@media (max-width: 540px) {
  .korthos-feedback__backdrop {
    align-items: center;
    padding: 10px;
  }

  .korthos-feedback__dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 24px;
  }

  .korthos-feedback__types {
    grid-template-columns: 1fr;
  }

  .korthos-feedback__types span {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .korthos-feedback__dialog {
    animation: korthos-feedback-enter 140ms ease-out;
  }

  @keyframes korthos-feedback-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
