.afterpill-main { max-width: 1180px; }
.afterpill-main h1 { margin-block: 1rem .5rem; font-size: clamp(1.5rem, 3.6vw, 2.35rem); letter-spacing: 0; }
.afterpill-main a, .afterpill-region-link a { text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: .2em; }
.afterpill-preview, .afterpill-notice { background: var(--brand-tint); border-inline-start: 3px solid var(--brand); padding: .75rem; }
.afterpill-controls { border: 1px solid var(--brand-line); border-radius: 12px; background: white; padding: 16px; margin-bottom: 14px; }
.afterpill-location { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 8px; margin-bottom: .4rem; }
.afterpill-location button { grid-column: 3; grid-row: 1; min-height: 43px; background: var(--brand-solid); color: white; }
.afterpill-location label { grid-row: 1; min-width: 0; }
.afterpill-location :is(input, select) { margin-top: .25rem; }
.afterpill-filters, .afterpill-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.afterpill-filters button { padding: 5px 10px; border-radius: 999px; }
.afterpill-filters button[aria-pressed=true] { background: var(--brand-solid); color: white; border-color: var(--brand-solid); font-weight: 500; }
.afterpill-layout { display: grid; min-width: 0; gap: 16px; margin-bottom: 24px; }
.afterpill-with-map { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.afterpill-map { min-width: 0; }
.afterpill-map .open-market-map { height: 440px; }
.afterpill-map .market-map-pin { max-width: 10rem; overflow: hidden; text-overflow: ellipsis; }
.afterpill-list { min-width: 0; display: grid; gap: 10px; align-content: start; }
.afterpill-card.clinic-card { padding: 14px; display: grid; gap: 8px; overflow-wrap: anywhere; }
.afterpill-card h2, .afterpill-card p { margin: 0; }
.afterpill-card h2 { font-size: 1.02rem; }
.afterpill-card-head { display: flex; align-items: center; gap: 10px; }
.afterpill-card-head small, .afterpill-retail small { color: var(--brand-muted); }
.afterpill-retail small { display: block; }
.afterpill-facts { list-style: none; padding: 0; }
.afterpill-facts li { border: 1px solid var(--brand-line); padding: 2px 7px; border-radius: 5px; font-size: .8rem; }
.afterpill-call { display: inline-flex; align-items: center; justify-content: center; justify-self: start; min-height: 44px; min-width: 112px; padding-inline: 14px; border-radius: 8px; background: var(--brand-solid); color: white; font-weight: 500; }
.afterpill-costs { display: grid; gap: 3px; margin: 0; }
.afterpill-costs div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.afterpill-costs dd { margin: 0; font-weight: 700; }
.afterpill-hours { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; background: var(--brand-tint); padding: .75rem; }
.afterpill-pharmacy-info .afterpill-retail { margin-block: .75rem; }
.afterpill-notes li { margin-bottom: .75rem; }
.afterpill-region-link { margin-top: 18px; }
@media (max-width: 767px) {
 .afterpill-with-map { grid-template-columns: minmax(0, 1fr); }
 .afterpill-map { grid-row: 1; }
 .afterpill-map .open-market-map { height: 240px; }
 .afterpill-location { grid-template-columns: minmax(0, 1fr); }
 .afterpill-location button, .afterpill-location label { grid-column: auto; grid-row: auto; }
}
.afterpill-title, .afterpill-card-head { display:flex; align-items:center; gap:12px; min-width:0; }
.afterpill-title h1 { overflow-wrap:anywhere; }
.afterpill-pharmacy-logo { flex:none; display:grid; place-items:center; width:48px; height:48px; border-radius:9px; background:var(--brand-tint); color:var(--brand-solid); }
.afterpill-pharmacy-logo img { width:100%; height:100%; object-fit:contain; border-radius:inherit; }
.afterpill-original { display:block; color:var(--brand-muted); font-size:.82em; }
.afterpill-address button { margin-inline-start:.45rem; min-height:34px; }
.afterpill-main a.solid-action { color:#fff; font-weight:700; text-decoration:none; }
.afterpill-detail-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:.8rem 0; }
.afterpill-detail-actions a { overflow-wrap:anywhere; }
.afterpill-detail-section { background:white; border:1px solid var(--brand-line); border-radius:10px; padding:16px; margin-block:14px; overflow-wrap:anywhere; }
.afterpill-detail-section h2 { margin-bottom:8px; }
.afterpill-detail-section blockquote { margin:10px 0; padding:12px; background:var(--brand-tint); font-size:1.35rem; }
.afterpill-detail-facts { display:grid; gap:5px; }
.afterpill-detail-facts > div { display:grid; grid-template-columns:minmax(100px,1fr) minmax(0,2fr); gap:10px; }
.afterpill-detail-facts dd { margin:0; font-weight:600; }
.afterpill-small-map .open-market-map { height:245px; }
.afterpill-related { list-style:none; padding:0; }
.afterpill-related li { padding:8px 0; border-bottom:1px solid var(--brand-line); }
.afterpill-product-list li { display:grid; grid-template-columns:minmax(0,1fr) max-content; gap:4px 12px; }
.afterpill-product-list li small { grid-column:1/-1; }
.afterpill-sort { max-width:280px; margin-bottom:12px; }
.afterpill-cutoff { font-size:1.45rem; }
.afterpill-pharmacy-logo img ~ svg { display:none; }
.afterpill-location button, .afterpill-filters button[aria-pressed=true] { color:#fff; font-weight:700; text-decoration:none; }
.afterpill-title [data-place-name-ja], .afterpill-card h2 [data-place-name-ja], [data-afterpill-popup-place] [data-place-name-ja] {
 font-size: .72em;
 font-weight: 400;
}
.afterpill-address { overflow-wrap:anywhere; }
.afterpill-address button { width:fit-content; margin-block:4px; font-size:.82rem; }
.afterpill-address-quiet { font-size:.8rem; color:var(--brand-muted); }
