/* Find a florist A, lower half (4 Nov 2026): the bits of the static page's look (http://localhost:8091/find-a-florist/) that
   came from the static's own d2f-country.css / extra.min.css, which the theme doesn't load, so the port missed them:
   the round carousel arrows, the trio cards' links, the pink info tabs, "Read more" on the long tab copy, the dark section
   headings and the Just Delivered pills. Loaded only on A (templates/find-florist-v2.twig, FAF26), and every rule sits under
   html.d2f-faf, which js/faf26/faf.js adds, so B never sees any of it. #main in the selectors outranks the site's own
   !important rules for the tabs. */

html.d2f-faf #main { line-height: 1.5; }

/* Trio cards */
html.d2f-faf #main .section-trio-top { margin-top: 20px !important; }
html.d2f-faf #main .trio-card { border-radius: 12px !important; }
html.d2f-faf #main .trio-card a.find-more { display: inline-flex; align-items: center; gap: 6px; color: var(--d2f-heading, #23233d) !important; font-weight: 600; text-decoration: none; }
html.d2f-faf #main .trio-card a.find-more:hover { text-decoration: underline; text-underline-offset: 3px; }
html.d2f-faf #main .trio-trust .trust-image { border-radius: 8px !important; }

/* Carousel arrows (Meet our florists, Just Delivered): the homepage's round buttons */
html.d2f-faf .d2f-rail-nav { display: flex; gap: 8px; }
html.d2f-faf .d2f-rail-nav[hidden] { display: none; }
html.d2f-faf .d2f-rail-nav button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #c2c2ca; border-radius: 50%; background: #fff; color: var(--d2f-heading, #23233d); font: inherit; font-size: 18px; line-height: 1; cursor: pointer; transition: border-color .15s ease, opacity .15s ease; }
html.d2f-faf .d2f-rail-nav button:hover:not(:disabled) { border-color: var(--d2f-heading, #23233d); }
html.d2f-faf .d2f-rail-nav button:disabled { opacity: .35; cursor: default; }
html.d2f-faf .d2f-rail-nav button:focus-visible { outline: 2.5px solid rgba(35, 35, 61, .32); outline-offset: 2px; }
@media (max-width: 767px) { html.d2f-faf .d2f-rail-nav { display: none; } }

/* Info tabs: pink active pill, light grey others */
@media (min-width: 601px) {
  html.d2f-faf #main .florist-info-tabs-section .switch-tab { border: 1px solid #e8e6e2 !important; background: #fff !important; color: var(--d2f-text, #4f5064) !important; }
  html.d2f-faf #main .florist-info-tabs-section .switch-tab:hover { background: #faf9f7 !important; border-color: var(--d2f-heading, #23233d) !important; color: var(--d2f-heading, #23233d) !important; }
  html.d2f-faf #main .florist-info-tabs-section .switch-tab.is--active { border-color: #ee88a2 !important; background: #fdeef2 !important; color: var(--d2f-heading, #23233d) !important; }
}
html.d2f-faf #main .tab-panel .panel-grid { gap: 32px !important; }
html.d2f-faf #main .tab-panel .panel-copy h2 { font-size: 28px !important; font-weight: 600 !important; line-height: 1.2 !important; }
html.d2f-faf #main .tab-panel .panel-copy h3 { color: var(--d2f-heading, #23233d); }
html.d2f-faf #main .tab-panel .panel-copy p { line-height: 1.6 !important; max-width: 64ch; }
html.d2f-faf #main .tab-panel .panel-media-block { border: 0 !important; border-radius: 16px !important; box-shadow: 0 10px 30px rgba(20, 20, 35, .06) !important; }
html.d2f-faf #main .feature-hero__florist { line-height: 1.5; }

/* Long tab copy: first paragraph, then "Read more" (js/faf26/faf-lower.js) */
/* 6 Nov: folded = heading, first paragraph, Read more, nothing else. Everything after the button (later paragraphs AND the
   h3 subheadings) is hidden, so no heading sits stuck under Read more with no text. Opened, Read less moves to the end. */
html.d2f-faf .d2f-more-wrap:not(.is-open) > .d2f-more ~ * { display: none !important; }
html.d2f-faf .d2f-more-wrap.is-open > .d2f-more { margin-top: 16px; }

/* 6 Nov: FAQs tab as question rows (js/faf26/faf-lower.js faq()): question visible, answer opens under it */
html.d2f-faf #main .panel-copy > h2 + .faf-faq { margin-top: 16px; border-top: 1px solid #ececf0; }
html.d2f-faf #main .faf-faq { max-width: 72ch; border-bottom: 1px solid #ececf0; }
html.d2f-faf #main .faf-faq > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 8px 0; cursor: pointer; }
html.d2f-faf #main .faf-faq > summary::-webkit-details-marker { display: none; }
html.d2f-faf #main .faf-faq > summary h3 { margin: 0 !important; font-size: 17px !important; font-weight: 600 !important; line-height: 1.35 !important; color: var(--d2f-heading, #23233d) !important; }
html.d2f-faf #main .faf-faq > summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid #23233d; border-bottom: 2px solid #23233d; transform: rotate(45deg); margin: -5px 6px 0 0; transition: transform .2s; }
html.d2f-faf #main .faf-faq[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
html.d2f-faf #main .faf-faq > summary:focus-visible { outline: 2.5px solid rgba(35, 35, 61, .32); outline-offset: 2px; border-radius: 4px; }
html.d2f-faf #main .faf-faq__a { padding: 0 0 16px; }
html.d2f-faf #main .faf-faq__a > p:first-child { margin-top: 0 !important; }
html.d2f-faf #main .faf-faq__a > p:last-child { margin-bottom: 0 !important; }

/* Section links ("Read all reviews", "Read more") and headings */
html.d2f-faf #main .d2f-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--d2f-heading, #23233d) !important; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.5; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: pointer; }
html.d2f-faf #main .d2f-more::after { content: "→"; transition: transform .15s ease; }
html.d2f-faf #main .d2f-more:hover::after { transform: translateX(3px); }
html.d2f-faf #main .faf-revs26 h2 { color: var(--d2f-heading, #23233d); }
html.d2f-faf #main .faf-revs26 .d2f-section__head .d2f-more { display: inline-block; }

/* Just Delivered */
html.d2f-faf #main .faf-jd-sec .jd-card { color: var(--d2f-text, #4f5064); }
html.d2f-faf #main .faf-jd-sec .tile-large-white-img .tabs { border-radius: 999px !important; padding: 6px 12px !important; line-height: 1.2 !important; color: var(--d2f-text, #4f5064) !important; }

/* 4 Nov (Nilesh: "make sure the pink aligns on shop name on that page"): the map list's florist names use the one shop pink,
   --d2f-shop-name (#e34671), like the shop, town and basket pages, instead of this page's own #d0607e / #b8496a. #e34671 is
   3.9:1 on white, so it is for large text only: the names go from 18px semibold to 19px bold (WCAG large text). Hover, focus
   and the selected row use the small-text shade --d2f-shop-name-small (#c42f5a, 5.4:1) with an underline. */
html.d2f-faf .fafm { --pink: var(--d2f-shop-name, #e34671); }
html.d2f-faf .fafm .fafm-row__name a { color: var(--d2f-shop-name, #e34671); font-size: 18px; font-weight: 700; }
html.d2f-faf .fafm .fafm-row__name a:hover, html.d2f-faf .fafm .fafm-row__name a:focus-visible, html.d2f-faf .fafm .fafm-row.is-sel .fafm-row__name a { color: var(--d2f-shop-name-small, #c42f5a); }

/* 4 Nov (Nilesh: "find a florist page all very jump loading in", "looks strange"). Nothing moves while the page loads in:
   1. Until js/faf26/faf.js has arranged the sections (it marks #main data-faf; it now runs as soon as the page is parsed),
      the old reviews/Just Delivered box that sits first in the markup is hidden and the other sections below the map keep
      their space but stay invisible, so the half-arranged page is never seen.
   2. The map (#fafm, js/faf26/fafm.js) is empty until its script and data arrive, then grew to 680px (desktop) and pushed
      everything down. Its final height is reserved per layout, plus the city pills' row (44px + 16px) above it. */
html.d2f-faf #main:not([data-faf]) > .wrapper-content:has(.d2f-review-hub-wrapper) { display: none !important; }
html.d2f-faf #main:not([data-faf]) > :not(.find-a-florist-hero-new-section):not(.wrapper-alt) { visibility: hidden; }
html.d2f-faf #fafm:empty { margin-top: 80px; }   /* collapses with the title block's bottom margin, so this is the whole gap the pills row leaves */
@media (min-width: 601px) { html.d2f-faf #fafm:empty { margin-top: 92px; } }
@media (min-width: 1280px) and (max-width: 1439px) { html.d2f-faf #fafm:empty { margin-top: 144px; } }   /* the pills wrap to two rows here */
html.d2f-faf #fafm { min-height: 1388px; }
@media (min-width: 430px) { html.d2f-faf #fafm { min-height: 1088px; } }
@media (min-width: 601px) { html.d2f-faf #fafm { min-height: 1043px; } }
@media (min-width: 861px) { html.d2f-faf #fafm { min-height: 998px; } }
@media (min-width: 1024px) { html.d2f-faf #fafm { min-height: 680px; } }

/* 4 Nov (Nilesh, screenshot): scrolling down, the florist list panel (z-index 600) and the map's own layers (Leaflet uses
   400-1000) drew over the sticky yellow search bar. The map block now keeps its layers to itself, so the sticky bar,
   header menus and the cookie banner sit above it. */
html.d2f-faf .fafm, html.d2f-faf .fafm__mapwrap { isolation: isolate; }

/* 4 Nov (Nilesh: "find a florist has a gap above the search"): faf.css (from the static) put 16px / 24px above the search
   band; the other A pages (town, shop) have the band tight under the header. */
html.d2f-faf #main > .wrapper-alt { padding-top: 0 !important; }
