.str-ui-feedback-root {
  position: relative;
  z-index: 2147482000;
}

.str-ui-feedback__overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--str-color-overlay);
  backdrop-filter: blur(1px);
  z-index: 2147483000;
}

.str-ui-feedback__overlay.is-open {
  display: flex;
}

.str-ui-feedback__dialog {
  width: min(480px, 100%);
  border-radius: 12px;
  background: var(--str-color-surface);
  color: var(--str-color-text);
  border: 1px solid var(--str-color-border);
  box-shadow: var(--str-shadow-xl);
  overflow: hidden;
}

.str-ui-feedback__dialog::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--str-color-primary);
}

.str-ui-feedback__dialog.is-success::before {
  background: var(--str-color-success);
}

.str-ui-feedback__dialog.is-warning::before {
  background: var(--str-color-warning);
}

.str-ui-feedback__dialog.is-error::before {
  background: var(--str-color-error);
}

.str-ui-feedback__body {
  padding: 20px;
}

.str-ui-feedback__title {
  margin: 0 0 10px 0;
  font-size: 18px;
  line-height: 1.3;
}

.str-ui-feedback__message {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--str-color-text-muted);
  white-space: pre-wrap;
}

.str-ui-feedback__input-wrap {
  margin-top: 14px;
}

.str-ui-feedback__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--str-color-border);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--str-color-text);
}

.str-ui-feedback__input:focus {
  border-color: var(--str-color-primary);
  outline: none;
  box-shadow: var(--str-focus-ring);
}

.str-ui-feedback__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.str-ui-feedback__btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
  transition: all 0.15s ease;
}

.str-ui-feedback__btn--cancel {
  background: var(--str-color-surface-2);
  color: var(--str-color-text-muted);
  border-color: var(--str-color-border);
}

.str-ui-feedback__btn--cancel:hover {
  background: var(--str-color-surface-3);
}

.str-ui-feedback__btn--confirm {
  background: var(--str-color-primary);
  color: var(--str-color-text-inverse);
}

.str-ui-feedback__btn--confirm:hover {
  background: var(--str-color-primary-hover);
}

.str-ui-feedback__btn--confirm.is-danger {
  background: var(--str-color-error);
}

.str-ui-feedback__btn--confirm.is-danger:hover {
  background: var(--str-color-error-hover);
}

.str-ui-feedback__toasts {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2147483500;
  width: min(360px, calc(100vw - 24px));
}

.str-ui-feedback__toast {
  border-radius: 10px;
  border: 1px solid var(--str-color-border);
  background: var(--str-color-surface);
  box-shadow: var(--str-shadow-lg);
  overflow: hidden;
  animation: str-ui-feedback-toast-in 0.16s ease-out;
}

.str-ui-feedback__toast::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--str-color-primary);
}

.str-ui-feedback__toast.is-success::before {
  background: var(--str-color-success);
}

.str-ui-feedback__toast.is-warning::before {
  background: var(--str-color-warning);
}

.str-ui-feedback__toast.is-error::before {
  background: var(--str-color-error);
}

.str-ui-feedback__toast-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
}

.str-ui-feedback__toast-message {
  margin: 0;
  color: var(--str-color-text-muted);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.str-ui-feedback__toast-close {
  border: 0;
  background: transparent;
  color: var(--str-color-text-disabled);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 2px;
}

@keyframes str-ui-feedback-toast-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .str-ui-feedback__overlay {
    padding: 14px;
  }

  .str-ui-feedback__toasts {
    left: 12px;
    right: 12px;
    width: auto;
  }
}

