/* Common toast — non-blocking status message */

.common-toast {
  position: fixed;
  top: 16px;
  top: calc(16px + env(safe-area-inset-top));
  left: 16px;
  right: 16px;
  z-index: 3000;
  display: none;
  width: auto;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  pointer-events: none;
}

.common-toast.is-open {
  display: block;
  pointer-events: auto;
  -webkit-animation: common-toast-in 0.28s ease-out;
  animation: common-toast-in 0.28s ease-out;
}

.common-toast-bar {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  padding: 10px 10px 10px 14px;
  background: #e7f3fb;
  border: 1px solid #c5e0f3;
  -webkit-border-radius: 12px;
  border-radius: 12px;
  -webkit-box-shadow: 0 6px 20px rgba(15, 70, 120, 0.12);
  box-shadow: 0 6px 20px rgba(15, 70, 120, 0.12);
}

.common-toast-icon {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 24px;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  -webkit-border-radius: 50%;
  border-radius: 50%;
  background-color: #007fd4;
  background-color: var(--vscode-blue, #007fd4);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', Times, serif;
  line-height: 24px;
  text-align: center;
}

.common-toast-message {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #2c3a4a;
  word-break: break-word;
  overflow-wrap: break-word;
}

.common-toast-close {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 32px;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin-left: 10px;
  padding: 0;
  border: none;
  -webkit-border-radius: 8px;
  border-radius: 8px;
  background: #eef2f6;
  color: #7b8794;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.common-toast-close:hover,
.common-toast-close:focus {
  background: #e4e9ee;
  color: #5b6570;
}

.common-toast-close:focus {
  outline: 1px solid #007fd4;
  outline: 1px solid var(--vscode-blue, #007fd4);
  outline-offset: 1px;
}

@-webkit-keyframes common-toast-in {
  from {
    opacity: 0;
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@keyframes common-toast-in {
  from {
    opacity: 0;
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}
