/* Prevent horizontal scrolling site-wide */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* Ensure Elementor containers don't cause overflow */
.elementor,
.elementor-section,
.elementor-container,
.elementor-widget-wrap {
    max-width: 100%;
}

.faq-section,
.faq-item,
.faq-question,
.question-text {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.faq-question {
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

body,
html {
    overflow-x: hidden;
}
/* Force links visible inside Elementor text widgets */
.elementor-widget-text-editor p a,
.elementor-widget-text-editor li a,
.elementor-widget-text-editor span a,
body .elementor-widget-text-editor a {
  color: #005eb8 !important;
  text-decoration: underline !important;
  cursor: pointer !important;
}

body .elementor-widget-text-editor a:hover {
  color: #003f7e !important;
  text-decoration: underline !important;
}
/* Blog post body links: make them clearly visible */
.single-post .elementor-widget-theme-post-content a:not(.elementor-button),
.single-post .elementor-widget-text-editor a:not(.elementor-button) {
  color: #0b5ea8;               /* swap for Priory's brand blue if different */
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.single-post .elementor-widget-theme-post-content a:not(.elementor-button):hover,
.single-post .elementor-widget-text-editor a:not(.elementor-button):hover {
  text-decoration-thickness: 2px;
}

.single-post .elementor-widget-theme-post-content a:focus-visible,
.single-post .elementor-widget-text-editor a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.quick-answer {
  max-width: 1200px;
  margin: 30px auto;
  background: #f4f8ec;
  border-left: 5px solid #6B9B23;
  border-radius: 12px;
  padding: 20px 25px;
  font-size: 18px;
  line-height: 1.7;
  color: #1f2937;
}

.quick-answer strong {
  color: #6B9B23;
}

@media (max-width: 600px) {
  .quick-answer {
    padding: 14px 16px;
    font-size: 16px;
    margin: 20px auto;
  }
}
/* =========================================================
   Priory Pharmacy - post-body FAQ + CTA styling
   No classes required: hooks onto the markup that survives
   ========================================================= */

/* ---------- FAQ accordions ---------- */
.single-post .elementor-widget-theme-post-content details {
  margin: 0 0 12px;
  padding: 0 18px;
  background: #ffffff;
  border: 1px solid #cdeccf;
  border-left: 4px solid #25ad3b;
  border-radius: 10px;
  transition: box-shadow .2s ease;
}

.single-post .elementor-widget-theme-post-content details:hover {
  box-shadow: 0 2px 10px rgba(37,173,59,.12);
}

.single-post .elementor-widget-theme-post-content details > summary {
  display: block;
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 16px 36px 16px 0;
  font-weight: 700;
  color: #1f2937;
}

.single-post .elementor-widget-theme-post-content details > summary::-webkit-details-marker { display: none; }
.single-post .elementor-widget-theme-post-content details > summary::marker { content: ""; }

.single-post .elementor-widget-theme-post-content details > summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #25ad3b;
  color: #ffffff;
  font-size: 18px;
  line-height: 26px;
  text-align: center;
  font-weight: 700;
}

.single-post .elementor-widget-theme-post-content details[open] { background: #f4fbf5; }
.single-post .elementor-widget-theme-post-content details[open] > summary { color: #1e8a2f; }
.single-post .elementor-widget-theme-post-content details[open] > summary::after { content: "−"; }

.single-post .elementor-widget-theme-post-content details p {
  margin: 0;
  padding: 0 0 16px;
  color: #374151;
  line-height: 1.6;
}

/* ---------- CTA buttons, matched on href ---------- */
.single-post .elementor-widget-theme-post-content a[href*="shop.priory-pharmacy.co.uk/appointments"],
.single-post .elementor-widget-theme-post-content a[href*="priory-pharmacy.co.uk/contact-us"] {
  display: inline-block;
  margin: 4px 8px 4px 0;
  padding: 12px 22px;
  background: #25ad3b !important;
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none !important;
}

.single-post .elementor-widget-theme-post-content a[href*="shop.priory-pharmacy.co.uk/appointments"]:hover,
.single-post .elementor-widget-theme-post-content a[href*="priory-pharmacy.co.uk/contact-us"]:hover {
  background: #1e8c2f !important;
  color: #ffffff !important;
}

.single-post .elementor-widget-theme-post-content a[href^="tel:"] {
  display: inline-block;
  margin: 4px 0;
  padding: 12px 22px;
  background: #ffffff !important;
  color: #25ad3b !important;
  font-weight: 700;
  border: 2px solid #25ad3b;
  border-radius: 8px;
  text-decoration: none !important;
}

.single-post .elementor-widget-theme-post-content a[href^="tel:"]:hover {
  background: #f4f8ec !important;
}
@media (min-width: 1025px) {
  .hide-on-desktop { display: none !important; }
}