purchase-overlay
{
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 6vw;
  box-sizing: border-box;
  background-color: hsla( 226, 21%, 8%, 0.75 );
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

purchase-overlay.purchase-visible
{
  opacity: 1;
  pointer-events: auto;
}

purchase-box
{
  display: block;
  position: relative;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
  padding: 2.4em 2em;
  border-radius: 1.2em;
  border: 1px solid hsla( 195, 100%, 46%, 0.35 );
  background-color: hsl( 226, 21%, 14% );
  text-align: center;
  transform: scale( 0.95 );
  transition: transform 150ms ease;
}

purchase-overlay.purchase-visible purchase-box
{
  transform: scale( 1 );
}

purchase-close-button
{
  display: block;
  position: absolute;
  top: 0.8em;
  right: 0.8em;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  line-height: 2em;
  text-align: center;
  cursor: pointer;
  color: hsl( 0, 0%, 100% );
  background-color: hsla( 0, 0%, 100%, 0.08 );
  transition: background-color 150ms ease;
}

purchase-close-button::before
{
  content: "\2715";
}

purchase-close-button:hover
{
  background-color: hsla( 0, 0%, 100%, 0.18 );
}

purchase-title
{
  display: block;
  margin-bottom: 0.4em;
  font-size: 1.8em;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  color: hsl( 0, 0%, 100% );
}

purchase-info
{
  display: block;
  font-size: 1.1em;
  line-height: 1.5em;
  color: var( --main-color );
}
