/* Datewise widget — inherits the theme's fonts and text colour; one accent variable. */ .datewise { --ss-accent: #0d6b5d; --ss-line: rgba(127, 127, 127, 0.32); --ss-soft: color-mix(in srgb, var(--ss-accent) 12%, transparent); --ss-warn: #9a5b00; --ss-warn-soft: rgba(240, 180, 74, 0.18); --ss-bad: #b42318; --ss-good: #1e7a3a; display: grid; gap: 12px; margin: 16px 0; font-size: 0.95em; line-height: 1.4; min-width: 0; } .datewise--drawer { margin: 0 0 12px; font-size: 0.9em; } .datewise * { box-sizing: border-box; } .datewise button { font: inherit; color: inherit; cursor: pointer; } .datewise [aria-disabled="true"] { cursor: not-allowed; opacity: 0.5; } .datewise :focus-visible { outline: 2px solid var(--ss-accent); outline-offset: 2px; } .ss-h { margin: 0; font-size: 1.15em; } .ss-live:empty { display: none; } .ss-msg { margin: 0; padding: 8px 12px; border-radius: 8px; background: var(--ss-soft); } .ss-critical { background: rgba(180, 35, 24, 0.1); color: var(--ss-bad); } .ss-success { background: rgba(30, 122, 58, 0.1); color: var(--ss-good); } .ss-peak { background: var(--ss-warn-soft); color: var(--ss-warn); } .ss-note { margin: 0; opacity: 0.8; font-size: 0.9em; } .ss-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; } .ss-method, .ss-loc, .ss-slot { display: grid; gap: 2px; text-align: left; padding: 10px; border-radius: 10px; border: 1.5px solid var(--ss-line); background: transparent; } .ss-method small, .ss-loc small, .ss-slot small { opacity: 0.75; font-size: 0.82em; } .ss-method[aria-pressed="true"], .ss-loc[aria-pressed="true"], .ss-slot[aria-pressed="true"] { border-color: var(--ss-accent); background: var(--ss-soft); } .ss-locs { display: grid; gap: 6px; } .ss-loc { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } .ss-loc span:first-child { display: grid; } .ss-postal { display: grid; gap: 4px; } .ss-postal label { font-size: 0.85em; opacity: 0.8; } .ss-row { display: flex; gap: 8px; flex-wrap: wrap; } .ss-row input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--ss-line); border-radius: 8px; font: inherit; background: transparent; color: inherit; } .ss-row button { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--ss-accent); background: var(--ss-accent); color: #fff; } .ss-calhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; } .ss-calhead button { border: 0; background: transparent; font-size: 1.3em; padding: 2px 10px; } .ss-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; } .ss-dow { text-align: center; font-size: 0.75em; opacity: 0.7; } .ss-day { position: relative; aspect-ratio: 1 / 0.9; border: 1px solid transparent; border-radius: 8px; background: transparent; padding: 0; font-variant-numeric: tabular-nums; } .ss-avail { background: var(--ss-soft); } .ss-avail:hover { border-color: var(--ss-accent); } .ss-full { background: var(--ss-warn-soft); color: var(--ss-warn); } .ss-closed { text-decoration: line-through; opacity: 0.45; } .ss-out { opacity: 0.25; } .ss-sel { background: var(--ss-accent); color: #fff; } .ss-peakday::after { content: ""; position: absolute; top: 4px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: #c77c02; } .ss-left { position: absolute; bottom: 1px; left: 0; right: 0; font-size: 0.6em; font-style: normal; opacity: 0.8; } .ss-day-detail { display: grid; gap: 8px; } .ss-day-detail h3 { margin: 4px 0 0; font-size: 1em; } .ss-badge { font-size: 0.75em; padding: 1px 8px; border-radius: 99px; background: var(--ss-warn-soft); color: var(--ss-warn); } .ss-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; } .ss-hold { margin: 0; padding: 8px 12px; border-radius: 8px; background: var(--ss-soft); } .ss-skeleton { height: 120px; border-radius: 10px; background: linear-gradient(90deg, var(--ss-line), transparent, var(--ss-line)); background-size: 200% 100%; opacity: 0.35; animation: ss-shimmer 1.2s infinite linear; } @keyframes ss-shimmer { to { background-position: -200% 0; } } @media (prefers-reduced-motion: reduce) { .ss-skeleton { animation: none; } } .datewise[aria-busy="true"] .ss-slots, .datewise[aria-busy="true"] .ss-grid { opacity: 0.6; pointer-events: none; }