.elc-brands { position:static; margin:0; padding:0; border:0; }
.elc-brands > summary { display:flex; align-items:center; gap:.4rem; cursor:pointer; list-style:none; white-space:nowrap; font:inherit; padding:.55rem 0; }
.elc-brands > summary::-webkit-details-marker { display:none; }
.elc-brands > summary::after { content:'▾'; font-size:.8em; }
.elc-brands[open] > summary::after { content:'▴'; }
.elc-brand-panel { position:absolute; inset:100% 0 auto; z-index:5; max-height:70vh; overflow:auto; overscroll-behavior:contain; padding:20px; background:#fff; border:1px solid #dedbd5; box-shadow:0 12px 24px #24221c20; }
.elc-brand-panel h2 { font-size:1.15rem; margin:15px 0 7px; }
.elc-brand-panel .elc-browse-all { display:inline-block; font-weight:700; padding:.6rem 0; }
.elc-brand-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(132px,1fr)); gap:14px; }
.elc-brand-panel .elc-brand-grid a { display:block; text-decoration:none; padding:6px; font-size:1rem; white-space:normal; }
.elc-brand-panel .elc-brand-grid a:hover { background:#f3f3ee; }
.elc-brand-grid img { width:100%; aspect-ratio:4/3; object-fit:contain; background:#fff; margin-bottom:5px; }
@media(max-width:1180px) {
 .elc-brands > summary { font-size:19px; padding:16px 4px; }
 .elc-brand-panel { position:static; box-shadow:none; max-height:55vh; padding:12px; }
 .elc-brand-grid { grid-template-columns:repeat(auto-fill,minmax(min(105px,100%),1fr)); gap:8px; }
}
.elc-brand-logos img { padding:12px; }
.elc-brand-logos img.elc-logo-dark-bg { background:#405542; }
.nav .site-search-link { font-weight:600; }
#clinic-search { display:flex; align-items:end; gap:10px; flex-wrap:wrap; max-width:640px; }
#clinic-search label { width:100%; }
#clinic-search input { min-width:0; flex:1; min-height:48px; padding:8px; border:1px solid #b4bbb3; }
#search-results li[hidden] { display:none; }

/* Match the adjacent navigation links and enlarge brand photos without shifting the grid. */
.nav .elc-brands > summary { font:400 18px/1.4 'Work Sans',Arial,sans-serif; }
@media(max-width:1180px) { .nav .elc-brands > summary { font-size:19px; } }
@media (any-hover:hover) {
 .elc-brand-panel .elc-brand-grid a { position:relative; }
 .elc-brand-panel .elc-brand-grid a:hover { z-index:2; }
 .elc-brand-panel .elc-brand-grid img { transition:transform .2s ease; transform-origin:center; }
 .elc-brand-panel .elc-brand-grid a:hover img { transform:scale(1.65); box-shadow:0 8px 23px #24221c42; }
}
@media(prefers-reduced-motion:reduce) { .elc-brand-panel .elc-brand-grid img { transition:none; } }

.elc-search-icon {display:inline-block;position:relative;width:16px;height:16px;border:2px solid currentColor;border-radius:50%;margin-right:5px;vertical-align:middle}
.elc-search-icon::after {content:'';position:absolute;top:11px;left:11px;width:8px;height:2px;background:currentColor;transform:rotate(45deg);transform-origin:left center}
.nav .site-search-link {min-width:40px;text-align:center}
.elc-best-badge {display:inline-block;background:#405542;color:white;font-size:.86rem;font-weight:700;padding:.2em .55em;border-radius:4px}
@media(min-width:1181px) { .nav {gap:clamp(8px,1.1vw,18px)} .nav>.elc-best-menu {white-space:nowrap} .nav .site-search-link {min-width:28px} }

.elc-brand-panel .elc-brand-grid img { border-radius: 12px; }

.header-inner .elc-order-shortcut {display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:8px;color:#405542;text-decoration:none;border-radius:6px;order:3}
.elc-order-shortcut svg {width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.elc-order-shortcut:hover {background:#edf2e8;color:#775b22}
.elc-order-shortcut:focus-visible {outline:3px solid #9b671f;outline-offset:3px}
@media(max-width:1180px) {.header-inner .elc-order-shortcut {margin-left:0}.header-inner {column-gap:12px}}

@media(min-width:1181px) {header .header-inner {column-gap:12px} header .header-inner .nav {min-width:0;flex:1;flex-wrap:wrap;justify-content:flex-end;row-gap:0} header .header-inner .elc-order-shortcut {order:3}}
@media(max-width:1180px) {header .header-inner .brand {min-width:0;flex-shrink:1;max-width:calc(100% - 148px)} header .header-inner .menu {margin-left:auto} header .header-inner .nav {flex-basis:100%}}

@media(max-width:1180px) {header .header-inner {position:relative;padding-right:52px} header .header-inner .brand {width:calc(100% - 100px);max-width:calc(100% - 100px);flex:0 1 auto} header .header-inner .elc-order-shortcut {position:absolute;right:0;top:50%;transform:translateY(-50%)}}
