.global-feedback-stack {
  position: fixed;
  z-index: 2147483647;
  top: 14px;
  right: 14px;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 28px));
  pointer-events: none;
}

.global-feedback {
  position: fixed;
  z-index: 2147483647;
  top: 14px;
  right: 14px;
  width: min(420px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: start;
  padding: 12px 12px 14px;
  overflow: hidden;
  border-radius: 10px;
  color: #f7ead4;
  font-family: 'Montserrat-Regular', Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.42;
  text-align: left;
  text-shadow: 1px 1px 2px #000;
  box-shadow: 0 14px 35px rgba(0, 0, 0, .42);
  backdrop-filter: blur(6px);
  pointer-events: auto;
  animation: globalFeedbackIn 180ms ease-out both;
}

.global-feedback-stack .global-feedback {
  position: relative;
  inset: auto;
  width: 100%;
}

.global-feedback-success {
  border: 1px solid rgba(92, 176, 101, .72);
  background: rgba(32, 85, 43, .96);
}

.global-feedback-error {
  border: 1px solid rgba(218, 67, 67, .72);
  background: rgba(86, 24, 24, .96);
}

.global-feedback-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .22);
  color: #ffc777;
}

.global-feedback-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.global-feedback-message {
  min-width: 0;
  overflow-wrap: anywhere;
}

.global-feedback-message .inline-premium-token {
  display: inline-block;
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
  margin: 0 3px 0 1px;
  object-fit: contain;
  vertical-align: -3px;
}

.global-feedback-close {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 7px;
  background: rgba(0, 0, 0, .28);
  color: #f7ead4;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  margin-top: -12px;
}

.global-feedback-close:hover {
  border-color: rgba(255, 159, 0, .72);
  color: #fff;
}

.global-feedback-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: rgba(255, 199, 119, .9);
  transform-origin: left center;
}

.global-feedback-progress.is-running {
  animation: globalFeedbackProgress linear forwards;
}

.global-feedback.is-closing {
  animation: globalFeedbackOut 160ms ease-in both;
}

@media (max-width: 620px) {
  .global-feedback-stack {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
  }

  .global-feedback {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    grid-template-columns: 24px minmax(0, 1fr) 28px;
    padding: 11px 10px 14px;
    font-size: 12px;
  }

  .global-feedback-icon {
    width: 24px;
    height: 24px;
  }
}

@keyframes globalFeedbackIn {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes globalFeedbackOut {
  to { opacity: 0; transform: translateY(-8px) scale(.98); }
}

@keyframes globalFeedbackProgress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
