.ez-alert-layer {
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);

  opacity: 0;
  transition: opacity 180ms ease;
}

.ez-alert-layer.ez-alert-state-open {
  opacity: 1;
}

.ez-alert-layer.ez-alert-state-closing {
  opacity: 0;
}

.ez-alert-panel {
  width: min(100%, 400px);
  margin-bottom: 300px;
  overflow: hidden;

  border: 1px solid rgba(38, 173, 223, 0.18);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);

  transform: translateY(12px) scale(0.96);
  transition: transform 180ms ease;
}

.ez-alert-layer.ez-alert-state-open .ez-alert-panel {
  transform: translateY(0) scale(1);
}

.ez-alert-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;

  padding: 24px 24px 0;
}

.ez-alert-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ez-alert-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 36px;
  width: 36px;
  height: 36px;

  border-radius: 50%;
  background: rgba(38, 173, 223, 0.12);
  color: #178fba;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.ez-alert-title {
  color: #172033;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
}

.ez-alert-close {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 34px;
  width: 34px;
  height: 34px;

  border: 0;
  border-radius: 50%;
  background: #f3f6f9;
  color: #667085;
  cursor: pointer;
}

.ez-alert-close::before,
.ez-alert-close::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.ez-alert-close::before {
  transform: rotate(45deg);
}

.ez-alert-close::after {
  transform: rotate(-45deg);
}

.ez-alert-close:hover {
  background: #e8eef4;
  color: #344054;
}

.ez-alert-content {
  padding: 18px 24px 26px;
}

.ez-alert-message {
  color: #344054;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  white-space: pre-line;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.ez-alert-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;

  padding: 0 24px 24px;
}

.ez-alert-button {
  min-width: 92px;
  min-height: 46px;
  padding: 0 22px;

  border: 0;
  border-radius: 999px;
  background: #1fa8d8;
  color: #fff;
  box-shadow: 0 10px 22px rgba(31, 168, 216, 0.28);
  cursor: pointer;

  font-size: 15px;
  font-weight: 700;
}

.ez-alert-button:hover {
  background: #178fba;
}

.ez-alert-button:active {
  transform: translateY(1px);
}

.ez-alert-button:focus-visible,
.ez-alert-close:focus-visible {
  outline: 3px solid rgba(38, 173, 223, 0.24);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .ez-alert-layer {
    align-items: flex-end;
    padding: 16px;
  }

  .ez-alert-panel {
    width: 100%;
    border-radius: 18px;
  }

  .ez-alert-actions {
    display: block;
  }

  .ez-alert-button {
    width: 100%;
  }
}
