/* Freequency Booking Widget for TidyCal 1.0.0 — maintained by Freequency UK, 12 October 2026. GPL-2.0-or-later. */
#fqc-tc-widget-dialog, #fqc-tc-widget-launcher { box-sizing: border-box; font: inherit; color-scheme: light; }
#fqc-tc-widget-launcher { position: fixed; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 99999; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; max-width: calc(100% - 2rem); padding: .75rem 1.15rem; border: 2px solid var(--fqc-tc-widget-text); border-radius: 999px; background: var(--fqc-tc-widget-color); color: var(--fqc-tc-widget-text); font-weight: 700; text-align: center; text-decoration: none; overflow-wrap: anywhere; box-shadow: 0 3px 12px #0003; }
#fqc-tc-widget-launcher.fqc-tc-widget-position-right { right: max(1rem, env(safe-area-inset-right)); }
#fqc-tc-widget-launcher.fqc-tc-widget-position-left { left: max(1rem, env(safe-area-inset-left)); }
#fqc-tc-widget-dialog { position: fixed; inset: auto; bottom: max(1rem, env(safe-area-inset-bottom)); width: min(600px, calc(100% - 2rem)); max-width: none; max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); margin: 0; padding: 0; border: 1px solid #6b7280; border-radius: 14px; background: #fff; color: #171717; box-shadow: 0 12px 48px #0005; overflow: auto; overscroll-behavior: contain; }
#fqc-tc-widget-dialog:not([open]) { display: none; }
#fqc-tc-widget-dialog.fqc-tc-widget-position-right { right: max(1rem, env(safe-area-inset-right)); }
#fqc-tc-widget-dialog.fqc-tc-widget-position-left { left: max(1rem, env(safe-area-inset-left)); }
#fqc-tc-widget-dialog::backdrop { background: #0006; }
#fqc-tc-widget-dialog *, #fqc-tc-widget-dialog *::before, #fqc-tc-widget-dialog *::after { box-sizing: border-box; }
#fqc-tc-widget-dialog .fqc-tc-widget-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem; background: #fff; border-bottom: 1px solid #d1d5db; }
#fqc-tc-widget-dialog h2 { margin: 0; color: inherit; font-size: 1.2em; line-height: 1.4; overflow-wrap: anywhere; }
#fqc-tc-widget-dialog .fqc-tc-widget-control { flex-shrink: 0; min-height: 44px; padding: .6rem .85rem; border: 1px solid #4b5563; border-radius: 6px; background: #fff; color: #171717; font: inherit; line-height: 1.3; cursor: pointer; }
#fqc-tc-widget-dialog .fqc-tc-widget-selector { padding: 1rem 1rem .5rem; }
#fqc-tc-widget-dialog .fqc-tc-widget-selector label { display: block; margin-bottom: .35rem; font-weight: 600; }
#fqc-tc-widget-booking { width: 100%; min-height: 44px; max-width: 100%; padding: .5rem; border: 1px solid #4b5563; border-radius: 6px; background: #fff; color: #171717; font: inherit; }
#fqc-tc-widget-dialog .fqc-tc-widget-hint { margin: .5rem 0 0; font-size: .875em; line-height: 1.5; color: #444; }
#fqc-tc-widget-dialog .fqc-tc-widget-feedback { padding: .25rem 1rem .75rem; }
#fqc-tc-widget-status { margin: 0; font-size: .9em; line-height: 1.5; }
#fqc-tc-widget-retry { margin-top: .5rem; }
#fqc-tc-widget-dialog [hidden] { display: none !important; }
#fqc-tc-widget-calendar { min-width: 0; }
#fqc-tc-widget-calendar[aria-busy="true"] { min-height: 4rem; }
#fqc-tc-widget-calendar iframe { display: block; max-width: 100%; }
#fqc-tc-widget-dialog .fqc-tc-widget-footer { padding: 1rem; border-top: 1px solid #d1d5db; }
#fqc-tc-widget-direct { color: #07529c; text-decoration: underline; text-underline-offset: .15em; }
#fqc-tc-widget-launcher:focus-visible, #fqc-tc-widget-dialog button:focus-visible, #fqc-tc-widget-dialog select:focus-visible, #fqc-tc-widget-dialog a:focus-visible { outline: 3px solid #000; outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }
html.fqc-tc-widget-modal-open { overflow: hidden; scrollbar-gutter: stable; }
@media (max-width: 480px) {
    #fqc-tc-widget-dialog { width: calc(100% - 1rem); bottom: max(.5rem, env(safe-area-inset-bottom)); max-height: calc(100vh - 1rem); max-height: calc(100dvh - 1rem); }
    #fqc-tc-widget-dialog.fqc-tc-widget-position-right { right: .5rem; }
    #fqc-tc-widget-dialog.fqc-tc-widget-position-left { left: .5rem; }
    #fqc-tc-widget-dialog .fqc-tc-widget-header, #fqc-tc-widget-dialog .fqc-tc-widget-selector, #fqc-tc-widget-dialog .fqc-tc-widget-footer { padding: .75rem; }
}
@media (forced-colors: active) {
    #fqc-tc-widget-launcher, #fqc-tc-widget-dialog .fqc-tc-widget-control { border: 2px solid ButtonText; }
}
