/* SF Branch Selector — v0.3.1. Scoped styles; no external fonts or frontend libraries. */
section.sf-branch-picker{
  box-sizing:border-box;direction:rtl;width:100%;max-width:700px;margin:0 auto;
  padding:16px;border:1px solid var(--sf-panel-border,#f6cada);
  border-radius:16px;background:var(--sf-panel-bg,#fff);
  color:var(--sf-text,#7d0d30);font-family:inherit;
  box-shadow:0 5px 22px #87183912;
}
section.sf-branch-picker *,section.sf-branch-picker *::before,section.sf-branch-picker *::after{box-sizing:border-box}
section.sf-branch-picker h3{margin:0 0 6px;color:var(--sf-title,#a20d37);font-family:inherit;font-size:clamp(1.25rem,2.2vw,1.7rem);font-weight:800;line-height:1.4}
section.sf-branch-picker .sf-branch-hint{margin:0 0 16px;color:var(--sf-hint,#76515c);font-size:.94rem;line-height:1.7}
section.sf-branch-picker.sf-hide-hint .sf-branch-hint{display:none}
section.sf-branch-picker .sf-branch-options{display:flex;flex-wrap:wrap;gap:12px}
section.sf-branch-picker .sf-branch-option{
  appearance:none;box-sizing:border-box;min-width:150px;flex:1;
  display:flex;align-items:center;justify-content:space-between;gap:9px;
  padding:16px;line-height:1.4;border:2px solid var(--sf-border,#f6c5d5);
  border-radius:12px;background:var(--sf-button-bg,#fff6f9);
  color:var(--sf-text,#7d0d30);font:inherit;font-size:inherit;font-weight:700;
  text-align:center;cursor:pointer;transition:background-color .15s,border-color .15s,color .15s;
}
section.sf-branch-picker .sf-branch-option:hover,
section.sf-branch-picker .sf-branch-option.is-selected{
  background:var(--sf-selected-bg,#ffe1ea);
  color:var(--sf-selected-text,#7d0d30);
  border-color:var(--sf-selected-border,#c81048);
}
section.sf-branch-picker .sf-branch-option:focus-visible{outline:3px solid var(--sf-check,#13944a);outline-offset:4px}
section.sf-branch-picker .sf-branch-option:disabled{cursor:wait;opacity:.72}
section.sf-branch-picker .sf-branch-icon{font-size:1.45em;line-height:1}
section.sf-branch-picker .sf-branch-check{opacity:0;display:inline-flex;justify-content:center;align-items:center;flex-shrink:0}
section.sf-branch-picker .sf-branch-option.is-selected .sf-branch-check{opacity:1;color:var(--sf-check,#13944a)}
section.sf-branch-picker .sf-branch-feedback{margin:9px 0 0;font-size:.9rem;line-height:1.5;color:var(--sf-check,#13944a)}
section.sf-branch-picker .sf-branch-feedback:empty{display:none}
section.sf-branch-picker .sf-branch-feedback.sf-error{color:#ef6174}
section.sf-branch-picker.sf-panel-transparent{background:transparent;border-color:transparent;box-shadow:none}
section.sf-branch-picker.sf-buttons-transparent .sf-branch-option,
section.sf-branch-picker.sf-buttons-transparent .sf-branch-option:hover,
section.sf-branch-picker.sf-buttons-transparent .sf-branch-option.is-selected{background:transparent}
section.sf-branch-picker.sf-double-border .sf-branch-option{border-style:double;border-width:5px}
section.sf-branch-picker.sf-style-compact{box-shadow:none;padding:10px}
section.sf-branch-picker.sf-style-compact h3,
section.sf-branch-picker.sf-style-compact .sf-branch-hint{display:none}
section.sf-branch-picker.sf-style-compact .sf-branch-option{padding:10px}
section.sf-branch-picker.sf-style-button{padding:10px;max-width:450px}
section.sf-branch-picker.sf-style-button .sf-branch-hint{display:none}
section.sf-branch-picker.sf-style-button .sf-branch-option{padding:10px;font-size:.9rem}
/* Transparent outlined theme based on the supplied dark-site reference. */
section.sf-branch-picker.sf-style-outline{
  max-width:1080px;padding:10px 0 18px;background:transparent;border:0;box-shadow:none;text-align:center;
}
section.sf-branch-picker.sf-style-outline h3{
  font-size:clamp(2rem,4.7vw,4rem);font-weight:900;line-height:1.35;
  margin:0 0 clamp(20px,4vw,44px);color:var(--sf-title,#fff);
}
section.sf-branch-picker.sf-style-outline .sf-branch-options{gap:clamp(14px,5vw,60px);align-items:stretch}
section.sf-branch-picker.sf-style-outline .sf-branch-option{
  justify-content:center;gap:clamp(8px,1.8vw,22px);
  min-height:116px;padding:clamp(15px,3vw,32px) clamp(14px,3vw,34px);
  background:transparent;border-width:5px;border-style:double;border-radius:44px;
  font-size:clamp(1.15rem,2.5vw,2.15rem);font-weight:900;
  box-shadow:none;white-space:normal;
}
section.sf-branch-picker.sf-style-outline .sf-branch-option:hover,
section.sf-branch-picker.sf-style-outline .sf-branch-option.is-selected{
  background:transparent;
}
section.sf-branch-picker.sf-style-outline .sf-branch-icon{display:none}
section.sf-branch-picker.sf-style-outline .sf-branch-check{
  display:none;width:1.7em;height:1.7em;border-radius:50%;border:3px solid currentColor;
  font-size:.75em;line-height:1;color:var(--sf-check,#f18a88);
}
section.sf-branch-picker.sf-style-outline .sf-branch-option.is-selected .sf-branch-check{display:inline-flex;opacity:1}
section.sf-branch-picker.sf-style-outline .sf-branch-hint{display:none}
.sf-branch-backdrop[hidden]{display:none!important}
.sf-branch-backdrop{
  position:fixed;inset:0;z-index:999999;display:grid;place-items:center;
  padding:16px;box-sizing:border-box;background:#230512b8;
}
.sf-branch-modal{width:min(100%,560px)}
.sf-branch-modal section.sf-branch-picker{padding:28px;border-radius:22px;box-shadow:0 16px 80px #20041360}
/* Transparent on a normal page should not make the modal unreadable. */
.sf-branch-modal section.sf-branch-picker.sf-panel-transparent{
  background:var(--sf-panel-bg,#24111d);border:1px solid var(--sf-panel-border,#f6cada);
}
@media(max-width:520px){
  section.sf-branch-picker.sf-style-outline .sf-branch-options{gap:12px}
  section.sf-branch-picker.sf-style-outline .sf-branch-option{min-width:0;border-radius:25px;min-height:76px;padding:12px 8px;font-size:clamp(.9rem,4vw,1.2rem)}
  section.sf-branch-picker.sf-style-outline .sf-branch-check{border-width:2px}
}
@media(max-width:370px){
  section.sf-branch-picker .sf-branch-options{flex-direction:column}
  section.sf-branch-picker .sf-branch-option{min-width:0}
  section.sf-branch-picker.sf-style-outline .sf-branch-options{flex-direction:column}
}
@media(prefers-reduced-motion:reduce){section.sf-branch-picker .sf-branch-option{transition:none}}
