
/* ItHurts – refined group chooser (same structure, nicer look) */

.ithurts-group-chooser {
  max-width: 960px;
  margin: 50px auto 90px;
  padding: 0 18px;
}

/* Soft panel behind everything */
.ithurts-group-chooser-inner {
  background: #fff6fa;
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(0,0,0,0.06);
  padding: 26px 26px 22px;
}

/* Heading + intro */
.ithurts-group-chooser-title {
  font-size: 26px;
  font-weight: 700;
  color: #301414;
  margin: 0 0 6px;
}

.ithurts-group-chooser-intro {
  font-size: 14px;
  color: #5a4f53;
  margin: 0 0 20px;
}

/* Cards stack */
.ithurts-group-chooser-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Card styling – subtle accent bar */
.ithurts-group-card {
  display: block;
  text-decoration: none;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #eed7e0;
  padding: 14px 18px;
  box-shadow: 0 5px 14px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease,
    border-color 0.15s ease;
}

/* colored strip on the left */
.ithurts-group-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #f08aae, #8b1636);
}

/* join hint pill at the bottom */
.ithurts-group-card::after {
  content: "Join this support group →";
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #f0bfd4;
  background: #fff3f7;
  font-size: 11.5px;
  font-weight: 600;
  color: #8b1636;
  margin-top: 8px;
}

.ithurts-group-card:hover {
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  border-color: #e0a8c0;
  transform: translateY(-2px);
}

/* Layout inside card */
.ithurts-group-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

/* Avatar */
.ithurts-group-avatar img,
.ithurts-group-avatar .avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* Text area */
.ithurts-group-content {
  flex: 1;
  min-width: 0;
}

.ithurts-group-name {
  font-size: 16.5px;
  margin: 0 0 4px;
  color: #8b1636;
  font-weight: 600;
}

.ithurts-group-desc {
  font-size: 13.2px;
  line-height: 1.65;
  color: #454545;
  margin: 0;
}

/* Normal search link below */
.ithurts-group-chooser-normal-search {
  margin-top: 18px;
  font-size: 12px;
}

.ithurts-group-chooser-normal-search a {
  color: #8b1636;
  text-decoration: underline;
}
/* --- ItHurts chooser – final polish --- */

/* Slightly stronger heading */
.ithurts-group-chooser-title {
  font-size: 28px;
  letter-spacing: 0.01em;
}

/* On larger screens, make cards sit perfectly side-by-side */
@media (min-width: 980px) {
  .ithurts-group-chooser-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

/* Align content nicely inside the card */
.ithurts-group-card-inner {
  align-items: center;
}

/* Smooth hover on avatar + card */
.ithurts-group-avatar img,
.ithurts-group-avatar .avatar {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ithurts-group-card:hover .ithurts-group-avatar img,
.ithurts-group-card:hover .ithurts-group-avatar .avatar {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.16);
}

/* Make join pill sit a little away from paragraph */
.ithurts-group-card::after {
  margin-top: 10px;
}
/* Tiny polish only – keep current look */

/* Make the heading just a bit more “hero” */
.ithurts-group-chooser-title {
  font-size: 30px;
}

/* Slightly larger group name and better reading size */
.ithurts-group-name {
  font-size: 17px;
}

.ithurts-group-desc {
  font-size: 13.5px;
}

/* Give the whole chooser a bit more breathing room from the footer */
.ithurts-group-chooser {
  margin-bottom: 110px;
}
/* Hide the "Show normal search results instead" link */
.ithurts-group-chooser-normal-search {
  display: none !important;
}

.ithurts-support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid #8b2e34;
  background: transparent;
  color: #8b2e34;
  transition: all 0.18s ease-out;
}

.ithurts-support-btn:hover {
  background: #8b2e34;
  color: #ffffff;
}








/* ===============================
   ItHurts – CLEAN PREMIUM GROUP UI
   =============================== */

/* SECTION BOX */
.ith-section {
  background: #ffffff;
  border-radius: 18px;
  padding: 32px 34px;
  margin-bottom: 40px;
  border-left: 4px solid #8b3a2b; /* thinner = premium */
  box-shadow: 0 10px 28px rgba(0,0,0,0.09);
}

//* SECTION TITLE */
.ith-section h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #8b3a2b;
  margin-bottom: 26px;
  padding-left: 22px; /* more space for dot */
  position: relative;
  line-height: 1.3;
}

.ith-section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em; /* aligns dot with text cap-height */
  width: 8px;
  height: 8px;
  background: #8b3a2b;
  border-radius: 50%;
}


/* GRID */
.ith-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

/* CARD */
.ith-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #ececec;
  overflow: hidden;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease;
}

.ith-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.16);
}

/* IMAGE */
.ith-card img {
  width: 100%;
  height: 185px;
  object-fit: cover;
}

/* CARD BODY */
.ith-card-body {
  padding: 18px 20px 22px;
}

/* TITLE — CLEAN, NOT BOXED */
.ith-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  color: #2a2a2a;
  margin: 0;
}

/* subtle accent underline instead of box */
.ith-card-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  background: #8b3a2b;
  margin-top: 8px;
  opacity: 0.4;
}

/* VIEW ALL BUTTON */
.ith-view-all {
  display: inline-block;
  margin-top: 26px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1.8px solid #8b3a2b;
  color: #8b3a2b;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
}

.ith-view-all:hover {
  background: #8b3a2b;
  color: #ffffff;
}

/* MOBILE */
@media (max-width: 768px) {
  .ith-section {
    padding: 24px 22px;
  }

  .ith-card img {
    height: 150px;
  }
}

/* ================================
   ItHurts – Pain Directory Grid
   HTML ONLY (No JS / No PHP)
================================ */

.ih-pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 26px;
  padding: 10px 0;
}

/* Card */
.ih-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 14px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Hover */
.ih-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

/* Image */
.ih-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* Title */
.ih-card p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #883621;
  line-height: 1.3;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .ih-pain-grid {
    gap: 18px;
  }

  .ih-card {
    min-height: 200px;
    padding: 12px;
  }

  .ih-card img {
    height: 120px;
  }

  .ih-card p {
    font-size: 12px;
  }
}


/* === ItHurts mobile fixes (added 2026-09-29) — delete this block to undo === */
/* Product gallery: hide unstyled "Previous / Next" bullet list (thumbnails and swipe still work) */
.woocommerce-product-gallery .flex-direction-nav { display: none !important; }
@media (max-width: 767px) {
  /* Floating social icon column overlapped page content on phones (social links remain in the footer) */
  .elementor-element-5a057a3 { display: none !important; }
  /* Light/dark toggle: move to bottom-left, smaller */
  .bx-color-mode-toggle-floating { top: auto !important; bottom: 16px !important; left: 12px !important; right: auto !important; width: 36px !important; height: 36px !important; }
  /* While the cookie banner is open, hide the floating chat button and toggle so they don't cover its buttons */
  body:has(.ithurts-cookie-banner) .ithurts-ai-floating-shell,
  body:has(.ithurts-cookie-banner) .bx-color-mode-toggle-floating { display: none !important; }
  /* Product pages: side margins so the title and photos don't touch the screen edge */
  .single-product [data-elementor-type="product"] { padding-left: 16px !important; padding-right: 16px !important; box-sizing: border-box; }
}
/* Product pages: show price + Buy section immediately (the template's fade-in animation kept it invisible until scrolled into view) */
.single-product .elementor-element-6a014ccc.elementor-invisible { visibility: visible !important; }
.single-product .elementor-element-6a014ccc.animated { animation: none !important; }
/* === end ItHurts mobile fixes === */


/* === ItHurts header fixes (added 2026-09-29) — delete this block to undo === */
/* Tablet (768–1024px): keep logo, search, menu button and Login on one row instead of two */
@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-element-12a28dc3 > .elementor-container { flex-wrap: nowrap !important; align-items: center !important; }
  .elementor-element-3245d384 { width: auto !important; flex: 0 0 150px !important; }
  .elementor-element-e262352 { width: auto !important; flex: 1 1 auto !important; min-width: 0 !important; }
  .elementor-element-8945b16, .elementor-element-82cfb8e { width: auto !important; flex: 0 0 auto !important; }
}
/* Phones + tablets: readable dropdown menu (solid background, larger text) and a finger-sized menu button */
@media (max-width: 1024px) {
  .elementor-element-6139cd78 .elementor-nav-menu--dropdown { background: #fff !important; box-shadow: 0 12px 24px rgba(0,0,0,.12) !important; max-height: calc(100vh - 110px); overflow-y: auto; }
  .elementor-element-6139cd78 .elementor-nav-menu--dropdown a { font-size: 16px !important; line-height: 1.3 !important; padding: 12px 20px !important; border-bottom: 1px solid #f1e9e6; }
  .elementor-element-6139cd78 .elementor-menu-toggle { min-width: 44px !important; min-height: 44px !important; display: flex !important; align-items: center; justify-content: center; }
}
/* === end ItHurts header fixes === */

