.q-message-box-container {
  --message-box-indent: 32px;
  --message-box-container-width: 488px;

  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  &__scrollbar {
    width: 100%;
  }

  &__view {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    .q-message-box__scrollbar:not(.q-scrollbar_has-vertical-bar) & {
      align-items: center;
    }
  }

  &__shadow,
  &__clickable-shadow {
    position: absolute;
    top: 0;
    left: 0;
  }

  &__shadow {
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background-color: rgb(var(--color-rgb-white) / 70%);
  }

  &__clickable-shadow {
    width: 100%;
    height: 100%;
  }

  &__container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: var(--message-box-container-width);
    margin-top: 80px;
    margin-bottom: 80px;
    background-color: var(--color-tertiary-gray-ultra-light);
    border-radius: var(--border-radius-base);
    box-shadow: 0 100px 384px rgb(var(--color-rgb-gray) / 7%),
      0 41px 162px rgb(var(--color-rgb-gray) / 5%),
      0 22px 85px rgb(var(--color-rgb-gray) / 4%),
      0 12px 48px rgb(var(--color-rgb-gray) / 3%),
      0 7px 25px rgb(var(--color-rgb-gray) / 3%),
      0 3px 10px rgb(var(--color-rgb-gray) / 2%);
  }

  &__close {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 0;
    font-size: 32px;
    color: var(--color-primary-blue);
    background-color: transparent;
    border: none;

    &:hover,
    &.focus-visible {
      color: var(--color-primary-black);
    }
  }
}
