/* Static-site fixes for the restored Anji's Pharmacy website.
   The original platform (MedicineChest) used a JavaScript app to lay out the
   page; these rules let the archived markup work as a normal static site. */

/* Let the document scroll normally instead of the app's inner scroll box */
html, body.body { position: static !important; overflow: visible !important; height: auto !important; min-height: 100%; }
body.body > ._hr { position: relative !important; overflow: visible !important; height: auto !important; top: auto !important; bottom: auto !important; }

/* Header dropdown panels (Contact / Open Hours / Vaccines / Destinations) */
._a2q.xs-open { display: block !important; visibility: visible !important; }
._8z { cursor: pointer; }

/* Side menu that replaces the platform's JavaScript menu */
._a2i { cursor: pointer; }
.xs-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 10000; }
.xs-menu { position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 85vw; background: #fff; box-shadow: 2px 0 12px rgba(0, 0, 0, .25);
  transform: translateX(-105%); transition: transform .25s ease; z-index: 10001; overflow-y: auto; font-family: SourceSansPro, Arial, sans-serif; }
body.xs-menu-open .xs-menu { transform: none; }
body.xs-menu-open .xs-overlay { opacity: 1; pointer-events: auto; }
.xs-menu-head { background: #002166; color: #fff; font: 20px RalewayBold, Arial, sans-serif; padding: 18px 20px; text-transform: uppercase; position: relative; }
.xs-close { position: absolute; right: 16px; top: 10px; font-size: 32px; line-height: 1; cursor: pointer; }
.xs-menu ul { list-style: none; margin: 0; padding: 0; }
.xs-menu li a { display: block; padding: 13px 20px; color: #002166; text-decoration: none; border-bottom: 1px solid #eee; font-size: 17px; }
.xs-menu li a:hover, .xs-menu li a.xs-current { background: #f2f6fc; color: #2196f3; }

/* Menu button was faded in by the old script */
._a2i { opacity: 1 !important; }

/* Map embed replacing the platform's branch map widget */
.xs-map { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; }

/* Footer opening hours (originally filled in by script) */
.xs-hours { color: #fff; font: 16px/1.6 SourceSansPro, Arial, sans-serif; margin-top: 12px; }
.xs-hrow { display: flex; justify-content: space-between; gap: 24px; }

/* Keep the menu button above the header; logo links home */
._a2i { z-index: 9999 !important; pointer-events: auto !important; }
._88a { pointer-events: none; }
._a2n { cursor: pointer; }

/* Travel clinic "Make an Appointment" band: its photo (More.jpg) was not archived,
   so keep the white text readable on the theme's dark blue */
._77c { background-color: #002166; }

/* Page headings were divs on the old platform; now real <h1>s with the same look */
h1.xs-h1 { margin: 0; font-weight: normal; }
main { display: block; }

/* Compact footer bottom bar: policy links left, copyright right */
._a20 { padding: 14px 40px !important; }
._a20 ._a22 { float: none !important; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 0 !important; text-align: left !important; }
._a20 ._a29 { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 !important; }
._a20 ._a25 { color: #fff; padding: 0 !important; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }
._a20 ._a25:hover, ._a20 ._a25:focus { border-bottom-color: #fff; }
._a20 ._a27 { margin: 0 !important; opacity: .85; }
@media (max-width: 599px) {
  ._a20 { padding: 16px 20px !important; }
  ._a20 ._a22, ._a20 ._a29 { justify-content: center; text-align: center !important; }
}

/* Policy pages (text restored from the 2018 site) */
.xs-legal { max-width: 960px; margin: 0 auto; padding: 30px 20px 50px; font: 17px/1.6 SourceSansPro, Arial, sans-serif; color: #222; }
.xs-legal h2, .xs-legal h4 { font-family: RalewayBold, Arial, sans-serif; font-weight: normal; color: #002166; text-transform: uppercase; margin: 32px 0 12px; }
.xs-legal h2 { font-size: 1.25em; }
.xs-legal h4 { font-size: 1.05em; }
.xs-legal p, .xs-legal ul, .xs-legal ol { margin: 0 0 14px; }
.xs-legal ul, .xs-legal ol { padding-left: 24px; }
.xs-legal li { margin-bottom: 6px; }
.xs-legal a { color: #2196f3; word-break: break-word; }
.xs-legal table { border-collapse: collapse; width: 100%; margin: 0 0 18px; display: block; overflow-x: auto; }
.xs-legal td { border: 1px solid #dde3ea; padding: 8px 10px; vertical-align: top; }

/* Services accordion arrow (its image was not archived) - use the theme's icon font */
._aqo, ._aqm { background-image: none !important; }
._aq4 ._aqo::before, ._aq4 ._aqm::before { font-family: FAI; content: "\f105"; color: #002166; position: absolute; left: 8px; top: 2px; font-size: 16px; transition: transform .2s; }
._aq4 ._aqm::before { transform: rotate(90deg); }

/* Blogs page: empty off-screen blog list panel (was filled by the old platform script) */
._llp:empty, ._llp:not(:has(a)) { display: none !important; }
