/* PilotTrain: the cart and the checkout (inc/pt-checkout.php loads this on those two pages
   and nowhere else; the "Order received" page has its own, pt-thanks.css).

   Both are WooCommerce's blocks: the browser draws them, and their markup is WooCommerce's
   to change. So this works with the blocks, not against them:

   - Every rule starts at the block's own wrapper and then repeats WooCommerce's own selector,
     so it wins by one step and nothing else on the site can change.
   - WooCommerce takes its line colour from --wc-separator-color and most other colours from
     the text colour. Those two are set once, at the top.
   - A box to type in keeps WooCommerce's size (50px high, its label sliding up inside it);
     only its colours and corners change.
   - Where WooCommerce lays things out by the width of the block, so does this: its own
     classes (is-mobile, is-small, is-medium, is-large) and its own @container widths.
   - Nothing a customer needs is hidden, with one exception that is a choice: the cut-off
     blurb under each book's name (see "the books").

   Stripe draws the card form and the Apple Pay and Link buttons inside its own frames; they
   cannot be styled from here and are left alone. Nothing moves that did not move before.
   Every colour pair passes 4.5 to 1. */

/* =============================================================
   THE PAGE
   The body's own font here is Inter Tight in one weight, so every bold was a faked bold.
   These two pages get the site's Inter, as the home page and the book pages have.
   The heading and the block share one left edge, and a phone gets back some width.
   ============================================================= */
body:is(.woocommerce-cart,.woocommerce-checkout) .inside-article{
  font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
body:is(.woocommerce-cart,.woocommerce-checkout) .inside-article .entry-title{
  font-size:40px; font-weight:800; letter-spacing:-.03em; line-height:1.1; color:#00172a;
}
body:is(.woocommerce-cart,.woocommerce-checkout) .entry-content :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout,.ptbs.ptbs--cart,.ptbs.ptbs--checkout){
  width:100%;
}
@media (max-width:768px){
  body:is(.woocommerce-cart,.woocommerce-checkout) .inside-article .entry-title{font-size:34px;}
}
@media (max-width:480px){
  body:is(.woocommerce-cart,.woocommerce-checkout) .inside-article{padding-left:20px; padding-right:20px;}
  body:is(.woocommerce-cart,.woocommerce-checkout) .inside-article .entry-title{font-size:32px;}
}

body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout){
  --pt-ink:#00172a; --pt-text:#3d4c60; --pt-muted:#5b6b7c; --pt-line:#e3e8ee; --pt-field:#aab8c8;
  --pt-panel:#f6f8fb; --pt-blue:#0a66c2; --pt-blue-bg:#f2f8ff; --pt-blue-line:#d8e6f6; --pt-red:#b3261e;
  --wc-separator-color:var(--pt-line);
  --wc-checkout:10px;   /* pt-custom.css gives every WooCommerce button this corner, with !important: 5px elsewhere, 10px here as on "Add to cart" */
  color:var(--pt-ink);
}

/* =============================================================
   HEADINGS
   ============================================================= */
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-title.wc-block-components-checkout-step__title{
  font-size:20px; font-weight:800; letter-spacing:-.02em; line-height:1.25; color:var(--pt-ink);
}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-checkout-step__heading-container{gap:6px; margin-bottom:14px;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-checkout-step__description{font-size:14.5px; line-height:1.5; color:var(--pt-muted);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-form .wc-block-components-checkout-step{margin-bottom:32px;}

/* =============================================================
   BOXES TO TYPE IN, AND LISTS TO PICK FROM
   ============================================================= */
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-form .wc-block-components-text-input input,
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-text-input input{
  border-color:var(--pt-field); border-radius:10px; color:var(--pt-ink);
}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-blocks-components-select .wc-blocks-components-select__container{border-radius:10px;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-blocks-components-select .wc-blocks-components-select__select{
  border-color:var(--pt-field); border-radius:10px; color:var(--pt-ink);
}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-blocks-components-select .wc-blocks-components-select__expand{fill:var(--pt-ink);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-form .wc-block-components-text-input label,
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-text-input label,
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-blocks-components-select .wc-blocks-components-select__label{color:var(--pt-muted);}

/* in use */
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-form .wc-block-components-text-input input:focus,
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-text-input input:focus,
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-blocks-components-select .wc-blocks-components-select__select:focus{
  border-color:var(--pt-blue); box-shadow:0 0 0 3px rgba(10,102,194,.2); outline:none;
}

/* left empty, or filled in wrongly */
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-form .wc-block-components-text-input.has-error input,
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-text-input.has-error input,
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .has-error .wc-blocks-components-select .wc-blocks-components-select__select{border-color:var(--pt-red);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-form .wc-block-components-text-input.has-error input:focus,
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-text-input.has-error input:focus,
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .has-error .wc-blocks-components-select .wc-blocks-components-select__select:focus{border-color:var(--pt-red); box-shadow:0 0 0 3px rgba(179,38,30,.18);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-form .wc-block-components-text-input.has-error label,
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-text-input.has-error label,
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .has-error .wc-blocks-components-select .wc-blocks-components-select__label{color:var(--pt-red);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .has-error .wc-blocks-components-select .wc-blocks-components-select__expand{fill:var(--pt-red);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-validation-error{padding-top:7px; font-size:13.5px; font-weight:600; line-height:1.4; color:var(--pt-red);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-validation-error>p{line-height:1.4;}

/* a box to tick, and the note box one of them opens (the live checkout has neither today) */
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-checkbox label{padding:12px 0; font-size:14.5px; color:var(--pt-ink);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]{border-color:#8795a6; border-radius:6px;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked{border-color:var(--pt-blue);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:focus{outline:3px solid rgba(10,102,194,.35); outline-offset:2px;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-checkbox .wc-block-components-checkbox__mark{fill:var(--pt-blue);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-textarea{border-color:var(--pt-field); border-radius:10px; font-size:16px; color:var(--pt-ink);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-textarea:focus{border-color:var(--pt-blue); box-shadow:0 0 0 3px rgba(10,102,194,.2); outline:none;}

/* the small print around the boxes */
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-checkout__guest-checkout-notice{font-size:13.5px; line-height:1.45; color:var(--pt-muted);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-address-form__address_2-toggle{
  min-height:24px; padding:0; font-size:14px; font-weight:700; color:var(--pt-blue);
  text-decoration:underline; text-decoration-thickness:1.5px; text-underline-offset:3px;
}

/* =============================================================
   ONE OF SEVERAL: postage choices, ways to pay
   WooCommerce draws these as one outlined list and marks the chosen row. Here each choice
   is its own card, and the chosen one has a blue edge.
   ============================================================= */
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-radio-control--highlight-checked:after{content:none;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-radio-control--highlight-checked>.wc-block-components-radio-control__option:after,
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-radio-control--highlight-checked>div.wc-block-components-radio-control-accordion-option:after{content:none;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-radio-control--highlight-checked>label.wc-block-components-radio-control__option,
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-radio-control--highlight-checked>div.wc-block-components-radio-control-accordion-option{
  border-radius:12px; background:#fff; box-shadow:inset 0 0 0 1px var(--pt-field);
}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-radio-control--highlight-checked>label.wc-block-components-radio-control__option+label.wc-block-components-radio-control__option,
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-radio-control--highlight-checked>div.wc-block-components-radio-control-accordion-option+div.wc-block-components-radio-control-accordion-option{margin-top:8px;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-radio-control--highlight-checked>label.wc-block-components-radio-control__option--checked-option-highlighted,
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-radio-control--highlight-checked>div.wc-block-components-radio-control-accordion-option--checked-option-highlighted{
  border-radius:12px; box-shadow:inset 0 0 0 2px var(--pt-blue);
}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-radio-control--highlight-checked>label.wc-block-components-radio-control__option--checked-option-highlighted{background:var(--pt-blue-bg);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-radio-control .wc-block-components-radio-control__input{border-color:#8795a6;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-radio-control .wc-block-components-radio-control__input:checked{border-color:var(--pt-blue);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-radio-control .wc-block-components-radio-control__input:checked:before{background:var(--pt-blue);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-radio-control .wc-block-components-radio-control__input:focus{outline:3px solid rgba(10,102,194,.35); outline-offset:2px;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-radio-control__label,
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-shipping-rates-control__package .wc-block-components-radio-control__label{font-size:15.5px; font-weight:600; line-height:1.35; color:var(--pt-ink);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-radio-control__secondary-label{font-size:15.5px; font-weight:800; line-height:1.35; color:var(--pt-ink);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-radio-control__description,
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-radio-control__secondary-description{font-size:13.5px; color:var(--pt-muted);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-payment-method-label{font-size:15.5px; font-weight:600; color:var(--pt-ink);}

/* =============================================================
   THE QUICK WAYS TO PAY (Apple Pay, Link)
   On the checkout WooCommerce draws a box with its title cut into the top edge, out of
   three pieces of border. Here it is one plain panel with the title inside it.
   ============================================================= */
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-express-payment--checkout{
  margin:0; padding:16px 16px 18px; border:1px solid var(--pt-line); border-radius:14px; background:var(--pt-panel);
}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-express-payment--checkout .wc-block-components-express-payment__title-container{position:static; display:block; margin:0 0 12px;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-express-payment--checkout .wc-block-components-express-payment__title-container:before,
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-express-payment--checkout .wc-block-components-express-payment__title-container:after{content:none;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-express-payment--checkout .wc-block-components-express-payment__title{
  transform:none; margin:0; padding:0; font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; line-height:1.4; text-align:left; color:var(--pt-muted);
}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-express-payment--checkout .wc-block-components-express-payment__content{margin:0; padding:0; border:0; border-radius:0; min-height:0;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-express-payment .wc-block-components-express-payment__event-buttons>li{border-radius:10px;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-express-payment-continue-rule{
  margin:18px 0 26px; font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--pt-muted);
}

/* =============================================================
   BUTTONS (the same as "Add to cart" on a book's page)
   ============================================================= */
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-button.contained:not(.is-link){
  min-height:56px; padding:14px 24px; border:0; background:#00172a; color:#fff;
  font-size:17px; font-weight:800; letter-spacing:-.01em; line-height:1.2; text-decoration:none; transition:background .16s;
}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-button.contained:not(.is-link):hover{background:#0a66c2; color:#fff;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-button.contained:not(.is-link):focus{box-shadow:0 0 0 3px #fff, 0 0 0 6px #5d8ce6; outline:3px solid transparent;}
/* "Apply", beside the coupon box: as high as the box */
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button.contained:not(.is-link){min-height:50px; padding:0 18px; font-size:15px;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-checkout-return-to-cart-button{font-size:14.5px; font-weight:700; color:var(--pt-blue);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-checkout__actions{margin-top:4px;}

/* the line before "Place Order" */
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-checkout__terms{font-size:13.5px; line-height:1.55; color:var(--pt-muted);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-checkout__terms a{font-weight:700; color:var(--pt-blue); text-decoration:underline; text-underline-offset:3px;}

/* =============================================================
   THE BOOKS: a line in the cart, a line in the checkout's summary
   ============================================================= */
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name{
  font-size:16px; font-weight:700; letter-spacing:-.005em; line-height:1.5; color:var(--pt-ink); text-decoration:none;
}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) table.wc-block-cart-items .wc-block-cart-items__row a.wc-block-components-product-name:hover{color:var(--pt-blue); text-decoration:underline;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-order-summary .wc-block-components-product-name{font-size:15px; font-weight:700; line-height:1.4; color:var(--pt-ink);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__prices,
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-order-summary .wc-block-cart-item__prices{font-size:14px; font-weight:500; line-height:1.4; color:var(--pt-muted);}
/* The start of the book's description is printed under its name and cut off after a line
   or two ("4 PPL practice exams with feedback, based on…"). Left out: the name, the price
   and the number say what is being bought. A choice; take this rule out to bring it back. */
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-product-metadata .wc-block-components-product-metadata__description{display:none;}
/* a note on a line, such as "Printed to order" */
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-product-metadata .wc-block-components-product-details{margin:6px 0 0; padding:0; list-style:none; font-size:13.5px; line-height:1.4; color:var(--pt-text);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-product-metadata .wc-block-components-product-details>*{
  display:inline-block; margin:0 0 4px; padding:5px 10px; border:1px solid var(--pt-blue-line); border-radius:9px; background:var(--pt-blue-bg);
}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-product-details__name{font-weight:700; color:var(--pt-ink);}

/* =============================================================
   THE SUMS: subtotal, postage, total
   ============================================================= */
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-totals-item{font-size:15px; line-height:1.45;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-totals-item__label{font-weight:500; color:var(--pt-text);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-totals-item__value{font-weight:700; color:var(--pt-ink);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-totals-shipping .wc-block-components-totals-shipping__via,
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-totals-item__description{font-size:13px; font-weight:500; line-height:1.4; color:var(--pt-muted);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-totals-footer-item .wc-block-components-totals-item__value{font-size:20px; font-weight:800; letter-spacing:-.015em; line-height:1.3; color:var(--pt-ink);}
/* "Add coupons" */
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-totals-coupon .wc-block-components-panel__button{font-size:15px; font-weight:700; line-height:1.45; color:var(--pt-ink);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-totals-coupon .wc-block-components-panel__button[aria-expanded=true]{margin-bottom:12px;}

/* =============================================================
   THE CHECKOUT'S ORDER SUMMARY
   Beside the form on a wide screen. On a narrow one WooCommerce shows it twice: folded
   away at the top, and in full before "Place Order".
   ============================================================= */
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wp-block-woocommerce-checkout-order-summary-block{border:1px solid var(--pt-line); border-radius:14px; background:var(--pt-panel);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-text{
  font-size:18px; font-weight:800; letter-spacing:-.015em; line-height:1.3; color:var(--pt-ink);
}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title-price{font-size:16px; font-weight:800; color:var(--pt-ink);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-order-summary .wc-block-components-order-summary-item__image>img{border-radius:5px;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-order-summary .wc-block-components-order-summary-item__quantity{
  min-width:22px; min-height:22px; background:var(--pt-ink); box-shadow:0 0 0 2px var(--pt-panel); font-size:12px; font-weight:700;
}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-order-summary .wc-block-components-order-summary-item__quantity span{color:#fff;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-order-summary .wc-block-components-order-summary-item__total-price{font-size:15px; font-weight:700; color:var(--pt-ink);}

@container (max-width: 699px){
  /* at the top, folded: one bar to tap */
  body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wp-block-woocommerce-checkout-order-summary-block:not(.checkout-order-summary-block-fill-wrapper){border:1px solid var(--pt-line);}
  body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title{margin:0; padding:15px 16px; border:0;}
  body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__content.is-open{padding:0 16px; border-top:1px solid var(--pt-line); border-bottom:0;}
  /* before "Place Order": a heading like the others, then the panel */
  body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wp-block-woocommerce-checkout-order-summary-block.checkout-order-summary-block-fill-wrapper{padding-bottom:28px; border:0; border-radius:0; background:none;}
  body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wp-block-woocommerce-checkout-order-summary-block.checkout-order-summary-block-fill-wrapper .wc-block-components-title{
    margin-bottom:14px; font-size:20px; font-weight:800; letter-spacing:-.02em; line-height:1.25; color:var(--pt-ink);
  }
  body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wp-block-woocommerce-checkout-order-summary-block .checkout-order-summary-block-fill{border:1px solid var(--pt-line); border-radius:14px; background:var(--pt-panel);}
}

/* a tablet held upright: the summary sits beside the form but is narrow, so the names get a little more room */
@container (min-width: 700px) and (max-width: 899px){
  body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-order-summary .wc-block-components-order-summary-item__description{padding-left:16px; padding-right:8px;}
  body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-order-summary .wc-block-components-product-name{font-size:14px;}
  body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
  body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-totals-footer-item .wc-block-components-totals-item__value{font-size:18px;}
}

/* =============================================================
   THE CART
   ============================================================= */
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) table.wc-block-cart-items .wc-block-cart-items__header th{font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--pt-muted);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img{border-radius:5px;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total{font-size:16px; font-weight:800; line-height:1.5; color:var(--pt-ink);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity{gap:6px; margin-top:10px;}

/* how many: a wider, taller control, easy to hit with a thumb */
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-quantity-selector{flex:none; width:124px; border:1px solid var(--pt-field); border-radius:10px; background:#fff;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input{min-height:44px; padding:0; font-size:15.5px; font-weight:700; color:var(--pt-ink);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button{min-width:40px; min-height:44px; font-size:19px; font-weight:500; line-height:1; color:var(--pt-ink); opacity:1;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover{background:var(--pt-panel);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:disabled{color:#8795a6; background:none; opacity:1;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-quantity-selector>.wc-block-components-quantity-selector__button--minus{border-radius:9px 0 0 9px;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-quantity-selector>.wc-block-components-quantity-selector__button--plus{border-radius:0 9px 9px 0;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input:focus,
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:focus{box-shadow:inset 0 0 0 2px var(--pt-blue);}
/* take it out of the cart */
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link{
  flex:none; display:inline-grid; place-items:center; width:46px; height:46px; border-radius:10px; color:var(--pt-muted);
}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link:hover{background:#fdf3f2; color:var(--pt-red);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link:focus-visible{outline:3px solid #5d8ce6; outline-offset:1px;}

/* on a narrow block WooCommerce stacks each line: cover, then name and number, then the price.
   Its columns are fixed at 80px and 132px, which is where the squeeze on a phone came from. */
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) :is(.is-mobile,.is-small,.is-medium) table.wc-block-cart-items .wc-block-cart-items__row{grid-template-columns:72px minmax(0,1fr) auto; column-gap:14px; padding:18px 0;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) :is(.is-mobile,.is-small,.is-medium) table.wc-block-cart-items .wc-block-cart-items__row+.wc-block-cart-items__row{border-top:1px solid var(--pt-line);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) :is(.is-mobile,.is-small,.is-medium) table.wc-block-cart-items .wc-block-cart-items__row:first-child{padding-top:6px;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) :is(.is-mobile,.is-small,.is-medium) table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image{padding-right:0;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) :is(.is-mobile,.is-small,.is-medium) table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product{grid-column:2 / 3;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) :is(.is-mobile,.is-small,.is-medium) table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total{grid-column:3; grid-row:1;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) :is(.is-mobile,.is-small,.is-medium) table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity{padding-right:0;}

/* the sums beside it: a panel */
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-cart .wp-block-woocommerce-cart-order-summary-block{
  margin:0 0 16px; padding:0 16px; border:1px solid var(--pt-line); border-radius:14px; background:var(--pt-panel);
}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-cart .wc-block-cart__totals-title{
  padding:14px 0 12px; font-size:18px; font-weight:800; letter-spacing:-.015em; text-transform:none; line-height:1.3; color:var(--pt-ink);
}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) :is(.is-mobile,.is-small,.is-medium) .wp-block-woocommerce-cart-order-summary-coupon-form-block.wc-block-components-totals-wrapper{border-top:0;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-cart .wc-block-cart__payment-options .wc-block-components-express-payment-continue-rule{margin:14px 0;}

/* on a phone the button to the checkout follows the screen. WooCommerce paints its bar in the
   page's own background by script (here the dark blue behind the page), hence the !important. */
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-cart .wc-block-cart__submit-container--sticky{padding:12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background-color:#fff !important;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-cart .wc-block-cart__submit-container--sticky:before{box-shadow:0 -1px 0 var(--pt-line), 0 -10px 24px rgba(0,23,42,.12); color:transparent;}

/* =============================================================
   MESSAGES
   ============================================================= */
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-notice-banner{border-radius:12px; font-size:14.5px; color:var(--pt-ink);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-notice-banner>.wc-block-components-button:after{content:""; position:absolute; inset:-14px;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-notice-banner.is-error{border-color:#f1c4c0; background:#fdf3f2;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-notice-banner.is-error>svg{background-color:var(--pt-red);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-notice-banner.is-success{border-color:#bfe6cd; background:#effaf3;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-notice-banner.is-success>svg{background-color:#15803d;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-notice-banner.is-info{border-color:var(--pt-blue-line); background:var(--pt-blue-bg);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-notice-banner.is-info>svg{background-color:var(--pt-blue);}

/* =============================================================
   AN EMPTY CART: the words, and the books underneath
   ============================================================= */
/* WooCommerce's picture here is a crying face, drawn by :before. A fuel gauge on empty goes with
   the words, and is drawn as the heading's own background so that its first line ("Fuel tanks
   are empty!") can be told apart from its second (a :before block would count as the first). */
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title.with-empty-cart-icon:before{content:none;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title{
  margin:8px 0 0; padding-top:86px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72' fill='none' stroke='%2300172a' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 50a26 26 0 0 1 52 0'/%3E%3Cpath d='M36 50 18 39'/%3E%3Cpath d='M36 15v6M11.5 36.5l5.5 2.5M60.5 36.5 55 39M20 24l4 4M52 24l-4 4'/%3E%3Ccircle cx='36' cy='50' r='4' fill='%2300172a' stroke='none'/%3E%3C/svg%3E") center top / 72px 72px no-repeat;
  font-size:16px; font-weight:500; line-height:1.5; color:var(--pt-muted);
}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title::first-line{font-size:24px; font-weight:800; letter-spacing:-.02em; line-height:1.4; color:var(--pt-ink);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wp-block-woocommerce-empty-cart-block hr.wp-block-separator{margin:28px auto; color:var(--pt-field);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wp-block-woocommerce-empty-cart-block h3.wp-block-heading{margin:0 0 20px; font-size:22px; font-weight:800; letter-spacing:-.02em; line-height:1.25; color:var(--pt-ink);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wp-block-woocommerce-empty-cart-block .wc-block-grid__product{display:flex; flex-direction:column; align-items:center;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wp-block-woocommerce-empty-cart-block .wc-block-grid__product .wc-block-grid__product-title{margin-bottom:8px; font-size:14.5px; font-weight:700; line-height:1.35; color:var(--pt-ink);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wp-block-woocommerce-empty-cart-block .wc-block-grid__product .wc-block-grid__product-link{text-decoration:none;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wp-block-woocommerce-empty-cart-block .wc-block-grid__product .wc-block-grid__product-link:hover .wc-block-grid__product-title{color:var(--pt-blue); text-decoration:underline;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wp-block-woocommerce-empty-cart-block .wc-block-grid__product .wc-block-grid__product-price{margin-top:auto; font-size:15.5px; font-weight:800; color:var(--pt-ink);}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wp-block-woocommerce-empty-cart-block .wc-block-grid__product .wc-block-grid__product-add-to-cart.wp-block-button{margin-top:0;}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link{
  align-items:center; min-height:44px; padding:6px 18px; border:0; border-radius:10px; background:#00172a; color:#fff;
  font-size:14.5px; font-weight:800; letter-spacing:-.005em; line-height:1.2; text-decoration:none; transition:background .16s;
}
body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link:hover{background:#0a66c2; color:#fff;}
@media (max-width:480px){
  body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wp-block-woocommerce-empty-cart-block .wc-block-grid .wc-block-grid__products{display:grid; grid-template-columns:repeat(2,minmax(0,1fr));}
  body :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wp-block-woocommerce-empty-cart-block .wc-block-grid .wc-block-grid__products .wc-block-grid__product{max-width:none;}
}
