:root {
  --toast-width: 296.77px;
}

.toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  width: var(--toast-width, 280px) !important;
  box-sizing: border-box;
  background: var(--toast-bg, #ffffff);
  border: 1px solid var(--toast-border, #e3d6c7);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  color: var(--toast-text, #2b2018);
  font-size: 12px;
  padding: 10px;
}

.toast.is-pending {
  border-color: var(--toast-pending-border, #f3c46a);
  background: var(--toast-pending-bg, #fff7e1);
  animation: toastPendingPulse 1.6s ease-in-out infinite;
}

.toast-container.is-animation-none .toast.is-pending {
  animation: none;
}

.toast.is-clickable {
  cursor: pointer;
}

@keyframes toastPendingPulse {
  0% {
    background: var(--toast-pending-bg, #fff7e1);
  }
  50% {
    background: var(--toast-pending-bg-strong, #ffecc2);
  }
  100% {
    background: var(--toast-pending-bg, #fff7e1);
  }
}

.toast__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 6px;
}

.toast__close {
  appearance: none;
  border: 1px solid var(--toast-close-border, #e4a1a1);
  background: var(--toast-close-bg, #fbe6e6);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--toast-close-text, #7c2c2c);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.toast__close:hover {
  background: var(--toast-close-bg-hover, #f6d4d4);
  border-color: var(--toast-close-border-hover, #d98e8e);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.toast__close:focus-visible {
  outline: 2px solid rgba(243, 196, 106, 0.6);
  outline-offset: 2px;
}

.toast__close-icon {
  width: 12px;
  height: 12px;
  display: block;
}

.toast__body strong {
  color: #1a7f5a;
}

.toast__list {
  margin: 6px 0 0;
  padding-left: 16px;
}

.toast__list li {
  margin: 2px 0;
}

.plugin-redmine_toast_hub .th-settings label {
  float: none;
  margin-left: 0;
  width: auto;
  padding-left: 0;
  display: inline-flex;
}

.plugin-redmine_toast_hub .th-settings .th-row {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(320px, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.plugin-redmine_toast_hub .th-settings .th-label {
  font-weight: 700;
  color: #5b4636;
}

.plugin-redmine_toast_hub .th-settings .th-field {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.plugin-redmine_toast_hub .th-settings .th-input {
  max-width: 360px;
}

.plugin-redmine_toast_hub .th-settings .th-colors .th-input {
  width: 130px;
}

.plugin-redmine_toast_hub .th-settings .th-checkbox {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.plugin-redmine_toast_hub .th-settings .th-checkbox span {
  color: #7a6656;
}
