:root{
  --rh-toast-bg: #08334c;
  --rh-toast-fg: #ffffff;
  --rh-toast-shadow: 0 16px 45px rgba(0,0,0,.22);
  --rh-toast-radius: 12px;
}

.rh-toast-stack{
  position: fixed;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  z-index: 1000002;
  display: grid;
  gap: 10px;
  width: min(520px, calc(100vw - 32px));
}

@media (max-width: 520px){
  .rh-toast-stack{
    top: 12px;
    width: calc(100vw - 24px);
  }
}

body.admin-bar .rh-toast-stack{
  top: calc(16px + 32px);
}

@media (max-width: 782px){
  body.admin-bar .rh-toast-stack{
    top: calc(12px + 46px);
  }
}

.rh-toast{
  background: var(--rh-toast-bg);
  color: var(--rh-toast-fg);
  border-radius: var(--rh-toast-radius);
  box-shadow: var(--rh-toast-shadow);
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.rh-toast__icon{
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  opacity: .95;
}

.rh-toast__body{
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.rh-toast__title{
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.2;
}

.rh-toast__msg{
  font-size: .93rem;
  line-height: 1.25;
  opacity: .98;
  word-wrap: break-word;
}

.rh-toast__actions{
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
  flex-wrap: wrap;
}

.rh-toast__btn{
  background: #fff;
  color: #08334c;
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.rh-toast__btn.secondary{
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75);
}

.rh-toast__close{
  background: transparent;
  color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px 6px;
  opacity: .9;
  flex: 0 0 auto;
}

.rh-toast__close:hover{ opacity: 1; }

.rh-toast.is-success{ --rh-toast-bg: #0b4a2a; }
.rh-toast.is-error  { --rh-toast-bg: #7a1f1f; }
.rh-toast.is-info   { --rh-toast-bg: #08334c; }
.rh-toast.is-warn   { --rh-toast-bg: #6b4b12; }
