
a.wa-icon-button {display:inline-flex!important;align-items:center;justify-content:center;box-sizing:border-box;min-width:44px;min-height:44px;padding:.25rem!important}
a.wa-icon-button > svg {display:block!important;width:20px!important;height:20px!important;flex:0 0 20px!important;color:#187447}
.opening-banner-action.wa-icon-button > svg {color:#174c31}
footer .footer-contact-links a.wa-icon-button {justify-self:start;width:44px}
main .patient-clinic-quick h2 a {min-height:0;margin:0;text-decoration:underline}
main .patient-clinic-quick .clinic-current-status {font-weight:650;color:#34586d}
main .patient-clinic-quick .clinic-current-status[data-open="true"] {color:#185b39}
main .patient-clinic-quick .clinic-quick-actions {display:flex;align-items:stretch;flex-wrap:wrap;gap:.2rem}
main .patient-clinic-quick .clinic-quick-actions a {display:inline-flex;align-items:center;justify-content:center;margin:0;padding:.15rem .3rem;border:1px solid var(--line);border-radius:6px}
main .patient-clinic-quick .clinic-contact-row {display:grid;grid-template-columns:repeat(3,minmax(44px,1fr));gap:.2rem}
main .patient-clinic-quick .clinic-contact-row a {width:100%;color:#34586d}
@media(max-width:350px){main .patient-clinic-quick {grid-template-columns:1fr}}

/* Keep transport instructions clear of the sticky header after a jump. */
main :is(#getting-here, #ching-long-transport, #de-novo-transport, #ching-long-getting-here, #muk-tsui-getting-here) {scroll-margin-block-start: 9rem}
@media(max-width:760px){main :is(#getting-here, #ching-long-transport, #de-novo-transport, #ching-long-getting-here, #muk-tsui-getting-here) {scroll-margin-block-start: 12rem}}

/* Decorative pattern stays behind the clinic details. */
main .patient-clinic-quick > article,
main .brand-locations .brand-location-card {
  background-image: repeating-linear-gradient(135deg, transparent 0 15px, rgba(69, 118, 149, .045) 15px 16px) !important;
  border-radius: 10px;
}
main .patient-clinic-quick > article:nth-child(2),
main .brand-locations .brand-location-card.denovo-location {
  background-image: repeating-linear-gradient(135deg, transparent 0 15px, rgba(140, 80, 110, .045) 15px 16px) !important;
}
main .patient-clinic-quick > article::before,
main .patient-clinic-quick > article::after,
main .brand-locations .brand-location-card::before,
main .brand-locations .brand-location-card::after {
  content: none !important;
}

/* Shared compact action groups retain a full touch target and wrap when needed. */
main :is(.clinic-enquiry-actions,.unified-branch-contacts,.feedback-clinic-links,.reservation-contact-links,.service-contact-actions,.about-six-actions,.clinic-card-actions,.actions:has(> .btn)):not([hidden]) {
  display:flex !important;
  flex-flow:row wrap !important;
  align-items:stretch;
  gap:.3rem !important;
  min-width:0;
}
main :is(.clinic-enquiry-actions,.unified-branch-contacts,.feedback-clinic-links,.reservation-contact-links,.service-contact-actions,.about-six-actions,.clinic-card-actions,.actions:has(> .btn)) > :is(a,button):not([hidden]) {
  box-sizing:border-box;
  width:auto !important;
  min-width:0 !important;
  max-width:100%;
  min-height:44px !important;
  margin:0 !important;
  padding:.25rem .45rem !important;
  white-space:normal !important;
  overflow-wrap:anywhere;
}
main :is(.clinic-enquiry-actions,.unified-branch-contacts,.feedback-clinic-links,.reservation-contact-links,.service-contact-actions,.about-six-actions,.clinic-card-actions,.actions) > a.wa-icon-button:not([hidden]) {
  flex:0 0 44px;
  padding:.25rem !important;
}
main nav[aria-labelledby="site-related-pages-heading"] {
  display:block;
}
main #site-related-pages-heading + .compact-related-links:not(.patient-related-grid) {
  grid-auto-flow:row;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));
  gap:.3rem;
}
main #site-related-pages-heading + .compact-related-links > a.btn {
  min-height:44px !important;
  padding:.25rem .4rem !important;
  justify-content:center;
  text-align:center;
  line-height:1.25;
}

a.site-phone-icon { display:inline-flex!important; align-items:center; gap:.3rem!important; }
a.site-phone-icon > svg { display:block!important; width:16px!important; height:16px!important; flex:0 0 16px!important; }

a.wa-number-button > .wa-number-label {display:inline!important;white-space:nowrap;font-size:.8rem!important}
a.wa-number-button {gap:.25rem!important;white-space:nowrap}
main :is(.actions,.clinic-enquiry-actions,.reservation-contact-links,.unified-branch-contacts,.service-contact-actions,.feedback-clinic-links,.about-six-actions) > a.wa-number-button {flex:0 0 auto!important}
footer .footer-contact-links a.wa-number-button {width:auto!important;justify-self:stretch}
main .clinic-travel-row, main .patient-clinic-quick .clinic-travel-row {
 grid-template-columns:minmax(0,1fr) minmax(0,.95fr) minmax(6.4rem,1fr);
}

footer .footer-contact-links a.footer-clinic-whatsapp {width:auto!important;min-width:0;height:auto!important;justify-self:stretch}
footer .footer-contact-links a.footer-clinic-whatsapp > .footer-whatsapp-label {display:inline!important;min-width:0;white-space:normal!important;overflow-wrap:normal}
footer .footer-contact-links a.footer-clinic-whatsapp .footer-whatsapp-number {display:inline-block!important;white-space:nowrap!important}
@media(min-width:960px){footer .footer-contact-links{grid-template-columns:repeat(3,minmax(0,1fr)) repeat(4,minmax(105px,1.2fr));}}

main .clinic-travel-row,
main .patient-clinic-quick .clinic-travel-row {
 display:grid!important;
 grid-template-columns:minmax(44px,1fr) minmax(74px,1fr) minmax(108px,1.35fr);
 gap:.2rem!important;
}
main .clinic-travel-row > a {
 min-width:0!important; max-width:100%; padding:.15rem .2rem!important;
 margin:0!important; align-items:center; justify-content:center;
 white-space:nowrap!important; overflow-wrap:normal;
 font-size:.75rem!important; line-height:1.15!important;
}
main .clinic-travel-row > a.wa-number-button {width:100%!important;gap:.18rem!important}
main .clinic-travel-row > a.wa-number-button > .wa-number-label {font-size:.72rem!important}
main .clinic-travel-row > a:is(.wa-number-button,.site-phone-icon) > svg {
 width:13px!important;height:13px!important;flex-basis:13px!important;
}
@media(max-width:560px){
 main .patient-clinic-quick {grid-template-columns:1fr}
}
@media(max-width:480px){
 footer .footer-contact-links {grid-template-columns:repeat(2,minmax(0,1fr))}
}
