﻿/* small grey text on the cart and checkout pages: the lightest grey that is still easy to read
   (4.5:1) on the order summary's grey panel */
/*
    Shopping cart: the header indicator (every page) and the cart page.
    Rendered site wide from _Layout because the header indicator appears on every page.
*/
/* ---------- header indicator ---------- */
#header .header-cart {
  position: relative;
  float: right;
  display: block;
  color: #a6a6a6;
  font-size: 21pt;
  line-height: 30pt;
  padding: 0 10px;
  text-decoration: none; }
  #header .header-cart:hover, #header .header-cart:focus {
    color: #ff620a; }
  @media (min-width: 768px) {
    #header .header-cart {
      font-size: 17pt;
      line-height: 1;
      padding: 9px 0 0 16px;
      color: #4a4a4a; } }
  #header .header-cart .header-cart-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #ff620a;
    color: #fff;
    font-family: aileron, sans-serif;
    font-size: 11px;
    font-weight: bold;
    line-height: 18px;
    text-align: center; }
    @media (min-width: 768px) {
      #header .header-cart .header-cart-count {
        top: 0;
        right: -10px; } }

/* the category and home pages lay the header over a hero image */
@media (min-width: 768px) {
  .home #header .header-cart {
    color: #fff; } }

/* ---------- buy-alone products ---------- */
.replaces-cart-notice {
  display: block;
  max-width: 280px;
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #979797; }
  .replaces-cart-notice a {
    color: inherit;
    text-decoration: underline; }

/* ---------- replace-cart prompt ----------
   Asked on a product page when an add would take something out of the cart: an item in another
   currency, or anything bought on its own (_CartReplaceConfirm, cart-replace.js) */
#cart-replace-confirm {
  /* the items that would be replaced. About four and a half fit before it scrolls, so a long
       cart doesn't stretch the modal and the cut-off line shows there's more */ }
  #cart-replace-confirm .holder p {
    margin: 0 0 8px; }
  #cart-replace-confirm .cart-replace-items {
    max-height: 99px;
    margin: 0 0 12px;
    padding: 0 0 0 18px;
    overflow-y: auto;
    list-style: disc;
    font-size: 13px;
    line-height: 18px;
    color: #6f6f6f; }
    #cart-replace-confirm .cart-replace-items li {
      padding: 2px 0; }
  #cart-replace-confirm .btn-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 22px;
    padding: 0 15px 20px; }
    #cart-replace-confirm .btn-area .btn-default {
      width: auto;
      padding: 12px 18px 10px;
      font-size: 14px;
      text-transform: none; }

/* darkens on hover like Continue shopping on the cart page */
.cart-replace-keep {
  font-size: 14px;
  transition: color 0.30s ease-in-out; }
  .cart-replace-keep:hover, .cart-replace-keep:focus {
    color: var(--accent-color-dark); }

/* ---------- cart page ---------- */
/* the header's width on desktop. The container also has wide-layout, which sets 1220px with
   !important */
.container.cart {
  max-width: 1200px !important; }

.cart {
  padding-top: 30px;
  padding-bottom: 60px;
  /* "Your Cart" and "Checkout" */ }
  .cart .cart-title {
    margin-bottom: 20px;
    font-size: 24px; }

.cart-notice {
  margin-bottom: 20px;
  padding: 12px 15px;
  border-left: 3px solid #ff620a;
  background: #f4f4f4;
  font-size: 14px;
  line-height: 1.45; }

.cart-empty {
  padding: 50px 0;
  text-align: center; }
  .cart-empty p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #4a4a4a; }
  .cart-empty .btn-default {
    width: 320px;
    max-width: 100%; }

@media (min-width: 1024px) {
  .cart-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px; } }

.cart-lines,
.checkout-details {
  flex: 1 1 auto;
  min-width: 0; }

.cart-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 18px 0;
  border-bottom: 1px solid #e5e5e5; }
  .cart-line:first-child {
    border-top: 1px solid #e5e5e5; }

.cart-line-body {
  /* full width on phones, so quantity and price share the row beneath it */
  flex: 1 1 100%;
  min-width: 0;
  overflow-wrap: break-word; }
  @media (min-width: 768px) {
    .cart-line-body {
      flex-basis: 0; } }

.cart-line-title {
  display: block;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.3;
  color: #000; }

/* the item's name links back to its product page */
a.cart-line-title {
  text-decoration: none; }
  a.cart-line-title:hover, a.cart-line-title:focus {
    color: #000;
    text-decoration: underline; }

.cart-line-subtitle,
.cart-line-includes {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
  color: #6f6f6f; }

.cart-line-includes {
  padding: 0;
  list-style: none; }

.cart-line-saving {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: bold;
  color: #459d48; }

.cart-line-quantity {
  flex: 0 0 auto; }
  .cart-line-quantity select {
    min-width: 64px;
    height: 36px; }
  .cart-line-quantity .jcf-select {
    min-width: 64px; }

.cart-line-qty {
  font-size: 14px;
  color: #4a4a4a; }

.cart-line-price {
  flex: 1 0 auto;
  text-align: right; }
  @media (min-width: 768px) {
    .cart-line-price {
      flex: 0 0 130px; } }
  .cart-line-price strong {
    display: block;
    font-size: 16px;
    color: #000; }

.cart-line-each {
  display: block;
  font-size: 13px;
  color: #6f6f6f; }

.cart-remove-form {
  flex: 0 0 auto;
  margin: 0; }

.cart-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: #a6a6a6;
  cursor: pointer; }
  .cart-remove:hover, .cart-remove:focus {
    color: #d0021b; }

.cart-link-button {
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  color: #6f6f6f;
  text-decoration: underline;
  cursor: pointer; }
  .cart-link-button:hover, .cart-link-button:focus {
    color: #d0021b; }

.cart-summary {
  margin-top: 30px;
  padding: 22px;
  background: #f4f4f4;
  /* rows sit as close together as on the old checkout, on both the cart and checkout pages */
  /* the amount takes the width it needs, so it stays on one line on the narrowest phones */ }
  @media (min-width: 1024px) {
    .cart-summary {
      flex: 0 0 340px;
      margin-top: 0;
      position: sticky;
      top: 20px; } }
  .cart-summary h2 {
    margin-bottom: 14px;
    font-size: 18px; }
  .cart-summary dl {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 14px;
    font-size: 14px; }
  .cart-summary dt,
  .cart-summary dd {
    margin: 0;
    padding: 0 0 4px; }
  .cart-summary dt {
    flex: 1 1 60%;
    color: #4a4a4a; }
  .cart-summary dd {
    flex: 0 0 40%;
    text-align: right; }
  .cart-summary .cart-discount {
    color: #459d48; }
  .cart-summary .cart-total {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid #d0d0d0;
    font-size: 18px;
    font-weight: bold;
    color: #000; }
  .cart-summary dt.cart-total {
    flex: 1 1 0; }
  .cart-summary dd.cart-total {
    flex: 0 0 auto;
    white-space: nowrap; }

.cart-savings {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: bold;
  color: #459d48; }

.cart-checkout {
  display: block;
  width: 100%;
  font-size: 14px;
  text-align: center;
  text-transform: none; }

/* darkens on hover the way the Complete Checkout button does */
.cart-continue {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  text-align: center;
  transition: color 0.30s ease-in-out; }
  .cart-continue:hover, .cart-continue:focus {
    color: var(--accent-color-dark); }

.cart-small {
  margin-top: 14px;
  font-size: 13px;
  color: #6f6f6f; }

/* ---------- checkout page ----------
   The checkout uses the cart page's container, layout and order summary. Its billing and payment
   fields keep their .checkout-info styles from main.scss, which the stay and play page shares, so
   the changes to them here are scoped to .checkout-page */
/* the simple layout's header, as wide as the page below it */
#header .container.cart-header {
  max-width: none;
  padding-left: 0;
  padding-right: 0; }

/* and its footer, lined up with the page above it */
#footer .container.cart-footer {
  max-width: 1200px; }

.checkout-page {
  /* the form's clearfix would be an extra flex item, adding a second gap after the summary */
  /* "You're Getting" and its line sit level with Billing and the line under it, so the first item
       lines up with the Email label, as on the old checkout */
  /* "You're Getting" and "Edit cart" on one line, lined up on their text */
  /* the items are divided like the lines on the cart page */
  /* the separator under the title, as the cart page's first line has */
  /* the products an item is made of, indented under it */
  /* the checkout form left-aligns its buttons on tablets and up, and adds an arrow */
  /* the old checkout's size, without the bold links and in a grey that reads on the panel */ }
  .checkout-page .checkout-form.cart-layout:after {
    content: none; }
  .checkout-page .checkout-info .title-row {
    font-size: 18px;
    line-height: 18px; }
  .checkout-page .checkout-info .title.uppercase {
    text-transform: none; }
  .checkout-page .checkout-info .title .subtitle,
  .checkout-page .checkout-info .field-row label,
  .checkout-page .checkout-info .autofill-row,
  .checkout-page .checkout-info .autofill-row .lightbox-opener,
  .checkout-page .checkout-info .tickets {
    font-size: 13px; }
  .checkout-page .checkout-info .field-row label {
    text-transform: none;
    letter-spacing: 0; }
  .checkout-page .cart-summary {
    padding-top: 18px; }
  .checkout-page .cart-summary h2 {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d0d0d0; }
  .checkout-page .cart-summary-edit {
    font-family: open-sans, sans-serif;
    font-size: 13px;
    font-weight: normal; }
  .checkout-page .checkout-items {
    margin: 0 0 8px;
    padding: 0;
    border-bottom: 1px solid #d0d0d0;
    list-style: none; }
    .checkout-page .checkout-items > li {
      padding: 10px 0;
      font-size: 14px; }
      .checkout-page .checkout-items > li:first-child {
        padding-top: 0; }
      .checkout-page .checkout-items > li + li {
        border-top: 1px solid #e5e5e5; }
  .checkout-page .checkout-details {
    border-top: 1px solid #e5e5e5; }
  .checkout-page .checkout-item-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #000;
    /* the course name is in the site's theme colour, red while the christmas stylesheet is on */ }
    .checkout-page .checkout-item-row strong {
      color: var(--accent-color); }
    .checkout-page .checkout-item-row span {
      white-space: nowrap; }
  .checkout-page .checkout-includes {
    margin: 6px 0 0;
    padding: 0 0 0 10px;
    border-left: 2px solid #d0d0d0;
    list-style: none; }
    .checkout-page .checkout-includes > li + li {
      margin-top: 6px; }
    .checkout-page .checkout-includes strong {
      display: block;
      font-size: 13px;
      color: #4a4a4a; }
    .checkout-page .checkout-includes .cart-line-subtitle {
      margin-top: 0; }
  .checkout-page .cart-summary {
    /* the labels below are smaller than their amounts, so line them up on the text */
    /* the labels are the size of the item subtitles; the amounts stay as they are */
    /* the site's theme colour, red while the christmas stylesheet is on */ }
    .checkout-page .cart-summary dl {
      align-items: baseline; }
    .checkout-page .cart-summary dt:not(.cart-total) {
      font-size: 13px; }
    .checkout-page .cart-summary dd.cart-total {
      color: var(--accent-color); }
    .checkout-page .cart-summary dt a {
      margin-left: 6px;
      color: #6f6f6f;
      text-decoration: underline; }
    .checkout-page .cart-summary .cart-summary-sub {
      color: #6f6f6f; }
    .checkout-page .cart-summary dt.cart-summary-sub {
      padding-left: 12px; }
  .checkout-page .cart-code-entry {
    margin-bottom: 16px; }
    .checkout-page .cart-code-entry .apply {
      background: #fff; }
  .checkout-page .cart-checkout {
    text-align: center; }
    .checkout-page .cart-checkout span {
      padding: 0 15px; }
      .checkout-page .cart-checkout span:after {
        content: none; }
  .checkout-page .disclaimer {
    margin-top: 25px;
    font-size: 11px;
    line-height: 1.5;
    color: #6f6f6f; }
    .checkout-page .disclaimer a {
      color: #6f6f6f;
      font-weight: normal; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; }
