/* HuntBee notifications and page alerts */

/* Dependency-free AJAX toast notifications. */
.hb-theme .hb-toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 1700;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(460px, calc(100vw - 40px));
  pointer-events: none;
}

.hb-theme .hb-toast {
  --hb-toast-accent: #2c8a55;
  --hb-toast-icon-bg: #edf8f1;
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 32px;
  gap: 14px;
  align-items: start;
  min-height: 88px;
  padding: 17px 16px 18px;
  overflow: hidden;
  border: 1px solid #dedbd3;
  border-radius: 13px;
  background: rgba(255, 255, 255, .98);
  color: #27313a;
  box-shadow: 0 18px 46px rgba(17, 24, 32, .16);
  opacity: 0;
  transform: translateY(-8px) scale(.985);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: auto;
  backdrop-filter: blur(10px);
}

.hb-theme .hb-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hb-theme .hb-toast.is-leaving {
  opacity: 0;
  transform: translateY(-6px) scale(.985);
}

.hb-theme .hb-toast-success {
  --hb-toast-accent: #2c8a55;
  --hb-toast-icon-bg: #edf8f1;
}

.hb-theme .hb-toast-warning {
  --hb-toast-accent: #c78b00;
  --hb-toast-icon-bg: #fff7df;
}

.hb-theme .hb-toast-danger {
  --hb-toast-accent: #b94a45;
  --hb-toast-icon-bg: #fff0ef;
}

.hb-theme .hb-toast-info {
  --hb-toast-accent: #23879a;
  --hb-toast-icon-bg: #edf8fa;
}

.hb-theme .hb-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 10px;
  background: var(--hb-toast-icon-bg);
  color: var(--hb-toast-accent);
  font-size: 17px;
  line-height: 1;
}

.hb-theme .hb-toast-icon i {
  margin: 0;
  line-height: 1;
}

.hb-theme .hb-toast-content {
  min-width: 0;
  padding-top: 1px;
}

.hb-theme .hb-toast-title {
  margin: 0 0 4px;
  color: #111820;
  font-size: 13.5px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -.01em;
}

.hb-theme .hb-toast-message {
  color: #59646e;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.hb-theme .hb-toast-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: #111820;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  text-decoration: none;
}

.hb-theme .hb-toast-action i {
  color: var(--hb-toast-accent);
  font-size: 12px;
}

.hb-theme .hb-toast-action:hover,
.hb-theme .hb-toast-action:focus {
  color: #8a6100;
  text-decoration: none;
}

.hb-theme .hb-toast-message a {
  color: #34414b;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #d7c681;
}

.hb-theme .hb-toast-message a:hover,
.hb-theme .hb-toast-message a:focus {
  color: #8a6100;
}

.hb-theme .hb-toast-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: -3px -3px 0 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #90989f;
  font-size: 12px;
  line-height: 1;
}

.hb-theme .hb-toast-close:hover,
.hb-theme .hb-toast-close:focus {
  background: #f3f1eb;
  color: #111820;
  outline: 0;
}

.hb-theme .hb-toast-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  overflow: hidden;
  background: rgba(17, 24, 32, .045);
}

.hb-theme .hb-toast-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--hb-toast-accent);
  opacity: .58;
}

/* Normal OpenCart/Bootstrap page-level alerts. */
.hb-theme .alert:not([data-notify="container"]) {
  position: relative;
  margin: 16px 0;
  padding: 13px 42px 13px 42px;
  border-width: 1px 1px 1px 4px;
  border-style: solid;
  border-radius: 8px;
  box-shadow: none;
  font-size: 12px;
  line-height: 1.45;
}

.hb-theme .alert:not([data-notify="container"]) > .fa,
.hb-theme .alert:not([data-notify="container"]) > .fas,
.hb-theme .alert:not([data-notify="container"]) > .far,
.hb-theme .alert:not([data-notify="container"]) > .fa-solid,
.hb-theme .alert:not([data-notify="container"]) > .fa-regular {
  position: absolute;
  top: 14px;
  left: 15px;
  margin: 0 !important;
}

.hb-theme .alert-success:not([data-notify="container"]) {
  border-color: #d9e8df #d9e8df #d9e8df #2c8a55;
  background: #fbfefc;
  color: #28533a;
}

.hb-theme .alert-warning:not([data-notify="container"]) {
  border-color: #efe1b7 #efe1b7 #efe1b7 #d99b00;
  background: #fffdf7;
  color: #6e581d;
}

.hb-theme .alert-danger:not([data-notify="container"]) {
  border-color: #efd3d3 #efd3d3 #efd3d3 #c54c4c;
  background: #fffafa;
  color: #753838;
}

.hb-theme .alert-info:not([data-notify="container"]) {
  border-color: #d4e7eb #d4e7eb #d4e7eb #1594aa;
  background: #fbfeff;
  color: #295b65;
}

.hb-theme .alert:not([data-notify="container"]) .close {
  position: absolute;
  top: 8px;
  right: 10px;
  color: #7c858d;
  opacity: 1;
  text-shadow: none;
}

@media (max-width: 767px) {
  .hb-theme .hb-toast-container {
    left: 50%;
    right: auto;
    width: calc(100vw - 24px);
    transform: translateX(-50%);
  }

  .hb-theme .hb-toast {
    grid-template-columns: 40px minmax(0, 1fr) 28px;
    gap: 11px;
    min-height: 80px;
    padding: 14px 12px 15px;
  }

  .hb-theme .hb-toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    font-size: 15px;
  }

  .hb-theme .hb-toast-title {
    font-size: 12.5px;
  }

  .hb-theme .hb-toast-message {
    font-size: 12px;
  }
}
