.dcc-action-toast-region {
  position: fixed;
  z-index: 2147483000;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  display: grid;
  width: min(430px, calc(100vw - 36px));
  gap: 10px;
  pointer-events: none;
}

.dcc-action-toast {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 32px;
  align-items: start;
  gap: 12px;
  padding: 15px 14px;
  border: 1px solid #cdd8e4;
  border-left-width: 5px;
  border-radius: 12px;
  background: #fff;
  color: #0b1f3a;
  box-shadow: 0 20px 55px rgba(11, 31, 58, .24);
  pointer-events: auto;
  animation: dcc-action-toast-enter .25s ease-out both;
}

.dcc-action-toast.is-success {
  border-left-color: #14804a;
}

.dcc-action-toast.is-error {
  border-left-color: #b42318;
}

.dcc-action-toast.is-leaving {
  animation: dcc-action-toast-leave .24s ease-in both;
}

.dcc-action-toast-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #e9f8ef;
  color: #116b40;
  font: 800 1.05rem/1 Poppins, "Segoe UI", sans-serif;
}

.dcc-action-toast.is-error .dcc-action-toast-icon {
  background: #fff0ef;
  color: #a92319;
}

.dcc-action-toast strong,
.dcc-action-toast span {
  display: block;
  overflow-wrap: anywhere;
}

.dcc-action-toast strong {
  margin: 1px 0 3px;
  font: 700 .9rem/1.35 Poppins, "Segoe UI", sans-serif;
}

.dcc-action-toast div > span {
  color: #53657a;
  font: 500 .78rem/1.55 Poppins, "Segoe UI", sans-serif;
}

.dcc-action-toast-close {
  display: grid;
  place-items: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #526176;
  font: 700 1.2rem/1 Poppins, "Segoe UI", sans-serif;
  cursor: pointer;
}

.dcc-action-toast-close:hover {
  background: #eef2f6;
  color: #0b1f3a;
}

button.dcc-action-is-busy,
input.dcc-action-is-busy {
  position: relative;
  cursor: wait !important;
  opacity: .78;
}

button.dcc-action-is-busy::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  vertical-align: -2px;
  animation: dcc-action-spin .7s linear infinite;
}

button.dcc-action-is-complete,
.admin-page .booking-drawer > footer button.dcc-action-is-complete {
  border-color: #83c9a5 !important;
  background: #eaf8f0 !important;
  color: #11633c !important;
  cursor: default !important;
  opacity: 1 !important;
}

.dcc-booking-action-confirmation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 10px;
  align-items: start;
  margin: 0 0 16px;
  padding: 13px 15px;
  border: 1px solid #9bd2b5;
  border-left: 4px solid #14804a;
  border-radius: 9px;
  background: #effaf4;
  color: #153b29;
}

.dcc-booking-action-confirmation::before {
  content: "✓";
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background: #14804a;
  color: #fff;
  font-weight: 800;
}

.dcc-booking-action-confirmation strong {
  font: 700 .82rem/1.35 Poppins, "Segoe UI", sans-serif;
}

.dcc-booking-action-confirmation span {
  color: #456455;
  font: 500 .76rem/1.5 Poppins, "Segoe UI", sans-serif;
}

@keyframes dcc-action-spin {
  to { transform: rotate(360deg); }
}

@keyframes dcc-action-toast-enter {
  from { opacity: 0; transform: translateY(-10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dcc-action-toast-leave {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}

@media (max-width: 600px) {
  .dcc-action-toast-region {
    right: 12px;
    left: 12px;
    width: auto;
  }

  .dcc-action-toast {
    grid-template-columns: 34px minmax(0, 1fr) 30px;
    gap: 9px;
    padding: 13px 11px;
  }

  .dcc-action-toast-icon {
    width: 32px;
    height: 32px;
  }

  .dcc-booking-action-confirmation {
    grid-template-columns: auto minmax(0, 1fr);
    margin-bottom: 12px;
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dcc-action-toast,
  .dcc-action-toast.is-leaving,
  button.dcc-action-is-busy::before {
    animation-duration: .01ms !important;
  }
}
