/* Toast notifications — Рускачество */
.rk-toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 10060;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border-radius: 6px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.06),
    0 12px 32px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  padding: 18px 20px 18px 18px;
  width: 340px;
  max-width: calc(100vw - 32px);
  font-family: 'Onest', system-ui, sans-serif;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.rk-toast.rk-toast--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.rk-toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent, #FF5A1F);
  border-radius: 6px 0 0 6px;
}

.rk-toast__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #FFF1E8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rk-toast__icon svg {
  width: 18px;
  height: 18px;
}

.rk-toast__body {
  flex: 1;
  min-width: 0;
}

.rk-toast__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #0F1419);
  margin: 0 0 3px;
  line-height: 1.3;
}

.rk-toast__sub {
  font-size: 13px;
  color: var(--muted, #6B7280);
  margin: 0;
  line-height: 1.45;
}

.rk-toast__close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--muted, #6B7280);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.15s;
  margin-top: -2px;
}

.rk-toast__close:hover {
  background: #F3F4F6;
  color: var(--ink, #0F1419);
}

.rk-toast__progress {
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 0;
  height: 2px;
  background: #F3F4F6;
  border-radius: 0 0 6px 0;
  overflow: hidden;
}

.rk-toast__progress-bar {
  height: 100%;
  background: var(--accent, #FF5A1F);
  width: 100%;
  transform-origin: left;
  transition: transform linear;
}

@media (max-width: 480px) {
  .rk-toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}
