@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  /* primary */
  --Pale-blue: hsl(225, 100%, 94%);
  --Bright-blue: hsl(245, 75%, 52%);

  /* neutral */
  --Very-pale-blue: hsl(225, 100%, 98%);
  --Desaturated-blue: hsl(224, 23%, 55%);
  --Dark-blue: hsl(223, 47%, 23%);

  font-family: 'Red Hat Display', sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

main {
  background: wheat;
  align-content: center;
  min-height: 100vh;
  padding-inline: 1em;
}

.order {
  border-radius: 1em;
  margin-inline: auto;
  max-width: 25em;
  overflow: clip;
  scale: 0;
  animation: appear 500ms ease-in-out forwards;
}

.order_body {
  background: white;
  text-align: center;
  padding: 2em;

  & > button {
    color: white;
    background: var(--Bright-blue);
    box-shadow: 0px 10px 20px 0px rgba(56, 41, 224, 0.3);
    border: none;
    border-radius: 0.7em;
    font-family: inherit;
    font-weight: 900;
    margin-top: 2em;
    padding: 1em;
    width: 100%;
    display: block;
    cursor: pointer;
  }

  & > button:hover {
    background: hsla(245, 75%, 52%, 0.7);
    box-shadow: 0px 10px 20px 0px rgba(56, 41, 224, 0.5);
  }

  & > a {
    color: var(--Desaturated-blue);
    font-weight: 700;
    text-decoration: none;
    margin-top: 1.5em;
    display: inline-block;
  }
}

.order_title {
  font-weight: 900;
}

.order_description {
  color: var(--Desaturated-blue);
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: 1em;

  @media (min-width: 40em) {
    font-size: 1.125rem;
  }
}

.order_details {
  background: var(--Very-pale-blue);
  border-radius: 0.5em;
  font-size: calc(0.7rem + 0.5vw);
  margin-top: 1em;
  padding: 1em 1.5em;
  gap: 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;

  & > a {
    color: var(--Bright-blue);
    font-size: inherit;
    font-weight: 700;
  }

  @media (min-width: 40em) {
    font-size: 1rem;
  }
}

.details_left {
  font-size: inherit;
  gap: 1em;
  display: flex;
  align-items: center;
}

.plan-name {
  font-weight: 900;
  font-size: inherit;
}

.plan-price {
  color: var(--Desaturated-blue);
  font-weight: 500;
  font-size: inherit;
  margin-top: 0.1em;
  display: inline-block;
}

@keyframes appear {
  0% {
    scale: 0;
  }
  50% {
    scale: 0.9;
  }
  100% {
    scale: 0.8;
  }
}
