@charset "UTF-8";
/* Front-end styles for the foran/* blocks.
   Self-contained: the blocks render correctly under any theme. Loaded on
   the front end and in the editor canvas via the blocks' "style" handle.
   Brand tokens mirror the foranpetcare-2026 theme.json design system. */

/* foran/social-links + foran/pride-badges: inline-SVG icons replacing the
   fpc-icon font. The classic .c-social / .c-pride-badge CSS draws the circle
   and colour (.c-icon-svg matches its [class*="icon-"] / li span selectors);
   these rules just size and centre the SVG inside. */
ul.c-social li a .c-icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}
ul.c-social li a .c-icon-svg svg {
    width: 15px;
    height: 15px;
}
ul.c-pride-badge li .c-icon-svg svg {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto;
}

/* Newsletter form in the dark footer: dark fields like the classic c-frm-dark.
   The :not() chain matches the base text-input rule's specificity so this
   isn't out-ranked and reverted to a white field. */
.c-footer .fp-form__field input:not([type="checkbox"]):not([type="radio"]),
.c-footer .fp-form__field textarea {
    background: #626263;
    color: #fff;
    border-color: var(--wp--preset--color--charcoal);
}
.c-footer .fp-form__field input::placeholder {
    color: var(--wp--preset--color--stone);
}

/* Core Social Icons block styled as the brand's pink-outline circles. */
.c-social-modern.wp-block-social-links {
    gap: 0.5em;
}
.c-social-modern.wp-block-social-links .wp-block-social-link {
    border: 2px solid #f9b7d3;
    border-radius: 50%;
    padding: 5px;
}
.c-social-modern.wp-block-social-links .wp-block-social-link .wp-block-social-link-anchor {
    padding: 0;
}
.c-social-modern.wp-block-social-links .wp-block-social-link svg {
    width: 1.1em;
    height: 1.1em;
}

/* Homepage product pods: core columns styled as clean cards. */
.fp-pods {
    gap: 1.25rem;
    margin-top: 2.0625rem;
}
.fp-pod {
    border: 1px solid #e7e2dd;
    border-radius: 6px;
    padding: 1.25rem 1rem;
}
.fp-pod .wp-block-image {
    margin: 0 0 0.8125rem;
}
.fp-pod .wp-block-image img {
    max-height: 185px;
    width: auto;
    margin: 0 auto;
}
/* Homepage CTA buttons match the classic full-width split bar (.c-choice-2):
   one button fills the row; two buttons split 50/50 and touch with a white
   seam. Larger and bold like production, not small centred pills. */
/* Core block buttons match the classic .c-btn scale (18px at the 13px base),
   fixed (not fluid) so CTAs match production in every context. Two classes so
   this beats core's `:root :where(.wp-element-button){font-size:inherit}`. */
.wp-block-button__link.wp-element-button {
    font-size: 1.125rem;
}

.fp-pod .wp-block-buttons,
.fp-promo-cve .wp-block-buttons {
    gap: 0;
    margin-top: 0.8125rem;
    flex-wrap: nowrap;
}
.fp-pod .wp-block-button,
.fp-promo-cve .wp-block-button {
    flex: 1 1 0;
    min-width: 0;
}
.fp-pod .wp-block-button__link,
.fp-promo-cve .wp-block-button__link {
    display: block;
    width: 100%;
    font-size: 1.125rem;
    font-weight: 700;
    padding: .4em 1em;
    border: 1px solid var(--wp--preset--color--brand-green-dark);
}
.fp-pod .wp-block-button__link:hover,
.fp-promo-cve .wp-block-button__link:hover {
    background: var(--wp--preset--color--brand-green-dark);
}
/* Two-button rows: square the inner corners and seam them with white. */
.fp-pod .wp-block-button:first-child:not(:last-child) .wp-block-button__link,
.fp-promo-cve .wp-block-button:first-child:not(:last-child) .wp-block-button__link {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right-color: #fff;
}
.fp-pod .wp-block-button:last-child:not(:first-child) .wp-block-button__link,
.fp-promo-cve .wp-block-button:last-child:not(:first-child) .wp-block-button__link {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left-color: #fff;
}
/* Pod title sits above the image with the classic pink, dotted underline. */
.fp-pod h3 {
    border-bottom: 2px dotted #ccc;
    padding-bottom: .25em;
    margin: 0 0 0.8125rem;
}

/* The classic tiled grid is 2-up between 48em and 75em — the pods only go
   4-up at >=75em, and the promo row is 2-up with a full-width CTA column
   until 64em. Core columns instead stack everything below 782px and force
   nowrap above it, both with !important, so the overrides double up
   classes to out-specify them. */
@media (min-width: 48em) and (max-width: 74.938em) {
    .fp-pods.fp-pods {
        flex-wrap: wrap !important;
        gap: 1.25rem;
    }
    .fp-pods.fp-pods > .fp-pod.fp-pod {
        flex-basis: calc(50% - 0.625rem) !important;
        flex-grow: 0;
    }
}

@media (min-width: 48em) and (max-width: 63.938em) {
    .fp-promos.fp-promos {
        flex-wrap: wrap !important;
    }
    .fp-promos.fp-promos > .wp-block-column.wp-block-column {
        flex-basis: calc(50% - 12px) !important;
        flex-grow: 0;
    }
    .fp-promos.fp-promos > .fp-cta-col.fp-cta-col {
        flex-basis: 100% !important;
    }
}

/* Homepage promo row: keep the CVE cover text legible. */
.fp-promo-cve .wp-block-cover__inner-container {
    text-align: center;
}

/* Find/Become a Stockist CTAs: dark charcoal boxes with a pink icon at the
   left and the heading/copy beside it — mirrors the classic .c-tile-cta. */
.fp-stockist-cta {
    background: var(--wp--preset--color--charcoal);
    color: #ccc;
    padding: 1rem 1.125rem;
    border-radius: 5px;
    gap: 0.8125rem;
    align-items: flex-start;
}
.fp-stockist-cta + .fp-stockist-cta {
    margin-top: 1.25rem;
}
.fp-stockist-cta .fp-cta-icon {
    margin: 0;
    flex: 0 0 auto;
}
.fp-stockist-cta .fp-cta-body {
    flex: 1 1 auto;
}
.fp-stockist-cta h3 {
    color: #fff;
    border-bottom: 2px dotted #666;
    padding-bottom: .25em;
    margin: 0 0 .35em;
}
.fp-stockist-cta p {
    color: #ccc;
    margin: 0;
}
.fp-stockist-cta a {
    color: var(--fp-pink, var(--wp--preset--color--brand-pink));
}

/* The header's classic CSS handles all spacing; suppress the block-theme
   flow block-gap so the header height matches production (the gaps otherwise
   stack between branding, the secondary badges/CVE bar, and the nav).
   Scoped to the structural groups only — NOT .c-nav-branding's children, so
   the tagline keeps its classic margin that vertically centres it. */
.c-header.wp-block-group > * + *,
.c-header .contain.wp-block-group > * + *,
.c-header .c-nav-secondary.wp-block-group > * + * {
    margin-block-start: 0;
}

/* Left margin on the nav-bar search input so it isn't flush against the
   menu (the search form is absolutely positioned, so margin goes on the
   input and its width is trimmed to fit). */

/* CVE-login icon in the header button (was fpc-icon-login, 18px pink). */
.c-cve-btn .c-login-svg {
    display: inline-block;
    width: 18px;
    height: 18px;
    color: var(--wp--preset--color--brand-pink);
    vertical-align: middle;
    margin-right: .3em;
}
.c-cve-btn .c-login-svg svg {
    display: block;
    width: 100%;
    height: 100%;
}
/* Logged-in state shows two narrow (48%) buttons side by side, so the icon
   and label must never wrap. Match the classic 14px inline icon there. */
.c-cve-btn {
    white-space: nowrap;
}
.c-logged-in .c-cve-btn .c-login-svg {
    width: 14px;
    height: 14px;
    margin-right: .35em;
}

/* Icon-only mobile button: drop the label gap so the icon centres. */
@media only screen and (max-width: 29.938em) {
    .c-cve-login .c-cve-btn .c-login-svg {
        margin-right: 0;
    }
}

:root {
    /* Brand tokens: track the active theme's palette when its presets
       exist, fall back to the brand values when they don't. */
    --fp-pink: var(--wp--preset--color--brand-pink, var(--wp--preset--color--brand-pink));
    --fp-pink-dark: var(--wp--preset--color--brand-pink-dark, var(--wp--preset--color--brand-pink-dark));
    --fp-green: var(--wp--preset--color--brand-green, var(--wp--preset--color--brand-green));
    --fp-green-dark: var(--wp--preset--color--brand-green-dark, var(--wp--preset--color--brand-green-dark));
    --fp-charcoal: var(--wp--preset--color--charcoal, var(--wp--preset--color--charcoal));
    --fp-ink: var(--wp--preset--color--ink, #313131);
    --fp-border: var(--wp--preset--color--line, var(--wp--preset--color--line));
    --fp-content-width: 1266px;
}

/* ------------------------------------------------------------------ */
/* Shared primitives                                                    */
/* ------------------------------------------------------------------ */

.fp-contain {
    width: 90%;
    max-width: var(--fp-content-width);
    margin-left: auto;
    margin-right: auto;
}

a.fp-btn {
    display: inline-block;
    background: var(--fp-green);
    border: 1px solid var(--fp-green-dark);
    border-radius: 5px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9375rem;
    line-height: 1.4;
    padding: 0.4em 1em;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s ease;
}

a.fp-btn:hover {
    background: var(--fp-green-dark);
    color: #fff;
}

a.fp-btn--arrow {
    padding-right: 2.5em;
    position: relative;
}

a.fp-btn--arrow::after {
    content: "›";
    position: absolute;
    right: 1em;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 900;
}

.fp-choice {
    max-width: 25em;
    margin: 1em auto 0;
}

.fp-choice a.fp-btn {
    display: block;
}

.fp-choice--pair {
    display: flex;
}

.fp-choice--pair a.fp-btn {
    flex: 1;
    white-space: nowrap;
    padding-left: 0.5em;
    padding-right: 0.5em;
    min-width: 0;
}

.fp-choice--pair a.fp-btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right-color: #fff;
}

.fp-choice--pair a.fp-btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left-color: #fff;
}

/* ------------------------------------------------------------------ */
/* Hero slider                                                          */
/* ------------------------------------------------------------------ */

/* The sr-only h1 precedes the hero, so the layout flow gap would land
   above it; the classic hero sits flush (doubled class outweighs WP's
   :root :where() flow rule). */
.fp-hero.fp-hero {
    margin-block-start: 0;
}

.fp-hero {
    position: relative;
    overflow: hidden;
    
}

/* pan-y keeps vertical scrolling native while horizontal pointer moves
   reach the swipe handlers in view.js. */
.fp-hero__viewport {
    overflow: hidden;
    touch-action: pan-y;
}

.fp-hero__track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

/* While a drag is live the track follows the pointer 1:1. */
.fp-hero__track.is-dragging {
    transition: none;
}

.fp-hero__slide {
    flex: 0 0 100%;
    min-width: 100%;
    background-size: cover;
    background-position: center top;
    min-height: clamp(300px, 34vw, 475px);
    display: flex;
    align-items: center;
}

.fp-hero__slide > .fp-contain {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.625rem;
    min-height: inherit;
}

.fp-hero__product {
    align-self: flex-end;
    order: 2;
    margin-left: auto;
    margin-right: 8%;
}

.fp-hero__product img {
    max-height: clamp(220px, 26vw, 360px);
    width: auto;
    display: block;
}

.fp-hero__content {
    max-width: 36.5625rem;
    color: #fff;
}

.fp-hero__content h2 {
    color: #fff;
    font-size: clamp(1.625rem, 3.4vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    margin: 0 0 1rem;
}

.fp-hero__content .fp-btn {
    font-size: 1.125rem;
    padding: 0.4em 2.5em 0.4em 1em;
}

.fp-hero__content h2 a {
    color: #fff;
    text-decoration: none;
}

.fp-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.2);
    border: 0;
    width: 50px;
    height: 80px;
    font-size: 0;
    color: #111;
    cursor: pointer;
}

.fp-hero__arrow::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: currentColor;
}

.fp-hero__arrow:hover,
.fp-hero__arrow:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
}

.fp-hero__arrow--prev {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.fp-hero__arrow--prev::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024' fill='currentColor' aria-hidden='true'%3E%3Cpath transform='translate(0,960) scale(1,-1)' d='M230.4 377.6l412.8-412.8c38.4-38.4 102.4-38.4 140.8 0l9.6 9.6c38.4 38.4 38.4 102.4 0 140.8l-332.8 332.8 332.8 332.8c38.4 38.4 38.4 102.4 0 140.8l-9.6 9.6c-38.4 38.4-102.4 38.4-140.8 0l-412.8-412.8c-38.4-38.4-38.4-102.4 0-140.8z'/%3E%3C/svg%3E") no-repeat center / auto 38px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024' fill='currentColor' aria-hidden='true'%3E%3Cpath transform='translate(0,960) scale(1,-1)' d='M230.4 377.6l412.8-412.8c38.4-38.4 102.4-38.4 140.8 0l9.6 9.6c38.4 38.4 38.4 102.4 0 140.8l-332.8 332.8 332.8 332.8c38.4 38.4 38.4 102.4 0 140.8l-9.6 9.6c-38.4 38.4-102.4 38.4-140.8 0l-412.8-412.8c-38.4-38.4-38.4-102.4 0-140.8z'/%3E%3C/svg%3E") no-repeat center / auto 38px;
}

.fp-hero__arrow--next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.fp-hero__arrow--next::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024' fill='currentColor' aria-hidden='true'%3E%3Cpath transform='translate(0,960) scale(1,-1)' d='M793.6 518.4l-412.8 412.8c-38.4 38.4-102.4 38.4-140.8 0l-9.6-9.6c-38.4-38.4-38.4-102.4 0-140.8l332.8-332.8-332.8-332.8c-38.4-38.4-38.4-102.4 0-140.8l9.6-9.6c38.4-38.4 102.4-38.4 140.8 0l412.8 412.8c38.4 38.4 38.4 102.4 0 140.8z'/%3E%3C/svg%3E") no-repeat center / auto 38px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024' fill='currentColor' aria-hidden='true'%3E%3Cpath transform='translate(0,960) scale(1,-1)' d='M793.6 518.4l-412.8 412.8c-38.4 38.4-102.4 38.4-140.8 0l-9.6-9.6c-38.4-38.4-38.4-102.4 0-140.8l332.8-332.8-332.8-332.8c-38.4-38.4-38.4-102.4 0-140.8l9.6-9.6c38.4-38.4 102.4-38.4 140.8 0l412.8 412.8c38.4 38.4 38.4 102.4 0 140.8z'/%3E%3C/svg%3E") no-repeat center / auto 38px;
}

.fp-hero__dots {
    position: absolute;
    bottom: 0.625rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 0.4375rem;
}

.fp-hero__dot {
    width: 20px;
    height: 6px;
    border-radius: 8px;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.fp-hero__dot.is-active {
    background: #fff;
}

.fp-hero__toggle {
    position: absolute;
    bottom: 0.625rem;
    right: 0.625rem;
    z-index: 2;
    width: 1.4375rem;
    height: 1.4375rem;
    border: 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--fp-ink);
    cursor: pointer;
    font-size: 0.5625rem;
    line-height: 1;
}

.fp-hero__toggle::before {
    content: "❚❚"; /* pause bars */
}

.fp-hero__toggle.is-paused::before {
    content: "▶"; /* play triangle */
}

@media (max-width: 700px) {
    .fp-hero__product {
        display: none;
    }

    .fp-hero__arrow {
        display: none;
    }

    .fp-hero__slide > .fp-contain {
        justify-content: flex-start;
    }
}

/* ------------------------------------------------------------------ */
/* Product tile grid                                                    */
/* ------------------------------------------------------------------ */

.fp-tile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.4375rem;
}

@media (max-width: 1000px) {
    .fp-tile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .fp-tile-grid {
        grid-template-columns: 1fr;
    }
}

.fp-tile {
    background: #fff;
    border: 1px solid var(--fp-border);
    border-radius: 5px;
    padding: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.fp-tile:hover {
    border-color: #ccc;
}

.fp-tile h3 {
    color: var(--fp-pink);
    font-weight: 700;
    text-transform: none;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 0.625rem;
    margin: 0 0 0.8125rem;
}

.fp-tile__image img {
    max-width: 100%;
    height: auto;
}

.fp-tile__copy {
    font-size: 0.923em;
    margin-top: 0.625rem;
}

.fp-tile .fp-choice {
    margin-top: auto;
    padding-top: 0.8125rem;
    width: 100%;
}

/* ------------------------------------------------------------------ */
/* Pod row (CVE academy / article / CTA tiles)                          */
/* ------------------------------------------------------------------ */

.fp-pod-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1.4375rem;
    align-items: stretch;
}

@media (max-width: 1000px) {
    .fp-pod-grid {
        grid-template-columns: 1fr;
    }
}

.fp-cve-pod {
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    overflow: hidden;
    color: #fff;
    text-align: center;
    padding: 1.625rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.fp-cve-pod img {
    max-width: 160px;
    height: auto;
    margin-bottom: 0.8125rem;
}

.fp-cve-pod .fp-choice {
    text-shadow: none;
    width: 100%;
}

.fp-article-tile {
    background: #fff;
    border: 1px solid var(--fp-border);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fp-article-tile > a img {
    display: block;
    width: 100%;
    height: auto;
}

.fp-article-tile__entry {
    padding: 1rem 1.25rem;
}

.fp-article-tile__entry h3 {
    margin: 0 0 0.4375rem;
}

.fp-article-tile__entry h3 a {
    color: var(--fp-pink);
    text-decoration: none;
}

.fp-article-tile__entry p {
    font-size: 0.923em;
    margin: 0;
}

.fp-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fp-cta-tile {
    background: var(--fp-charcoal);
    border-radius: 5px;
    color: #ccc;
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem;
    flex: 1;
}

.fp-cta-tile__icon img {
    width: 90px;
    height: auto;
    display: block;
}

.fp-cta-tile__entry h3 {
    color: #fff;
    margin: 0 0 0.4375rem;
}

.fp-cta-tile__entry p {
    font-size: 0.923em;
    margin: 0;
}

.fp-cta-tile__entry a {
    color: var(--fp-pink);
}

/* ------------------------------------------------------------------ */
/* Product pages                                                        */
/* ------------------------------------------------------------------ */

.fp-meta-html h3 {
    color: var(--fp-pink);
    margin: 0.8125rem 0 0.1875rem;
}

.fp-meta-html ul {
    margin: 0.1875rem 0 0.4375rem 1rem;
}

/* Related-products mini slider (foranpetcare/mini-slider module in the
   product-detail block). The classic .c-slider-mini rules still style the
   slide content (floated thumbnail, offsets); these own the track. */
.fp-mini-slider {
    position: relative;
}

.fp-mini-slider__viewport {
    overflow: hidden;
}

.fp-mini-slider__track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.fp-mini-slider__slide {
    flex: 0 0 100%;
    min-width: 0;
    padding: 0 1.846em;
    box-sizing: border-box;
}

.fp-mini-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    padding: 0;
    width: 20px;
    height: 40px;
    font-size: 28px;
    line-height: 40px;
    color: #4c4c4c;
    cursor: pointer;
}

.fp-mini-slider__arrow--prev {
    left: 0;
}

.fp-mini-slider__arrow--next {
    right: 0;
}

.fp-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1rem;
    margin: 0.8125rem 0;
}

.fp-card {
    background: #fff;
    border: 1px solid var(--fp-border);
    border-radius: 5px;
    padding: 1rem;
    text-align: center;
}

.fp-card:hover {
    border-color: #ccc;
}

.fp-card img {
    max-width: 100%;
    height: auto;
}

.fp-card h3 {
    margin: 0.625rem 0 0.4375rem;
}

.fp-card h3 a {
    color: var(--fp-pink);
    text-decoration: none;
}

.fp-card p {
    font-size: 0.923em;
    margin: 0;
}

/* ------------------------------------------------------------------ */
/* Forms                                                                */
/* ------------------------------------------------------------------ */

.fp-form,
.fp-form * {
    box-sizing: border-box;
}

.fp-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
}

.fp-form__field {
    width: 100%;
    margin: 0 0 1.4375rem;
}

@media (min-width: 600px) {
    .fp-form__field--half {
        width: calc(50% - 0.625rem);
    }
    /* Three across on one line (register: Title / First name / Last name). */
    .fp-form__field--third {
        width: calc(33.333% - 0.75rem);
    }
}

.fp-form__field label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.1875rem;
}

/* Text-like fields fill the row. Checkboxes/radios are excluded so they
   keep their native size and sit inline with their label text. */
.fp-form__field input:not([type="checkbox"]):not([type="radio"]),
.fp-form__field textarea {
    width: 100%;
    min-height: 49px;
    padding: 0.5em 0.75em;
    border: 1px solid var(--fp-border);
    border-radius: 5px;
    font: inherit;
    background: #fff;
    color: var(--fp-ink);
}

.fp-form__field textarea {
    min-height: 150px;
}

.fp-form__hp {
    position: absolute !important;
    left: -9999px;
}

button.fp-form__submit,
span.fp-form__submit {
    display: inline-block;
    background: var(--fp-green);
    border: 1px solid var(--fp-green-dark);
    border-radius: 5px;
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 0.4em 1em;
    cursor: pointer;
}

button.fp-form__submit:hover {
    background: var(--fp-green-dark);
}

button.fp-form__submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.fp-form__message {
    width: 100%;
    font-weight: 700;
    color: var(--fp-green-dark);
}

.fp-form__message.is-error {
    color: var(--fp-pink-dark);
}

/* Compact variant (footer newsletter): stacked, no labels */
.fp-form--compact {
    display: block;
}

.fp-form--compact .fp-form__field {
    margin-bottom: 0.4375rem;
}

.fp-form--compact button.fp-form__submit,
.fp-form--compact span.fp-form__submit {
    font-size: 1.0625rem;
}

/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */
/* Dogs/Cats mega pods (classic .c-nav .has-children li.col-3):        */
/* centred columns with dotted separators, rounded centred images,     */
/* constrained centred copy, block-level View All buttons.             */
/* ------------------------------------------------------------------ */
.fp-mega__pods .wp-block-columns {
    gap: 0;
}

.fp-mega__pods .wp-block-column {
    padding: 24px;
    text-align: center;
    border-right: 2px dotted #666;
}

.fp-mega__pods .wp-block-column:last-child {
    border-right: 0;
}

.fp-mega__pods h4 {
    font-size: 1.25rem;
    text-align: center;
    margin: 0;
}

.fp-mega__pods h4 a {
    color: var(--wp--preset--color--brand-pink-tint) !important;
    text-decoration: none;
}

.fp-mega__pods h4 a:hover {
    color: #fff !important;
}

.fp-mega__pods figure {
    margin: 1.25em auto 1em;
    width: 183px;
}

.fp-mega__pods img {
    display: block;
    border-radius: 5px;
}

.fp-mega__pods p {
    font-size: 0.8125rem;
    line-height: 1.4;
    text-align: center;
    max-width: 16em;
    margin: 0 auto 1em;
}

.fp-mega__pods .wp-block-buttons {
    display: block;
    margin: 0 37px;
}

.fp-mega__pods .wp-block-button {
    width: 100%;
}

.fp-mega__pods .wp-block-button__link {
    display: block;
    width: 100%;
    font-size: 1rem;
    padding: 12px 0;
}

/* Mega menu item                                                      */
/* The panel positions against the nearest positioned ancestor (the    */
/* theme sets position:relative on its nav row) and the theme sets the */
/* panel width; the open/close mechanics live here with the block.     */
/* ------------------------------------------------------------------ */

.wp-block-navigation .wp-block-navigation-item.fp-mega {
    /* beat core's position:relative on nav items so the panel positions
       against the nav row, not this item */
    position: static;
    display: flex;
    align-items: center;
}

.fp-mega__toggle {
    background: none;
    border: 0;
    padding: 0 0 0 0.25em;
    margin: 0;
    color: currentColor;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.fp-mega__toggle svg {
    stroke: currentColor;
    transition: transform 0.15s;
}

.fp-mega.is-open > .fp-mega__toggle svg {
    transform: rotate(180deg);
}

.fp-mega__panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: none;
    z-index: 98;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.fp-mega.is-open > .fp-mega__panel {
    display: block;
}

/* Below the burger breakpoint the mega item is an accordion row (classic
   li.has-children): full-width link, an 80px chevron cell on the right,
   and the panel expanding in flow beneath it on charcoal. */
@media only screen and (max-width: 59.938em) {
    .wp-block-navigation .wp-block-navigation-item.fp-mega {
        position: relative;
        display: block;
    }

    /* The cell geometry lives with the theme's chevron-cell rules (its
       .site-nav-row selectors out-specify anything set here). */
    .fp-mega__toggle svg {
        width: 16px;
        height: 16px;
    }

    .fp-mega__panel {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
    }

    /* Pods stack as centred cards with small images (classic mobile
       li.col-3); the dotted separators run under, not beside. Doubled
       classes + !important beat core's stacking rule below 782px. */
    .fp-mega__pods .wp-block-columns.wp-block-columns {
        flex-wrap: wrap !important;
    }

    .fp-mega__pods .wp-block-column.wp-block-column {
        flex-basis: 100% !important;
        flex-grow: 0;
        padding: 1.846em;
        border-right: 0;
        border-bottom: 2px dotted #666;
    }

    .fp-mega__pods .wp-block-column.wp-block-column:last-child {
        border-bottom: 0;
    }

    .fp-mega__pods h4 {
        font-size: 0.875rem;
    }

    .fp-mega__pods figure {
        width: auto;
        max-width: 5em;
    }

    .fp-mega__pods img {
        width: 100%;
        height: auto;
    }

}

@media only screen and (min-width: 30em) and (max-width: 39.313em) {
    .fp-mega__pods .wp-block-column.wp-block-column {
        flex-basis: 50% !important;
    }

    .fp-mega__pods .wp-block-column.wp-block-column:nth-child(odd) {
        border-right: 2px dotted #666;
    }
}

@media only screen and (min-width: 39.375em) and (max-width: 59.938em) {
    .fp-mega__pods .wp-block-columns.wp-block-columns {
        flex-wrap: nowrap !important;
    }

    .fp-mega__pods .wp-block-column.wp-block-column {
        flex-basis: 25% !important;
        border-bottom: 0;
        border-right: 2px dotted #666;
    }

    .fp-mega__pods .wp-block-column.wp-block-column:last-child {
        border-right: 0;
    }
}

/* ------------------------------------------------------------------ */
/* Product tree (sidebar)                                              */
/* ------------------------------------------------------------------ */

.fp-product-tree ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fp-product-tree a {
    text-decoration: none;
    color: var(--wp--preset--color--ink, #313131);
}

.fp-product-tree a::before {
    content: "›";
    color: var(--wp--preset--color--brand-pink, var(--wp--preset--color--brand-pink));
    font-weight: 700;
    margin-right: 0.45em;
}

.fp-product-tree > ul > li {
    border-bottom: 2px dotted #c9c9c9;
    padding: 0.6em 0;
    font-weight: 700;
}

.fp-product-tree > ul > li:last-child {
    border-bottom: 0;
}

.fp-product-tree .children {
    display: none;
    margin: 0.5em 0 0;
    padding-left: 1.1em;
    font-weight: 400;
}

.fp-product-tree li.current_page_item > .children,
.fp-product-tree li.current_page_ancestor > .children {
    display: block;
}

.fp-product-tree .children li {
    padding: 0.2em 0;
}

.fp-product-tree li.current_page_item > a,
.fp-product-tree a:hover {
    color: var(--wp--preset--color--brand-pink, var(--wp--preset--color--brand-pink));
}

/* ------------------------------------------------------------------ */
/* Child-products grid (category archive + category pages)            */
/* Classic theme: 2-col horizontal cards, image left / text right,    */
/* dotted-underline heading, green arrow button. Archive = grey       */
/* heading + "View Products"; category = pink heading + "More Info".   */
/* ------------------------------------------------------------------ */

.fp-child-products .fp-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 1.846em;
}

.fp-child-products .fp-card:hover {
    border: 0;
}

@media (max-width: 781px) {
    
    /* Stack each card: image on top (full width), text below — matches
       the classic theme's mobile product cards. */
    .fp-child-products .fp-card {
        flex-direction: column;
        gap: 1em;
    }
    
    
}

/* ------------------------------------------------------------------ */
/* Product "Ideal for" attribute list (foran/meta-html)               */
/* Classic theme: uppercase bold items with a pink triangle bullet.   */
/* ------------------------------------------------------------------ */
.fp-meta-html h3 {
    font-size: 1rem;
    color: var(--wp--preset--color--charcoal);
    margin: 0 0 0.5em;
}
.fp-meta-html ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.fp-meta-html ul li {
    position: relative;
    padding-left: 1.2em;
    margin: 0 0 0.55em;
    font-weight: 600;
    color: #3c3c3b;
    text-transform: uppercase;
    line-height: 1.4;
}
.fp-meta-html ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 0 4px 6px;
    border-color: transparent transparent transparent var(--fp-pink, var(--wp--preset--color--brand-pink));
}

/* ------------------------------------------------------------------ */
/* Homepage promo row parity (classic .c-tile-*)                       */
/* ------------------------------------------------------------------ */

/* Latest Articles is a bordered card: image flush to the top, padded
   heading/copy below (classic .c-tile-content.c-tile-article). */
.fp-article-card {
    border: 1px solid var(--wp--preset--color--line, var(--wp--preset--color--line));
    border-radius: 5px;
    overflow: hidden;
}

.fp-article-card > figure {
    margin: 0;
}

.fp-article-card img {
    width: 100%;
    height: auto;
    display: block;
}

.fp-article-card > h3 {
    margin: 0.875rem 24px 0.3125rem;
}

.fp-article-card > p {
    margin: 0 24px 24px;
}

/* The two stockist CTAs fill the column height, split evenly, with
   their content vertically centred (classic .c-tile-half-h). */
.fp-cta-col.fp-cta-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fp-cta-col > .fp-stockist-cta {
    flex: 1;
    align-items: center;
    margin: 0;
}

/* Product hero slides: product image centre-right with the copy to its
   right (classic .product-shot layout); text-only slides stay left. */
.fp-hero__slide--product > .fp-contain {
    justify-content: flex-end;
}

.fp-hero__slide--product .fp-hero__product {
    order: 0;
    margin-left: 0;
    margin-right: 1.625rem;
}

.fp-hero__slide--product .fp-hero__content {
    order: 1;
    max-width: 19.5rem;
    margin-right: 4%;
}

/* Tile/pod copy without a preset class is the classic 12px. */
.fp-tile__copy p,
.fp-promos p {
    font-size: 0.75rem;
}

/* Latest Articles heading link is the classic blue. */
.fp-article-card > h3 a {
    color: #297dbe;
}

.fp-article-card > h3 a:hover {
    color: #1f6396;
}

/* The CVE promo pod has the classic rounded corners. */
.fp-promo-cve {
    border-radius: 5px;
    overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* All Products mega panel (classic .c-multi-column look): a narrower, */
/* nav-aligned panel of link columns with dotted-ruled headings.        */
/* ------------------------------------------------------------------ */
.fp-mega__panel:has(.fp-mega__products) {
    left: max(0px, calc((100% - 1266px) / 2));
    transform: none;
    width: min(970px, 100vw);
}

.fp-mega__products {
    padding: 1.625rem 2.0625rem !important;
}

.fp-mega__products h4 {
    font-size: 1rem;
    line-height: 1;
    margin: 0 0 0.7em;
    padding-bottom: 8px;
    border-bottom: 2px dotted #aaa;
}

.fp-mega__products h4 a,
.fp-mega__products.has-link-color h4 a {
    color: #fbb5d3 !important;
    text-decoration: none;
}

.fp-mega__products ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fp-mega__products li {
    margin: 0;
}

.fp-mega__products li a {
    display: inline-block;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1;
    padding: 0.4em 0;
    text-decoration: none;
}

.fp-mega__products li a:hover,
.fp-mega__products h4 a:hover {
    color: var(--wp--preset--color--brand-pink);
}

/* The mega-category toggle only exists on mobile; desktop columns show
   their lists in full. */
.fp-mega-cat__toggle {
    display: none;
}

/* The wrapper absorbs the column's layout-flow margin, so the list
   keeps the 24px gap it had as a direct column child. */
.fp-mega__products .fp-mega-cat__list {
    margin-block-start: 24px;
}

/* ------------------------------------------------------------------ */
/* Slim mega variant (Advice): a compact charcoal dropdown under its   */
/* item (classic .slim-menu), not a full-width panel.                  */
/* ------------------------------------------------------------------ */
.wp-block-navigation .wp-block-navigation-item.fp-mega.fp-mega--slim {
    position: relative;
}

.fp-mega--slim .fp-mega__panel {
    left: 0;
    transform: none;
    width: auto;
    min-width: 200px;
    background: var(--wp--preset--color--charcoal);
}

.fp-slim-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fp-slim-menu li {
    margin: 0;
}

.fp-slim-menu li a {
    display: block;
    color: var(--wp--preset--color--brand-pink-tint);
    font-size: 1rem;
    line-height: 1.2;
    padding: 16px 10px;
    border-bottom: 1px solid #555;
    text-decoration: none;
}

.fp-slim-menu li a:hover {
    background: #2f2f30;
    color: #fff;
}

/* Below the burger breakpoint All Products is a full-width accordion
   panel: each column a section, the h4 category link as a charcoal row,
   its product list indented beneath. */
@media only screen and (max-width: 59.938em) {
    .fp-mega__panel:has(.fp-mega__products) {
        left: auto;
        width: 100%;
    }

    .fp-mega__products {
        padding: 0 !important;
    }

    .fp-mega__products .wp-block-columns.wp-block-columns {
        flex-wrap: wrap !important;
        gap: 0;
    }

    .fp-mega__products .wp-block-column.wp-block-column {
        flex-basis: 100% !important;
        flex-grow: 0;
        padding: 0;
        margin: 0;
    }

    .fp-mega__products h4 {
        margin: 0;
        padding: 0;
        border-bottom: 0;
    }

    .fp-mega__products h4 a,
    .fp-mega__products.has-link-color h4 a {
        display: block;
        color: var(--wp--preset--color--brand-pink-tint) !important;
        font-size: 1rem;
        line-height: 1;
        padding: 1em 90px 1em 5%;
        border-bottom: 1px solid #555;
    }

    .fp-mega__products li a {
        display: block;
        font-size: 0.875rem;
        line-height: 1;
        padding: 1em 5% 1em 10%;
        border-bottom: 1px solid #555;
        color: #fff;
    }

    /* Each category is an accordion row (classic nested li.has-children):
       an 80px chevron cell beside the heading, the product list collapsed
       beneath it on the classic third-level #333. */
    .fp-mega-cat {
        position: relative;
    }

    .fp-mega-cat__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        right: 0;
        width: 80px;
        height: 48px;
        margin: 0;
        padding: 0;
        background: none;
        border: 0;
        border-left: 1px solid #555;
        color: #fff;
        cursor: pointer;
    }

    .fp-mega-cat__toggle svg {
        width: 16px;
        height: 16px;
        stroke: currentColor;
        transition: transform 0.15s;
    }

    .fp-mega-cat.is-open > .fp-mega-cat__toggle svg {
        transform: rotate(180deg);
    }

    .fp-mega-cat__list,
    .fp-mega__products .fp-mega-cat__list {
        display: none;
        margin-block-start: 0;
        background: #333;
    }

    .fp-mega-cat.is-open > .fp-mega-cat__list {
        display: block;
    }

    /* Slim (Advice) panel spans the row like every other accordion. */
    .fp-mega--slim .fp-mega__panel {
        width: 100%;
        min-width: 0;
    }

    .fp-slim-menu li a {
        font-weight: 300;
        line-height: 1;
        padding: 1em 5%;
    }
}
