.swal2-container {
  z-index: 5000;
}

.swal2-container.swal2-backdrop-show {
  background: rgba(87, 70, 64, 0.45);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.swal2-container.swal2-backdrop-hide,
.swal2-container.hn-swal-toast-container,
.swal2-container.swal2-top-end,
.swal2-container.swal2-top-right,
body.swal2-toast-shown > .swal2-container {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.swal2-container.hn-swal-toast-container,
.swal2-container.swal2-top-end,
.swal2-container.swal2-top-right,
body.swal2-toast-shown > .swal2-container {
  inset: 0 0 auto auto;
  width: auto;
  max-width: min(420px, calc(100vw - 16px));
  height: auto;
  overflow: visible;
  pointer-events: none;
}

.swal2-container.hn-swal-toast-container .swal2-popup,
.swal2-container.swal2-top-end .swal2-popup,
.swal2-container.swal2-top-right .swal2-popup {
  pointer-events: auto;
}

.hn-swal-popup.swal2-popup {
  width: min(440px, calc(100vw - 32px));
  padding: 44px 28px 28px;
  border: 1px solid rgba(202, 160, 92, 0.28);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(28, 28, 29, 0.24);
  font-family: "Golos Text", sans-serif;
}

.hn-swal-close.swal2-close,
.hn-swal-popup .swal2-close,
.hn-swal-toast .swal2-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid #dee2e6;
  border-radius: 50%;
  background: #fff;
  color: #574640;
  font-size: 0;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.hn-swal-close.swal2-close:hover,
.hn-swal-popup .swal2-close:hover,
.hn-swal-toast .swal2-close:hover {
  background: #caa05c;
  border-color: #caa05c;
  color: #fff;
}

.hn-swal-close.swal2-close:focus-visible,
.hn-swal-popup .swal2-close:focus-visible,
.hn-swal-toast .swal2-close:focus-visible {
  outline: 2px solid #caa05c;
  outline-offset: 2px;
}

.hn-swal-close.swal2-close svg,
.hn-swal-popup .swal2-close svg,
.hn-swal-toast .swal2-close svg,
.hn-alert-fallback-close svg {
  display: block;
  pointer-events: none;
}

.hn-swal-popup .hn-swal-title,
.hn-swal-popup .swal2-title {
  margin: 8px 0 6px;
  color: #1c1c1d;
  font-family: "CalSans", "Golos Text", sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
}

.hn-swal-popup .hn-swal-text,
.hn-swal-popup .swal2-html-container {
  margin: 0 0 8px;
  color: #59585d;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
}

.hn-swal-actions.swal2-actions {
  margin: 22px 0 0;
  gap: 10px;
}

.hn-swal-confirm,
.hn-swal-cancel,
.hn-swal-deny {
  margin: 0;
  border: 0;
  border-radius: 30px;
  padding: 12px 24px;
  font-family: "Golos Text", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.hn-swal-confirm {
  background: #caa05c;
  color: #fff;
}

.hn-swal-confirm:hover {
  background: #1c1c1d;
  color: #fff;
}

.hn-swal-cancel {
  background: transparent;
  color: #574640;
  border: 1px solid #dee2e6;
}

.hn-swal-cancel:hover {
  background: #f6f6f6;
  color: #1c1c1d;
}

.hn-swal-deny,
.hn-swal-confirm.hn-swal-danger {
  background: #8a2a2a;
  color: #fff;
}

.hn-swal-deny:hover,
.hn-swal-confirm.hn-swal-danger:hover {
  background: #6f1f1f;
}

.hn-swal-popup .swal2-icon {
  margin: 0 auto 12px;
  border-width: 3px;
}

.hn-swal-popup .swal2-icon.swal2-success {
  border-color: rgba(202, 160, 92, 0.35);
  color: #caa05c;
}

.hn-swal-popup .swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(202, 160, 92, 0.35);
}

.hn-swal-popup .swal2-icon.swal2-success [class^="swal2-success-line"] {
  background-color: #caa05c;
}

.hn-swal-popup .swal2-icon.swal2-success .swal2-success-fix {
  background-color: #fff;
}

.hn-swal-popup .swal2-icon.swal2-error {
  border-color: rgba(138, 42, 42, 0.28);
  color: #8a2a2a;
}

.hn-swal-popup .swal2-icon.swal2-error [class^="swal2-x-mark-line"] {
  background-color: #8a2a2a;
}

.hn-swal-popup .swal2-icon.swal2-warning {
  border-color: rgba(202, 160, 92, 0.45);
  color: #caa05c;
}

.hn-swal-popup .swal2-icon.swal2-info {
  border-color: rgba(87, 70, 64, 0.28);
  color: #574640;
}

.hn-swal-popup .swal2-icon.swal2-question {
  border-color: rgba(87, 70, 64, 0.28);
  color: #574640;
}

.hn-swal-timer.swal2-timer-progress-bar {
  background: rgba(202, 160, 92, 0.85);
}

.hn-swal-toast.swal2-popup {
  width: auto;
  max-width: min(420px, calc(100vw - 28px));
  padding: 14px 44px 14px 16px;
  border: 0;
  border-left: 4px solid #caa05c;
  border-radius: 14px;
  background: #1c1c1d;
  box-shadow: 0 16px 40px rgba(28, 28, 29, 0.28);
  color: #fff;
}

.hn-swal-toast .swal2-close {
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hn-swal-toast .swal2-close:hover {
  background: #caa05c;
  border-color: #caa05c;
  color: #fff;
}

.hn-swal-toast .swal2-title {
  margin: 0;
  color: #fff;
  font-family: "Golos Text", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}

.hn-swal-toast .swal2-html-container {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.hn-swal-toast .swal2-icon {
  margin: 0 10px 0 0;
  transform: scale(0.72);
  transform-origin: center;
}

.hn-swal-toast .swal2-timer-progress-bar {
  background: rgba(202, 160, 92, 0.9);
}

.hn-swal-toast.swal2-icon-error {
  border-left-color: #d97878;
}

.hn-swal-toast.swal2-icon-warning {
  border-left-color: #caa05c;
}

.hn-swal-toast.swal2-icon-info {
  border-left-color: #8f7f78;
}

.hn-alert-fallback {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 5000;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: min(380px, calc(100vw - 32px));
  padding: 14px 14px 14px 18px;
  border-left: 4px solid #caa05c;
  border-radius: 14px;
  background: #1c1c1d;
  color: #fff;
  box-shadow: 0 16px 40px rgba(28, 28, 29, 0.28);
  font-family: "Golos Text", sans-serif;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.hn-alert-fallback-copy {
  margin: 0;
  flex: 1;
  line-height: 1.45;
}

.hn-alert-fallback-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.hn-alert-fallback-close:hover {
  background: #caa05c;
  border-color: #caa05c;
}

.hn-alert-fallback.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hn-alert-fallback.is-error {
  border-left-color: #d97878;
}

.hn-alert-fallback.is-warning {
  border-left-color: #caa05c;
}

@media (max-width: 575px) {
  .hn-swal-popup.swal2-popup {
    padding: 42px 20px 22px;
  }

  .hn-swal-popup .hn-swal-title,
  .hn-swal-popup .swal2-title {
    font-size: 24px;
  }

  .swal2-container.swal2-top-end > .swal2-popup,
  .swal2-container.swal2-top-right > .swal2-popup {
    margin: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hn-swal-popup.swal2-popup,
  .hn-swal-toast.swal2-popup,
  .hn-alert-fallback,
  .hn-swal-confirm,
  .hn-swal-cancel,
  .hn-swal-deny,
  .hn-swal-close.swal2-close,
  .hn-alert-fallback-close {
    transition: none;
  }
}
