.dialog.announcement {
  width: min(400px, calc(100vw - 32px));
  padding: 32px;
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  text-align: center;

  &::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
  }

  [autofocus] {
    outline: none;
  }

  h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 12px;
    color: #222;
    font-size: 26px;
    font-weight: normal;
  }

  p {
    margin: 0 0 24px;
    color: #666;
    font-size: 15px;
    line-height: 1.5;
  }

  button, a {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: none;
    color: #777;
    font: inherit;
    font-size: 15px;
    cursor: pointer;
  }

  .announcement-primary {
    background-color: #10903b;
    color: #fff;
  }
}

.announcement-icon {
  padding: 12px;
  border-radius: 50%;
  background-color: #fff4d6;
  color: #f0a500;
  font-size: 20px;
}

.announcement-close {
  position: absolute;
  top: 12px;
  right: 2px;
}

.announcement-welcome {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid #dce7e0;
  border-radius: 8px;
  background-color: #f4f8f5;
  color: #526159;
  font-size: 14px;
  line-height: 1.5;

  h3 {
    margin: 0 0 4px;
    color: #304b3b;
    font-size: 15px;
    font-weight: 600;
  }

  p {
    margin: 0;
  }

  a {
    color: #28603e;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #b2cbbb;
    text-underline-offset: 3px;

    &:hover {
      text-decoration-color: currentColor;
    }
  }

  @media (max-width: 767px) {
    padding: 14px;
  }
}
