/* CBets friendly error toasts (pairs with friendly-errors.js). */
#toast-region .toast.cb-err {
  position: relative;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 40px 14px 14px;
  border: 1px solid #ff48709e;
  border-left: 4px solid #ff4870;
  border-radius: 10px;
  background: linear-gradient(135deg, #2a0f1cfa, #12081afc);
  color: #fdf3f6;
  width: min(380px, 100%);
}

#toast-region .toast.cb-err > .cb-err-icon {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ff4870;
  color: #1a0710;
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
}

#toast-region .toast.cb-err > .cb-err-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#toast-region .cb-err-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

#toast-region .cb-err-detail {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #f2d6de;
}

#toast-region .cb-err-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

#toast-region .toast.cb-err .cb-err-go,
#toast-region .toast.cb-err .cb-err-code {
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

#toast-region .toast.cb-err .cb-err-go {
  border: 1px solid #f2c24799;
  background: #f2c2471f;
  color: #ffd76a;
  font-weight: 800;
}

#toast-region .toast.cb-err .cb-err-code {
  border: 1px solid #ffffff2e;
  background: transparent;
  color: #e7c3cd;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .02em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#toast-region .toast.cb-err .cb-err-code.is-copied {
  border-color: #28d6778a;
  color: #7ff0b0;
}

#toast-region .toast.cb-err > .cb-err-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #e7c3cd;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

#toast-region .toast.cb-err > .cb-err-close:hover,
#toast-region .toast.cb-err .cb-err-code:hover {
  background: #ffffff14;
}

#toast-region .toast.cb-err button:focus-visible {
  outline: 2px solid #ffd76a;
  outline-offset: 2px;
}
