/* Scoped pharmacy UX: natural card heights, compact calendar and explicit sharing. */
.pharmacy-page .pharmacy-main { max-width: 1120px; padding-top: 14px; padding-bottom: 30px; }
.pharmacy-page .pharmacy-back { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; color: #41665b; font-size: 12px; font-weight: 650; text-decoration: none; }
.pharmacy-page .pharmacy-back:hover { text-decoration: underline; }
.pharmacy-page .pharmacy-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 0 20px; }
.pharmacy-page .pharmacy-hero h1 { margin: 0; color: #063047; font-size: clamp(29px, 3.5vw, 38px); line-height: 1.15; letter-spacing: -.035em; }
.pharmacy-page .pharmacy-intro { margin: 9px 0 10px; max-width: 560px; color: #526a64; font-size: 15px; line-height: 1.5; }
.pharmacy-page .pharmacy-location { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; margin: 0; color: #526a64; font-size: 12px; line-height: 1.5; }
.pharmacy-page .pharmacy-location strong { color: #0b4a45; }
.pharmacy-page .pharmacy-location > span:last-child::before { content: '·'; padding-right: 7px; }
.pharmacy-page .pharmacy-calendar-share-actions { display: flex; flex-direction: column; align-items: center; flex: none; gap: 0; max-width: 100%; }
.pharmacy-page .pharmacy-context-note, .pharmacy-page .pharmacy-link-note { margin: 0 0 14px; padding: 9px 12px; border: 1px solid #ded9c5; border-radius: 9px; background: #fffaf0; color: #66583c; font-size: 12px; line-height: 1.5; }
.pharmacy-page .pharmacy-context-note { display: flex; align-items: center; min-block-size: calc(1lh + 20px); }
.pharmacy-page .pharmacy-link-note { background: #edf5f2; border-color: #ccded5; color: #284e40; }
.pharmacy-page .pharmacy-layout { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pharmacy-page .pharmacy-calendar-panel, .pharmacy-page .pharmacy-selected-card { min-width: 0; padding: 20px; border: 1px solid #dce6df; border-radius: 15px; background: #fff; }
.pharmacy-page .pharmacy-calendar-panel { --pharmacy-cell-height: 48px; --pharmacy-cell-gap: 5px; }
.pharmacy-page .pharmacy-months { display: flex; flex-wrap: wrap; gap: 7px; min-height: 44px; margin-bottom: 15px; }
.pharmacy-page .pharmacy-month-button { flex: 1 1 115px; min-width: 0; min-height: 44px; padding: 9px 10px; border: 1px solid #dce6df; border-radius: 9px; background: #f5f8f5; color: #446358; font: 650 13px/1.35 var(--font-body, system-ui, sans-serif); cursor: pointer; }
.pharmacy-page .pharmacy-month-button[aria-pressed='true'] { color: #fff; background: #0b4a45; border-color: #0b4a45; }
.pharmacy-page .pharmacy-calendar-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 10px; }
.pharmacy-page .pharmacy-calendar-heading h2 { margin: 0; color: #063047; font-size: 17px; line-height: 1.4; font-weight: 750; }
.pharmacy-page .pharmacy-calendar-hint { color: #687c73; font-size: 11px; white-space: nowrap; }
.pharmacy-page .pharmacy-calendar-shell { position: relative; }
.pharmacy-page .pharmacy-weekdays, .pharmacy-page .pharmacy-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--pharmacy-cell-gap); }
.pharmacy-page .pharmacy-weekdays { height: 25px; align-items: start; color: #62766b; font-size: 11px; line-height: 1.3; text-align: center; font-weight: 650; }
.pharmacy-page .pharmacy-grid { grid-auto-rows: var(--pharmacy-cell-height); }
.pharmacy-page .pharmacy-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 100%; min-width: 0; min-height: 44px; height: var(--pharmacy-cell-height); padding: 3px 0; border: 1px solid transparent; border-bottom: 3px solid var(--pharmacy-color, #6f9b7a); border-radius: 7px; color: #153a35; background: var(--pharmacy-tint, #edf4ee); cursor: pointer; font-family: inherit; }
.pharmacy-page .pharmacy-day:hover { box-shadow: inset 0 0 0 1px #4a6f60; }
.pharmacy-page .pharmacy-day[aria-pressed='true'] { outline: 2px solid #0b4a45; outline-offset: 1px; box-shadow: inset 0 0 0 1px #fff; }
.pharmacy-page .pharmacy-day-number { font-size: 17px; font-weight: 800; line-height: 1; }
.pharmacy-page .pharmacy-day-label { max-width: 100%; color: #38564a; font-size: 9px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.pharmacy-page .pharmacy-today-label { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); padding: 1px 4px; border-radius: 4px; color: #fff; background: #0b4a45; font-size: 8px; font-weight: 750; line-height: 1.4; }
.pharmacy-page .pharmacy-today-button { flex: none; display: block; min-height: 44px; padding: 7px 8px; border: 1px solid #c6dcd0; border-radius: 8px; background: #edf5f0; color: #15553b; font: 650 11px/1.4 var(--font-body, system-ui, sans-serif); cursor: pointer; }
.pharmacy-page .pharmacy-calendar-help { margin: 10px 0 0; color: #64776e; font-size: 11px; line-height: 1.5; }
/* The loading placeholder matches the five-week source calendars, then releases its space. */
.pharmacy-page .pharmacy-load-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: calc(5 * var(--pharmacy-cell-height) + 4 * var(--pharmacy-cell-gap) + 25px); padding: 20px; color: #526a64; text-align: center; }
.pharmacy-page .pharmacy-load-state p { margin: 0; font-size: 13px; line-height: 1.5; }
.pharmacy-page .pharmacy-loading-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #edf4ee; color: #2f6b57; font-size: 27px; line-height: 1; }
.pharmacy-page .pharmacy-selected-card { position: sticky; top: 88px; border-top: 4px solid #2f6b57; scroll-margin-block: 100px; }
.pharmacy-page .pharmacy-card-eyebrow { margin: 0 0 7px; color: #2f6b57; font-size: 11px; line-height: 1.4; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; }
.pharmacy-page .pharmacy-selected-card h2 { margin: 0 0 16px; color: #063047; font-size: 18px; line-height: 1.4; font-weight: 750; }
.pharmacy-page .pharmacy-brand-chip { display: block; width: 30px; height: 4px; margin-bottom: 10px; border-radius: 4px; background: var(--pharmacy-color, #2f6b57); }
.pharmacy-page .pharmacy-selected-card h3 { margin: 0 0 8px; color: #0b4a45; font-size: 25px; line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.pharmacy-page .pharmacy-alias { margin: 0 0 8px; color: #526a64; font-size: 12px; line-height: 1.5; }
.pharmacy-page .pharmacy-address { margin: 0; color: #3f5950; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.pharmacy-page .pharmacy-hours { margin: 10px 0 16px; color: #65746d; font-size: 12px; line-height: 1.5; }
.pharmacy-page .pharmacy-validation-note { margin: 9px 0; padding: 8px 10px; border-radius: 8px; background: #fff7e7; color: #6a512c; font-size: 12px; line-height: 1.5; }
.pharmacy-page .pharmacy-day-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 8px; }
.pharmacy-page .pharmacy-main .pharmacy-map-link, .pharmacy-page .pharmacy-main .pharmacy-wa-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; box-sizing: border-box; min-height: 46px; height: auto; padding: 11px 12px; border-radius: 9px; white-space: normal; text-align: center; font-size: 13px; line-height: 1.4; font-weight: 700; text-decoration: none; }
.pharmacy-page .pharmacy-main .pharmacy-map-link { color: #fff; background: #0b4a45; border: 1px solid #0b4a45; }
.pharmacy-page .pharmacy-main .pharmacy-map-link:hover { background: #063b37; border-color: #063b37; color: #fff; }
.pharmacy-page .pharmacy-main .pharmacy-wa-link { color: #15553b; background: #e9f5ed; border: 1px solid #c0decb; }
.pharmacy-page .pharmacy-main .pharmacy-wa-link:hover { background: #dcefe2; border-color: #a5ceb4; }
.pharmacy-page .pharmacy-secondary-actions { display: flex; flex-wrap: wrap; grid-column: 1 / -1; justify-content: flex-start; gap: 0 16px; }
.pharmacy-page .pharmacy-text-button { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: #356758; font: 650 12px/1.45 var(--font-body, system-ui, sans-serif); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pharmacy-page .pharmacy-text-button:disabled { color: #79887f; cursor: default; text-decoration: none; }
.pharmacy-page .pharmacy-selected-placeholder, .pharmacy-page .pharmacy-maps-pending { margin: 0; color: #697b72; font-size: 13px; line-height: 1.6; }
.pharmacy-page .pharmacy-maps-pending { grid-column: 1 / -1; }
.pharmacy-page .pharmacy-legend-section { margin-top: 14px; border: 1px solid #dce6df; border-radius: 10px; background: #fff; }
.pharmacy-page .pharmacy-legend-section summary { min-height: 44px; padding: 12px 15px; color: #315b4d; font-size: 13px; line-height: 1.5; font-weight: 650; cursor: pointer; }
.pharmacy-page .pharmacy-legend-section summary span { margin-left: 7px; color: #64776e; font-size: 11px; font-weight: 400; }
.pharmacy-page .pharmacy-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 18px; padding: 3px 15px 15px; margin: 0; list-style: none; }
.pharmacy-page .pharmacy-legend li { display: flex; align-items: flex-start; gap: 7px; min-width: 0; color: #4c6659; font-size: 12px; line-height: 1.45; }
.pharmacy-page .pharmacy-legend-swatch { flex: none; width: 12px; height: 12px; margin-top: 3px; border: 1px solid #0002; border-radius: 3px; background: var(--pharmacy-color, #6f9b7a); }
.pharmacy-page .pharmacy-legend-name { min-width: 0; overflow-wrap: anywhere; }
.pharmacy-page .pharmacy-legend-abbr { display: block; color: #66796e; font-size: 10px; }
.pharmacy-page .pharmacy-source-note { margin-top: 18px; padding-top: 13px; border-top: 1px solid #dce5db; color: #67796b; font-size: 11px; line-height: 1.6; }
.pharmacy-page .pharmacy-source-note p { margin: 0 0 6px; }
/* Notes keep their place in the document, but are not painted at a provisional loading position. */
.pharmacy-page .pharmacy-main[data-pharmacy-state='loading'] .pharmacy-source-note,
.pharmacy-page .pharmacy-main[data-pharmacy-state='loading'] .pharmacy-legend-section,
.pharmacy-page .pharmacy-main[data-pharmacy-state='loading'] ~ .footer { visibility: hidden; }
.pharmacy-page .pharmacy-staging-note { color: #7a6b4c; font-size: 11px; }
.pharmacy-page .pharmacy-action-status { margin: 10px 0; color: #2f6b57; font-size: 13px; line-height: 1.5; }
.pharmacy-page .pharmacy-action-status:empty { margin: 0; }
.pharmacy-page .pharmacy-copy-fallback { margin-top: 8px; padding: 12px; border: 1px solid #dce6df; border-radius: 10px; background: #fff; font-size: 13px; }
.pharmacy-page .pharmacy-copy-fallback label { display: block; margin-bottom: 7px; }
.pharmacy-page .pharmacy-copy-fallback input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: 8px; border: 1px solid #b9cfc3; border-radius: 6px; color: #0b4a45; font-size: 13px; }
.pharmacy-page .pharmacy-noscript { padding: 16px; border: 1px solid #ded9c5; border-radius: 10px; background: #fffaf0; }
.pharmacy-page .pharmacy-sr-only, .pharmacy-page .pharmacy-skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.pharmacy-page .pharmacy-skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 10000; padding: 12px 18px; border-radius: 10px; background: #fff; color: #063047; }
.pharmacy-page .pharmacy-main :is(a,button,input,summary):focus-visible { outline: 3px solid #137594; outline-offset: 3px; }
.pharmacy-page .pharmacy-main a[aria-disabled='true'] { pointer-events: none; opacity: .6; }

@media (max-width: 959px) {
  .pharmacy-page .pharmacy-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pharmacy-page .pharmacy-calendar-panel { --pharmacy-cell-height: 48px; }
  .pharmacy-page .pharmacy-selected-card { position: static; }
  .pharmacy-page .pharmacy-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .pharmacy-page .pharmacy-main { padding: 8px 14px 24px; }
  .pharmacy-page .pharmacy-hero { align-items: stretch; flex-direction: column; padding: 8px 0 14px; gap: 12px; }
  .pharmacy-page .pharmacy-hero h1 { font-size: 29px; }
  .pharmacy-page .pharmacy-intro { margin: 7px 0 8px; font-size: 13px; }
  .pharmacy-page .pharmacy-location { font-size: 11px; gap: 3px 5px; }
  .pharmacy-page .pharmacy-calendar-share-actions { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; justify-content: flex-start; }
  .pharmacy-page .pharmacy-calendar-share-actions .pharmacy-text-button { font-size: 11px; }
  .pharmacy-page .pharmacy-context-note, .pharmacy-page .pharmacy-link-note { padding: 8px 10px; margin-bottom: 12px; font-size: 11px; }
  .pharmacy-page .pharmacy-context-note { min-block-size: calc(2lh + 18px); }
  .pharmacy-page .pharmacy-calendar-panel { --pharmacy-cell-height: 44px; --pharmacy-cell-gap: 4px; padding: 14px 10px 12px; border-radius: 13px; }
  .pharmacy-page .pharmacy-months { margin-bottom: 12px; }
  .pharmacy-page .pharmacy-month-button { flex-basis: 100px; padding: 9px 5px; font-size: 12px; }
  .pharmacy-page .pharmacy-calendar-heading h2 { font-size: 16px; }
  .pharmacy-page .pharmacy-calendar-hint { font-size: 10px; }
  .pharmacy-page .pharmacy-selected-card { padding: 17px 16px; border-radius: 13px; }
  .pharmacy-page .pharmacy-selected-card h2 { margin-bottom: 13px; font-size: 17px; }
  .pharmacy-page .pharmacy-selected-card h3 { font-size: 23px; }
  .pharmacy-page .pharmacy-legend-section summary span { display: block; margin-left: 17px; }
  .pharmacy-page .pharmacy-legend { gap: 10px; }
  .pharmacy-page .pharmacy-legend li { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .pharmacy-page .pharmacy-main * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
