/* PT site layout. De-minified from the live main-min.css (2026-11-12), with the sweetalert and add-card
   rules removed and the changes from plan 5.1 item 5. Shared rules are in ../shared/css/base.css. */

.app-header {
  padding: 30px 30px 100px;
  position: relative;
}

/* Logged-in member and Log out, top right of the header. */
.account {
  position: absolute;
  top: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.account .link-button {
  min-height: 0;
  padding: 4px;
  font-size: 14px;
}

@media (max-width: 700px) {
  .account {
    position: static;
    justify-content: center;
    margin-top: 15px;
  }

  .account .link-button {
    min-height: 44px;
  }
}

.app-footer {
  margin-top: 100px;
  background: var(--color-gray);
  padding: 50px;
  opacity: .5;
}

.disclaimer {
  margin-top: 100px;
  font-size: 14px;
}

.wysiwyg > * {
  margin: 1em 0 0;
}

.wysiwyg > :first-child {
  margin-top: 0;
}

.wysiwyg li,
.wysiwyg p {
  font-size: 16px;
  line-height: 1.4em;
}

.wysiwyg ul {
  list-style: disc outside;
  padding-left: 20px;
}

/* ---- login ---- */

#login .inner,
#code .inner {
  max-width: 1080px;
}

.content-form {
  display: flex;
  align-items: center;
  position: relative;
  padding: 100px 50px;
}

.content-form .content {
  flex: 0 0 50%;
  padding: 20px 50px;
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, .5);
  border-radius: 10px;
  margin-right: 50px;
}

#cart h2,
.content-form .content h2,
#thankyou h2,
#welcome .products .product h3,
#welcome h2,
.section-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* As on the original site: a 360px card with centred labels and button. */
.content-form .form {
  flex: 0 1 360px;
  min-width: 0;
  background: var(--color-gray);
  padding: 20px;
  border-radius: 10px;
  position: relative;
  z-index: 2;
}

.content-form .form label,
#code label {
  display: block;
  margin: 15px 0 5px;
}

.content-form .form .input {
  width: 100%;
}

.content-form .form .button {
  margin-top: 15px;
}

.content-form .background-image {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wait {
  margin-top: 10px;
}

.see-club p {
  margin-bottom: 15px;
}

@media (max-width: 700px) {
  .content-form {
    padding: 50px 20px;
    display: block;
  }

  .content-form .content {
    margin: 0 0 50px;
    padding: 20px;
  }
}

/* ---- code ---- */

/* The code screen uses the same banner, text panel and card as the login screen. */
#otp {
  width: 100%;
  font-size: 24px;
  letter-spacing: .4em;
  text-align: center;
}

#otp-help {
  margin-top: 8px;
}

#code .button {
  margin-top: 15px;
}

.code-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin-top: 15px;
}

.code-links .link-button {
  min-height: 0;
  padding: 4px;
  font-size: 14px;
}

.code-expired {
  margin-top: 20px;
}

/* ---- welcome ---- */

#cart,
#welcome {
  text-align: left;
}

#cart .table,
#cart .wysiwyg,
#welcome .wysiwyg {
  margin-bottom: 20px;
}

#welcome-failed {
  margin-bottom: 20px;
}

/* Nothing to buy: a card in the place of the offers, and no "Limit one per member…" line under it. */
#welcome .products-empty {
  margin-top: 10px;
  padding: 24px 20px;
  border-radius: 10px;
  background: var(--color-gray);
}

#welcome .products-empty .products-empty-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

#welcome .products-empty p {
  margin: 0;
}

#welcome.is-empty [data-offer-text] {
  display: none !important;
}

#welcome-failed p {
  margin-bottom: 10px;
}

#welcome .products .product {
  padding: 20px;
  border-radius: 10px;
  background: var(--color-gray);
  margin-bottom: 20px;
  text-align: left;
}

#welcome .products .product h3 {
  font-size: 24px;
}

.long,
.product p {
  white-space: pre-line;
}

#welcome .products .product p {
  opacity: .7;
}

#welcome .products .product .bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: 20px;
}

#cart .price {
  justify-content: flex-end;
  font-size: 16px;
}

/* As on the original site: in the cart the price is not bold and sits closer to the struck-through one. */
#cart .price .new-price {
  font-weight: 400;
}

#cart .price .old-price {
  margin-right: 5px;
}

.price .old-price {
  text-decoration: line-through;
  margin-right: 10px;
  opacity: .7;
}

.price .per {
  font-size: 14px;
  opacity: .8;
  margin-left: 4px;
}

#thankyou .table tr.total td,
.price .new-price {
  font-weight: 700;
}

@media (max-width: 700px) {
  #welcome .products .product {
    text-align: center;
  }

  #welcome .products .product .bottom {
    display: block;
    margin-top: 20px;
  }

  #welcome .products .product .bottom .price {
    justify-content: center;
    margin-bottom: 10px;
  }
}

/* ---- cart ---- */

#cart .table,
#thankyou .table {
  border-collapse: collapse;
  width: 100%;
}

#cart .table td,
#thankyou .table td {
  border: 1px solid rgba(255, 255, 255, .3);
  padding: 20px;
  text-align: right;
}

#cart .table td:first-child,
#thankyou .table td:first-child {
  text-align: left;
}

#cart .table td.actions {
  width: 1%;
  white-space: nowrap;
}

#cart .remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#cart .remove img {
  max-width: 18px;
}

#cart .go-back {
  text-align: left;
  margin-bottom: 50px;
}

#cart-empty p {
  margin-bottom: 15px;
}

.cards legend {
  font-size: 20px;
  margin-bottom: 5px;
}

/* Real radios / checkboxes, visually replaced by the check.svg / check-active.svg pair. */
.choice-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.option,
.term-label {
  display: flex;
  align-items: center;
  margin: 15px 0;
  cursor: pointer;
  position: relative;
}

.term-label {
  margin: 0;
}

.option.is-disabled {
  opacity: .5;
  cursor: not-allowed;
}

.check {
  flex: 0 0 20px;
  max-width: 20px;
  margin-right: 10px;
  border-radius: 3px; /* the icons are rounded squares; a circle here clipped their corners */
}

.check--on {
  display: none;
}

.choice-input:checked ~ .check--off {
  display: none;
}

.choice-input:checked ~ .check--on {
  display: inline-block;
}

.choice-input:focus-visible ~ .check {
  outline: 2px solid #1e8dc7;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #fff;
}

.option .label {
  font-size: 20px;
}

#cart .terms {
  margin-top: 50px;
}

/* As on the original site: checkbox, sentence and "Read more" on one line; the long text opens underneath. */
#cart .terms .term {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
  row-gap: 6px;
  margin-bottom: 20px;
}

#cart .terms .term .term-label {
  flex: 0 1 auto;
  min-width: 0;
}

#cart .terms .term .read-more {
  display: inline-block;
  text-decoration: underline;
}

#cart .terms .term .long {
  flex: 0 0 100%;
  margin: 14px 0 0 30px;
  line-height: 1.4em;
  opacity: .85;
}

/* Phones: taller rows so the choices are easy to tap. */
@media (max-width: 700px) {
  #cart .remove {
    min-width: 44px;
    min-height: 44px;
  }

  .option,
  .term-label {
    min-height: 44px;
  }

  #cart .terms .term .read-more {
    min-height: 44px;
    margin-left: 30px;
  }
}

#checkout-submit {
  margin-top: 20px;
}

.locked-note {
  margin-top: 20px;
  padding: 12px 16px;
  border-left: 4px solid var(--color-error);
  border-radius: 8px;
  background: rgba(255, 107, 107, .16);
  line-height: 1.4em;
}

#tax-note {
  margin-top: 10px;
}

/* ---- thank you ---- */

#thankyou .wysiwyg {
  margin-bottom: 50px;
}

#thankyou #confirmation {
  margin-bottom: 20px;
}

#thankyou #recurring {
  margin-top: 30px;
}

.back-home {
  margin-top: 40px;
}
