/*
 * Single product page — inc/product-page.php, js/product.js.
 * Same colours and shapes as the basket (cart.css): navy #1B365D, hairline #D3D6E0,
 * pack chips in the basket's pack-tag yellow, green #3C8430 Add to basket.
 */

/* ---- Options: label, then tap buttons ------------------------------------------------ */

.ppo-variations {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0 0 16px;
}

.ppo-attr {
    border-radius: 8px;
    transition: box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ppo-attr.is-highlighted {
    box-shadow: 0 0 0 4px #FFF7DE, 0 0 0 6px #FFC629;
}

.ppo-attr__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    margin-bottom: 8px;
}

.ppo-attr__label {
    font-size: 15px;
    font-weight: 800;
    color: #1B365D;
}

.ppo-attr__chosen {
    font-size: 14px;
    color: #4F5665;
}

.ppo-size-chart-link {
    margin-left: auto;
    padding: 4px 0;
    border: 0;
    background: none;
    color: #1B365D;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* WooCommerce's selects stay in the page (they do the work) but are hidden once the buttons are ready. */
.ppo-variations-ready .ppo-variations select {
    display: none !important;
}

.ppo-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

.ppo-options[hidden] {
    display: none;
}

.ppo-options--pack {
    display: flex;
    flex-wrap: wrap;
}

.ppo-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 6px 10px;
    border: 1px solid #D3D6E0;
    border-radius: 5px;
    background: #FFFFFF;
    color: #1B365D;
    font: inherit;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: border-color 75ms, background-color 75ms;
}

.ppo-option:hover {
    border-color: #1B365D;
}

.ppo-option:focus-visible {
    outline: 2px solid #3D398F;
    outline-offset: 2px;
}

.ppo-option__main {
    font-size: 14px;
    font-weight: 800;
}

.ppo-option__sub {
    font-size: 12px;
    color: #4F5665;
}

.ppo-option__sub:empty {
    display: none;
}

.ppo-option.is-selected {
    border: 2px solid #1B365D;
    padding: 5px 9px;
    background: #F6F8FA;
}

/* Sizes in the band chosen on the category page ("Medium"). */
.ppo-option.is-fit {
    border-color: #E0A800;
    background: #FFF7DE;
}

.ppo-option.is-fit.is-selected {
    border-color: #1B365D;
}

.ppo-fit-note {
    margin: -2px 0 8px;
    color: #4F5665;
    font-size: 13px;
}

/* Not available with the other choice: greyed, still tappable (it starts the choice again). */
.ppo-option.is-unavailable {
    border-style: dashed;
    background: #FFFFFF;
    color: #8A8F9C;
}

.ppo-option.is-unavailable .ppo-option__sub {
    color: #A3A8B4;
}

/* Colour chips: compact, with a dot in the colour, so 20 colours fit in a few rows. */
.ppo-options--colour {
    display: flex;
    flex-wrap: wrap;
}

.ppo-option--colour {
    flex-direction: row;
    gap: 8px;
    min-height: 44px;
    padding: 4px 14px 4px 8px;
    border-radius: 100px;
}

.ppo-option--colour.is-selected {
    padding: 3px 13px 3px 7px;
}

.ppo-option__swatch {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
}

.ppo-option__swatch--unknown {
    background: repeating-linear-gradient(45deg, #EEEEEE, #EEEEEE 4px, #FFFFFF 4px, #FFFFFF 8px);
}

/* "Mixed" / "Assorted": a few colours, not the "no colour known" stripes. */
.ppo-option__swatch--mixed {
    background: conic-gradient(#E75480 0 25%, #FFD100 0 50%, #2E8B57 0 75%, #1F5FBF 0);
}

.ppo-option--colour .ppo-option__main {
    font-size: 14px;
}

.ppo-option--colour.is-unavailable .ppo-option__swatch {
    opacity: .35;
}

/* Pack chips: the basket's "Pack of 10" tag, as buttons. */
.ppo-option--chip {
    min-height: 44px;
    padding: 4px 16px;
    border-color: #F2E2AE;
    border-radius: 100px;
    background: #FFFCF2;
}

.ppo-option--chip.is-selected {
    border: 2px solid #1B365D;
    padding: 3px 15px;
    background: #FFF7DE;
}

.ppo-option--chip.is-unavailable {
    border-color: #D3D6E0;
    background: #FFFFFF;
}

.ppo-variations .reset_variations {
    align-self: flex-start;
    margin-top: -6px;
    color: #BC212D;
    font-size: 14px;
    font-weight: 700;
}

/* ---- Price ------------------------------------------------------------------------- */

/* Fixed line heights, so the page does not move when the price changes. */
.ppo-price {
    margin: 4px 0 10px;
}

.ppo-price p {
    margin: 0;
}

.ppo-price__main {
    min-height: 40px;
    font-size: 32px;
    line-height: 40px;
    font-weight: 900;
    color: #1B365D;
}

.ppo-price:not(.is-chosen) .ppo-price__main {
    font-size: 26px;
}

.ppo-price__unit {
    min-height: 22px;
    font-size: 15px;
    line-height: 22px;
    font-weight: 700;
    color: #4F5665;
}

.ppo-price__saving {
    min-height: 20px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 800;
    color: #34732A;
}

/* The delivery promise by the price (text from WooCommerce → Settings → PPO site). */
.ppo-price__delivery {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #34732A;
}

.ppo-price__delivery svg {
    flex: 0 0 16px;
}

/* WooCommerce's own variation price would repeat ours. Stock status stays. */
.ppo-variations-ready ~ .single_variation_wrap .woocommerce-variation-price,
.variations_form.ppo-variations-ready .woocommerce-variation-price {
    display: none;
}

/* ---- Add to basket and trust line --------------------------------------------------- */

.single-product .woocommerce-variation-add-to-cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.single-product .woocommerce-variation-add-to-cart .quantity.quantitySelector {
    margin: 0 !important;
}

.single-product .woocommerce-variation-add-to-cart .quantitySelector input.qty {
    width: 56px;
    text-align: center;
}

.single-product .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    flex: 1 1 200px;
    min-height: 52px;
    font-size: 17px !important;
    font-weight: 800;
}

.ppo-trust {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    font-weight: 700;
    color: #1B365D;
}

.ppo-trust li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.ppo-trust__delivery {
    color: #34732A;
}

.ppo-trust__star {
    color: #E0A800;
    font-size: 16px;
}

/* ---- Size chart sheet ---------------------------------------------------------------- */

.ppo-sheet {
    width: min(640px, calc(100% - 32px));
    max-height: 80vh;
    padding: 0;
    border: 0;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, .35) 0 20px 30px -10px;
    color: #4F5665;
}

.ppo-sheet::backdrop {
    background: rgba(11, 19, 42, .45);
}

.ppo-sheet__head {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #D3D6E0;
    background: #FFFFFF;
}

.ppo-sheet__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    color: #1B365D;
}

.ppo-sheet__close {
    width: 44px;
    height: 44px;
    margin-right: -10px;
    border: 0;
    background: none;
    color: #1B365D;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.ppo-sheet__body {
    padding: 12px 16px 20px;
    overflow-x: auto;
}

.ppo-sheet__body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ppo-sheet__body th,
.ppo-sheet__body td {
    padding: 8px;
    border-bottom: 1px solid #D3D6E0;
    text-align: left;
}

/* "What are you sending?" in the size sheet: typical uses → size; a tap chooses that size. */
.ppo-fit {
    margin: 0 0 16px;
    padding: 14px;
    border-radius: 8px;
    background: #FFF7DE;
}

.ppo-fit__title,
.ppo-fit__chart-title {
    margin: 0 0 2px;
    color: #1B365D;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

.ppo-fit__chart-title {
    margin: 4px 0 8px;
}

.ppo-fit__intro {
    margin: 0 0 10px;
    font-size: 14px;
}

.ppo-fit__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ppo-fit__list::before,
.ppo-fit__list::after {
    display: none !important;
}

.ppo-fit__list li {
    margin: 0;
}

.ppo-fit__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #FFFFFF;
    color: #4F5665;
    font: inherit;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.ppo-fit__card.is-selected {
    border: 2px solid #1B365D;
    padding: 9px 11px;
}

.ppo-fit__card:focus-visible {
    outline: 2px solid #3D398F;
    outline-offset: 2px;
}

.ppo-fit__use {
    margin-bottom: 4px;
    color: #1B365D;
    font-size: 15px;
    font-weight: 800;
}

.ppo-fit__size {
    font-size: 14px;
}

.ppo-fit__inch {
    color: #8A8F9C;
    font-size: 12px;
}

.ppo-fit__inch:empty {
    display: none;
}

/* Nothing to buy: a clear message instead of greyed-out options. */
.ppo-price--unavailable .ppo-price__main {
    color: #4F5665;
}

.ppo-unavailable__text {
    margin: 4px 0 16px;
    font-size: 15px;
    line-height: 1.45;
}

.ppo-unavailable__text a {
    color: #1B365D;
    font-weight: 800;
    white-space: nowrap;
}

.ppo-product-unavailable .variations_form .ppo-variations,
.ppo-product-unavailable .variations_form .single_variation_wrap {
    display: none !important;
}

/* ---- Sticky bar (phones only) -------------------------------------------------------- */

.ppo-buybar {
    display: none;
}

@media only screen and (max-width: 768px) {

    /* Smaller headings; title, price, options and button come before the description. */
    .single-product h1.product_title {
        font-size: 24px !important;
        line-height: 1.2;
        margin: 0 0 6px !important;
    }

    .single-product .summary.entry-summary h2,
    .single-product .woocommerce-tabs h2,
    .single-product section.related > h2,
    .single-product section.up-sells > h2 {
        font-size: 20px;
        line-height: 1.25;
    }

    .single-product .summary.entry-summary {
        display: flex;
        flex-direction: column;
    }

    .single-product .summary.entry-summary > .woocommerce-product-details__short-description {
        order: 20;
        margin-top: 16px;
    }

    /* Shorter photo, so the options start on the first screen. */
    .single-product .woocommerce-product-gallery .flex-viewport {
        max-height: 240px !important;
    }

    .single-product .woocommerce-product-gallery__image img {
        width: 100% !important;
        height: 240px !important;
        object-fit: contain;
    }

    .ppo-options--grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.ppo-has-buybar {
        padding-bottom: var(--ppo-buybar-h, 76px);
    }

    .ppo-buybar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 990;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
        background: #FFFFFF;
        border-top: 1px solid #D3D6E0;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, .08);
        transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .ppo-buybar[hidden] {
        display: none;
    }

    /* Out of the way while the page's own button is on screen. */
    .ppo-buybar.is-tucked {
        transform: translateY(110%);
    }

    .ppo-buybar__info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        line-height: 1.3;
    }

    .ppo-buybar__pack {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: 13px;
        color: #4F5665;
    }

    .ppo-buybar__price {
        font-size: 18px;
        font-weight: 900;
        color: #1B365D;
    }

    .ppo-buybar__price:empty {
        display: none;
    }

    .ppo-buybar__line {
        display: flex;
        align-items: baseline;
        gap: 6px;
        white-space: nowrap;
    }

    .ppo-buybar__delivery {
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 13px;
        font-weight: 700;
        color: #34732A;
    }

    .ppo-buybar__button {
        flex: 0 0 auto;
        min-width: 150px;
        height: 48px;
        padding: 0 18px;
        border: 0;
        border-radius: 5px;
        background: #3C8430;
        color: #FFFFFF;
        font: inherit;
        font-size: 16px;
        font-weight: 800;
        cursor: pointer;
    }

    /* "Choose a size" is the first step to buying, so it is green too. */
    .ppo-buybar__button.is-choosing {
        background: #3C8430;
    }

    .ppo-buybar__button:disabled {
        background: #D3D6E0;
        color: #4F5665;
        cursor: not-allowed;
    }

    /* Size chart as a bottom sheet. */
    .ppo-sheet {
        width: 100%;
        max-width: none;
        margin: auto 0 0;
        border-radius: 12px 12px 0 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}

.ppo-sheet__body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ---- Phones: 16px side margins, nothing wider than the screen --------------------------- */
@media only screen and (max-width: 768px) {
    /* The theme's container gives 8px each side; another 8px here makes 16px, like the sticky bar. */
    .single-product div.product {
        padding-left: 8px;
        padding-right: 8px;
        box-sizing: border-box;
    }

    /* Flex items otherwise grow to fit wide content (a table, a long word) and widen the page. */
    .single-product .summary.entry-summary > *,
    .single-product .addToCartWrapper,
    .single-product .variations_form,
    .single-product .ppo-attr,
    .single-product .ppo-options {
        min-width: 0;
        max-width: 100%;
    }

    /* Anything that still pokes out (gallery arrows, a widget) must not make the page scroll sideways. */
    html,
    body.single-product {
        overflow-x: hidden;
        overflow-x: clip;
    }
}

/* ---- Product tabs (Description, Delivery…): one text style --------------------------------
   style-additions.css sets paragraphs to 12px under 420px but leaves list items at 16px, and
   headings use the desktop sizes, so on a phone the description mixed three sizes. */
.single-product .ppo-tab-content p,
.single-product .ppo-tab-content li,
.single-product .ppo-tab-content td,
.single-product .ppo-tab-content th {
    font-family: Nunito, sans-serif;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #333333;
}

.single-product .ppo-tab-content th {
    color: #FFFFFF;
}

.single-product .ppo-tab-content p {
    margin: 0 0 12px;
}

/* !important also beats sizes and indents pasted in with the text (Word / Google Docs spans). */
.single-product .ppo-tab-content ul,
.single-product .ppo-tab-content ol {
    margin: 0 0 12px !important;
    padding-left: 20px !important;
}

.single-product .ppo-tab-content li {
    margin: 0 0 4px !important;
    padding-left: 0 !important;
}

.single-product .ppo-tab-content p *,
.single-product .ppo-tab-content li *,
.single-product .ppo-tab-content td * {
    font-size: inherit !important;
    line-height: inherit !important;
    font-family: inherit !important;
}

.single-product .ppo-tab-content h2,
.single-product .ppo-tab-content h3,
.single-product .ppo-tab-content h4 {
    font-family: Nunito, sans-serif;
    font-weight: 800;
    color: #1B365D;
    margin: 20px 0 8px;
}

.single-product .ppo-tab-content h2 {
    font-size: 24px;
    line-height: 1.25;
}

.single-product .ppo-tab-content h3 {
    font-size: 19px;
    line-height: 1.3;
}

.single-product .ppo-tab-content h4 {
    font-size: 16px;
    line-height: 1.35;
}

.single-product .ppo-tab-content > :first-child {
    margin-top: 8px;
}

@media only screen and (max-width: 768px) {
    .single-product .woocommerce-Tabs-panel {
        padding: 12px 16px !important;
    }

    .single-product .ppo-tab-content h2 {
        font-size: 20px;
    }

    .single-product .ppo-tab-content h3 {
        font-size: 17px;
    }

    .single-product .ppo-tab-content table:not(.ppo-stack-table) {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }
}

/* ---- Tables in descriptions (and the size chart sheet) ------------------------------------
   Lighter lines than the theme's navy borders. On phones each row becomes a card, every cell
   labelled with its column heading (labels added by js/product.js). */
.single-product .ppo-tab-content table,
.ppo-sheet__body table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
}

.single-product .ppo-tab-content table th,
.single-product .ppo-tab-content table td,
.ppo-sheet__body table th,
.ppo-sheet__body table td {
    padding: 10px 12px !important;
    border: 1px solid #D3D6E0 !important;
    vertical-align: top;
    text-align: left;
}

.single-product .ppo-tab-content table th,
.ppo-sheet__body table th {
    border-color: #1B365D !important;
    font-weight: 800;
}

.ppo-sheet__body table th {
    background: #1B365D;
    color: #FFFFFF;
}

.single-product .ppo-tab-content table tr:nth-child(2n+1),
.ppo-sheet__body table tr:nth-child(2n+1) {
    background-color: #FFFFFF;
}

.single-product .ppo-tab-content table tbody tr:nth-child(2n),
.ppo-sheet__body table tbody tr:nth-child(2n) {
    background-color: #F6F8FA;
}

@media only screen and (max-width: 768px) {
    .single-product .ppo-tab-content table.ppo-stack-table,
    .ppo-sheet__body table.ppo-stack-table,
    .ppo-stack-table tbody,
    .ppo-stack-table tr,
    .ppo-stack-table td,
    .ppo-stack-table th {
        display: block;
        width: auto !important;
    }

    .single-product .ppo-tab-content table.ppo-stack-table,
    .ppo-sheet__body table.ppo-stack-table {
        background: none;
        border: 0;
    }

    /* Headings move into each card; keep them for screen readers. */
    .ppo-stack-table thead,
    .ppo-stack-table tr.ppo-table-head {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .single-product .ppo-tab-content .ppo-stack-table tr,
    .ppo-sheet__body .ppo-stack-table tr {
        margin: 0 0 10px;
        padding: 4px 14px;
        border: 1px solid #D3D6E0;
        border-radius: 5px;
        background: #FFFFFF !important;
    }

    .single-product .ppo-tab-content .ppo-stack-table td,
    .single-product .ppo-tab-content .ppo-stack-table th,
    .ppo-sheet__body .ppo-stack-table td,
    .ppo-sheet__body .ppo-stack-table th {
        display: grid;
        grid-template-columns: minmax(96px, 38%) minmax(0, 1fr);
        gap: 12px;
        padding: 9px 0 !important;
        border: 0 !important;
        border-bottom: 1px solid #EEEEEE !important;
        background: none !important;
        color: #333333 !important;
        font-weight: 400;
    }

    .single-product .ppo-tab-content .ppo-stack-table tr > :last-child,
    .ppo-sheet__body .ppo-stack-table tr > :last-child {
        border-bottom: 0 !important;
    }

    .ppo-stack-table td::before,
    .ppo-stack-table th::before {
        content: attr(data-label);
        font-weight: 800;
        color: #1B365D;
    }

    /* The first cell (the size) reads as the card's title. */
    .single-product .ppo-tab-content .ppo-stack-table tr > :first-child,
    .ppo-sheet__body .ppo-stack-table tr > :first-child {
        font-weight: 800;
        color: #1B365D !important;
    }
}

/* ---- Spectrum colour row under the title ------------------------------------------------- */
.ppo-family {
    margin: 0 0 16px;
}

.ppo-family__label {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 800;
    color: #1B365D;
}

.ppo-family__label span {
    font-weight: 400;
    color: #4F5665;
}

.ppo-family__label .ppo-family__count {
    margin-left: 6px;
    font-size: 13px;
    color: #8A8F9C;
}

.ppo-family__dots {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ppo-family__dots li {
    margin: 0;
}

/* 38px tap area, 9 colours fit one row at 390px; a 30px colour inside. */
.ppo-family__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 2px solid transparent;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .15s, opacity .15s;
}

.ppo-family__dot span {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2);
    transition: transform .15s;
}

.ppo-family__dot span.is-unknown {
    background: repeating-linear-gradient(45deg, #EEEEEE, #EEEEEE 4px, #FFFFFF 4px, #FFFFFF 8px);
}

.ppo-family__dot:hover {
    border-color: #D3D6E0;
}

.ppo-family__dot:active span {
    transform: scale(.88);
}

.ppo-family__dot.is-current {
    border-color: #1B365D;
}

.ppo-family__dot.is-current span {
    width: 28px;
    height: 28px;
}

.ppo-family__dot:focus-visible {
    outline: 2px solid #3D398F;
    outline-offset: 1px;
}

/* Tapped: the new colour is marked at once while its page loads. */
.ppo-family.is-loading .ppo-family__dot:not(.is-current) {
    opacity: .45;
}

.ppo-family.is-loading .ppo-family__dot.is-current {
    animation: ppo-family-pulse 1s ease-in-out infinite;
}

@keyframes ppo-family-pulse {
    50% { border-color: #D3D6E0; }
}

@media (prefers-reduced-motion: reduce) {
    .ppo-family__dot,
    .ppo-family__dot span {
        transition: none;
    }
    .ppo-family.is-loading .ppo-family__dot.is-current {
        animation: none;
    }
}

/* ---- "Best value" pack chip ----------------------------------------------------------------- */
.ppo-option--chip {
    position: relative;
}

.ppo-option__badge {
    position: absolute;
    top: -9px;
    right: 10px;
    padding: 0 7px;
    border-radius: 10px;
    background: #3C8430;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    letter-spacing: .02em;
    white-space: nowrap;
}

.ppo-options--pack {
    padding-top: 6px; /* room for the badge */
}

/* ---- Tighter: options → Clear selection → In stock → Add to basket --------------------------- */
.ppo-variations {
    margin-bottom: 8px;
}

.ppo-attr__head .ppo-reset {
    margin-left: auto;
    font-size: 14px;
    font-weight: 700;
    color: #BC212D;
}

.ppo-attr__head .ppo-size-chart-link + .ppo-reset {
    margin-left: 12px;
}

.single-product .single_variation_wrap .woocommerce-variation {
    margin: 0 0 10px;
}

.single-product .single_variation_wrap .woocommerce-variation > div:empty,
.single-product .single_variation_wrap .woocommerce-variation-description:empty {
    display: none;
}

.single-product .single_variation_wrap .woocommerce-variation-availability p.stock {
    margin: 0;
    line-height: 1.5; /* The wrapper's 17px line height clipped "In stock" and its tick. */
}

/* ---- "Complete your order": the basket's suggestion cards (cart.css), on the product page ---- */
.ppo-complete {
    margin: 24px 0 0;
    padding: 14px;
    background: #F6F8FA;
    border: 1px solid #D3D6E0;
    border-radius: 5px;
}

.ppo-complete__title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
    color: #1B365D;
}

.ppo-complete .ppo-suggest__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ppo-complete .ppo-suggest__item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 8px;
    background: #FFFFFF;
    border: 1px solid #D3D6E0;
    border-radius: 5px;
}

.ppo-complete .ppo-suggest__thumb {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
}

.ppo-complete .ppo-suggest__thumb img {
    display: block;
    width: 48px !important;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
}

.ppo-complete .ppo-suggest__body {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.ppo-complete .ppo-suggest__name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1B365D;
    text-decoration: none;
}

.ppo-complete .ppo-suggest__detail {
    display: block;
    font-size: 12px;
    color: #4F5665;
}

.ppo-complete .ppo-suggest__add {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #1B365D;
    border-radius: 5px;
    background: #FFFFFF;
    color: #1B365D;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.ppo-complete .ppo-suggest__add:hover,
.ppo-complete .ppo-suggest__add:focus {
    background: #1B365D;
    color: #FFFFFF;
}

.ppo-complete .ppo-suggest__add.is-adding {
    opacity: .6;
    pointer-events: none;
}

.ppo-complete .ppo-suggest__added {
    flex: 0 0 auto;
    padding: 0 6px;
    font-size: 13px;
    font-weight: 800;
    color: #34732A;
}

@media only screen and (min-width: 769px) {
    .ppo-complete .ppo-suggest__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---- Shop managers only: size chart check -------------------------------------------------- */
.ppo-manager-note {
    margin: 16px 0;
    padding: 12px 16px;
    border: 1px dashed #BC212D;
    border-radius: 5px;
    background: #FFFCF2;
    font-size: 14px;
    color: #333333;
}

.ppo-manager-note p {
    margin: 0 0 6px;
}

.ppo-manager-note ul {
    margin: 0 0 6px 18px;
    padding: 0;
}

/* ---- Accordions (phones) / tabs (wider) ----------------------------------------------------- */
.ppo-acc {
    display: none;
}


@media only screen and (max-width: 768px) {
    .ppo-tabs-acc {
        margin-top: 12px !important;
        border-top: 1px solid #D3D6E0;
    }

    /* The intro's last line ("Need larger quantities? Call…") sits close to the accordions. */
    .single-product .summary.entry-summary > .woocommerce-product-details__short-description {
        margin-bottom: 0;
    }

    .single-product .woocommerce-product-details__short-description > :last-child {
        margin-bottom: 0;
    }

    .single-product .summary.entry-summary > :last-child,
    .single-product .summary.entry-summary .product_meta {
        margin-bottom: 0;
    }

    .single-product div.product > .flex {
        margin-bottom: 0;
    }

    .ppo-tabs-acc > ul.tabs {
        display: none !important;
    }

    .ppo-tabs-acc > .ppo-acc {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 56px;
        padding: 0 4px;
        border: 0;
        border-bottom: 1px solid #D3D6E0;
        background: none;
        color: #1B365D;
        font: inherit;
        font-size: 17px;
        font-weight: 800;
        text-align: left;
        cursor: pointer;
    }

    .ppo-tabs-acc > .ppo-acc::after {
        content: "+";
        font-size: 24px;
        font-weight: 400;
        line-height: 1;
    }

    .ppo-tabs-acc > .ppo-acc[aria-expanded="true"]::after {
        content: "−";
    }

    .ppo-tabs-acc > .woocommerce-Tabs-panel {
        display: none !important;
        height: auto !important;
        border-bottom: 1px solid #D3D6E0;
        background: #F6F8FA !important;
    }

    .ppo-tabs-acc > .woocommerce-Tabs-panel.is-open {
        display: block !important;
    }

    /* The section heading repeats the accordion's title. */
    .ppo-tabs-acc .woocommerce-Tabs-panel--description .ppo-tab-content > h2:first-child,
    .ppo-tabs-acc .ppo-sizes-panel .ppo-sizes-heading {
        display: none;
    }

    .ppo-duplicate-intro {
        display: none;
    }

    .ppo-desktop-only {
        display: none !important;
    }

}


/* "You may also like" under "Complete your order" */
.ppo-more-products {
    margin: 28px 0 0;
}

.ppo-more-products__title {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
    color: #1B365D;
}

/* ---- Layout (design: "Product page, cleaner" on the design canvas) ------------------------------
   Phones and tablets: one column: photo, buying options, then key features and the accordions.
   Desktop: photo with the accordions under it on the left; the buying column on the right (with
   key features under Add to basket) stays in view while the page scrolls. */

.single-product .ppo-pp-row {
    flex-direction: column !important;
}

.single-product .ppo-pp-gallery,
.single-product .ppo-pp-summary,
.single-product .ppo-pp-details {
    width: 100%;
    padding-left: 0;
}

.single-product .ppo-pp-details {
    margin-top: 24px;
}

/* The gallery fills its column (WooCommerce's own style caps it at 48%). */
.single-product .ppo-pp-gallery .woocommerce-product-gallery,
.single-product .ppo-pp-gallery div.images {
    width: 100% !important;
    float: none !important;
}

/* Thumbnails (only when a product has more than one photo). */
.single-product .ppo-pp-gallery .flex-control-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 0;
    padding: 0;
}

.single-product .ppo-pp-gallery .flex-control-thumbs li {
    width: 84px !important;
    margin: 0 !important;
    float: none !important;
}

.single-product .ppo-pp-gallery .flex-control-thumbs img {
    border: 1px solid #D3D6E0;
    border-radius: 6px;
    opacity: 1;
}

.single-product .ppo-pp-gallery .flex-control-thumbs img.flex-active {
    border: 2px solid #1B365D;
}

@media only screen and (min-width: 769px) and (max-width: 1023px) {
    .single-product .ppo-pp-gallery {
        max-width: 480px;
        margin: 0 auto 24px;
    }
}

@media only screen and (min-width: 1024px) {
    .single-product .ppo-pp-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        column-gap: 56px;
        align-items: start;
    }

    .single-product .ppo-pp-gallery {
        grid-column: 1;
        grid-row: 1;
        width: auto;
    }

    .single-product .ppo-pp-details {
        grid-column: 1;
        grid-row: 2;
        width: auto;
        margin-top: 28px;
    }

    .single-product .ppo-pp-summary {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: start;
        position: sticky;
        top: 24px;
        width: auto;
        padding-left: 0;
    }

    /* Only the first intro paragraph in the buying column (the rest is in Description). */
    .single-product .ppo-pp-summary .woocommerce-product-details__short-description > p:not(:first-child) {
        display: none;
    }
}

/* ---- Key features ------------------------------------------------------------------------- */
.ppo-features {
    margin: 0 0 24px;
}

.ppo-features__title {
    margin: 0 0 10px !important;
    color: #1B365D;
    font-size: 15px !important;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.3;
    text-transform: uppercase;
}

.ppo-features__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ppo-features__list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    color: #4F5665;
    font-size: 14px;
    line-height: 1.45;
}

.ppo-features__list svg {
    flex: 0 0 16px;
    margin-top: 3px;
    color: #3C8430;
}

@media only screen and (min-width: 600px) {
    .ppo-features__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---- Accordions on every screen size --------------------------------------------------------- */
.single-product .ppo-tabs-acc {
    margin-top: 0 !important;
    border-top: 1px solid #D3D6E0;
    background: none !important;
}

.single-product .ppo-tabs-acc > ul.tabs {
    display: none !important;
}

.single-product .ppo-tabs-acc > .ppo-acc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    padding: 0 2px;
    border: 0;
    border-bottom: 1px solid #D3D6E0;
    background: none;
    color: #1B365D;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .02em;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
}

.single-product .ppo-tabs-acc > .ppo-acc::after {
    content: "+";
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

.single-product .ppo-tabs-acc > .ppo-acc[aria-expanded="true"]::after {
    content: "−";
}

.single-product .ppo-tabs-acc > .woocommerce-Tabs-panel {
    display: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 6px 2px 20px !important;
    border-bottom: 1px solid #D3D6E0;
    background: #FFFFFF !important;
}

.single-product .ppo-tabs-acc > .woocommerce-Tabs-panel.is-open {
    display: block !important;
}

.single-product .ppo-tabs-acc .woocommerce-Tabs-panel--description .ppo-tab-content > h2:first-child,
.single-product .ppo-tabs-acc .ppo-sizes-panel .ppo-sizes-heading {
    display: none;
}

/* ---- Buying column -------------------------------------------------------------------------- */

/* Room above a chip's own text for its "Best value" badge (no overlap, whatever the width). */
.ppo-option--chip:has(.ppo-option__badge) {
    padding-top: 12px;
}

.ppo-option--chip.is-selected:has(.ppo-option__badge) {
    padding-top: 11px;
}

/* Pack sizes in a tidy grid: three across on phones, four on wider screens. */
.single-product .ppo-options--pack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 8px;
}

.single-product .ppo-options--pack .ppo-option {
    width: 100%;
    min-width: 0;
}

@media only screen and (min-width: 769px) {
    .single-product .ppo-options--pack {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

}

/* The options, then "Why choose us" under them (the theme put them side by side). */
.single-product .addToCartAndWhyChooseUs {
    display: block;
}

.single-product .addToCartWrapper {
    width: 100%;
}

/* "Clear selection": quiet, not red. */
.single-product .ppo-attr__head .ppo-reset {
    color: #4F5665;
    font-size: 13px;
    font-weight: 600;
}

/* "Why choose us", straight under Add to basket on every screen size: the box's own style, with a
   light store-rating badge so the green button stays the strongest thing. */
.single-product .whyChooseUsWrapper {
    margin-top: 18px;
    min-height: 0;
}

.single-product div.product .whyChooseUs {
    display: block !important;
    padding: 16px 18px 18px !important;
    border: 1px solid #1B365D;
    border-radius: 6px;
}

.single-product div.product .whyChooseUs h3 {
    margin: 0 0 12px !important;
    color: #1B365D !important;
    font-size: 20px;
    line-height: 1.2;
}

.single-product div.product .whyChooseUs > .flex-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.single-product div.product .whyChooseUs .row {
    align-items: center;
    margin: 0 !important;
}

.single-product div.product .whyChooseUs .reviewsIo {
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: none !important;
}

.single-product div.product .whyChooseUs .text {
    padding-left: 10px;
    color: #4F5665;
    font-size: 12px !important;
    line-height: 1.35;
}

.single-product div.product .whyChooseUs .text span {
    color: #1B365D;
    font-size: 14px !important;
}

@media only screen and (min-width: 769px) {
    .single-product div.product .whyChooseUs > .flex-col {
        display: grid;
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 12px 16px;
        align-items: center;
    }

    .single-product div.product .whyChooseUs .row:has(.reviewsIo) {
        grid-column: 1;
        grid-row: 1 / span 3;
    }
}

.ppo-why-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 10px;
    border: 1px solid #ECEEF3;
    border-radius: 10px;
    background: #F6F8FA;
    color: #1B365D;
    line-height: 1.35;
    text-align: center;
}

.ppo-why-badge__brand {
    font-size: 15px;
}

.ppo-why-badge__brand strong {
    font-weight: 900;
}

.ppo-why-badge__brand span {
    font-size: 12px;
}

.ppo-why-badge__stars {
    color: #E0A800;
    font-size: 18px;
    letter-spacing: 2px;
}

.ppo-why-badge__text {
    font-size: 12px;
}

/* ---- Jamie's review (10/11/2026) -------------------------------------------------------------- */

/* Desktop: a narrower photo column and a wider options column, and a shorter photo, so the options
   and Add to basket are on the first screen of a typical laptop. */
@media only screen and (min-width: 1024px) {
    .single-product .ppo-pp-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
        column-gap: 40px;
    }

    .single-product .ppo-pp-gallery .woocommerce-product-gallery__image img,
    .single-product .ppo-pp-gallery .woocommerce-product-gallery__image--placeholder img {
        width: auto !important;
        max-width: 100%;
        max-height: 340px; /* Jamie: a shorter photo, so more of the options show on a laptop. */
        margin: 0 auto;
        object-fit: contain;
    }

    /* Tighter spacing down the options column. */
    .single-product .ppo-pp-summary h1.product_title {
        margin-bottom: 6px !important;
        font-size: 28px !important;
        line-height: 1.2;
    }

    .single-product .ppo-pp-summary .woocommerce-product-details__short-description {
        margin-bottom: 10px;
        font-size: 15px;
        line-height: 1.45;
    }

    .single-product .ppo-pp-summary .woocommerce-product-details__short-description p {
        margin: 0;
    }

    .single-product .ppo-price {
        margin-bottom: 10px;
    }

    .single-product .ppo-attr {
        margin-bottom: 12px;
    }

    .single-product .ppo-option {
        min-height: 44px;
    }

    .single-product .whyChooseUsWrapper {
        margin-top: 14px;
    }
}

/* The chosen size, colour or pack: solid navy, so the customer's choices are the clearest thing on the page. */
.single-product .ppo-option.is-selected,
.single-product .ppo-option--chip.is-selected,
.single-product .ppo-option--colour.is-selected,
.single-product .ppo-option.is-fit.is-selected {
    border-color: #1B365D;
    background: #1B365D;
    color: #FFFFFF;
    box-shadow: inset 0 0 0 1px #1B365D;
}

.single-product .ppo-option.is-selected .ppo-option__sub {
    color: #FFFFFF;
}

.single-product .ppo-option--colour.is-selected .ppo-option__swatch {
    box-shadow: 0 0 0 2px #FFFFFF;
}

/* Products without options (e.g. Wooden Spoon): the same stacked layout as the others. */
.single-product .shortDescriptionAndWhyChooseUs {
    display: block;
}

.single-product .shortDescriptionAndWhyChooseUs .woocommerce-product-details__short-description {
    padding-right: 0;
}

.single-product .ppo-no-description {
    margin: 0;
}

.single-product .ppo-pp-summary form.cart:not(.variations_form) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 16px 0 0;
}

.single-product .ppo-pp-summary form.cart:not(.variations_form) .quantity {
    margin: 0 !important;
}

.single-product .ppo-pp-summary form.cart:not(.variations_form) .single_add_to_cart_button {
    flex: 1 1 200px;
    min-height: 52px;
    font-size: 17px !important;
    font-weight: 800;
}

/* Phones: Add to basket only in the bar fixed to the bottom of the screen (PPO site → Product
   pages → Phones: one Add to basket button). The bar presses the real button for the customer. */
@media only screen and (max-width: 768px) {
    .ppo-buybar-only .woocommerce-variation-add-to-cart .single_add_to_cart_button {
        display: none !important;
    }
}

/* Desktop: less empty space down the options column, so Add to basket comes up the page. */
@media only screen and (min-width: 1024px) {
    .single-product .ppo-pp-summary .variations.ppo-variations {
        margin-bottom: 6px !important;
    }

    .single-product .ppo-pp-summary .ppo-family {
        margin-bottom: 10px;
    }

    .single-product .ppo-pp-summary .single_variation_wrap .woocommerce-variation {
        margin-bottom: 6px;
    }

    .single-product .ppo-pp-summary .woocommerce-variation-availability p {
        margin: 0;
    }

    /* With Description open under the photo, the intro isn't repeated above the price. */
    .ppo-description-open .ppo-pp-summary .woocommerce-product-details__short-description {
        display: none;
    }
}

/* Key features under Add to basket, in the buying column (all screen sizes). */
.single-product .ppo-pp-summary .ppo-features {
    margin: 14px 0 0;
}

.single-product .ppo-pp-summary .ppo-features__title {
    margin-bottom: 6px !important;
    font-size: 13px !important;
}

@media only screen and (min-width: 1024px) {
    .single-product .ppo-pp-summary .ppo-features__list {
        gap: 4px 20px;
    }

    .single-product .ppo-pp-summary .ppo-features__list li {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* ---- Jamie: everything on the first screen (desktop) ----------------------------------------
   The header and menu take a third of a laptop screen, so the buying column is packed tighter:
   less space above the product, the price and "per bag" on one line, no empty line for the
   saving until there is one, smaller colour dots and five sizes to a row. */
@media only screen and (min-width: 1024px) {
    .single-product .ppo-pp-row {
        margin-top: 16px !important;
    }

    .single-product .ppo-pp-summary h1.product_title {
        margin-bottom: 2px !important;
    }

    .single-product .ppo-price {
        margin: 0 0 12px;
    }

    .single-product .ppo-price__text {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        column-gap: 12px;
    }

    .single-product .ppo-price__main {
        min-height: 0;
    }

    .single-product .ppo-price__saving,
    .single-product .ppo-price__delivery {
        flex: 0 0 100%;
    }

    .single-product .ppo-price__saving:empty {
        display: none;
    }

    .single-product .ppo-price__delivery {
        margin-top: 2px;
    }

    .single-product .ppo-family {
        margin-bottom: 10px;
    }

    .single-product .ppo-family__dot {
        width: 34px;
        height: 34px;
    }

    .single-product .ppo-family__dot span {
        width: 26px;
        height: 26px;
    }

    .single-product .ppo-attr__head {
        margin-bottom: 6px;
    }

    .single-product .ppo-options--grid {
        grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
        gap: 6px;
    }

    .single-product .ppo-options--grid .ppo-option {
        min-height: 44px;
        padding: 4px 6px;
    }

    .single-product .ppo-options--grid .ppo-option__main {
        font-size: 13px;
    }

    .single-product .ppo-options--pack {
        gap: 12px 6px;
    }
}

/* ---- Choose, then buy (design E) -------------------------------------------------------------
   Title and price, then colour, size and pack, then number of packs and Add to basket. While that
   button is out of view, the bar at the bottom of the screen carries it: phones, and computers too
   (PPO site → Product pages → Computers: Add to basket bar). */
.ppo-buybar__thumb,
.ppo-buybar__name {
    display: none;
}

@media only screen and (min-width: 1024px) {
    /* Even spacing between colour, size, pack and Add to basket. */
    .single-product .ppo-pp-summary .ppo-attr {
        margin-bottom: 16px;
    }

    /* Packs match the sizes: white, thin border, just the number under "Pack of". Five to a row. */
    .single-product .ppo-options--pack {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 12px 6px;
    }

    .single-product .ppo-options--pack .ppo-option--chip {
        min-height: 42px;
        padding: 4px 6px;
        border: 1px solid #D3D6E0;
        border-radius: 5px;
        background: #FFFFFF;
    }

    .single-product .ppo-options--pack .ppo-option--chip.is-selected {
        border-color: #1B365D;
        background: #1B365D;
        color: #FFFFFF;
    }

    .single-product .ppo-options--pack .ppo-option--chip.is-unavailable {
        background: #F6F8FA;
    }

    .single-product .ppo-options--pack .ppo-option__main {
        font-size: 14px;
    }

    .single-product .ppo-options--pack .ppo-option__pre {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .single-product .ppo-options--pack .ppo-option__badge {
        right: 6px;
    }

    /* Number of packs and Add to basket: one row, the same height. */
    .single-product .woocommerce-variation-add-to-cart .quantitySelector div.minus,
    .single-product .woocommerce-variation-add-to-cart .quantitySelector div.plus,
    .single-product .woocommerce-variation-add-to-cart .quantitySelector input.qty {
        height: 52px;
        padding-top: 0;
        padding-bottom: 0;
        line-height: 50px;
    }

    .single-product .woocommerce-variation-add-to-cart .quantitySelector div.minus,
    .single-product .woocommerce-variation-add-to-cart .quantitySelector div.plus {
        min-width: 44px;
        box-sizing: border-box;
        text-align: center;
        cursor: pointer;
    }

    .single-product .woocommerce-variation-add-to-cart .single_add_to_cart_button {
        font-size: 18px !important;
    }

    /* The bar at the bottom: photo, name, choices, price and Add to basket. */
    body.ppo-desktop-buy {
        padding-bottom: var(--ppo-buybar-h, 72px);
    }

    .ppo-desktop-buy .ppo-buybar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 990;
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 10px max(24px, calc((100vw - 1240px) / 2));
        background: #FFFFFF;
        border-top: 1px solid #D3D6E0;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, .08);
        transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .ppo-desktop-buy .ppo-buybar[hidden] {
        display: none;
    }

    .ppo-desktop-buy .ppo-buybar.is-tucked {
        transform: translateY(110%);
    }

    .ppo-desktop-buy .ppo-buybar__thumb {
        display: block;
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        border: 1px solid #D3D6E0;
        border-radius: 6px;
        object-fit: contain;
        background: #FFFFFF;
    }

    .ppo-desktop-buy .ppo-buybar__info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        line-height: 1.35;
    }

    .ppo-desktop-buy .ppo-buybar__name {
        display: block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: 15px;
        font-weight: 900;
        color: #1B365D;
    }

    .ppo-desktop-buy .ppo-buybar__pack {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: 13px;
        color: #4F5665;
    }

    .ppo-desktop-buy .ppo-buybar__line {
        display: flex;
        align-items: baseline;
        gap: 8px;
        white-space: nowrap;
    }

    .ppo-desktop-buy .ppo-buybar__price {
        font-size: 20px;
        font-weight: 900;
        color: #1B365D;
    }

    .ppo-desktop-buy .ppo-buybar__price:empty {
        display: none;
    }

    .ppo-desktop-buy .ppo-buybar__delivery {
        font-size: 13px;
        font-weight: 700;
        color: #34732A;
    }

    .ppo-desktop-buy .ppo-buybar__button {
        flex: 0 0 auto;
        min-width: 210px;
        height: 48px;
        padding: 0 18px;
        border: 0;
        border-radius: 5px;
        background: #3C8430;
        color: #FFFFFF;
        font: inherit;
        font-size: 17px;
        font-weight: 800;
        cursor: pointer;
    }

    .ppo-desktop-buy .ppo-buybar__button:hover {
        background: #34732A;
    }

    .ppo-desktop-buy .ppo-buybar__button.is-choosing {
        background: #3C8430;
    }

    .ppo-desktop-buy .ppo-buybar__button:disabled {
        background: #D3D6E0;
        color: #4F5665;
        cursor: not-allowed;
    }

    .ppo-desktop-buy .ppo-buybar__button:focus-visible {
        outline: 2px solid #3D398F;
        outline-offset: 2px;
    }
}

/* ---- After Add to basket: the bar offers the basket ----------------------------------------- */
.ppo-buybar__basket {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 48px;
    padding: 0 18px;
    box-sizing: border-box;
    border-radius: 5px;
    background: #3C8430;
    color: #FFFFFF !important;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none !important;
}

.ppo-buybar__basket[hidden],
.ppo-buybar__button[hidden] {
    display: none !important;
}

.ppo-buybar__basket:hover {
    background: #34732A;
}

.ppo-buybar__basket:focus-visible {
    outline: 2px solid #3D398F;
    outline-offset: 2px;
}

/* Just added: a tick, what went in and the basket total; stays up until something changes. */
/* Phones: stays up after an add. Computers: the note in the page's own row does that job (below). */
.ppo-buybar.is-added.is-tucked:not(.is-desktop) {
    transform: none !important;
}

/* It must not look like Add to basket again: a pale green bar, a tick and a navy "View basket →". */
.ppo-buybar.is-added,
.ppo-desktop-buy .ppo-buybar.is-added {
    background: #EDF6EA;
    border-top: 3px solid #3C8430;
    animation: ppo-added-in 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes ppo-added-in {
    from {
        transform: translateY(100%);
    }
    to {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ppo-buybar.is-added,
    .ppo-desktop-buy .ppo-buybar.is-added {
        animation: none;
    }
}

.ppo-buybar.is-added .ppo-buybar__pack {
    color: #34732A;
    font-weight: 800;
}

.ppo-buybar.is-added .ppo-buybar__pack::before {
    content: "\2713";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 6px;
    vertical-align: -3px;
    border-radius: 50%;
    background: #3C8430;
    color: #FFFFFF;
    font-size: 12px;
    line-height: 1;
}

.ppo-buybar.is-added .ppo-buybar__basket {
    background: #1B365D;
}

.ppo-buybar.is-added .ppo-buybar__basket:hover {
    background: #3D398F;
}

.ppo-buybar.is-added .ppo-buybar__basket::after {
    content: "\00a0\2192";
}

.ppo-buybar.is-added .ppo-buybar__delivery {
    color: #1B365D;
}

@media only screen and (min-width: 1024px) {
    .ppo-desktop-buy .ppo-buybar__basket {
        min-width: 210px;
        font-size: 17px;
    }
}

/* ---- Computers: the bar as one slim row (about 64px) -------------------------------------------- */
@media only screen and (min-width: 1024px) {
    .ppo-desktop-buy .ppo-buybar {
        gap: 14px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .ppo-desktop-buy .ppo-buybar__thumb {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .ppo-desktop-buy .ppo-buybar__info {
        flex-direction: row;
        align-items: baseline;
        gap: 14px;
    }

    .ppo-desktop-buy .ppo-buybar__name {
        flex: 0 1 auto;
        font-size: 15px;
    }

    .ppo-desktop-buy .ppo-buybar__pack {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 14px;
    }

    .ppo-desktop-buy .ppo-buybar__line {
        flex: 0 0 auto;
    }

    .ppo-desktop-buy .ppo-buybar__button,
    .ppo-desktop-buy .ppo-buybar__basket {
        height: 44px;
    }
}

/* ---- Computers: Add to basket stays in the options column ---------------------------------------
   While the customer works down colour, size and pack, the number of packs and Add to basket stick
   to the bottom of the screen inside the options column, then settle in place after the packs.
   (The wrapper is taken out of the box tree so the row can stick for the whole form.) */
@media only screen and (min-width: 1024px) {
    .ppo-desktop-buy .ppo-pp-summary .single_variation_wrap {
        display: contents;
    }

    /* The column no longer sticks as a whole: when it was taller than the screen (many sizes), it stuck
       with Add to basket held below the bottom edge. The Add to basket row sticks instead. */
    .ppo-desktop-buy.single-product .ppo-pp-summary {
        position: sticky;
        top: var(--ppo-summary-top, 24px); /* js/product.js: keeps the column's bottom edge in view when it is taller than the screen. */
    }

    .ppo-desktop-buy .ppo-pp-summary .woocommerce-variation-add-to-cart {
        position: sticky;
        bottom: 0;
        z-index: 5;
        margin: 0 -12px;
        padding: 12px;
        border-radius: 8px 8px 0 0;
        background: #FFFFFF;
        box-shadow: 0 -8px 12px -10px rgba(11, 19, 42, .35);
    }

    /* Before everything is chosen: green "Choose a size" (the first step to buying), not WooCommerce's
       faded button. */
    .ppo-desktop-buy .ppo-pp-summary .single_add_to_cart_button.ppo-is-choosing,
    .ppo-desktop-buy .ppo-pp-summary .single_add_to_cart_button.ppo-is-choosing.disabled {
        border-color: #3C8430 !important;
        background-color: #3C8430 !important;
        opacity: 1 !important;
        cursor: pointer !important;
    }
}

/* ---- Green buying buttons: hover, press and keyboard focus --------------------------------------
   Darker green (#2B5E22, 7.6:1 with white) and a small lift on hover, pressed back down on click. */
.single-product .single_add_to_cart_button,
.ppo-buybar__button,
.ppo-buybar__basket {
    transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.single-product .single_add_to_cart_button:hover:not(:disabled),
.ppo-buybar__button:hover:not(:disabled),
.ppo-buybar__basket:hover:not(:disabled) {
    border-color: #2B5E22 !important;
    background-color: #2B5E22 !important;
    box-shadow: 0 4px 10px rgba(43, 94, 34, .35);
    transform: translateY(-1px);
}

.single-product .single_add_to_cart_button:active,
.ppo-buybar__button:active,
.ppo-buybar__basket:active {
    box-shadow: none;
    transform: none;
}

.single-product .single_add_to_cart_button:focus-visible,
.ppo-buybar__button:focus-visible,
.ppo-buybar__basket:focus-visible {
    outline: 3px solid #3D398F !important;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .single-product .single_add_to_cart_button:hover:not(:disabled),
.ppo-buybar__button:hover:not(:disabled),
.ppo-buybar__basket:hover:not(:disabled) {
        transform: none;
    }
}

.ppo-buybar.is-added .ppo-buybar__basket:hover {
    border-color: #3D398F !important;
    background-color: #3D398F !important;
    box-shadow: 0 4px 10px rgba(27, 54, 93, .35);
}

/* "Choose a size" carries WooCommerce's disabled class; it still gets the hover. */
.ppo-desktop-buy .ppo-pp-summary .single_add_to_cart_button.ppo-is-choosing.disabled:hover {
    border-color: #2B5E22 !important;
    background-color: #2B5E22 !important;
    box-shadow: 0 4px 10px rgba(43, 94, 34, .35);
    transform: translateY(-1px);
}

/* ---- Design G: ready to buy on arrival ------------------------------------------------------- */

/* "● In stock" at the start of the delivery line; WooCommerce's own "In stock" lower down is hidden
   (its other messages, e.g. "Only 3 left", still show). */
.ppo-price__stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 12px;
    color: #34732A;
    font-weight: 800;
}

.ppo-price__stock[hidden] {
    display: none;
}

.ppo-price__stock::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #3C8430;
}

.ppo-price__stock.is-out {
    color: #BC212D;
}

.ppo-price__stock.is-out::before {
    background: #BC212D;
}

.variations_form.ppo-variations-ready .woocommerce-variation-availability .stock.in-stock {
    display: none;
}

/* The product's own star rating under the title (WooCommerce shows it when the product has reviews). */
.single-product .ppo-pp-summary .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px !important;
    font-size: 14px;
}

.single-product .ppo-pp-summary .woocommerce-product-rating .woocommerce-review-link {
    font-weight: 700;
    color: #1B365D;
}

/* Computers: the slim reassurance row instead of the "Why choose us" box. Phones keep the box. */
.ppo-trust-row {
    display: none;
}

@media only screen and (min-width: 1024px) {
    /* Three equal cells on a light band: icon, short bold heading, small grey detail. */
    .ppo-slim-trust .ppo-trust-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin: 14px 0 0;
        padding: 6px;
        border-radius: 8px;
        background: #F6F8FA;
        list-style: none;
    }

    .ppo-trust-row li {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        padding: 6px 8px;
    }

    .ppo-trust-row__icon {
        display: inline-flex;
        flex: 0 0 34px;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: #FFFFFF;
        color: #1B365D;
    }

    .ppo-trust-row__text {
        display: flex;
        flex-direction: column;
        min-width: 0;
        line-height: 1.3;
    }

    .ppo-trust-row__text strong {
        font-size: 13px;
        font-weight: 800;
        color: #1B365D;
    }

    .ppo-trust-row__text span {
        font-size: 12px;
        color: #4F5665;
    }

    .ppo-trust-row a {
        color: #1B365D;
        font-weight: 700;
        text-decoration: none;
    }

    .ppo-trust-row a:hover,
    .ppo-trust-row a:focus-visible {
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    .ppo-slim-trust .whyChooseUsWrapper {
        display: none !important;
    }

    /* After an add: the note sits in the page's own Add to basket row, which stays put. */
    .ppo-added-note {
        flex: 0 0 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 14px;
        margin: 0;
        padding: 8px 12px;
        border-radius: 6px;
        background: #EDF6EA;
        font-size: 14px;
        line-height: 1.35;
    }

    .ppo-added-note__text {
        color: #34732A;
        font-weight: 800;
    }

    .ppo-added-note__text::before {
        content: "\2713";
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        margin-right: 6px;
        border-radius: 50%;
        background: #3C8430;
        color: #FFFFFF;
        font-size: 12px;
        vertical-align: -3px;
    }

    .ppo-added-note__basket {
        color: #1B365D;
        font-weight: 700;
    }

    .ppo-added-note__link {
        margin-left: auto;
        color: #1B365D !important;
        font-weight: 800;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .ppo-added-note__link::after {
        content: "\00a0\2192";
    }
}

/* Specifications section: label and value in two columns. */
.ppo-specs {
    display: grid;
    grid-template-columns: minmax(120px, 34%) minmax(0, 1fr);
    gap: 8px 16px;
    margin: 0;
    font-size: 15px;
}

.ppo-specs dt {
    font-weight: 800;
    color: #1B365D;
}

.ppo-specs dd {
    margin: 0;
}

/* No slide-in for a bar that is tucked away (computers after an add, while the row shows the note). */
.ppo-buybar.is-added.is-tucked {
    animation: none;
}

/* ---- Complete your order: in the buying column on computers, further down on phones and tablets ---- */
.ppo-complete--side {
    display: none;
}

@media only screen and (min-width: 1024px) {
    .ppo-complete--side {
        display: block;
        margin-top: 16px;
        padding: 12px;
    }

    .ppo-complete--side .ppo-complete__title {
        margin-bottom: 8px;
        font-size: 13px;
        font-weight: 800;
        letter-spacing: .03em;
        text-transform: uppercase;
    }

    .ppo-complete--side .ppo-suggest__item {
        padding: 6px 8px;
    }

    .ppo-complete--side .ppo-suggest__thumb,
    .ppo-complete--side .ppo-suggest__thumb img {
        flex-basis: 40px;
        width: 40px !important;
        height: 40px;
    }

    body:has(.ppo-complete--side) .ppo-complete:not(.ppo-complete--side) {
        display: none;
    }
}

/* ---- Hover: stronger selectors, so nothing else on the page can win ------------------------------ */
body.single-product .ppo-pp-summary button.single_add_to_cart_button.button:hover,
body.single-product .ppo-pp-summary button.single_add_to_cart_button.button.disabled:hover,
body.single-product .ppo-pp-summary button.single_add_to_cart_button.button.alt.disabled.ppo-is-choosing:hover {
    border-color: #2B5E22 !important;
    background-color: #2B5E22 !important;
    opacity: 1 !important;
    box-shadow: 0 4px 10px rgba(43, 94, 34, .35) !important;
    transform: translateY(-1px) !important;
    cursor: pointer !important;
}

body.single-product .ppo-pp-summary button.single_add_to_cart_button.button:active {
    box-shadow: none !important;
    transform: none !important;
}

/* Number of packs: − and + react too. */
.single-product .woocommerce-variation-add-to-cart .quantitySelector div.minus:hover,
.single-product .woocommerce-variation-add-to-cart .quantitySelector div.plus:hover {
    background-color: #FFFFFF;
    color: #1B365D;
    box-shadow: inset 0 0 0 2px #1B365D;
}

.single-product .quantitySelector div.minus:focus-visible,
.single-product .quantitySelector div.plus:focus-visible {
    outline: 3px solid #3D398F;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    body.single-product .ppo-pp-summary button.single_add_to_cart_button.button:hover {
        transform: none !important;
    }
}

/* ---- Hover on the size and pack buttons ---------------------------------------------------------
   The computers' pack style (white, grey border) had overridden the hover. Not on the chosen one. */
@media (hover: hover) {
    .single-product .ppo-options .ppo-option:not(.is-selected):hover,
    .single-product .ppo-options--pack .ppo-option--chip:not(.is-selected):hover {
        border-color: #1B365D;
        background: #F6F8FA;
        box-shadow: inset 0 0 0 1px #1B365D;
    }

    .single-product .ppo-options .ppo-option.is-selected:hover {
        box-shadow: inset 0 0 0 1px #1B365D, 0 2px 6px rgba(27, 54, 93, .25);
    }
}

/* Nothing chosen: the lowest price per bag, with its pack, in plain navy (not the green "Save x%"). */
.ppo-price__saving.is-bulk {
    color: #1B365D;
    font-weight: 700;
}

/* ---- Computers, just after an add: the big button is "View basket →" (navy), not another add ---- */
body.single-product .ppo-pp-summary button.single_add_to_cart_button.button.ppo-is-added,
body.single-product .ppo-pp-summary button.single_add_to_cart_button.button.ppo-is-added.disabled {
    border-color: #1B365D !important;
    background-color: #1B365D !important;
    opacity: 1 !important;
}

body.single-product .ppo-pp-summary button.single_add_to_cart_button.button.ppo-is-added:hover {
    border-color: #3D398F !important;
    background-color: #3D398F !important;
    box-shadow: 0 4px 10px rgba(27, 54, 93, .35) !important;
}

.ppo-added-note__more {
    margin-left: auto;
    padding: 4px 0;
    border: 0;
    background: none;
    color: #1B365D;
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.ppo-added-note__more:focus-visible {
    outline: 3px solid #3D398F;
    outline-offset: 2px;
}

/* Just added: the note by the button (computers) and the bar (phones) confirm it; no green banner too. */
body.ppo-just-added .woocommerce-notices-wrapper .woocommerce-message,
body.ppo-just-added .woocommerce-message[role="alert"] {
    display: none !important;
}

/* REVIEWS.io stars under the title. The old layout pulls them up into the title's bottom margin
   (style-additions.css); the new layout's title has a smaller margin, so they landed on the title.
   Here they sit in the normal flow, just below the title. */
.single-product .ppo-pp-summary .reviewsIoStars {
    position: static;
    height: auto;
    min-height: 22px;
    margin: 4px 0 8px;
}

.single-product .ppo-pp-summary .reviewsIoStars > div {
    position: static;
    height: auto;
    top: auto;
}
