/* The brand blocks (inc/blocks.php). Colours are the brand tokens (--ab-*), so they follow light and dark, and inside a
   band (the theme's is-style-band) they take the band's colours. */

.dfx-mono { font-family: var(--wp--preset--font-family--mono, monospace); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ab-fg-muted); }

/* ---------- describe box ---------- */
.dfx-describe { display: flex; flex-direction: column; align-items: center; gap: 1rem; width: 100%; }
.dfx-describe-box { width: min(100%, 45rem); background: var(--ab-surface); border: 2px solid var(--ab-fg); border-radius: 6px; padding: 0.6rem 0.6rem 0.6rem 1rem; display: flex; gap: 0.6rem; align-items: center; box-shadow: 6px 6px 0 var(--ab-accent); }
.dfx-describe-box label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dfx-describe-box input[type="text"] { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ab-fg); font: 1rem var(--wp--preset--font-family--text, sans-serif); padding: 0.6rem 0; }
.dfx-describe-box input[type="text"]:focus { outline: none; }
.dfx-describe-box:focus-within { outline: 2px solid var(--ab-focus); outline-offset: 4px; }
.dfx-describe-box input::placeholder { color: var(--ab-fg-muted); }
.dfx-describe-box button { flex: none; white-space: nowrap; }
@media (max-width: 560px) { .dfx-describe-box { flex-direction: column; align-items: stretch; padding: 0.75rem; } .dfx-describe-box button { width: 100%; } }
.dfx-describe-note { margin: 0; font-size: 0.875rem; color: var(--ab-success); }
.dfx-describe-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.dfx-describe-chips button { border: 1px solid var(--ab-line); background: var(--ab-surface); color: var(--ab-fg); border-radius: 999px; padding: 0.45rem 0.9rem; min-height: 2.25rem; font: 0.875rem var(--wp--preset--font-family--text, sans-serif); cursor: pointer; }
.dfx-describe-chips button:hover { border-color: var(--ab-link); color: var(--ab-link); }

/* ---------- app preview ---------- */
.dfx-app-figure { margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.is-style-band > .dfx-app-figure:first-child, .is-style-band > .wp-block-group:first-child > .dfx-app-figure:first-child { margin-top: clamp(-7.5rem, -11vw, -5rem); position: relative; z-index: 2; }
@media (max-width: 782px) { .is-style-band > .dfx-app-figure:first-child, .is-style-band > .wp-block-group:first-child > .dfx-app-figure:first-child { margin-top: 2rem; } }
.dfx-app-figure figcaption { font-size: 0.8125rem; color: var(--ab-band-muted); text-align: center; margin: 0; }
.dfx-app { background: var(--ab-band-surface); color: var(--ab-band-fg); border: 1px solid var(--ab-band-line); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(6, 12, 23, 0.55); display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); text-align: left; font-family: var(--wp--preset--font-family--text, sans-serif); }
.dfx-app-side { border-right: 1px solid var(--ab-band-line); padding: 1rem 0.75rem; display: flex; flex-direction: column; gap: 4px; font-size: 0.875rem; }
.dfx-app-side span { padding: 0.55rem 0.6rem; border-radius: 4px; color: var(--ab-band-muted); display: flex; align-items: center; gap: 0.6rem; }
.dfx-app-side span.on { background: var(--ab-band-raised); color: var(--ab-band-fg); }
.dfx-app-side i { width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 2px; }
.dfx-app-main { display: flex; flex-direction: column; min-width: 0; }
.dfx-app-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; padding: 0.75rem 1.1rem; border-bottom: 1px solid var(--ab-band-line); font-size: 0.875rem; }
.dfx-app-crumb { color: var(--ab-band-muted); }
.dfx-app-crumb b { color: var(--ab-band-fg); font-weight: 600; }
.dfx-app-credit { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8125rem; color: var(--ab-band-muted); }
.dfx-meter { width: 7.5rem; height: 6px; background: var(--ab-band-raised); border-radius: 3px; overflow: hidden; }
.dfx-meter span { display: block; height: 100%; width: 62%; background: var(--ab-accent); }
.dfx-app-panes { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1rem; padding: 1.1rem; }
.dfx-spec { background: var(--ab-band-raised); border: 1px solid var(--ab-band-line); border-radius: 8px; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.85rem; }
.dfx-spec .dfx-mono { color: var(--ab-band-muted); }
.dfx-spec-title { font: 700 1.375rem/1.2 var(--wp--preset--font-family--display, sans-serif); letter-spacing: -0.01em; }
.dfx-spec dl { margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.dfx-spec dl > div { display: grid; grid-template-columns: 6.9rem 1fr; gap: 0.75rem; font-size: 0.875rem; padding-top: 0.6rem; border-top: 1px solid var(--ab-band-line); }
.dfx-spec dt { color: var(--ab-band-muted); }
.dfx-spec dd { margin: 0; }
.dfx-tag { display: inline-block; font-size: 0.75rem; padding: 2px 8px; border: 1px solid var(--ab-band-line); border-radius: 3px; margin: 0 4px 4px 0; }
.dfx-spec-acts { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.dfx-btn { display: inline-flex; align-items: center; padding: 0.55rem 0.9rem; border-radius: 6px; border: 1px solid var(--ab-band-line); font-weight: 600; font-size: 0.875rem; }
.dfx-btn-accent { background: var(--ab-accent); color: var(--ab-on-accent); border-color: var(--ab-accent); }
.dfx-preview { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
/* The example app is a customer's own page, so it keeps its own light colours in both themes. */
.dfx-browser { background: #FFFFFF; color: #1F2430; border-radius: 8px; overflow: hidden; border: 1px solid var(--ab-band-line); }
.dfx-browser-url { background: #EEF0F4; font: 0.75rem var(--wp--preset--font-family--mono, monospace); color: #4A5263; padding: 0.5rem 0.75rem; display: flex; gap: 0.5rem; align-items: center; }
.dfx-browser-url i { width: 8px; height: 8px; border-radius: 4px; background: #C9CED8; }
.dfx-salon { padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.dfx-salon strong { font-size: 1.125rem; }
.dfx-svc { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0.75rem; border: 1px solid #E4E6EB; border-radius: 8px; font-size: 0.875rem; }
.dfx-svc small { color: #5C6372; }
.dfx-slots { display: flex; gap: 6px; flex-wrap: wrap; }
.dfx-slots span { font-size: 0.75rem; padding: 5px 9px; border-radius: 6px; background: #F1F3F6; }
.dfx-slots span.pick { background: #1F2430; color: #FFFFFF; }
.dfx-steps { display: flex; gap: 0.5rem; flex-wrap: wrap; font-size: 0.8125rem; }
.dfx-steps span { padding: 0.35rem 0.6rem; border-radius: 4px; background: var(--ab-band-raised); border: 1px solid var(--ab-band-line); color: var(--ab-band-muted); }
.dfx-steps span.done { color: var(--ab-band-fg); }
.dfx-steps span.done::before { content: "✓ "; color: #5FD6A4; }
.dfx-steps span.now { border-color: var(--ab-accent); color: var(--ab-band-fg); }
@media (max-width: 900px) { .dfx-app { grid-template-columns: 1fr; } .dfx-app-side { display: none; } }
@media (max-width: 760px) { .dfx-app-panes { grid-template-columns: 1fr; } }

/* ---------- app samples in feature tiles ---------- */
.dfx-sample { background: var(--ab-bg); border: 1px solid var(--ab-line); border-radius: 8px; padding: 0.85rem; font-size: 0.875rem; display: flex; flex-direction: column; gap: 0.5rem; margin-top: auto; }
.dfx-sample-plain { background: none; border: 0; padding: 0; }
.dfx-r { display: flex; justify-content: space-between; gap: 0.6rem; align-items: center; }
.dfx-sample .k { color: var(--ab-fg-muted); }
.dfx-sample .ok { color: var(--ab-success); font-weight: 600; }
.dfx-badge { font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; background: var(--ab-success-soft); color: var(--ab-success); font-weight: 600; }
.dfx-cbar { height: 10px; border-radius: 5px; background: var(--ab-surface-raised); overflow: hidden; }
.dfx-cbar span { display: block; height: 100%; width: 38%; background: var(--ab-accent); }
.dfx-langs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dfx-langs span { padding: 0.35rem 0.65rem; border-radius: 999px; background: var(--ab-surface-raised); font-size: 0.9375rem; }
.dfx-langs span.on { background: var(--ab-fg); color: var(--ab-bg); }
.dfx-phone { width: 8.25rem; height: 13.75rem; border: 2px solid var(--ab-fg); border-radius: 22px; margin: 0 auto; padding: 0.9rem 0.6rem; display: flex; flex-direction: column; gap: 0.5rem; align-items: center; justify-content: center; background: var(--ab-bg); }
.dfx-qr { width: 84px; height: 84px; background-image: linear-gradient(90deg, var(--ab-fg) 50%, transparent 50%), linear-gradient(var(--ab-fg) 50%, transparent 50%); background-size: 12px 12px; opacity: 0.85; outline: 6px solid var(--ab-bg); border: 3px solid var(--ab-fg); }
.dfx-phone small { font-size: 0.6875rem; color: var(--ab-fg-muted); text-align: center; }

/* ---------- share links ---------- */
.dfx-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; font-size: 0.875rem; }
.dfx-share-label { font-weight: 600; }
.dfx-share ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.dfx-share :is(a, button) { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0.3rem 0.75rem; border: 1px solid var(--ab-line); border-radius: 6px; background: var(--ab-surface); color: var(--ab-fg); text-decoration: none; font: inherit; cursor: pointer; }
.dfx-share :is(a, button):hover { border-color: var(--ab-link); color: var(--ab-link); }

/* ---------- breadcrumbs ---------- */
.dfx-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.8125rem; color: var(--ab-fg-muted); }
.dfx-crumbs li + li::before { content: "/"; margin-right: 0.35rem; color: var(--ab-line); }
.dfx-crumbs a { color: var(--ab-fg-muted); text-decoration: none; }
.dfx-crumbs a:hover { color: var(--ab-link); }

/* The analytics consent banner and the footer's Cookie settings button (inc/analytics.php). */
.dfx-consent { position: fixed; z-index: 100; inset-inline-start: 1rem; bottom: 1rem; max-width: 26rem; padding: 1rem 1.1rem;
  background: var(--ab-surface-raised); color: var(--ab-fg); border: 1px solid var(--ab-line); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(10, 18, 32, 0.18); font-size: 0.875rem; line-height: 1.5; }
.dfx-consent[hidden] { display: none; }
.dfx-consent p { margin: 0 0 0.8rem; }
.dfx-consent a { color: var(--ab-link); }
.dfx-consent-actions { display: flex; gap: 0.5rem; justify-content: flex-end; }
.dfx-consent .dfx-btn { background: var(--ab-surface); color: var(--ab-fg); border-color: var(--ab-line); cursor: pointer; font: inherit; font-weight: 600; }
.dfx-consent .dfx-btn:hover { border-color: var(--ab-accent); }
.dfx-consent .dfx-btn:focus-visible, .dfx-cookie-settings:focus-visible { outline: 2px solid var(--ab-focus); outline-offset: 2px; }
.dfx-cookie-settings { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
@media (max-width: 600px) { .dfx-consent { inset-inline: 0.75rem; bottom: 0.75rem; max-width: none; } }
@media print { .dfx-consent { display: none; } }

/* The line offering an English page in the visitor's language (assets/locale.js, inc/locale.php). */
.dfx-lang-suggest { display: flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 0.4rem 1rem;
  background: var(--ab-surface-raised); color: var(--ab-fg); border-bottom: 1px solid var(--ab-line); font-size: 0.875rem; line-height: 1.4; }
.dfx-lang-suggest a { color: var(--ab-link); font-weight: 600; text-underline-offset: 2px; }
.dfx-lang-suggest-close { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; flex: none;
  padding: 0; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--ab-fg-muted); font: inherit; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.dfx-lang-suggest-close:hover { color: var(--ab-fg); border-color: var(--ab-line); }
.dfx-lang-suggest :is(a, button):focus-visible { outline: 2px solid var(--ab-focus); outline-offset: 2px; }
@media print { .dfx-lang-suggest { display: none; } }

/* The pricing page's plans from the catalogue (inc/plans.php): the theme's cards; the featured plan stands out. */
.dfx-plan-featured { border: 2px solid var(--ab-accent); box-shadow: 6px 6px 0 var(--ab-accent); }
/* The Monthly / Yearly switch (inc/plans.php): two radio buttons above the cards, read with :has(). Monthly shows each card's
   month's (dfx-month); Yearly shows the year's (dfx-year) of a card that has one, and the month's of a card that hasn't.
   A browser without :has() shows no switch and the month's prices. */
.dfx-periods .dfx-year, .dfx-period-switch { display: none; }
@supports selector(:has(*)) {
  .dfx-period-switch { display: flex; width: fit-content; gap: 0.25rem; margin: 0 auto 1.5rem; padding: 0.25rem; border: 1px solid var(--ab-line);
    border-radius: 999px; background: var(--ab-surface); }
  .dfx-period-switch label { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1rem; border-radius: 999px; font-weight: 600;
    color: var(--ab-fg-muted); cursor: pointer; }
  .dfx-period-switch legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .dfx-period-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
  .dfx-period-switch label:has(input:checked) { background: var(--ab-fg); color: var(--ab-surface); }
  .dfx-period-switch label:has(input:focus-visible) { outline: 2px solid var(--ab-focus); outline-offset: 2px; }
  .dfx-period-save { font-size: 0.75rem; font-weight: 600; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--ab-accent); color: var(--ab-fg); }
  .dfx-periods:has(.dfx-period-year:checked) .dfx-plan:has(.dfx-year) .dfx-month { display: none; }
  .dfx-periods:has(.dfx-period-year:checked) .dfx-year { display: block; }
  .dfx-periods:has(.dfx-period-year:checked) .wp-block-buttons.dfx-year { display: flex; }
}
