/* The host cards use a 310px iframe. Keep the action outside the scrolling times. */
html:has(.familia-embed-page) { height: 100%; min-width: 0; width: 100%; overflow-x: hidden; }
body.familia-embed-page { margin: 0; padding: 0; height: 100%; min-height: 0; overflow: hidden; background: #fff; }
#familia-clinic-embed { color: #3d291d; display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-height: 0; font: 14px/1.35 Geologica, sans-serif; }
#familia-clinic-embed *, #familia-clinic-embed *::before { box-sizing: border-box; }
.embed-location { flex: none; padding: 2px 4px 4px; }
.embed-location label, .embed-selection { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.embed-location select { width: 100%; height: 44px; border: 1px solid #cfc5bf; border-radius: 8px; padding: 0 28px 0 10px; background: #fff; color: inherit; font: inherit; text-overflow: ellipsis; }
.embed-calendar { flex: 1; min-height: 0; overflow: auto; padding: 0 4px 2px; scrollbar-width: thin; }
.embed-week { display: flex; justify-content: space-between; align-items: center; min-height: 36px; font-size: 12px; font-weight: 500; }
.embed-arrow { background: #f6f3f0; border: 0; border-radius: 8px; cursor: pointer; width: 44px; height: 36px; font-size: 24px; color: inherit; }
.embed-arrow:disabled { opacity: .35; cursor: default; }
.embed-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin: 4px 0 6px; }
.embed-day { min-width: 0; min-height: 44px; padding: 3px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #cfc5bf; background: #fff; border-radius: 7px; font: inherit; color: inherit; cursor: pointer; }
.embed-day span { font-size: 10px; }
.embed-day strong { font-size: 15px; color: inherit; }
.embed-day:disabled { border-color: transparent; background: #f6f4f2; color: #8a817b; cursor: default; }
.embed-day[aria-pressed=true] { background: #88cef7; border-color: #3d291d; color: #3d291d; }
.embed-times { display: flex; flex-wrap: wrap; gap: 6px; }
.embed-time { flex: 0 0 calc((100% - 18px) / 4); min-height: 44px; padding: 8px 4px; background: #fff; border: 1px solid #89796e; border-radius: 8px; color: inherit; font: inherit; font-weight: 500; cursor: pointer; }
.embed-time:hover { background: #eaf6fd; }
.embed-time[aria-pressed=true] { background: #88cef7; border-color: #3d291d; color: #3d291d; box-shadow: inset 0 0 0 1px #fff; }
.embed-footer { flex: none; background: #fff; border-top: 1px solid #e8e1dc; padding: 4px 4px 2px; box-shadow: 0 -4px 12px #3d291d08; }

a.embed-book { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 8px; border-radius: 8px; background: #88cef7; color: #3d291d; font: inherit; font-weight: 500; text-decoration: none; text-align: center; }
a.embed-book:hover { background: #70bfee; color: #3d291d; }
.embed-notice { margin: 0; padding: 8px; border-radius: 8px; background: #f8f3ee; font-size: 12px; }
.embed-notice:empty { display: none; }
.embed-empty { width: 100%; margin: 4px 0; font-size: 12px; }
.embed-retry { min-height: 44px; border: 1px solid #cfc5bf; border-radius: 8px; padding: 8px 12px; background: #fff; color: #3d291d; font: inherit; cursor: pointer; }
#familia-clinic-embed :focus-visible { outline: 3px solid #007c91; outline-offset: -3px; }
@media (max-width: 340px) { .embed-location select { font-size: 12px; } .embed-selection { font-size: 10px; } }
@media (min-width: 600px) { .embed-time { flex-basis: calc((100% - 42px) / 8); } }

@media (max-width: 299px) {
 .embed-time { flex-basis: calc((100% - 12px) / 3); }
 .embed-week { font-size: 11px; }
 .embed-day span { font-size: 9px; }
 .embed-days { gap: 2px; }
 a.embed-book { font-size: 12px; }
}
