.sfb-widget, .sfb-receipt { color: #173849; max-width: 46rem; margin: 1.5rem 0; font-family: inherit; }
.sfb-widget [hidden], .sfb-receipt[hidden] { display: none !important; }
.sfb-widget label { display: block; font-weight: 600; font-size: 1rem; }
.sfb-widget :is(select,input,textarea) { box-sizing: border-box; display: block; width: 100%; max-width: none; margin: .35rem 0 0; padding: .6rem .7rem; min-height: 44px; border: 1px solid #9cb3bc; background: white; color: #173849; border-radius: 6px; font: inherit; font-weight: 400; }
.sfb-inputs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-bottom: 1rem; }
.sfb-monthbar { display: flex; justify-content: space-between; align-items: center; margin: 1.5rem 0 .6rem; }
.sfb-monthbar h3 { font-size: 1.35rem; font-weight: 650; line-height: 1.3; margin: 0; }
.sfb-widget button { cursor: pointer; color: #144653; border: 1px solid #b5d1d4; background: #f1f8f7; min-height: 42px; border-radius: 6px; padding: .3rem .65rem; font: inherit; }
.sfb-monthbar button { width: 44px; font-size: 1.6rem; line-height: 1; }
.sfb-widget button:disabled { cursor: default; color: #65757a; background: #f5f6f6; border-color: transparent; }
.sfb-widget button[aria-pressed="true"], .sfb-widget .sfb-confirm { background: #135c65; color: white; border-color: #135c65; }
.sfb-widget button:focus-visible { outline: 3px solid #02838d; outline-offset: 2px; }
.sfb-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; text-align: center; }
.sfb-week { font-size: .8rem; margin-bottom: .4rem; }
.sfb-widget [data-status] { margin: 1rem 0 .6rem; }
.sfb-times { display: flex; flex-wrap: wrap; gap: .45rem; }
.sfb-widget fieldset { margin: 1.5rem 0 0; padding: 1rem 0 0; border: 0; border-top: 1px solid #bdd1d5; }
.sfb-widget legend { font-size: 1.2rem; font-weight: 650; padding-right: .6rem; }
.sfb-widget .sfb-confirm { margin-top: 1rem; padding: .6rem 1.2rem; }
.sfb-widget [data-error]:not(:empty) { color: #8a2b23; }
.sfb-receipt { padding: 1.2rem; border-left: 4px solid #117b73; background: #edf8f5; }
@media (max-width: 540px) { .sfb-inputs { grid-template-columns: 1fr; } .sfb-grid { gap: 2px; } .sfb-grid button { padding-inline: 0; } }
.sfb-widget { container-type: inline-size; min-width: 0; }
.sfb-widget button, .sfb-admin .button { min-height: 44px; }
.sfb-monthbar { gap: .35rem; }
.sfb-monthbar button { flex: 0 0 44px; padding-inline: 0; }
.sfb-monthbar h3 { min-width: 0; text-align: center; overflow-wrap: anywhere; }
.sfb-widget .sfb-date-list { display: none; }
.sfb-widget :is(input,select,textarea):focus-visible, .sfb-receipt:focus-visible { outline: 3px solid #006972; outline-offset: 2px; }
.sfb-widget fieldset, .sfb-inputs > * { min-inline-size: 0; }
.sfb-widget small { display: block; margin-block: .45rem; }
.sfb-widget [data-choice] { font-weight: 600; }
.sfb-admin fieldset, .sfb-appointment { box-sizing: border-box; max-width: 46rem; margin: 1rem 0; padding: 1rem; background: white; border: 1px solid #c3c4c7; }
.sfb-admin legend { font-weight: 600; }
.sfb-appointment { overflow-wrap: anywhere; }
.sfb-period { display: flex; flex-wrap: wrap; gap: .65rem; margin-block: .55rem; }
.sfb-period label { display: grid; gap: .2rem; }
.sfb-period input { min-height: 44px; max-width: 100%; }
@container (max-width: 25rem) {
  .sfb-widget .sfb-date-list { display: block; }
  .sfb-widget .sfb-grid { display: none; }
  .sfb-inputs { grid-template-columns: 1fr; }
}
