/* ===== Session summary card ================================================ */
/* Shared card styles for both sticky (course sidebar) and
   embedded (inside course-hero funnel) variants.                             */

/* The card surface lives on the wrapper so it encloses BOTH the per-session
   data pane (.sb-card) and the shared actions zone (.sb-actions) as one card. */
.wp-block-formasuisse-session-summary {
  background: var(--color-primary, #062343);
  color: #fff;
  padding: 24px;
  border-radius: 6px;
}

.wp-block-formasuisse-session-summary .sb-card .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 6px;
}

.wp-block-formasuisse-session-summary .sb-card h3 {
  font-family: var(--font-title, "Barlow", sans-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 16px;
}

.wp-block-formasuisse-session-summary .sb-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 16px;
}

.wp-block-formasuisse-session-summary .sb-meta li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
}

.wp-block-formasuisse-session-summary .sb-meta .icon {
  color: rgba(255, 255, 255, 0.55);
  flex: 0 0 16px;
  display: inline-flex;
  /* nudge icon to sit at the top of multiline text, optically centred on the first line */
  margin-top: 0.15em;
}

/* Only a top rule: the actions zone below supplies the closing divider, so a
   bottom rule here would read as a duplicated separator (two parallel lines). */
.wp-block-formasuisse-session-summary .sb-card .sb-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 0;
  margin-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.wp-block-formasuisse-session-summary .sb-card .sb-price-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.wp-block-formasuisse-session-summary .sb-card .sb-price-value {
  font-family: var(--font-title, "Barlow", sans-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.6rem;
  color: #fff;
  margin-left: auto;
}

.wp-block-formasuisse-session-summary .sb-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
/* Inherit the card's text colour so the contact line reads white on the navy
   course card and near-black on the white funnel card — no per-variant rule. */
.wp-block-formasuisse-session-summary .sb-actions p {
  margin: 0;
  font-size: 0.82rem;
  color: inherit;
  text-align: center;
}

/* {phone_link} renders a <a class="tel">: keep it on the card colour (white on
   navy, near-black on the funnel) rather than the default link blue. */
.wp-block-formasuisse-session-summary .sb-actions p a {
  color: inherit;
  text-decoration: underline;
}

/* Full-width buttons in the actions column, label centred. width:100% is
   needed (not just the column's align-items:stretch) because in the editor the
   button is wrapped in a .wp-block div, so it isn't a direct flex child and
   would otherwise shrink to its content width. */
.wp-block-formasuisse-session-summary .sb-actions .btn {
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
}

/* Brochure CTA embedded in the actions zone. */
.wp-block-formasuisse-session-summary .sb-actions .fs-brochure {
  margin: 0;
}

.wp-block-formasuisse-session-summary .sb-actions .fs-brochure__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 9px 14px;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.wp-block-formasuisse-session-summary .sb-actions .fs-brochure__trigger:hover,
.wp-block-formasuisse-session-summary .sb-actions .fs-brochure__trigger:focus-visible {
  background: transparent;
  color: #fff;
  text-decoration: underline;
}

.wp-block-formasuisse-session-summary .sb-actions .fs-brochure__trigger svg {
  width: 16px;
  height: 16px;
  color: var(--color-cta, #ff0000);
}

/* ---- variant=embedded: static position (no sticky — the parent handles it) */
/* ---- variant=embedded: static position + white récap card (funnel hero),
   per design system hero-card. The base wrapper stays navy for the sticky
   course-page sidebar; here the surface goes white with a red top-border. */
.wp-block-formasuisse-session-summary[data-variant="embedded"] {
  position: static;
  background: var(--color-surface);
  color: var(--color-text);
  border-top: 4px solid var(--color-cta);
}

/* On the white card the pane→actions divider uses the light rule, not white. */
.wp-block-formasuisse-session-summary[data-variant="embedded"] .sb-actions {
  border-top-color: var(--color-rule, #d8dde3);
}

.wp-block-formasuisse-session-summary[data-variant="embedded"] .sb-card .label {
  color: var(--color-text-muted);
}

.wp-block-formasuisse-session-summary[data-variant="embedded"] .sb-card h3 {
  color: var(--color-primary);
}

.wp-block-formasuisse-session-summary[data-variant="embedded"] .sb-meta {
  border-top: 1px solid var(--color-rule, #d8dde3);
}

.wp-block-formasuisse-session-summary[data-variant="embedded"] .sb-meta li {
  color: var(--color-text);
}

.wp-block-formasuisse-session-summary[data-variant="embedded"] .sb-meta .icon {
  color: var(--color-text-sub);
}

.wp-block-formasuisse-session-summary[data-variant="embedded"] .sb-card .sb-price-row {
  border-top: 1px solid var(--color-rule, #d8dde3);
}

.wp-block-formasuisse-session-summary[data-variant="embedded"] .sb-card .sb-price-label {
  color: var(--color-text-sub);
}

.wp-block-formasuisse-session-summary[data-variant="embedded"] .sb-card .sb-price-value {
  color: var(--color-cta);
}

/* Brochure trigger: base rules style it for the navy card (white-ish text,
   no border). On white, use navy text so it stays legible. */
.wp-block-formasuisse-session-summary[data-variant="embedded"] .sb-actions .fs-brochure__trigger {
  color: var(--color-primary);
}

.wp-block-formasuisse-session-summary[data-variant="embedded"]
  .sb-actions
  .fs-brochure__trigger:hover,
.wp-block-formasuisse-session-summary[data-variant="embedded"]
  .sb-actions
  .fs-brochure__trigger:focus-visible {
  color: var(--color-primary-light);
}

/* Funnel red brochure CTA: the .is-cta variant forces the red fill back on,
   overriding the embedded white-card's navy trigger treatment. */
.wp-block-formasuisse-session-summary .sb-actions .fs-brochure.is-cta .fs-brochure__trigger {
  background: var(--color-cta);
  color: #fff;
}
.wp-block-formasuisse-session-summary .sb-actions .fs-brochure.is-cta .fs-brochure__trigger:hover,
.wp-block-formasuisse-session-summary
  .sb-actions
  .fs-brochure.is-cta
  .fs-brochure__trigger:focus-visible {
  background: var(--color-cta-dark);
  color: #fff;
}
.wp-block-formasuisse-session-summary .sb-actions .fs-brochure.is-cta .fs-brochure__trigger svg {
  color: #fff;
}
