/* #last edited 2026-09-29T11:00:00+01:00 */
/* Article commerce modules and article tables: inc/blog/article-commerce.php */

.tld-ac {
    --tld-ac-ink: #252522;
    --tld-ac-body: #545454;
    --tld-ac-paper: #faf9f6;
    --tld-ac-paper-deep: #f0ece2;
    --tld-ac-botanical: #f8f5ec;
    --tld-ac-line: rgba(37, 37, 34, 0.16);
    --tld-ac-orange: #e67a07;
    --tld-ac-orange-deep: #a85400;
    --tld-ac-peach: #e8b08d;
    --tld-ac-cream: #e4dfd1;
    --tld-ac-mint: #e0f4de;
    --tld-ac-radius: 14px;
    --tld-ac-shadow: 0 18px 40px -24px rgba(37, 37, 34, 0.45);
    box-sizing: border-box;
    margin: 2.8rem 0;
    color: var(--tld-ac-ink);
    font-family: "Josefin Sans", system-ui, sans-serif;
}

.tld-ac *,
.tld-ac *::before,
.tld-ac *::after {
    box-sizing: border-box;
}

.tld-ac p {
    margin: 0 0 0.8rem;
}

.tld-ac-eyebrow {
    color: var(--tld-ac-orange-deep);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.tld-ac-title {
    font-family: "Special Elite", "Courier New", Georgia, serif;
    font-size: clamp(1.45rem, 2.8vw, 1.9rem);
    line-height: 1.22;
    text-wrap: balance;
}

.tld-ac-intro {
    max-width: 60ch;
    color: var(--tld-ac-body);
}

.tld-ac-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.75rem 1.35rem;
    border: 1px solid var(--tld-ac-ink);
    border-radius: 4px;
    background: var(--tld-ac-ink);
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: background-color 160ms ease, color 160ms ease;
}

.tld-ac-button:hover,
.tld-ac-button:focus-visible {
    background: #fff;
    color: var(--tld-ac-ink) !important;
}

.tld-ac-button--quiet {
    background: transparent;
    color: var(--tld-ac-ink) !important;
}

.tld-ac-link {
    color: var(--tld-ac-ink);
    font-weight: 600;
    text-underline-offset: 3px;
}

/* Review stars. The markup is two rows of five stars, a muted base and a clipped fill; without
   this the two rows print side by side as ten. The site's copy of these rules only loads on the
   homepage and product pages. */
.tld-ac .tld-klaviyo-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--tld-ac-ink);
    font-size: 0.9rem;
    text-decoration: none;
}

.tld-ac .tld-klaviyo-stars__stars {
    position: relative;
    display: inline-block;
    color: rgba(37, 37, 34, 0.22);
    font-size: 1rem;
    line-height: 1;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.tld-ac .tld-klaviyo-stars__fill {
    position: absolute;
    inset: 0 auto 0 0;
    overflow: hidden;
    color: var(--tld-ac-ink);
    white-space: nowrap;
}

.tld-ac .tld-klaviyo-stars__meta {
    display: inline-flex;
    gap: 0.3rem;
    align-items: baseline;
}

.tld-ac .tld-klaviyo-stars__meta span {
    color: var(--tld-ac-body);
}

/* Ingredient stamps */
.tld-ac-stamps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin: 0 0 0.9rem;
    padding: 0;
    list-style: none;
}

.tld-ac-stamps li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.tld-ac-stamps img {
    display: block;
    width: 28px;
    height: 28px;
}

/* 1. One-line intro link */
.tld-ac-inline {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--tld-ac-orange);
    border-radius: 0 var(--tld-ac-radius) var(--tld-ac-radius) 0;
    background: var(--tld-ac-paper-deep);
}

.tld-ac-inline p {
    margin: 0;
}

.tld-ac-inline a {
    color: var(--tld-ac-ink);
    font-weight: 700;
    text-underline-offset: 3px;
}

/* 2. Top pick with product cards */
.tld-ac-pick {
    position: relative;
    padding: clamp(1.4rem, 3.4vw, 2.4rem);
    border: 1px solid var(--tld-ac-line);
    border-top: 6px solid var(--tld-ac-orange);
    border-radius: var(--tld-ac-radius);
    background: var(--tld-ac-paper);
    box-shadow: var(--tld-ac-shadow);
}

.tld-ac-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.9rem, 2vw, 1.4rem);
    margin: 1.4rem 0;
}

.tld-ac-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
}

.tld-ac-card .tld-product-card {
    height: auto;
}

.tld-ac-card .tld-ac-stars {
    align-self: flex-start;
}

.tld-ac-facts {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--tld-ac-body);
    font-size: 0.9rem;
    line-height: 1.5;
}

.tld-ac-facts li::before {
    content: "· ";
}

.tld-ac-more {
    margin: 0 !important;
    text-align: center;
}

/* 3. Range-coloured product tiles with add to basket */
.tld-ac-strip {
    padding-top: 1.2rem;
    border-top: 1px solid var(--tld-ac-line);
}

.tld-ac-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.9rem, 2vw, 1.4rem);
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.tld-ac-tile {
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    border-radius: var(--tld-ac-radius);
    background: var(--tld-ac-tile-floor, var(--tld-ac-paper-deep));
    box-shadow: var(--tld-ac-shadow);
}

.tld-ac-tile__media {
    display: block;
    padding: 1.2rem 1.2rem 0.4rem;
    background: var(--tld-ac-tile, var(--tld-ac-cream));
}

.tld-ac-tile__media img {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 14px 18px rgba(37, 37, 34, 0.22));
}

.tld-ac-tile__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.2rem 1.3rem 1.3rem;
}

.tld-ac-tile__range {
    margin: 0 0 0.3rem !important;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.tld-ac-tile__name {
    margin: 0 0 0.8rem !important;
    font-family: "Special Elite", "Courier New", Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.3;
}

.tld-ac-tile__name a {
    color: var(--tld-ac-ink);
    text-decoration: none;
}

.tld-ac-tile__facts {
    font-size: 0.88rem;
    line-height: 1.5;
}

.tld-ac-tile .tld-ac-stars {
    margin-bottom: 1rem;
}

.tld-ac-tile .tld-klaviyo-stars__stars {
    color: rgba(37, 37, 34, 0.25);
}

.tld-ac-tile__buy {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(37, 37, 34, 0.2);
}

.tld-ac-tile__price .tld-card-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.5rem;
    margin: 0;
    font-family: "Special Elite", "Courier New", monospace;
    line-height: 1.1;
}

.tld-ac-tile__price .tld-card-price-label {
    flex-basis: 100%;
    font-size: 0.85rem;
    font-weight: 700;
}

.tld-ac-tile__price .tld-card-price-current,
.tld-ac-tile__price ins {
    font-size: 1.55rem;
    font-weight: 700;
    text-decoration: none;
}

.tld-ac-tile__price .tld-card-price-was,
.tld-ac-tile__price del {
    font-size: 0.9rem;
    opacity: 0.55;
}

.tld-ac-tile .added_to_cart {
    flex-basis: 100%;
    font-size: 0.8rem;
    text-align: right;
}

.tld-ac-tile.is-out-of-stock .tld-ac-tile__media img {
    opacity: 0.75;
}

.is-out-of-stock .tld-product-card__cart {
    opacity: 0.5;
}

/* 4. Embedded signup beside the botanicals it is about. The form is drawn by tld.js. */
.tld-ac-signup {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    overflow: hidden;
    border-radius: var(--tld-ac-radius);
    background: var(--tld-ac-paper);
    box-shadow: var(--tld-ac-shadow);
}

.tld-ac-signup__art {
    padding: clamp(1.3rem, 3vw, 2rem);
    background: var(--tld-ac-botanical);
    border-right: 1px solid var(--tld-ac-line);
}

.tld-ac-signup__botanicals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0.4rem 0 1rem;
}

.tld-ac-signup__botanicals figure {
    margin: 0;
    text-align: center;
}

.tld-ac-signup__botanicals img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: contain;
}

.tld-ac-signup__botanicals figcaption {
    margin-top: 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tld-ac-signup__list {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
}

.tld-ac-signup__list li {
    position: relative;
    margin: 0;
    padding-left: 1.6rem;
}

.tld-ac-signup__list li::before {
    content: "";
    position: absolute;
    top: 0.2em;
    left: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--tld-ac-orange);
    box-shadow: inset 0 0 0 4px var(--tld-ac-botanical);
}

.tld-ac-signup__form {
    display: flex;
    align-items: center;
    min-height: 260px;
    padding: clamp(1.3rem, 3vw, 2.2rem);
}

.tld-ac-signup__form > * {
    width: 100%;
}

.tld-ac-signup__placeholder .tld-ac-title {
    margin-bottom: 0.5rem;
}

.tld-ac-signup .tld-form-shell {
    padding: 0 !important;
    background: transparent !important;
    color: var(--tld-ac-ink) !important;
    font-family: "Josefin Sans", system-ui, sans-serif !important;
}

.tld-ac-signup .tld-form-shell h3 {
    margin: 0 0 0.6rem;
    font-family: "Special Elite", "Courier New", Georgia, serif;
    font-size: clamp(1.45rem, 2.8vw, 1.9rem);
    line-height: 1.22;
}

.tld-ac-signup .tld-form-shell input[type="email"] {
    max-width: none;
    min-height: 50px;
    border-color: rgba(37, 37, 34, 0.35) !important;
    border-radius: 4px !important;
    background: #fff;
}

.tld-ac-signup .tld-form-shell button {
    width: 100%;
    min-height: 50px;
    border-radius: 4px !important;
    background: var(--tld-ac-orange) !important;
    border-color: var(--tld-ac-orange) !important;
    color: #1c1a19 !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tld-ac-signup .tld-form-shell button:hover,
.tld-ac-signup .tld-form-shell button:focus-visible {
    background: var(--tld-ac-ink) !important;
    border-color: var(--tld-ac-ink) !important;
    color: #fff !important;
}

/* 5. Where to buy */
.tld-ac-trust {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    border-radius: var(--tld-ac-radius);
    background: var(--tld-ac-paper);
    box-shadow: var(--tld-ac-shadow);
}

/* Full width above the text: in a half-width column the photograph either crops to the seam
   between the two tins or leaves bands above and below. */
.tld-ac-trust__media {
    display: block;
    background: linear-gradient(90deg, var(--tld-ac-orange) 50%, var(--tld-ac-cream) 50%);
}

.tld-ac-trust__media img {
    display: block;
    width: 100%;
    height: auto;
}

.tld-ac-trust__body {
    padding: clamp(1.3rem, 3vw, 2.2rem);
}

.tld-ac-badges {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem 1rem;
    margin: 0.6rem 0 1.4rem;
    padding: 0;
    list-style: none;
}

.tld-ac-badges li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.25;
    text-transform: uppercase;
}

.tld-ac-badges img {
    flex: none;
    width: 32px;
    height: 32px;
}

.tld-ac-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.4rem;
    align-items: center;
    margin: 0 !important;
}

/* 6. Mobile sticky bar, above the site's mobile dock (assets/css/mobile-dock.css, 70px) */
.tld-ac-sticky {
    position: fixed;
    right: 12px;
    bottom: calc(70px + env(safe-area-inset-bottom) + 10px);
    left: 12px;
    z-index: 999;
    display: flex;
    align-items: stretch;
    border-radius: 10px;
    background: #252522;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    font-family: "Josefin Sans", system-ui, sans-serif;
}

.tld-ac-sticky[hidden] {
    display: none;
}

.tld-ac-sticky__link {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.7rem 0.9rem;
    color: #fff !important;
    text-decoration: none !important;
}

.tld-ac-sticky__label {
    color: #f3c48f;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tld-ac-sticky__cta {
    font-size: 0.95rem;
    font-weight: 700;
}

.tld-ac-sticky__close {
    flex: none;
    width: 44px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
}

/* ============================================================================
 * The article's own tables. This stylesheet only loads on articles with a module config, so these
 * rules do not reach other posts.
 * ============================================================================ */

.single-post .wp-block-post-content table {
    --tld-ac-table-line: rgba(37, 37, 34, 0.12);
    width: 100%;
    margin: 1.4rem 0 2rem;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #fffdf8;
    box-shadow: 0 0 0 1px var(--tld-ac-table-line), 0 14px 30px -24px rgba(37, 37, 34, 0.5);
    font-size: 0.95rem;
    line-height: 1.55;
}

.single-post .wp-block-post-content table th,
.single-post .wp-block-post-content table td {
    padding: 0.85rem 1rem;
    border: 0;
    border-bottom: 1px solid var(--tld-ac-table-line);
    vertical-align: top;
    text-align: left;
}

.single-post .wp-block-post-content table tr:last-child td {
    border-bottom: 0;
}

.single-post .wp-block-post-content table thead th {
    background: #252522;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.single-post .wp-block-post-content table tbody tr:nth-child(even) td {
    background: #f6f2e8;
}

.single-post .wp-block-post-content table td > strong:first-child {
    color: #252522;
}

/* Pros / cons: each column carries its colour, as mint and peach from the range palette. */
.single-post .wp-block-post-content table.tld-ac-proscons thead th:first-child {
    background: #5f6b3f;
}

.single-post .wp-block-post-content table.tld-ac-proscons thead th:nth-child(2) {
    background: #a85400;
}

.single-post .wp-block-post-content table.tld-ac-proscons thead th:first-child::before {
    content: "+ ";
}

.single-post .wp-block-post-content table.tld-ac-proscons thead th:nth-child(2)::before {
    content: "\2212  ";
}

.single-post .wp-block-post-content table.tld-ac-proscons td:first-child {
    width: 50%;
    background: #f1f7ee;
    border-right: 1px solid var(--tld-ac-table-line);
}

.single-post .wp-block-post-content table.tld-ac-proscons td:nth-child(2) {
    background: #fbf1e8;
}

.single-post .wp-block-post-content table.tld-ac-proscons tbody tr:nth-child(even) td:first-child {
    background: #e8f2e4;
}

.single-post .wp-block-post-content table.tld-ac-proscons tbody tr:nth-child(even) td:nth-child(2) {
    background: #f7e7d9;
}

/* The format comparison: the top pick's row stands out, as the article already says it should. */
.single-post .wp-block-post-content .mushroom-table-wrapper table td:first-child {
    font-weight: 700;
}

.single-post .wp-block-post-content .mushroom-table-wrapper table td:nth-child(2) {
    font-family: "Special Elite", "Courier New", monospace;
    font-size: 1.05rem;
    white-space: nowrap;
}

.single-post .wp-block-post-content table tr.tld-ac-top-row td {
    background: #fdecd9 !important;
    border-bottom-color: rgba(230, 122, 7, 0.35);
}

.single-post .wp-block-post-content table tr.tld-ac-top-row td:first-child {
    box-shadow: inset 5px 0 0 #e67a07;
}

.tld-ac-top-badge {
    display: inline-block;
    margin: 0.35rem 0 0;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #e67a07;
    color: #1c1a19;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (min-width: 769px) {
    .tld-ac-sticky {
        display: none !important;
    }
}

@media (max-width: 760px) {
    .tld-ac-signup {
        grid-template-columns: 1fr;
    }

    .tld-ac-signup__art {
        border-right: 0;
        border-bottom: 1px solid var(--tld-ac-line);
    }

    /* Wide tables scroll inside themselves rather than widening the page. */
    .single-post .wp-block-post-content table {
        display: block;
        overflow-x: auto;
        font-size: 0.88rem;
    }

    .single-post .wp-block-post-content table th,
    .single-post .wp-block-post-content table td {
        min-width: 9rem;
        padding: 0.7rem 0.8rem;
    }
}

@media (max-width: 640px) {
    .tld-ac-grid,
    .tld-ac-tiles {
        grid-template-columns: 1fr;
    }

    .tld-ac-badges {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tld-ac-button {
        transition: none;
    }
}
