/* Redeem a Gift Card: the popup on the Gifts page (#redeem), opened by itself at marianne.yoga/giftcard
   ========================================================================== */
/* the popup: blue like the box, with a white border and a white ~ behind its title */
.modal--redeem .modal__box,
.modal--redeem .modal__header {
  background: var(--blue);
}
.modal--redeem .modal__box {
  border-color: white;
}
.modal--redeem .modal__header {
  padding-left: 0.5rem; /* with the title's 1rem margin: 1.5rem in, lined up with the text */
  padding-right: 1.5rem; /* (popups usually leave 6rem) just enough to clear the X */
}
.modal--redeem .modal__title {
  position: relative;
  z-index: 0; /* so the ~ can sit behind the words but not behind the popup */
}
.modal--redeem .modal__title:before {
  content: "~";
  position: absolute;
  z-index: -1;
  bottom: -0.2rem;
  left: 0;
  right: 0;
  font-family: "Bodoni Moda";
  font-size: 14rem;
  line-height: 0;
  font-variation-settings: "wght" 450;
  text-align: center;
  color: white;
  pointer-events: none;
}
.redeem--modal {
  padding: 0 0.5rem; /* with the popup's own 1rem margin: 1.5rem in, lined up with the title */
  line-height: var(--line-height);
  font-variation-settings: "wght" 350; /* the same weight as paragraphs elsewhere (the page default is heavier) */
}
/* (popups don't space their paragraphs like the page's sections do) */
.redeem--modal > p + p {
  margin-top: 1rem;
}

/* the gift card's details (for ?code=…), the code box, and messages */
.redeem__details {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.redeem__details p {
  margin: 0.25rem 0;
}
.redeem p.redeem__status {
  color: var(--pink);
}
.redeem__form {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1.5rem; /* at the top, above how to book */
}
p + .redeem__form {
  margin-top: 1rem; /* under a message (e.g. "Gift card code not found") */
}
.redeem__input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem;
  border: 1px solid var(--content);
  border-radius: 2px;
  background: white;
  font-size: 1rem;
  text-transform: uppercase;
}
.redeem__input::placeholder {
  text-transform: none;
}
.redeem__button {
  flex: none;
  align-self: stretch; /* the full height of the code box beside it */
  box-sizing: border-box;
  width: auto;
  margin: 0;
  white-space: nowrap;
}
/* in the popup: the code box full width, Check code under it */
.redeem--modal .redeem__form {
  flex-direction: column;
  align-items: stretch;
}
.redeem--modal .redeem__input {
  padding: 0.75rem;
}
.redeem--modal .redeem__button {
  align-self: flex-start;
}
/* (consultation cards) what to include, as bullets; then the photo at the end, on the right */
.redeem__list {
  margin: 0.5rem 0 1rem; /* (.list gives the bullets their room) */
}
/* the signature, with the logo beside it on the right */
.redeem__signoff {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}
.redeem__signoff p.redeem__signature {
  margin: 0;
}
.redeem__logo {
  flex: none;
  height: 4.5rem;
  margin: 0 0.5rem 0 0; /* (logos are otherwise centred with 2rem above and below) */
}
.redeem .loader {
  display: block;
  margin: 1rem auto;
}
