/* Expandable Choice Cards 1.7 — Apple-grade, token-driven. Every --ecc-* variable can be set inline or by the Style panel. */
.ecc{--ecc-accent:var(--fp-accent,#1d1d1f);--ecc-ink:var(--fp-ink,#1d1d1f);--ecc-bg:var(--fp-surface,#fff);--ecc-selected:var(--fp-tint,#f5f5f7);--ecc-radius:var(--fp-r-card,18px);--ecc-card-radius:var(--fp-r-card,18px);--ecc-btn-radius:var(--fp-r-btn,999px);--ecc-gap:12px;--ecc-pad:20px;--ecc-ms:350ms;--ecc-ease:cubic-bezier(.22,1,.36,1);--ecc-edit-ms:420ms;--ecc-border-width:1px;--ecc-line:var(--fp-line,#d2d2d7);--ecc-muted:var(--fp-muted,#6e6e73);--ecc-focus:var(--fp-focus,rgba(29,29,31,.16));font:inherit;min-width:0;border-radius:var(--ecc-radius);color:var(--ecc-text,inherit);-webkit-font-smoothing:antialiased}
.ecc *,.ecc *::before,.ecc *::after{box-sizing:border-box}
.ecc button{font:inherit}

/* Heading / helper / summary rows */
.ecc .ecc-head,.ecc .ecc-summary-row{display:flex;align-items:center;justify-content:space-between;gap:14px}
.ecc .ecc-head{font-weight:600;font-size:1.05em;letter-spacing:-.01em;margin-bottom:16px;min-height:44px}
.ecc .ecc-summary-row{padding-block:4px}
.ecc .ecc-summary-copy{min-width:0;line-height:1.5;overflow-wrap:anywhere;transition:opacity var(--ecc-edit-ms) ease,transform var(--ecc-edit-ms) cubic-bezier(.2,.8,.2,1)}
.ecc .ecc-summary-copy strong{display:block;font-size:1.05em;font-weight:600;letter-spacing:-.01em}
.ecc .ecc-summary-copy small{display:block;color:var(--ecc-muted)}
.ecc .ecc-helper{line-height:1.55;color:var(--ecc-muted);margin-bottom:18px;font-size:.95em}
.ecc .ecc-message{font-size:.85em;color:#b3261e;margin-top:10px}.ecc .ecc-message:empty{display:none}

/* Reveal (animated collapse) */
.ecc .ecc-reveal{display:grid;grid-template-rows:1fr;opacity:1;transition:grid-template-rows var(--ecc-ms) var(--ecc-ease),opacity var(--ecc-ms) ease;min-width:0}
.ecc .ecc-reveal.ecc-hidden{grid-template-rows:0fr;opacity:0;pointer-events:none;visibility:hidden;transition:grid-template-rows var(--ecc-ms) var(--ecc-ease),opacity var(--ecc-ms) ease,visibility 0s var(--ecc-ms)}
.ecc .ecc-reveal.ecc-fade{transition-property:opacity,visibility}
.ecc .ecc-reveal.ecc-fade.ecc-hidden{grid-template-rows:0fr}
.ecc .ecc-reveal.ecc-slide-only{transition-property:grid-template-rows,visibility;opacity:1}
.ecc .ecc-clip{overflow:hidden;min-height:0;min-width:0;padding:4px;margin:-4px}
.ecc .ecc-reveal.ecc-hidden .ecc-summary-copy{opacity:0;transform:translateY(-6px)}
.ecc .ecc-initialising .ecc-reveal,.ecc .ecc-initialising .ecc-morph,.ecc .ecc-initialising .ecc-morph svg,.ecc .ecc-initialising .ecc-morph-label{transition:none!important}

/* Option cards */
.ecc .options-wrapper.ecc-options{list-style:none!important;display:grid!important;grid-template-columns:repeat(var(--ecc-columns,1),minmax(0,1fr));gap:var(--ecc-gap)!important;margin:0!important;padding:0!important}
.ecc .ecc-options>li{padding:0!important;margin:0!important;min-width:0;position:relative;display:block!important}
.ecc .ecc-options>li>input{position:absolute!important;inline-size:1px!important;block-size:1px!important;opacity:0!important;overflow:hidden!important;clip-path:inset(50%);top:50%;left:10px}
.ecc .ecc-options>li>label{margin:0!important;min-width:0;width:100%;min-height:76px;display:flex!important;align-items:center;justify-content:space-between;gap:16px;position:relative;padding:var(--ecc-pad)!important;background:var(--ecc-bg);border:var(--ecc-border-width) solid var(--ecc-line);border-radius:var(--ecc-card-radius);cursor:pointer;line-height:1.4;font-size:1em;font-weight:400;transform:none!important;transition:background-color .25s ease,border-color .25s ease,box-shadow .25s ease}
.ecc .ecc-options>li>label:hover{border-color:var(--ecc-muted)}
.ecc .ecc-options>li>input:checked+label{border-color:var(--ecc-accent);background:var(--ecc-selected);box-shadow:inset 0 0 0 1px var(--ecc-accent)}
.ecc .ecc-options>li>input:focus-visible+label{outline:0;border-color:var(--ecc-accent);box-shadow:0 0 0 4px var(--ecc-focus)}
.ecc .ecc-options>li>input:checked:focus-visible+label{box-shadow:inset 0 0 0 1px var(--ecc-accent),0 0 0 4px var(--ecc-focus)}
.ecc .ecc-options>li>input:disabled+label{opacity:.45;cursor:not-allowed}
.ecc .ecc-option-body{display:flex;align-items:center;gap:14px;min-width:0;flex:1}
.ecc .ecc-icon{font-size:1.5em;flex:0 0 auto;line-height:1;color:var(--ecc-muted)}
.ecc .ecc-option-text{display:flex;flex-direction:column;gap:4px;min-width:0;overflow-wrap:anywhere}
.ecc .ecc-option-title{font-weight:600;line-height:1.3;letter-spacing:-.011em}
.ecc .ecc-option-description{font-size:.88em;line-height:1.5;color:var(--ecc-muted)}
.ecc .ecc-option-end{display:flex;align-items:center;gap:14px;flex:0 0 auto;max-width:40%}
.ecc .ecc-price{font-size:.92em;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--ecc-muted)}
.ecc .ecc-options>li>input:checked+label .ecc-price{color:var(--ecc-ink)}

/* Indicators */
.ecc .ecc-indicator{height:22px;width:22px;flex:0 0 auto;border:1.5px solid var(--ecc-muted);border-radius:50%;display:grid;place-items:center;background:var(--ecc-bg);transition:background-color .2s,border-color .2s}
.ecc .ecc-indicator::after{content:'';height:8px;width:8px;background:#fff;border-radius:50%;transform:scale(0);transition:transform .2s cubic-bezier(.2,.8,.2,1)}
.ecc .ecc-options>li>input:checked+label .ecc-indicator{border-color:var(--ecc-accent);background:var(--ecc-accent)}
.ecc .ecc-options>li>input:checked+label .ecc-indicator::after{transform:scale(1)}
.ecc.ecc-checkbox .ecc-indicator{border-radius:max(6px,min(var(--ecc-card-radius),7px))}
.ecc.ecc-checkbox .ecc-indicator::after{height:6px;width:11px;border:solid #fff;border-width:0 0 2px 2px;border-radius:0;background:transparent;transform:rotate(-45deg) scale(0);margin-top:-2px}
.ecc.ecc-checkbox .ecc-options>li>input:checked+label .ecc-indicator::after{transform:rotate(-45deg) scale(1)}

/* Pills density */
.ecc.ecc-pills .ecc-options>li>label{min-height:52px;padding:12px 18px!important}
.ecc.ecc-pills .ecc-option-description{font-size:.8em}

/* Binary radio (large two-way choice) */
.ecc.ecc-binary-radio .ecc-options{grid-template-columns:1fr!important}
.ecc.ecc-binary-radio .ecc-options>li>label{min-height:96px;padding:calc(var(--ecc-pad) + 4px)!important}
.ecc.ecc-binary-radio .ecc-options>li>label .ecc-option-title{font-size:1.12em}
.ecc.ecc-binary-radio .ecc-options>li>label .ecc-indicator{display:none}
.ecc.ecc-binary .ecc-original-check{position:absolute!important;clip-path:inset(50%)!important;white-space:nowrap!important;inline-size:1px!important;block-size:1px!important;overflow:hidden!important}
.ecc.ecc-binary .ecc-binary-options{display:grid;gap:var(--ecc-gap)}
.ecc .ecc-binary-card{display:flex;align-items:center;justify-content:space-between;gap:18px;text-align:left;min-height:96px;width:100%;padding:calc(var(--ecc-pad) + 4px);border:var(--ecc-border-width) solid var(--ecc-line);border-radius:var(--ecc-card-radius);background:var(--ecc-bg);cursor:pointer;color:inherit;transition:border-color .25s,background-color .25s,box-shadow .25s}
.ecc .ecc-binary-name{font-size:1.12em;font-weight:600;line-height:1.3;letter-spacing:-.011em}
.ecc .ecc-binary-price{font-size:.92em;white-space:nowrap;color:var(--ecc-muted)}
.ecc .ecc-binary-card:hover{border-color:var(--ecc-muted)}
.ecc .ecc-binary-card[aria-pressed=true]{border-color:var(--ecc-accent);background:var(--ecc-selected);box-shadow:inset 0 0 0 1px var(--ecc-accent)}
.ecc .ecc-binary-card:focus-visible{outline:0;box-shadow:0 0 0 4px var(--ecc-focus)}
.ecc .ecc-binary-card[aria-pressed=true]:focus-visible{box-shadow:inset 0 0 0 1px var(--ecc-accent),0 0 0 4px var(--ecc-focus)}

/* Select: one rounded container, one focus ring */
.ecc.ecc-select .ecc-select-shell{position:relative}
.ecc.ecc-select .ecc-select-wrap{position:relative;border:var(--ecc-border-width) solid var(--ecc-line);border-radius:var(--ecc-card-radius);background:var(--ecc-bg)!important;padding:12px 18px;display:flex;flex-direction:column;gap:2px;transition:border-color .2s ease,box-shadow .2s ease;overflow:visible}
.ecc.ecc-select .ecc-select-wrap:hover{border-color:var(--ecc-muted)}
.ecc.ecc-select .ecc-select-label{font-size:.8em;color:var(--ecc-muted)}
.ecc.ecc-select .ecc-select-wrap select,.ecc.ecc-select .ecc-select-wrap select:focus,.ecc.ecc-select .ecc-select-wrap select:focus-visible{appearance:none!important;-webkit-appearance:none!important;display:block;width:100%;border:0!important;outline:0!important;outline-offset:0!important;box-shadow:none!important;padding:0 32px 0 0!important;margin:0!important;min-height:30px!important;height:auto!important;background:transparent!important;color:var(--ecc-text,inherit)!important;font:inherit;font-size:1.06em;font-weight:500;cursor:pointer;border-radius:0!important}
.ecc.ecc-select .ecc-select-wrap::after{content:'';position:absolute;right:20px;top:50%;width:8px;height:8px;border-right:1.75px solid var(--ecc-muted);border-bottom:1.75px solid var(--ecc-muted);transform:translateY(-65%) rotate(45deg);pointer-events:none}
.ecc.ecc-select .ecc-select-wrap:focus-within{border-color:var(--ecc-accent);box-shadow:0 0 0 4px var(--ecc-focus)}

/* Edit / chevron morph: outlined pill -> circle, right edge anchored */
.ecc .ecc-morph-shell{position:relative;min-width:0}
.ecc .ecc-morph-shell .ecc-summary-row,.ecc .ecc-morph-shell .ecc-head{padding-right:110px;min-height:42px}
.ecc .ecc-morph{position:absolute;right:0;top:0;z-index:3;display:flex;align-items:center;justify-content:center;gap:8px;width:88px;height:42px;min-width:0;min-height:42px;padding:0 10px;overflow:hidden;white-space:nowrap;border:1.5px solid var(--ecc-ink);border-radius:var(--ecc-btn-radius);background:transparent;color:var(--ecc-ink);font-size:.95em;font-weight:500;line-height:1;cursor:pointer;box-shadow:none;transform:none;transition:width var(--ecc-edit-ms) cubic-bezier(.32,.02,.18,1),background-color 200ms ease,color 200ms ease,border-color 200ms ease}
.ecc .ecc-morph svg{width:16px;height:16px;min-width:16px;flex:none;margin:0!important;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;transform-origin:center;transition:transform var(--ecc-edit-ms) cubic-bezier(.2,.8,.2,1)}
.ecc .ecc-morph-label{display:block;max-width:50px;opacity:1;overflow:hidden;transition:max-width var(--ecc-edit-ms) cubic-bezier(.32,.02,.18,1),opacity 140ms ease}
.ecc.ecc-is-open .ecc-morph{width:42px;gap:0;background:var(--ecc-ink);color:var(--ecc-bg)}
.ecc.ecc-is-open .ecc-morph svg{transform:rotate(180deg)}
.ecc.ecc-is-open .ecc-morph-label{max-width:0;opacity:0}
.ecc .ecc-morph:hover{background:var(--ecc-ink);color:var(--ecc-bg);border-color:var(--ecc-ink)}
.ecc.ecc-is-open .ecc-morph:hover{background:var(--ecc-bg);color:var(--ecc-ink)}
.ecc .ecc-morph:focus-visible{outline:0;box-shadow:0 0 0 4px var(--ecc-focus)}

/* Done button */
.ecc .ecc-done{background:var(--fp-action,var(--ecc-ink));color:#fff;border:0;border-radius:var(--ecc-btn-radius);padding:14px 22px;width:100%;cursor:pointer;margin-top:14px;font-weight:600;letter-spacing:-.011em;transition:opacity .2s,background-color .2s}
.ecc .ecc-done:hover{opacity:.86}
.ecc .ecc-done:focus-visible{outline:0;box-shadow:0 0 0 4px var(--ecc-focus)}

@media(max-width:650px){.ecc .ecc-options{grid-template-columns:1fr!important}.ecc .ecc-options>li>label{padding:16px!important;gap:10px}.ecc .ecc-option-end{gap:10px;max-width:36%}.ecc .ecc-price{white-space:normal;text-align:right}.ecc .ecc-option-body{gap:10px;align-items:flex-start}.ecc .ecc-morph-shell .ecc-summary-row,.ecc .ecc-morph-shell .ecc-head{padding-right:100px}}
@media(prefers-reduced-motion:reduce){.ecc *,.ecc *::before,.ecc *::after{transition-duration:.01ms!important;animation-duration:.01ms!important}}
.ecc-in-builder *{pointer-events:auto!important}

/* the card head carries the field label; keep the native label for assistive tech only */
.form-group.ecc>label,.form-group.ecc>.label{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap}

/* theme chevrons must never double up with the card's own */
html body .ecc.ecc-select .ecc-select-wrap select,html body .ecc.ecc-select .ecc-select-wrap select:focus{background:transparent none!important;background-image:none!important}

/* locked steps stay quiet; square theme gets square ticks */
.sfu-locked .ecc .ecc-message,.sfu-locked .ecc .ecc-done{display:none!important}
.fp-sage .ecc.ecc-checkbox .ecc-indicator{border-radius:0}
.fp-sage .ecc .ecc-indicator{border-radius:0}
.fp-sage .ecc.ecc-radio .ecc-indicator{border-radius:50%}

/* Pure Form (and similar skins) draw their own box on input+label::before/::after. Cards draw their own indicator, so switch those off. */
.ecc .ecc-options>li>input+label::before,.ecc .ecc-options>li>input+label::after,.ecc .ecc-nested-input+label::before,.ecc .ecc-nested-input+label::after{content:none!important;display:none!important;background:none!important;border:0!important;box-shadow:none!important;animation:none!important}
