/* Florist: Wren & Stem, an invented Bristol florist. Petal white, deep plum and a sage green, with Georgia headings. Delivery date and postcode come first, then occasions and the message card. */

.fl-page {
  --fl-canvas: #fdfaf8;
  --fl-surface: #ffffff;
  --fl-band: #f6eef0;
  --fl-ink: #2a1622;
  --fl-muted: #62505a;
  --fl-line: #ead9df;
  --fl-line-strong: #8f7a84;
  --fl-accent: #7a2858;
  --fl-accent-hover: #5e1d43;
  --fl-on-accent: #ffffff;
  --fl-tint: #f6e3ec;
  --fl-success: #3f6b3a;
  --fl-danger: #b3261e;
  --fl-focus: #7a2858;
  --fl-card: #fffaf0;
  --fl-bloom: #e9c6d6;
  --fl-leaf: #8fb08a;
  --fl-head: Georgia, "Times New Roman", serif;
  --fl-body: "Segoe UI", system-ui, sans-serif;
  --fl-r: 14px;

  background: var(--fl-canvas);
  color: var(--fl-ink);
  font-family: var(--fl-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Dark mode, the default (PRD section 13.10): night plum with soft rose. Only this template's
   tokens change. */
@media screen {
  :root[data-theme="dark"] .fl-page {
    --fl-canvas: #160c12;
    --fl-surface: #21131b;
    --fl-band: #1b1016;
    --fl-ink: #f7e9ef;
    --fl-muted: #c4abb7;
    --fl-line: #3a2430;
    --fl-line-strong: #8a6f7c;
    --fl-accent: #f2a6c8;
    --fl-accent-hover: #f8c6dc;
    --fl-on-accent: #3a0c24;
    --fl-tint: #3a1d2c;
    --fl-success: #a6d49c;
    --fl-danger: #ff8a80;
    --fl-focus: #f2a6c8;
    --fl-card: #2a1a22;
    --fl-bloom: #5a2c42;
    --fl-leaf: #3f5e3c;
    color-scheme: dark;
  }
}

.fl-page [hidden] { display: none !important; }
:where(.fl-page) :is(p, h1, h2, h3, h4, ul, ol, dl, dd, fieldset, figure, blockquote) { margin: 0; }
:where(.fl-page) :is(ul, ol) { padding: 0; list-style: none; }
:where(.fl-page) fieldset { padding: 0; border: 0; min-width: 0; }
:where(.fl-page) a { color: var(--fl-accent); }
:where(.fl-page) :is(h1, h2, h3, h4) { color: inherit; }
.fl-page :focus-visible { outline: 3px solid var(--fl-focus); outline-offset: 2px; }
.fl-page :is(input[type="range"], input[type="checkbox"], input[type="radio"]) { accent-color: var(--fl-accent); }
html:has(.fl-page) { scroll-behavior: smooth; }
.fl-page section[id] { scroll-margin-top: 72px; }
.fl-wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.fl-header { position: sticky; top: 0; z-index: 20; background: var(--fl-canvas); border-bottom: 1px solid var(--fl-line); }
.fl-header-in { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.fl-logo { display: flex; align-items: center; gap: 10px; font: 700 1.2rem/1.1 var(--fl-head); color: var(--fl-ink) !important; text-decoration: none; }
.fl-logo-mark { width: 30px; height: 30px; flex: none; fill: var(--fl-tint); stroke: var(--fl-accent); stroke-width: 2; stroke-linejoin: round; }
.fl-nav { margin-left: auto; }
.fl-nav ul { display: flex; gap: 22px; }
.fl-nav a { color: var(--fl-ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.fl-nav a:hover { color: var(--fl-accent); text-decoration: underline; text-underline-offset: 4px; }
.fl-menu-btn { display: none; }
.fl-theme-btn {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--fl-line-strong); border-radius: var(--fl-r); background: transparent; color: inherit; font-size: 1.15rem; cursor: pointer;
}
.fl-theme-btn:hover { background: var(--fl-tint); }

.fl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border: 2px solid var(--fl-accent); border-radius: var(--fl-r); font: 700 1rem/1.2 var(--fl-head); text-decoration: none; cursor: pointer; text-align: center;
}
.fl-btn--fill { background: var(--fl-accent); color: var(--fl-on-accent) !important; }
.fl-btn--fill:hover { background: var(--fl-accent-hover); border-color: var(--fl-accent-hover); }
.fl-btn--line { background: transparent; color: var(--fl-accent) !important; }
.fl-btn--line:hover { background: var(--fl-tint); }
.fl-btn--big { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.fl-btn:disabled { background: var(--fl-band); border-color: var(--fl-line-strong); color: var(--fl-muted) !important; cursor: not-allowed; }

.fl-eyebrow { font-weight: 700; color: var(--fl-accent); font-size: .92rem; letter-spacing: .02em; }
.fl-title { font: 700 clamp(1.7rem, 3.4vw, 2.4rem)/1.15 var(--fl-head); }
.fl-sub { color: var(--fl-muted); margin-top: 8px; max-width: 64ch; }
.fl-head { margin-bottom: 26px; }
.fl-sec { padding: 72px 0; }
.fl-band { background: var(--fl-band); }
.fl-muted { color: var(--fl-muted); }
.fl-small { font-size: .9rem; color: var(--fl-muted); }

.fl-hero { padding: 64px 0 56px; }
.fl-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.fl-hero-title { font: 700 clamp(2.2rem, 5vw, 3.5rem)/1.06 var(--fl-head); margin-top: 10px; }
.fl-lede { font-size: 1.15rem; color: var(--fl-muted); margin-top: 16px; max-width: 54ch; }
.fl-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.fl-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; color: var(--fl-muted); font-size: .95rem; }
.fl-facts strong { color: var(--fl-ink); }
.fl-panel { padding: 24px; background: var(--fl-surface); border: 1px solid var(--fl-line); border-radius: calc(var(--fl-r) + 4px); box-shadow: 0 24px 40px -30px var(--color-shadow); }
.fl-panel-title { font: 700 1.1rem var(--fl-head); margin-bottom: 12px; }

.fl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.fl-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fl-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--fl-surface); border: 1px solid var(--fl-line); border-radius: var(--fl-r); }
.fl-card h3 { font: 700 1.15rem/1.25 var(--fl-head); }
.fl-card p { color: var(--fl-muted); font-size: .96rem; }
.fl-card .fl-btn { margin-top: auto; align-self: flex-start; }
.fl-card.is-on { border: 2px solid var(--fl-accent); }
.fl-art { height: 120px; margin: -22px -22px 6px; border-radius: var(--fl-r) var(--fl-r) 0 0; background: var(--fl-tint); position: relative; overflow: hidden; }
.fl-art::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: 18%; top: 22%; background: var(--fl-canvas); opacity: .7; }
.fl-price { font: 700 1.5rem var(--fl-head); color: var(--fl-ink); }
.fl-badge { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--fl-line-strong); font-size: .82rem; font-weight: 600; color: var(--fl-ink); }
.fl-badge--on { background: var(--fl-tint); border-color: var(--fl-accent); }
.fl-badge--bad { border-color: var(--fl-danger); color: var(--fl-danger); }
.fl-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--fl-muted); }

.fl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.fl-chip { min-height: 42px; padding: 0 16px; border: 1px solid var(--fl-line-strong); border-radius: 999px; background: var(--fl-surface); color: var(--fl-ink); font: 600 .95rem var(--fl-body); cursor: pointer; }
.fl-chip:hover { border-color: var(--fl-accent); }
.fl-chip[aria-pressed="true"] { background: var(--fl-accent); border-color: var(--fl-accent); color: var(--fl-on-accent); }
.fl-count { font-weight: 600; margin-bottom: 14px; }
.fl-empty { padding: 28px; text-align: center; border: 1px dashed var(--fl-line-strong); border-radius: var(--fl-r); }

.fl-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; counter-reset: st; }
.fl-steps li { padding: 22px; background: var(--fl-surface); border: 1px solid var(--fl-line); border-radius: var(--fl-r); counter-increment: st; }
.fl-steps li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--fl-accent); color: var(--fl-on-accent); font-weight: 700; }
.fl-steps h3 { font: 700 1.1rem var(--fl-head); }
.fl-steps p { color: var(--fl-muted); font-size: .95rem; margin-top: 4px; }

.fl-table { width: 100%; border-collapse: collapse; background: var(--fl-surface); border: 1px solid var(--fl-line); border-radius: var(--fl-r); overflow: hidden; }
.fl-table th, .fl-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--fl-line); vertical-align: top; }
.fl-table th { font-size: .88rem; color: var(--fl-muted); background: var(--fl-band); }
.fl-table td.fl-num, .fl-table th.fl-num { text-align: right; font-variant-numeric: tabular-nums; }

.fl-meter { height: 10px; border-radius: 999px; background: var(--fl-line); overflow: hidden; }
.fl-meter span { display: block; height: 100%; background: var(--fl-accent); border-radius: inherit; }
.fl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 16px; }
.fl-stat strong { display: block; font: 700 2rem/1.1 var(--fl-head); }
.fl-stat span { color: var(--fl-muted); font-size: .92rem; }

.fl-faq-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.fl-qs details { border-bottom: 1px solid var(--fl-line); }
.fl-qs summary { padding: 16px 0; font-weight: 700; cursor: pointer; }
.fl-qs p { padding: 0 0 16px; color: var(--fl-muted); }

.fl-form { max-width: 760px; margin-inline: auto; padding: 32px; background: var(--fl-surface); border: 1px solid var(--fl-line); border-radius: calc(var(--fl-r) + 4px); display: flex; flex-direction: column; gap: 18px; }
.fl-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fl-field--full { grid-column: 1 / -1; }
.fl-field label, .fl-field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.fl-field :is(input, select, textarea) { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--fl-line-strong); border-radius: calc(var(--fl-r) - 2px); background: var(--fl-canvas); color: var(--fl-ink); font: 1rem var(--fl-body); }
.fl-field textarea { min-height: 110px; resize: vertical; }
.fl-field :is(input, select, textarea)[aria-invalid="true"] { border: 2px solid var(--fl-danger); }
.fl-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.fl-check input { width: 20px; min-height: 20px; height: 20px; margin-top: 3px; accent-color: var(--fl-accent); }
.fl-hint { font-size: .88rem; color: var(--fl-muted); margin-top: 6px; }
.fl-error { color: var(--fl-danger); font-weight: 600; font-size: .92rem; margin-top: 6px; }
.fl-error::before { content: "! "; }
.fl-status { font-weight: 600; }
.fl-status.is-ok { padding: 14px 16px; border-radius: calc(var(--fl-r) - 2px); background: var(--fl-tint); border-left: 4px solid var(--fl-success); }

.fl-footer { padding: 28px 0; border-top: 1px solid var(--fl-line); color: var(--fl-muted); font-size: .92rem; }
.fl-footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .fl-header-in { flex-wrap: wrap; gap: 10px; }
  .fl-theme-btn { margin-left: auto; }
  .fl-menu-btn {
    display: inline-flex; align-items: center; order: 3; min-height: 44px; padding: 0 16px;
    border: 1px solid var(--fl-line-strong); border-radius: var(--fl-r); background: transparent; color: var(--fl-ink); font: 600 .95rem var(--fl-body); cursor: pointer;
  }
  .fl-nav { display: none; order: 5; width: 100%; margin: 0; }
  .fl-nav.is-open { display: block; padding-bottom: 12px; }
  .fl-nav ul { flex-direction: column; gap: 0; }
  .fl-nav a { display: block; padding: 12px 0; border-top: 1px solid var(--fl-line); }
  .fl-header-cta { display: none; }
  .fl-hero-in, .fl-faq-in, .fl-grid--2 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 640px) {
  .fl-sec { padding: 52px 0; }
  .fl-fields { grid-template-columns: minmax(0, 1fr); }
  .fl-form { padding: 20px; }
  .fl-table thead { display: none; }
  .fl-table, .fl-table tbody, .fl-table tr, .fl-table td { display: block; width: 100%; }
  .fl-table tr { border-bottom: 1px solid var(--fl-line-strong); padding: 6px 0; }
  .fl-table td { border: 0; padding: 6px 14px; text-align: left !important; }
  .fl-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--fl-muted); }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.fl-page) { scroll-behavior: auto; }
}

@media print {
  .fl-header, .fl-theme-btn, .fl-form { display: none; }
}

/* This template's own sections */
.fl-art { width: min(320px, 100%); display: block; margin: 0 auto; }
.fl-bl { fill: var(--fl-bloom); } .fl-lf { fill: var(--fl-leaf); }
.fl-check { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.fl-check div { display: grid; gap: 6px; }
.fl-check label, .fl-lab { font-weight: 700; }
.fl-check input, .fl-two textarea, .fl-two input[type="text"] { font: inherit; padding: 10px 12px; border: 1px solid var(--fl-line-strong); border-radius: var(--fl-radius); background: var(--fl-surface); color: var(--fl-ink); }
.fl-check input[aria-invalid="true"] { border-color: var(--fl-danger); }
.fl-result { margin-top: 16px; font-weight: 700; }
.fl-result.is-ok { color: var(--fl-success); } .fl-result.is-bad { color: var(--fl-danger); }
.fl-price { font: 700 1.25rem var(--fl-head); margin-top: 8px; }
.fl-empty { color: var(--fl-muted); margin-top: 16px; }
.fl-two { display: grid; gap: 40px; align-items: start; }
.fl-lab { display: block; margin: 16px 0 6px; }
.fl-two textarea, .fl-two input[type="text"] { width: 100%; }
.fl-hint { color: var(--fl-muted); font-size: .88rem; margin-top: 6px; }
.fl-tick { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.fl-note { background: var(--fl-card); color: var(--fl-ink); border: 1px solid var(--fl-line); border-radius: 6px; padding: 32px 28px; min-height: 220px; transform: rotate(-1.5deg); box-shadow: 0 10px 24px -14px var(--fl-line-strong); }
.fl-note p { font: italic 1.25rem/1.5 var(--fl-head); white-space: pre-wrap; }
.fl-note .fl-note-from { margin-top: 18px; text-align: right; font-size: 1.05rem; }
@media (prefers-reduced-motion: reduce) { .fl-note { transform: none; } }
