/* ==========================================================================
   CPAP shared components – product card (.hp-pcard*), badges (.hp-badge*), buttons (.hp-btn*)
   Loaded site-wide from bricks-child/functions.php, also inside the Bricks builder canvas.
   ========================================================================== */
.brxe-button.hp-btn { font-family: inherit; font-weight: 600; line-height: 1.25; border-radius: 0; box-shadow: none; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; width: auto; }
.brxe-button.hp-btn--pill { background: #043146; color: #fff; padding: 24px; border-radius: 160px; font-size: 16px; }
.brxe-button.hp-btn--outline { background: transparent; color: #043146; border: 1px solid #3575db; font-size: 12px; padding: 15px 16px; height: 38px; }
.brxe-button.hp-btn--outline-light { background: transparent; color: #fff; border: 1px solid #8fcbe5; font-size: 12px; padding: 15px 16px; height: 38px; }
.brxe-button.hp-btn--outline-dark { background: transparent; color: #043146; border: 1px solid #043146; font-size: 14px; line-height: 1.5; padding: 16px; }
.brxe-button.hp-btn--solid { background: #043146; color: #fff; padding: 24px; font-size: 16px; }
.brxe-button.hp-btn--white { background: #fff; color: #043146; font-weight: 700; font-size: 12.9px; line-height: 1.5; padding: 8px 16px; }
.hp-grid4 > .hp-pcard { height: 100%; }
.hp-pcard { background: #fff; border: 1px solid #d6d6d6; border-radius: 10px; padding: 20px; gap: 10px; align-items: center; text-align: center; }
.hp-pcard__top { flex-direction: row; justify-content: space-between; align-items: flex-start; width: 100%; min-height: 20px; }
.hp-pcard__badges { width: auto !important; gap: 5px; align-items: flex-start; }
.hp-badge { display: inline-block; font-size: 10px; font-weight: 600; line-height: 1.25; padding: 3px 5px; color: #fff; border-radius: 3px 3px 0 3px; position: relative; }
.hp-badge--new { background: #03aa00; }
.hp-badge--sale { background: #ea1b3d; }
.hp-badge--best { background: #feb62c; color: #000; font-size: 11.5px; padding: 3.4px 5.7px; margin-left: auto; }
.hp-badge--best::after { content: ""; position: absolute; right: 0; top: 100%; border-top: 9px solid #b97f06; border-left: 9px solid transparent; }
.hp-pcard__img { width: 100%; }
.hp-pcard__img, .hp-pcard__img img { width: 100%; height: 123px; object-fit: contain; background: #fff; }
.hp-pcard__brand { font-size: 14px; line-height: 1.5; color: #a3a3a3; }
.hp-pcard__brand a { color: inherit; text-decoration: none; }
.hp-pcard__title { font-size: 14px; font-weight: 600; line-height: 1.5; color: #043146; }
.hp-pcard__title a { color: inherit; text-decoration: none; }
.hp-pcard__rating { font-size: 10px; display: flex; justify-content: center; }
.hp-pcard__rating .star-rating { font-size: 14px; color: #feb62c; }
.hp-pcard__variants { font-size: 14px; line-height: 1.5; color: #043146; }
.hp-pcard__price { margin-top: auto; }
.hp-pcard__price .price { display: flex; flex-direction: column-reverse; align-items: center; font-size: 12px; line-height: 1.25; color: #043146; }
.hp-pcard__price .price ins { text-decoration: none; background: none; }
.hp-pcard__price .price ins .woocommerce-Price-amount, .hp-pcard__price .price > .woocommerce-Price-amount { font-family: "Chonky Brush", Poppins, sans-serif; font-style: italic; font-weight: 800; font-size: 32px; line-height: 1.25; color: #043146; }
.hp-pcard__price .price del { font-size: 12px; opacity: 1; }
.hp-pcard__price .price del::before { content: "Reg: "; }
.hp-pcard__ship { font-size: 14px; line-height: 1.5; color: #043146; background: rgba(143, 203, 229, .3); border-radius: 20px; padding: 5px 10px; }
.hp-pcard__cart { width: 100%; }
.hp-pcard__cart .button, .hp-pcard__cart a.button, .hp-pcard__cart button { display: flex; align-items: center; justify-content: center; width: 100%; height: 38px; padding: 15px 16px; background: #043146; color: #fff; font-size: 14px; font-weight: 600; border-radius: 0; border: 0; box-shadow: none; }

@media (max-width: 767px) {
  .hp-pcard { padding: 10px; }
}

.brxe-button.hp-btn { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; cursor: pointer; }
.brxe-button.hp-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(4, 49, 70, .18); }
.brxe-button.hp-btn:active { transform: translateY(0); box-shadow: none; }
.brxe-button.hp-btn--pill:hover, .brxe-button.hp-btn--solid:hover { background: #feb62c; color: #043146; }
.brxe-button.hp-btn--outline:hover, .brxe-button.hp-btn--outline-dark:hover { background: #043146; color: #fff; border-color: #043146; }
.brxe-button.hp-btn--outline-light:hover { background: #fff; color: #043146; border-color: #fff; }
.brxe-button.hp-btn--white:hover { background: #043146; color: #fff; }
.hp-pcard { transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease; }
.hp-pcard:hover { border-color: #feb62c; box-shadow: 0 8px 24px rgba(4, 49, 70, .12); transform: translateY(-3px); }
.hp-pcard__img img { transition: transform .3s ease; }
.hp-pcard:hover .hp-pcard__img img { transform: scale(1.05); }
.hp-pcard__title a { transition: color .2s; }
.hp-pcard__title a:hover { color: #3575db; }
.hp-pcard__cart .button, .hp-pcard__cart a.button, .hp-pcard__cart button { transition: background-color .2s ease, color .2s ease; }
.hp-pcard__cart .button:hover, .hp-pcard__cart a.button:hover, .hp-pcard__cart button:hover { background: #feb62c; color: #043146; }
.hp-pcard-slot { display: flex; }
.hp-pcard-slot > .brxe-template { display: flex; flex: 1 1 auto; width: 100%; }
.hp-pcard-slot .hp-pcard { flex: 1 1 auto; width: 100%; height: auto; }
.hp-grid4 > .hp-pcard-slot { height: 100%; }

@media (max-width: 767px) {
  .hp-pcard { padding: 10px; }
  .hp-pcard__img img { height: 90px; }
  .hp-pcard__price .price ins .woocommerce-Price-amount, .hp-pcard__price .price > .woocommerce-Price-amount { font-size: 24px; }
  .hp-pcard__title { font-size: 13px; }
}

@media (max-width: 767px) {
  .hp-grid4 > .hp-pcard-slot { flex: 0 0 280px; width: 280px; }
  .hp-pcard { padding: 20px; }
  .hp-pcard__img img { height: 123px; }
  .hp-pcard__title { font-size: 14px; }
  .hp-pcard__price .price ins .woocommerce-Price-amount, .hp-pcard__price .price > .woocommerce-Price-amount { font-size: 32px; }
}

.hp-pcard { position: relative; }

@media (max-width: 767px) {
  .brxe-button.hp-btn { height: 46px; min-height: 46px; padding: 0 24px; font-size: 14px; line-height: 1.25; }
  .brxe-button.hp-btn--pill, .brxe-button.hp-btn--solid { padding: 0 24px; font-size: 14px; }
  .brxe-button.hp-btn--outline, .brxe-button.hp-btn--outline-light, .brxe-button.hp-btn--outline-dark, .brxe-button.hp-btn--white { padding: 0 24px; font-size: 14px; height: 46px; }
  .hp-pcard__cart .button, .hp-pcard__cart a.button, .hp-pcard__cart button { height: 38px; font-size: 14px; }
}

/* base resets so the card looks the same outside the Home page sections */
.hp-pcard h3, .hp-pcard p { margin: 0; }
.hp-pcard img { display: block; max-width: 100%; }

/* Home hero slider arrows: push outward by half their width; keep vertical centering on hover (hover transform used to drop translateY(-50%)) */
.brxe-slider-nested.hp-hero__slider .splide__arrow { transform: translateY(-50%); }
.brxe-slider-nested.hp-hero__slider .splide__arrow--prev { left: -20px; }
.brxe-slider-nested.hp-hero__slider .splide__arrow--next { right: -20px; }
.brxe-slider-nested.hp-hero__slider .splide__arrow:hover { transform: translateY(-50%) scale(1.08); }

/* Prev arrow: Splide flips it with scaleX(-1); restore that after the override above */
.brxe-slider-nested.hp-hero__slider .splide__arrow--prev { transform: translateY(-50%) scaleX(-1); }
.brxe-slider-nested.hp-hero__slider .splide__arrow--prev:hover { transform: translateY(-50%) scaleX(-1) scale(1.08); }

/* Home "top categories" row (mobile): start flush with the box content edge, show 2 cards + a peek of the 3rd */
@media (max-width: 767px) {
  .hp-cats .hp-cats__row { padding-left: 12px; padding-right: 12px; scroll-padding-left: 12px; }
  .hp-cats .hp-cats__row > .hp-cat { flex: 0 0 calc((100% - 24px - 24px) / 2.3); width: calc((100% - 24px - 24px) / 2.3); }
  .hp-cats .hp-cats__row > .hp-cat { min-width: 0; max-width: none; }
  .hp-cats .hp-cats__row > .hp-cat .hp-cat__art, .hp-cats .hp-cats__row > .hp-cat .hp-cat__art img { width: 100%; max-width: none; }
}

/* Mobile scroll rows: Bricks blocks are width:100%, so the -20px inline margin only shifted the row left and clipped its right edge by 20px.
   Widen by the compensated margin so the row bleeds to both container edges. */
@media (max-width: 767px) {
  .brxe-block.hp-grid4, .brxe-block.hp-experts__row { width: calc(100% + 40px); max-width: none; }
}

/* ===== Single doctor page (template "Single - Doctor") ===== */
.dr-sec.brxe-section { padding: 40px 0 60px; }
.dr-sec > .brxe-container { display: flex; flex-direction: column; gap: 20px; }
.dr-bc { display: flex; align-items: center; gap: 8px; width: 100%; }
.dr-bc__ico { width: 20px; height: 20px; flex: 0 0 auto; }
.dr-bc__caret { width: 12px; height: 12px; flex: 0 0 auto; }
.dr-bc__item { font-size: 14px; line-height: 1.5; color: #5f6c72; }
.dr-profile { display: flex; align-items: flex-start; gap: 24px; width: 100%; margin-bottom: 20px; }
.dr-side { flex: 0 0 402px; width: 402px; display: flex; flex-direction: column; align-items: center; gap: 30px; padding: 40px; background: rgba(143, 203, 229, .3); position: sticky; top: 20px; }
.dr-photo { width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; }
.dr-photo img, img.dr-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.dr-contact { display: flex; align-items: center; gap: 10px; width: auto; }
.dr-contact__ico { width: 24px; height: 24px; flex: 0 0 auto; }
.dr-contact__label { font-size: 14px; color: #000; display: inline-block; }
.dr-contact > .dr-contact__ico:first-child { width: 16px; height: 16px; }
.dr-contact__link { display: inline-flex; width: auto; }
.brxe-button.dr-book { background: #3575db; color: #fff; border-radius: 0; padding: 16px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.dr-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.dr-head { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.dr-name { font-size: 28px; font-weight: 700; line-height: 1.2; color: #043146; margin: 0; }
.dr-job { font-size: 14px; color: rgba(49, 49, 49, .5); }
.dr-block { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.dr-h { font-size: 20px; font-weight: 600; line-height: 1.2; color: #043146; margin: 0; }
.dr-text { font-size: 14px; line-height: 1.5; color: #043146; }
.dr-text p { margin: 0 0 12px; }
.dr-text p:last-child { margin-bottom: 0; }
.dr-tags { display: flex; flex-wrap: wrap; gap: 24px; width: 100%; }
.dr-tag { width: auto; padding: 10px; border-radius: 20px; background: #eee; }
.dr-tag__text { font-size: 14px; line-height: 1.5; color: #043146; white-space: nowrap; }
.dr-pubs-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin-top: 20px; }
.dr-pubs-title { font-size: 28px; font-weight: 700; line-height: 1.2; color: #043146; margin: 0; }
.dr-pubs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: 100%; margin-bottom: 20px; }
.dr-card { display: flex; flex-direction: column; gap: 14px; padding: 10px 10px 20px; border: 1px solid #eee; border-radius: 10px; background: #fff; }
.dr-card__media { position: relative; width: 100%; height: 158px; border-radius: 10px; overflow: hidden; }
.dr-card__img, .dr-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dr-card__badge { position: absolute; top: 10px; left: 14px; padding: 5px; border-radius: 5px; background: #fa8525; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.5; width: auto; }
.dr-card__badge a { color: inherit; }
.dr-card__meta, .dr-card__author { font-size: 10px; color: #a3a3a3; padding: 0 4px; }
.dr-card__title { font-size: 16px; font-weight: 600; line-height: 1.25; color: #28586f; margin: 0; padding: 0 4px; }
.dr-card__title a { color: inherit; }
.dr-card__excerpt { font-size: 14px; line-height: 1.5; color: rgba(49, 49, 49, .5); padding: 0 4px; }
.dr-card__author { font-weight: 600; font-size: 14px; color: #043146; }
.cpap-promo { position: relative; display: flex; justify-content: flex-end; width: 100%; min-height: 340px; overflow: hidden; background: linear-gradient(105deg, #c4aad9 -10%, #8752db 30%, #7335db 55%, #8752db 80%); }
.cpap-promo__art { position: absolute; left: 0; bottom: 0; width: 342px; height: 342px; }
.cpap-promo__img { position: absolute; max-width: none; object-fit: cover; }
.cpap-promo__img--front { left: 0; top: 0; width: 338px; height: 338px; }
.cpap-promo__img--back { left: 142px; top: 63px; width: 274px; height: 274px; }
.cpap-promo__body { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 715px; max-width: 100%; padding: 60px; }
.cpap-promo__logo { width: 171px; height: auto; }
.cpap-promo__title { color: #fff; font-size: 32px; font-weight: 600; line-height: 1.25; text-align: center; margin: 0; }
.brxe-button.cpap-promo__btn { background: #fa8525; color: #fff; border-radius: 0; padding: 15px 24px; font-size: 14px; font-weight: 600; }

@media (max-width: 991px) {
  .dr-profile { flex-direction: column; }
  .dr-side { flex: 0 0 auto; width: 100%; position: static; }
  .dr-photo { max-width: 322px; }
  .dr-pubs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cpap-promo { justify-content: center; }
  .cpap-promo__art { display: none; }
}
@media (max-width: 767px) {
  .dr-sec.brxe-section { padding: 20px 0 40px; }
  .dr-side { padding: 24px; }
  .dr-name, .dr-pubs-title { font-size: 24px; }
  .dr-tags { gap: 12px; }
  .dr-pubs { grid-template-columns: 1fr; }
  .cpap-promo__body { padding: 40px 20px; }
  .cpap-promo__title { font-size: 24px; }
}

/* Single doctor: Bricks blocks default to column direction, set row where the design is horizontal */
.brxe-block.dr-bc, .brxe-block.dr-profile, .brxe-block.dr-contact, .brxe-block.dr-tags, .brxe-block.dr-pubs-head { flex-direction: row; }
.brxe-block.cpap-promo { flex-direction: row; }
.brxe-block.dr-bc { flex-wrap: wrap; }
.brxe-block.dr-side { width: 402px; }
.brxe-block.dr-main { width: auto; }
.brxe-block.dr-tag, .brxe-block.dr-contact__link, .brxe-block.dr-contact { width: auto; }
.brxe-block.cpap-promo__body { width: 715px; }
.brxe-block.cpap-promo__art { width: 342px; }
.dr-bc__item, .dr-card__badge { width: auto; }
.dr-contact__label { width: auto; }
@media (max-width: 991px) {
  .brxe-block.dr-profile { flex-direction: column; }
  .brxe-block.dr-side { width: 100%; }
  .brxe-block.dr-main { width: 100%; }
  .brxe-block.cpap-promo { justify-content: center; }
}

/* Single doctor: Publications shows 3 cards max; byline = doctor avatar + name */
.dr-pubs > .dr-card:nth-child(n+4) { display: none; }
.dr-card__author { padding: 0 4px; }
.dr-byline { display: flex; align-items: center; gap: 10px; }
.dr-byline__avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.dr-byline__name { font-size: 14px; font-weight: 600; line-height: 1.5; color: #043146; }

/* Single doctor: card meta row (clock + reading time), author row (doctor avatar, name, date) + hover states from the design */
.brxe-block.dr-card__read { flex-direction: row; align-items: center; gap: 10px; padding: 0 4px; width: 100%; }
.dr-card__read-ico { width: 16px; height: 16px; flex: 0 0 auto; }
.dr-card__read-text { font-size: 10px; line-height: 1.5; color: #a3a3a3; width: auto; }
.brxe-block.dr-card__by { flex-direction: row; align-items: center; gap: 10px; padding: 0 4px; width: 100%; margin-top: auto; }
.dr-card__avatar { width: 24px; height: 24px; flex: 0 0 auto; line-height: 0; }
.dr-card__avatar .dr-byline__avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; display: block; }
.brxe-block.dr-card__by-col { flex-direction: column; gap: 0; width: auto; }
.dr-card__author { padding: 0; font-size: 14px; font-weight: 600; line-height: 1.5; color: #043146; }
.dr-card__date { font-size: 10px; line-height: 1.5; color: #a3a3a3; padding: 0; }
.dr-card { transition: box-shadow .2s, border-color .2s; }
.dr-card:hover { box-shadow: 0 8px 24px rgba(4, 49, 70, .12); border-color: transparent; }
.dr-card__title a { transition: color .2s; }
.dr-card:hover .dr-card__title a { color: #3575db; }

/* Buttons: hover per design (Book Consultation -> light blue + dark text; See all -> solid blue + white text) */
.brxe-button.dr-book { transition: background-color .2s, color .2s; }
.brxe-button.dr-book:hover, .brxe-button.dr-book:focus-visible { background: #8fcbe5; color: #043146; }
.dr-pubs-head .brxe-button.hp-btn--outline { transition: background-color .2s, color .2s; }
.dr-pubs-head .brxe-button.hp-btn--outline:hover, .dr-pubs-head .brxe-button.hp-btn--outline:focus-visible { background: #3575db; color: #fff; border-color: #3575db; }
.brxe-button.cpap-promo__btn { transition: background-color .2s; }
.brxe-button.cpap-promo__btn:hover { background: #e07210; }

/* ===== Single post (template "Single - Post") ===== */
.brxe-block.sp-hero { flex-direction: row; align-items: center; gap: 18px; width: 100%; }
.brxe-block.sp-hero__text { flex: 1 1 0; min-width: 0; width: auto; gap: 40px; justify-content: center; }
.brxe-block.sp-hero__img { flex: 1 1 0; min-width: 0; width: auto; }
.sp-hero__photo, .sp-hero__photo img { width: 100%; height: 350px; object-fit: cover; border-radius: 10px; display: block; }
.sp-badge { display: inline-block; width: auto; padding: 5px; border-radius: 5px; background: #fa8525; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.5; }
.sp-badge a { color: inherit; }
.sp-hero__text > .sp-badge { align-self: flex-start; }
.sp-title { font-size: 28px; font-weight: 700; line-height: 1.2; color: #28586f; margin: -20px 0 0; }
.brxe-block.sp-meta { flex-direction: row; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: -20px; width: 100%; }
.brxe-block.sp-meta__item { flex-direction: row; align-items: center; gap: 10px; width: auto; }
.sp-meta__ico { width: 16px; height: 16px; flex: 0 0 auto; }
.sp-meta__text { font-size: 10px; line-height: 1.5; color: #a3a3a3; width: auto; }
.sp-meta__date { color: #3575db; text-decoration: underline; }
.brxe-block.sp-author { flex-direction: column; align-items: flex-start; gap: 10px; width: auto; }
.sp-author__avatar { width: 60px; height: 60px; line-height: 0; }
.sp-author__avatar .dr-byline__avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; display: block; }
.brxe-block.sp-author__col { gap: 0; width: auto; }
.sp-author__name { font-size: 14px; font-weight: 600; line-height: 1.5; color: #043146; }
.sp-author__date { font-size: 10px; line-height: 1.5; color: #a3a3a3; }

.brxe-block.sp-body { flex-direction: row; align-items: flex-start; gap: 24px; width: 100%; padding: 40px 0; }
.brxe-block.sp-aside { flex: 0 0 406px; width: 406px; padding: 40px; gap: 30px; background: rgba(143, 203, 229, .3); position: sticky; top: 20px; }
.brxe-block.sp-share { flex-direction: row; align-items: center; gap: 10px; width: auto; }
.brxe-block.sp-share__label { flex-direction: row; align-items: center; gap: 5px; width: auto; }
.sp-share__ico { width: 16px; height: 16px; }
.sp-share__link .sp-share__ico { width: 18px; height: 18px; }
.sp-share__text { font-size: 14px; color: #000; line-height: 1.5; width: auto; }
.brxe-block.sp-share__link { width: auto; flex-direction: row; }
.sp-toc__title { font-size: 20px; font-weight: 600; line-height: 1.2; color: #28586f; margin: 0; }
.sp-toc { width: 100%; }
.sp-toc ol, .sp-toc ul { list-style: none; margin: 0; padding: 0; }
.sp-toc > ol, .sp-toc > ul { display: flex; flex-direction: column; gap: 20px; }
.sp-toc ol ol, .sp-toc ul ul { margin-top: 16px; display: flex; flex-direction: column; gap: 16px; padding-left: 0; }
.sp-toc a { color: #28586f; font-size: 16px; line-height: 1.25; font-weight: 600; text-decoration: none; }
.sp-toc li li a { font-weight: 400; line-height: 1.5; }
.sp-toc a:hover, .sp-toc .is-active-link { color: #3575db; }
.brxe-block.sp-content { flex: 1 1 0; min-width: 0; width: auto; }
.sp-content__inner { color: #043146; font-size: 16px; line-height: 1.5; }
.sp-content__inner > p:first-child { font-size: 20px; }
.sp-content__inner p { margin: 0 0 24px; }
.sp-content__inner h2 { font-size: 24px; font-weight: 700; line-height: 1.2; color: #043146; margin: 0 0 24px; scroll-margin-top: 100px; }
.sp-content__inner h3 { font-size: 20px; font-weight: 600; line-height: 1.2; color: #043146; margin: 0 0 16px; scroll-margin-top: 100px; }
.sp-content__inner img { max-width: 100%; height: auto; border-radius: 10px; }

.brxe-block.sp-related { width: 100%; padding: 40px; gap: 30px; background: linear-gradient(96deg, #316378 0%, #043146 100%); }
.sp-related__title { font-size: 28px; font-weight: 700; line-height: 1.2; color: #8fcbe5; margin: 0; }
.sp-related__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; width: 100%; }
.sp-sec > .brxe-container > .brxe-template { width: 100%; }

@media (max-width: 991px) {
  .brxe-block.sp-hero { flex-direction: column-reverse; align-items: stretch; }
  .brxe-block.sp-hero__text, .brxe-block.sp-hero__img { width: 100%; flex: 0 0 auto; }
  .brxe-block.sp-body { flex-direction: column; }
  .brxe-block.sp-aside { width: 100%; flex: 0 0 auto; position: static; }
  .brxe-block.sp-content { width: 100%; }
  .sp-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .sp-hero__photo, .sp-hero__photo img { height: 220px; }
  .brxe-block.sp-aside { padding: 24px; }
  .brxe-block.sp-related { padding: 24px 16px; }
  .sp-related__grid { grid-template-columns: 1fr; }
  .sp-title { font-size: 24px; }
}

/* Single post TOC: numbered headings (h2 = "1.", nested h3 = "1") like the design */
.sp-toc > ol { counter-reset: sp-h2; }
.sp-toc > ol > li { counter-increment: sp-h2; }
.sp-toc > ol > li > a::before { content: counter(sp-h2) ". "; }
.sp-toc ol ol { counter-reset: sp-h3; }
.sp-toc ol ol > li { counter-increment: sp-h3; }
.sp-toc ol ol > li > a::before { content: counter(sp-h3) " "; }

/* Article cards: image fades to a light silver tone on card hover (per design) */
.dr-card__img, .dr-card__img img { transition: opacity .25s ease, filter .25s ease; }
.dr-card:hover .dr-card__img img { opacity: .75; filter: grayscale(.25); }

/* Smooth scrolling for anchor links (Table of content, in-page links); respects reduced-motion preference */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.sp-content__inner h2, .sp-content__inner h3, .sp-content__inner h4 { scroll-margin-top: 100px; }

/* ===== Blog archive (template "Blog - Listing") ===== */
.bl-sec.brxe-section { padding: 0; }
.bl-sec > .brxe-container { display: flex; flex-direction: column; gap: 20px; }
.bl-hero.brxe-section { background: #eee; border-radius: 10px; padding: 60px 0; margin-top: 20px; }
.bl-hero__in.brxe-container { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 747px; }
.bl-hero__title { font-size: 28px; font-weight: 700; line-height: 1.2; color: #043146; text-align: center; margin: 0; }
.bl-hero__text { font-size: 20px; line-height: 1.5; color: #043146; text-align: center; }
.bl-search { width: 320px; max-width: 100%; }
.bl-search form { position: relative; display: flex; align-items: center; width: 100%; }
.bl-search input[type="search"], .bl-search input[type="text"] { width: 100%; height: 45px; padding: 12px 16px 12px 44px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff url('/wp-content/uploads/cpap-doctor/search.svg') no-repeat 16px center; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); font-size: 14px; line-height: 1.5; color: #043146; }
.bl-search input::placeholder { color: #667085; }
.bl-search button, .bl-search .search-button { display: none; }

.bl-sec:not(.bl-hero) { padding-top: 40px; }
.bl-sec--last { padding-bottom: 60px; }
.brxe-block.bl-feature { flex-direction: row; align-items: flex-start; gap: 20px; width: 100%; }
.brxe-block.bl-big { flex: 1 1 0; min-width: 0; width: auto; padding: 10px 10px 20px; gap: 18px; border-radius: 10px; background: rgba(143, 203, 229, .3); }
.bl-big .dr-card__media { height: 158px; }
.brxe-block.bl-big__body { gap: 18px; width: 100%; }
.bl-big__body > .sp-badge { align-self: flex-start; }
.bl-big__title { font-size: 28px; font-weight: 700; line-height: 1.2; color: #28586f; margin: 0; padding: 0; }
.bl-big__title a { color: inherit; }
.bl-big .dr-card__excerpt { font-size: 20px; padding: 0; }
.bl-big .dr-card__read, .bl-big .dr-card__by { padding: 0; }
.brxe-block.bl-side { flex: 1 1 0; min-width: 0; width: auto; gap: 20px; }
.brxe-block.bl-side__card { flex-direction: row; align-items: center; gap: 18px; padding: 10px; border-radius: 10px; background: #fff; width: 100%; }
.brxe-block.bl-side__media { flex: 0 0 188px; width: 188px; height: 188px; border-radius: 10px; overflow: hidden; }
.bl-side__media .dr-card__img, .bl-side__media img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 10px; }
.brxe-block.bl-side__body { flex: 1 1 0; min-width: 0; width: auto; gap: 10px; }
.bl-side__body > .sp-badge { align-self: flex-start; }
.bl-side__body .dr-card__read, .bl-side__body .dr-card__by, .bl-side__body .dr-card__title, .bl-side__body .dr-card__excerpt { padding: 0; }

.brxe-block.bl-topics { flex-direction: row; align-items: center; gap: 20px; width: 100%; overflow-x: auto; padding: 10px 0; }
.bl-topics__label { font-size: 14px; line-height: 1.5; color: rgba(49, 49, 49, .5); width: auto; white-space: nowrap; }
.brxe-block.bl-topic-loop { width: auto; flex: 0 0 auto; }
.bl-topic { display: inline-flex; align-items: center; height: 48px; padding: 15px 16px; border: 1px solid transparent; border-radius: 5px; font-size: 14px; font-weight: 600; line-height: 1.5; color: #043146; white-space: nowrap; text-decoration: none; transition: background-color .2s, border-color .2s; }
.bl-topic:hover { background: #eee; border-color: #d6d6d6; }
.bl-topic--all { background: #eee; border-color: #d6d6d6; color: #000; }

.bl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; width: 100%; padding: 20px 0; }
.bl-pagination { display: flex; justify-content: center; width: 100%; }
.bl-pagination .bricks-pagination ul { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 10px 0; }
.bl-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 5px; font-size: 14px; font-weight: 600; line-height: 1.5; color: #043146; text-decoration: none; background: transparent; padding: 0; }
.bl-pagination .page-numbers.current { background: #3575db; color: #fff; }
.bl-pagination a.page-numbers:hover { background: #eee; }

.brxe-block.bl-video { width: 100%; padding: 40px; gap: 30px; align-items: center; background: linear-gradient(96deg, #316378 0%, #043146 100%); }
.brxe-block.bl-video__head { align-items: center; gap: 20px; max-width: 833px; width: 100%; text-align: center; }
.bl-video__title { font-size: 28px; font-weight: 700; line-height: 1.2; color: #8fcbe5; margin: 0; text-align: center; }
.bl-video__text { font-size: 20px; line-height: 1.5; color: #fff; text-align: center; }
.brxe-button.bl-video__btn { padding: 16px; height: auto; font-size: 14px; font-weight: 600; color: #fff; border: 1px solid #8fcbe5; background: transparent; border-radius: 0; width: auto; }
.brxe-block.bl-video__grid { flex-direction: row; gap: 20px; width: 100%; }
.brxe-block.bl-vcard { flex: 1 1 0; min-width: 0; width: auto; padding: 10px 10px 20px; gap: 18px; background: #fff; border-radius: 10px; }
.brxe-block.bl-vcard__media { position: relative; width: 100%; height: 211px; align-items: center; justify-content: center; overflow: hidden; }
.bl-vcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brxe-block.bl-vcard__play { position: relative; width: 82px; height: 82px; border-radius: 50%; background: rgba(250, 133, 37, .7); align-items: center; justify-content: center; }
.bl-vcard__arrow { width: 27px; height: 27px; transform: rotate(180deg); }
.bl-vcard__title { font-size: 16px; font-weight: 600; line-height: 1.25; color: #28586f; margin: 0; padding: 0 4px; }

@media (max-width: 1199px) {
  .bl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .brxe-block.bl-feature { flex-direction: column; }
  .brxe-block.bl-big, .brxe-block.bl-side { width: 100%; flex: 0 0 auto; }
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brxe-block.bl-video__grid { flex-direction: column; }
}
@media (max-width: 767px) {
  .bl-hero.brxe-section { padding: 40px 0; }
  .bl-hero__in.brxe-container { padding-left: 20px; padding-right: 20px; }
  .bl-big__title { font-size: 22px; }
  .bl-big .dr-card__excerpt { font-size: 16px; }
  .brxe-block.bl-side__card { flex-direction: column; align-items: stretch; }
  .brxe-block.bl-side__media { width: 100%; flex: 0 0 auto; height: 180px; }
  .bl-grid { grid-template-columns: 1fr; }
  .brxe-block.bl-video { padding: 24px 16px; }
}

/* ===== Product category archive (template "Archive - Product Category") ===== */
.plp-sec.brxe-section { padding: 0; }
.plp-sec > .brxe-container { padding-top: 40px; }
.brxe-block.plp { flex-direction: row; align-items: flex-start; gap: 22px; width: 100%; }
.brxe-block.plp-side { flex: 0 0 300px; width: 300px; gap: 20px; }
.brxe-block.plp-main { flex: 1 1 0; min-width: 0; width: auto; gap: 20px; }

.plp-bc { font-size: 14px; line-height: 1.5; color: #5f6c72; }
.plp-bc ul, .plp-bc ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.plp-bc a { color: #5f6c72; text-decoration: none; }
.brxe-block.plp-intro { gap: 10px; }
.plp-title { font-size: 28px; font-weight: 700; line-height: 1.2; color: #000; margin: 0; }
.plp-desc { font-size: 14px; line-height: 1.5; color: #313131; }
.plp-desc p { margin: 0; }
.brxe-block.plp-filter-head { flex-direction: row; align-items: center; gap: 8px; width: 100%; }
.plp-filter-head__ico { width: 18px; height: 18px; transform: rotate(90deg); flex: 0 0 auto; }
.plp-filter-head__text { font-size: 16px; font-weight: 600; line-height: 1.5; color: #043146; width: auto; }

.brxe-block.plp-filters { width: 100%; gap: 0; }
.brxe-block.plp-group { width: 100%; border-top: 1px solid #d6d6d6; padding-bottom: 20px; gap: 5px; }
.brxe-block.plp-group--links { padding-bottom: 0; gap: 0; }
.plp-group__title { height: 48px; display: flex; align-items: center; padding: 15px 16px; margin: 0; font-size: 14px; font-weight: 600; line-height: 1.5; color: #043146; }
.plp-quick { display: flex; align-items: center; height: 48px; padding: 15px 16px; font-size: 14px; font-weight: 600; line-height: 1.5; color: #28586f; text-decoration: none; }
.plp-quick + .plp-quick { border-top: 1px solid #d6d6d6; }
.plp-quick--best { color: #fe2c2c; }
.plp-checks { border: 0; padding: 0; margin: 0; min-width: 0; }
.plp-checks .brx-filter-legend { display: none; }
.plp-checks .brx-filter-options { list-style: none; margin: 0; padding: 0; }
.plp-checks label { display: flex; align-items: center; gap: 8px; padding: 5px 16px; cursor: pointer; }
.plp-checks .brx-input-indicator { width: 20px; height: 20px; flex: 0 0 auto; border: 1px solid #c9cfd2; border-radius: 2px; background: #fff; position: relative; }
.plp-checks input:checked + .brx-input-indicator { background: #3575db; border-color: #3575db; }
.plp-checks input:checked + .brx-input-indicator::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plp-checks .brx-option-text { font-size: 14px; line-height: 1.5; color: #191c1f; }
.plp-checks .brx-option-count { display: none; }

.plp-range { padding: 0 16px; width: 100%; }
.plp-range .double-slider-wrap { display: block; }
.plp-range .value-wrap { display: flex; justify-content: space-between; font-size: 14px; line-height: 1.5; margin-top: 8px; color: #000; }
.plp-range .slider-base { background: #d6d6d6; height: 4px; border-radius: 2px; }
.plp-range .slider-track { background: #3575db; height: 4px; }
.plp-range .min-max-wrap { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.plp-range .min-max-wrap input { width: 100%; height: 40px; border: 1px solid #e4e7e9; border-radius: 3px; padding: 0 11px; font-size: 14px; color: #77878f; background: #fff; }

/* ad banner */
.brxe-block.plp-ad { position: relative; align-items: center; justify-content: flex-end; gap: 16px; padding: 32px; border-radius: 10px; background: #043146 url('/wp-content/uploads/cpap-plp/ad-banner.png') center / cover no-repeat; overflow: hidden; }
.brxe-block.plp-ad--side { width: 300px; height: 596px; }
.brxe-block.plp-ad--grid { width: 100%; min-height: 468px; }
.plp-ad__logo { width: 132px; height: 51px; object-fit: contain; object-position: bottom; }
.plp-ad__title { font-size: 24px; font-weight: 600; line-height: 1.2; color: #fff; text-align: center; margin: 0; }
.plp-ad__text { font-size: 16px; line-height: 1.5; color: #fff; text-align: center; }
.brxe-block.plp-ad__price { flex-direction: row; align-items: center; justify-content: center; gap: 8px; width: auto; }
.plp-ad__only { font-size: 14px; color: #fff; width: auto; }
.plp-ad__amount { background: #3575db; color: #fff; font-family: 'Public Sans', 'Poppins', sans-serif; font-size: 16px; font-weight: 600; line-height: 24px; padding: 6px 12px; border-radius: 3px; width: auto; }
.brxe-block.plp-ad__btns { gap: 12px; width: 100%; align-items: center; }
.brxe-button.plp-ad__btn { width: 100%; max-width: 248px; justify-content: center; padding: 10px 24px; font-size: 12px; font-weight: 600; line-height: 1.25; color: #fff; border-radius: 2px; }
.brxe-button.plp-ad__btn--cart { background: #fa8525; border: 2px solid #fa8525; }
.brxe-button.plp-ad__btn--view { background: transparent; border: 2px solid #fa8232; }
.brxe-button.plp-ad__btn:hover { opacity: .9; }

/* main */
.brxe-block.plp-promo { position: relative; width: 100%; height: 220px; align-items: center; justify-content: center; border-radius: 0; overflow: hidden; }
.plp-promo__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brxe-block.plp-promo__content { position: relative; flex-direction: row; align-items: center; justify-content: center; gap: 44px; width: auto; }
.plp-promo__vec { width: 212px; height: 163px; }
.plp-promo__asset { width: 309px; height: 193px; object-fit: cover; }
.brxe-block.plp-dots { flex-direction: row; justify-content: center; gap: 14px; width: 100%; margin-top: -10px; }
.plp-dot { width: 37px; height: 4px; border-radius: 22px; background: #eee; }
.plp-dot.is-active { background: #feb62c; }
.brxe-block.plp-bar { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 10px; background: #eee; }
.plp-search { width: 289px; max-width: 100%; }
.plp-search input { width: 100%; height: 34px; padding: 0 12px; border: 1px solid #3575db; border-radius: 0; background: #fff; font-size: 14px; color: #043146; }
.brxe-block.plp-sort { flex-direction: row; align-items: center; gap: 22px; width: auto; }
.plp-sort__label { font-size: 14px; line-height: 1.5; color: rgba(49, 49, 49, .5); width: auto; white-space: nowrap; }
.plp-sort__select { width: 180px; height: 34px; border: 1px solid #3575db; border-radius: 0; background: #fff; padding: 0 15px; font-size: 14px; font-weight: 600; color: #043146; }
.brxe-block.plp-brands { flex-direction: row; gap: 40px; width: 100%; }
.brxe-block.plp-brand { width: 126px; height: 73px; padding: 10px; align-items: center; justify-content: center; background: #fff; border-radius: 10px; }
.brxe-block.plp-brand:first-child { border: 1px solid #d6d6d6; }
.plp-brand__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.brxe-block.plp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: 100%; }
.brxe-block.plp-item { width: 100%; }
.brxe-block.plp-foot { align-items: center; gap: 16px; width: 100%; padding: 20px 0; }
.plp-summary { font-size: 14px; color: #313131; text-align: center; }
.plp-faq-sec.brxe-section { padding: 40px 0; }

/* FAQ block (copied from the Home page styles so it works anywhere) */
.hp-box--grey { background: #eee; }
.hp-faq { flex-direction: row; align-items: center; gap: 40px; border: 1px solid #d6d6d6; padding: 60px 40px; border-radius: 10px; }
.hp-faq__left { flex: 1 1 0; width: auto; gap: 20px; align-items: flex-start; }
.hp-faq__list { flex: 1 1 0; display: flex; flex-direction: column; gap: 20px; width: auto; }
.hp-faq__list > .brxe-block { background: #fff; border: 1px solid #d6d6d6; padding: 0; }
.hp-faq__list .accordion-title-wrapper { padding: 24px 20px; cursor: pointer; }
.hp-faq__list .accordion-title-wrapper h3 { font-size: 16px; font-weight: 600; line-height: 1.25; color: #043146; padding-right: 20px; }
.hp-faq__list .brxe-icon { font-size: 20px; color: #043146; flex: 0 0 auto; }
.hp-faq__list .brx-open .accordion-title-wrapper .brxe-icon, .hp-faq__list .brxe-icon.brx-open { transform: rotate(180deg); }
.hp-faq__list .accordion-content-wrapper { padding: 0 20px 24px; font-size: 14px; line-height: 1.5; color: #313131; }

@media (max-width: 991px) {
  .brxe-block.plp { flex-direction: column; gap: 16px; }
  .brxe-block.plp-side { flex: 0 0 auto; width: 100%; gap: 12px; }
  .plp-filters, .plp-ad--side { display: none; }
  .plp-side.is-open .plp-filters { display: flex; }
  .plp-side.is-open .plp-ad--side { display: flex; width: 100%; }
  .brxe-block.plp-main { width: 100%; }
  .plp-filter-head { cursor: pointer; padding: 15px 0; border-top: 1px solid #d6d6d6; }
  .brxe-block.plp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .brxe-block.plp-brands { gap: 12px; flex-wrap: wrap; }
  .brxe-block.plp-brand { flex: 1 1 calc(50% - 6px); width: auto; }
  .hp-faq { flex-direction: column; align-items: stretch; padding: 32px 16px; gap: 24px; }
}
@media (max-width: 767px) {
  .plp-sec > .brxe-container { padding-top: 0; }
  .brxe-block.plp-promo { height: 160px; }
  .plp-promo__vec { display: none; }
  .plp-promo__asset { width: 220px; height: 138px; }
  .brxe-block.plp-bar { flex-direction: column; align-items: stretch; }
  .brxe-block.plp-sort { justify-content: space-between; width: 100%; }
  .brxe-block.plp-ad--grid { grid-column: 1 / -1; min-height: 380px; }
}

/* PLP: long filter lists scroll inside the sidebar instead of stretching the page */
.plp-checks .brx-filter-options { max-height: 260px; overflow-y: auto; scrollbar-width: thin; }

/* PLP: filter groups are accordions (toggle in plp.js); hide options / groups without data */
.plp-group__title { position: relative; cursor: pointer; padding-right: 40px; user-select: none; }
.plp-group__title::after { content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border: solid #043146; border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.plp-group.is-collapsed .plp-group__title::after { transform: translateY(-30%) rotate(-135deg); }
.plp-group.is-collapsed > :not(.plp-group__title) { display: none; }
.plp-checks li:has(input:disabled), .plp-checks li.brx-option-disabled { display: none; }
.plp-group:not(.plp-group--links):not(:has(.plp-checks li:not(:has(input:disabled)))):not(:has(.plp-range)) { display: none; }

/* PLP: search + sort bar per design */
.plp-search { position: relative; width: 289px; max-width: 100%; height: 34px; background: #fff; border: 1px solid #3575db; }
.plp-search input { width: 100%; height: 32px; padding: 0 44px 0 12px; border: 0; background: transparent; font-size: 14px; line-height: 1.5; color: #043146; }
.plp-search input::placeholder { color: rgba(49, 49, 49, .5); }
.plp-search::after { content: ''; position: absolute; right: 0; top: 0; width: 34px; height: 32px; border-left: 1px solid #3575db; background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233575db' stroke-width='2.4' stroke-linecap='round'><circle cx='10.5' cy='10.5' r='6.5'/><path d='M15.5 15.5L20 20'/></svg>") center / 16px no-repeat; pointer-events: none; }
.plp-sort__select { appearance: none; -webkit-appearance: none; width: 180px; height: 34px; border: 1px solid #3575db; border-radius: 0; padding: 0 40px 0 15px; background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23043146' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M3 6l5 5 5-5'/></svg>") right 15px center / 16px no-repeat; font-size: 14px; font-weight: 600; line-height: 1.5; color: #043146; cursor: pointer; }

/* PLP: accordion title = "+" icon on the left, then the label (design: Filter list / Nav) */
.plp-group__title { gap: 20px; padding: 15px 16px; position: relative; }
.plp-group__title::before { content: ''; flex: 0 0 10px; width: 10px; height: 1.5px; background: #043146; border-radius: 1px; position: static; transform: none; border: 0; margin-top: 0; }
.plp-group__title::after { content: ''; position: absolute; left: 21px; top: 50%; width: 1.5px; height: 10px; background: #043146; border: 0; border-radius: 1px; transform: translateY(-50%); transition: transform .2s, opacity .2s; right: auto; }
.plp-group:not(.is-collapsed) .plp-group__title::after { transform: translateY(-50%) rotate(90deg); opacity: 0; }
.plp-group.is-collapsed .plp-group__title::after { transform: translateY(-50%); opacity: 1; }

/* PLP: no focus outline on the search input and the sort select (the 1px blue border stays) */
.plp-search input,
.plp-search input:focus,
.plp-search input:focus-visible,
.plp-sort__select,
.plp-sort__select:focus,
.plp-sort__select:focus-visible { outline: none; box-shadow: none; }

/* PLP: show every filter option (no inner scrollbar) */
.plp-checks .brx-filter-options { max-height: none; overflow: visible; }

/* PLP: accordion spacing per design (48px title row, 20px bottom padding only while open) */
.brxe-block.plp-group { padding-top: 0; padding-bottom: 20px; gap: 5px; margin: 0; }
.brxe-block.plp-group.is-collapsed { padding-bottom: 0; gap: 0; }
.plp-group__title { height: 48px; min-height: 48px; margin: 0; padding: 15px 16px; line-height: 1.5; box-sizing: border-box; }
.plp-filters { margin: 0; padding: 0; }

/* PLP: do NOT hide options while Bricks disables inputs during the ajax refresh (it made every option vanish for ~2s).
   Empty options are already removed by Bricks ("hide empty"), so only hide groups that really have no options. */
.plp-checks li:has(input:disabled) { display: list-item; }
.plp-group:not(.plp-group--links):not(:has(.plp-checks li)):not(:has(.plp-range)) { display: none; }
.plp-checks.brx-loading, .plp-checks[aria-busy="true"] { opacity: .6; pointer-events: none; transition: opacity .15s; }

/* PLP brand row: driven by the product_brand terms (logo = ACF "Brand logo"); click applies the brand filter */
.brxe-block.plp-brands { flex-direction: row; flex-wrap: wrap; gap: 40px; }
.brxe-block.plp-brand-loop { width: auto; flex: 0 0 auto; }
.brxe-block.plp-brand-loop:has(.plp-brand:empty) { display: none; }
a.plp-brand { display: flex; align-items: center; justify-content: center; width: 126px; height: 73px; padding: 10px; box-sizing: border-box; background: #fff; border: 1px solid transparent; border-radius: 10px; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
a.plp-brand:empty { display: none; }
a.plp-brand:hover { border-color: #d6d6d6; }
a.plp-brand[data-active="1"] { border-color: #d6d6d6; box-shadow: 0 1px 4px rgba(4, 49, 70, .12); }
a.plp-brand img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }

/* PLP: every product card in a row has the same height; price + button stay pinned to the bottom */
.brxe-block.plp-grid { align-items: stretch; }
.brxe-block.plp-item { display: flex; height: 100%; }
.plp-item > .plp-card { display: flex; flex: 1 1 auto; width: 100%; height: 100%; }
.plp-item .hp-pcard { flex: 1 1 auto; width: 100%; height: 100%; }
.plp-item .hp-pcard__price { margin-top: auto; }
.plp-item .hp-pcard__ship, .plp-item .hp-pcard__cart { flex: 0 0 auto; }
.plp-grid > .plp-ad--grid { height: 100%; }

/* ===== PLP: hover / state design (Figma: brand chip + "From Elements" checkbox) ===== */
/* brand chip: white card with border; hover / active = blue card with the logo turned white */
a.plp-brand { background: #fff; border: 1px solid #d6d6d6; transition: background-color .2s, border-color .2s; }
a.plp-brand img { transition: filter .2s; }
a.plp-brand:hover, a.plp-brand[data-active="1"] { background: #3575db; border-color: #3575db; box-shadow: none; }
a.plp-brand:hover img, a.plp-brand[data-active="1"] img { filter: brightness(0) invert(1); }

/* checkbox: normal / hover (2px blue border) / checked (blue + check) / disabled */
.plp-checks .brx-input-indicator { width: 20px; height: 20px; border: 1px solid #c9cfd2; border-radius: 2px; background: #fff; box-sizing: border-box; transition: border-color .15s, background-color .15s; }
.plp-checks label:hover .brx-input-indicator { border: 2px solid #3575db; }
.plp-checks input:checked + .brx-input-indicator { background: #3575db; border: 1px solid #3575db; }
.plp-checks input:checked + .brx-input-indicator::after { left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plp-checks input:disabled + .brx-input-indicator { background: #f2f4f5; border-color: #c9cfd2; }
.plp-checks label:has(input:disabled):hover .brx-input-indicator { border: 1px solid #c9cfd2; }
.plp-checks label:has(input:disabled) { cursor: default; }

/* ===== PLP mobile: filters are an off-canvas that slides in from the left ===== */
.plp-drawer-close { display: none; }
.plp-backdrop { display: none; }

@media (max-width: 991px) {
  /* the filter bar opens the drawer; text reads "Filter and sort" */
  .brxe-block.plp-filter-head { padding: 15px 10px; border-top: 0; background: #fff; }
  .plp-filter-head__text { font-size: 0; }
  .plp-filter-head__text::after { content: 'Filter and sort'; font-size: 16px; font-weight: 600; line-height: 1.5; color: #043146; }

  .plp-side .plp-filters,
  .plp-side.is-open .plp-filters { display: flex; }
  .brxe-block.plp-filters { position: fixed; top: 0; left: 0; bottom: 0; z-index: 10001; width: min(88vw, 380px); max-width: none; margin: 0; padding: 56px 0 24px; background: #fff; overflow-y: auto; transform: translateX(-100%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; box-shadow: 4px 0 24px rgba(4, 49, 70, .18); }
  .plp-side.is-open .plp-filters { transform: translateX(0); visibility: visible; transition: transform .3s ease; }

  .plp-backdrop { display: block; position: fixed; inset: 0; z-index: 10000; background: rgba(4, 49, 70, .45); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
  .plp-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease; }

  .plp-drawer-close { display: flex; align-items: center; justify-content: center; position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; font-size: 28px; line-height: 1; color: #043146; }
  .plp-filters .plp-bar { flex-direction: column; align-items: stretch; margin: 0 0 16px; padding: 10px 16px; }
  .plp-filters .plp-search { width: 100%; }
  .plp-filters .plp-sort { width: 100%; justify-content: space-between; }

  .plp-side .plp-ad--side { display: none; }
  .plp-side.is-open .plp-ad--side { display: none; }

  /* intro text: 3 lines + Read more */
  .plp-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
  .plp-desc.is-expanded { display: block; -webkit-line-clamp: unset; }
  .plp-readmore { align-self: flex-start; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 600; color: #043146; text-decoration: underline; cursor: pointer; }
  body.plp-drawer-open { overflow: hidden; }
}

/* PLP off-canvas: single scrolling column (Bricks blocks wrap by default, which spread the groups sideways) */
@media (max-width: 991px) {
  .brxe-block.plp-filters { flex-wrap: nowrap; flex-direction: column; align-items: stretch; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .brxe-block.plp-filters > * { flex-shrink: 0; }
  .plp-filters .plp-bar { order: 0; }
  .plp-filters .plp-brands { gap: 12px; padding: 0 16px 16px; flex-wrap: wrap; }
  .plp-filters .plp-brand-loop { flex: 0 0 calc(50% - 6px); }
  .plp-filters a.plp-brand { width: 100%; }
}

/* PLP mobile: breadcrumb sits 20px below the shipping strip (Figma: 61px row, text at 20px) */
@media (max-width: 991px) {
  .plp-bc { padding-top: 20px; }
}

/* PLP promo slider: one flattened image per slide, Splide pagination styled as pills (Figma: 37x4, active #feb62c) */
.brxe-slider-nested.plp-slider { width: 100%; position: relative; }
.plp-slider .splide__track { width: 100%; }
.brxe-block.plp-slide { width: 100%; height: 220px; padding: 0; overflow: hidden; }
.plp-slide__img, .plp-slide__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plp-slider .splide__pagination { position: static; display: flex; justify-content: center; gap: 14px; margin: 10px 0 0; padding: 0; list-style: none; }
.plp-slider .splide__pagination__page { width: 37px; height: 4px; padding: 0; border: 0; border-radius: 22px; background: #eee; opacity: 1; transform: none; transition: background-color .2s; }
.plp-slider .splide__pagination__page.is-active { background: #feb62c; transform: none; }
@media (max-width: 767px) { .brxe-block.plp-slide { height: 160px; } }

/* Pagination: <ul class="page-numbers"> is the list, only the li > a/span are the 42px squares (Figma: 42x42, active #3575db, r5) */
.bl-pagination ul.page-numbers { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; width: auto; height: auto; margin: 0; padding: 10px 0; list-style: none; background: none; }
.bl-pagination ul.page-numbers > li { margin: 0; padding: 0; list-style: none; }
.bl-pagination ul.page-numbers > li > .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border-radius: 5px; font-size: 14px; font-weight: 600; line-height: 1.5; color: #043146; text-decoration: none; background: transparent; box-sizing: border-box; transition: background-color .2s, color .2s; }
.bl-pagination ul.page-numbers > li > .page-numbers.current { background: #3575db; color: #fff; }
.bl-pagination ul.page-numbers > li > a.page-numbers:hover { background: #eee; }
.bl-pagination ul.page-numbers > li > .page-numbers.dots { background: transparent; }
.bl-pagination ul.page-numbers > li > .prev, .bl-pagination ul.page-numbers > li > .next { font-size: 0; }
.bl-pagination ul.page-numbers > li > .prev::before, .bl-pagination ul.page-numbers > li > .next::before { content: ''; width: 8px; height: 8px; border: solid #043146; border-width: 0 2px 2px 0; display: block; }
.bl-pagination ul.page-numbers > li > .prev::before { transform: rotate(135deg); margin-left: 4px; }
.bl-pagination ul.page-numbers > li > .next::before { transform: rotate(-45deg); margin-right: 4px; }

/* PLP slider dots: centered under the banner */
.plp-slider .splide__pagination { position: static; left: auto; right: auto; bottom: auto; width: 100%; display: flex; justify-content: center; align-items: center; gap: 14px; margin: 10px 0 0; padding: 0; transform: none; }
.plp-slider .splide__pagination li { margin: 0; display: flex; }

/* PLP mobile slider: show the whole banner (no side crop) and keep the dots clear of the next block */
.brxe-slider-nested.plp-slider { padding-bottom: 16px; }
@media (max-width: 767px) {
  .brxe-block.plp-slide { height: auto; }
  .plp-slide__img, .plp-slide__img img { height: auto; aspect-ratio: 939 / 220; object-fit: cover; }
  .brxe-slider-nested.plp-slider { padding-bottom: 20px; margin-bottom: 8px; }
  .plp-slider .splide__pagination { margin-top: 12px; }
}

/* PLP mobile: compact 2-column product card (Figma mobile: 170px content, 92px image, 12px title, 8-10px meta) */
@media (max-width: 767px) {
  .plp-item .hp-pcard { padding: 10px; gap: 8px; border-radius: 8px; }
  .plp-item .hp-pcard__top { gap: 4px; }
  .plp-item .hp-badge { font-size: 9px; padding: 2px 4px; line-height: 1.25; }
  .plp-item .hp-pcard__img, .plp-item .hp-pcard__img img { width: 100%; height: 92px; object-fit: contain; }
  .plp-item .hp-pcard__brand { font-size: 10px; line-height: 1.25; }
  .plp-item .hp-pcard__title, .plp-item .hp-pcard__title a { font-size: 12px; line-height: 1.3; font-weight: 600; word-break: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
  .plp-item .hp-pcard__rating { transform: scale(.85); transform-origin: center; }
  .plp-item .hp-pcard__variants { font-size: 10px; line-height: 1.25; white-space: nowrap; }
  .plp-item .hp-pcard__price .price { gap: 0; }
  .plp-item .hp-pcard__price .price ins .woocommerce-Price-amount, .plp-item .hp-pcard__price .price > .woocommerce-Price-amount, .plp-item .hp-pcard__price .price .woocommerce-Price-amount { font-size: 20px; line-height: 1.2; white-space: nowrap; }
  .plp-item .hp-pcard__price .price del, .plp-item .hp-pcard__price .price del .woocommerce-Price-amount { font-size: 10px; }
  .plp-item .hp-pcard__price .price .screen-reader-text + .woocommerce-Price-amount, .plp-item .hp-pcard__price .price > span[aria-hidden] { font-size: 12px; }
  .plp-item .hp-pcard__ship { font-size: 10px; line-height: 1.25; padding: 4px 10px; }
  .plp-item .hp-pcard__cart, .plp-item .hp-pcard__cart .button, .plp-item .hp-pcard__cart a.button, .plp-item .hp-pcard__cart button { width: 100%; }
  .plp-item .hp-pcard__cart .button, .plp-item .hp-pcard__cart a.button, .plp-item .hp-pcard__cart button { height: 38px; padding: 0 8px; font-size: 12px; line-height: 1.25; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; }
}

/* PLP mobile: single price and price range use the same price font (range markup uses aria-hidden spans) */
@media (max-width: 767px) {
  .plp-item .hp-pcard__price .price > .woocommerce-Price-amount,
  .plp-item .hp-pcard__price .price > .woocommerce-Price-amount bdi,
  .plp-item .hp-pcard__price .price ins .woocommerce-Price-amount,
  .plp-item .hp-pcard__price .price span.woocommerce-Price-amount[aria-hidden="true"] {
    font-family: "Chonky Brush", Poppins, sans-serif; font-style: italic; font-weight: 800; font-size: 20px; line-height: 1.2; color: #043146; white-space: nowrap;
  }
  .plp-item .hp-pcard__price .price > span[aria-hidden="true"]:not(.woocommerce-Price-amount) { font-size: 14px; line-height: 1; color: #043146; }
  .plp-item .hp-pcard__price .price del .woocommerce-Price-amount { font-family: Poppins, sans-serif; font-style: normal; font-weight: 400; font-size: 10px; }
}

/* ===== Single product (template "Single - Product") ===== */
.pdp-sec.brxe-section { padding: 0; }
.pdp-sec > .brxe-container { display: flex; flex-direction: column; gap: 40px; padding-top: 40px; }
.pdp-bc { margin-bottom: -20px; }

.brxe-block.pdp-top { flex-direction: row; align-items: flex-start; gap: 22px; width: 100%; }

/* gallery: 2-column grid */
.brxe-block.pdp-gallery { flex: 1 1 0; min-width: 0; width: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pdp-gallery .brxe-image-gallery, .pdp-gallery .brxe-image-gallery > ul, .pdp-gallery .brxe-image-gallery .bricks-layout-wrapper { display: contents; }
.pdp-gallery .bricks-layout-item, .pdp-gallery .brxe-image { margin: 0; }
.pdp-gallery img, .pdp-gallery__img, .pdp-gallery__img img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; border: 1px solid #eee; border-radius: 10px; display: block; }

/* info column */
.brxe-block.pdp-info { flex: 0 0 397px; width: 397px; gap: 20px; }
.pdp-brand { font-size: 16px; font-weight: 600; line-height: 1.5; color: #5f6c72; }
.brxe-block.pdp-chips { flex-direction: row; flex-wrap: wrap; gap: 5px; width: 100%; }
.pdp-chip { width: auto; padding: 3px 6px; border-radius: 3.5px 3.5px 3.5px 0; font-size: 11.5px; font-weight: 600; line-height: 1.25; text-align: center; white-space: nowrap; }
.pdp-chip--cat { background: #8fcbe5; color: #043146; }
.pdp-chip--sale { background: #ff0004; color: #fff; }
.pdp-chip a { color: inherit; text-decoration: none; }
.pdp-sku { font-size: 14px; line-height: 1.5; color: rgba(49, 49, 49, .5); margin-top: -10px; }
.pdp-title { font-size: 24px; font-weight: 600; line-height: 1.2; color: #000; margin: 0; }
.pdp-rating .star-rating { font-size: 14px; }
.pdp-rating { font-size: 14px; color: #313131; }
.brxe-block.pdp-stock { flex-direction: row; align-items: center; gap: 10px; width: 100%; }
.pdp-stock__text, .pdp-stock__text p { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.5; color: #00e85d; }
.pdp-stock__text::before { content: ''; display: inline-block; vertical-align: -4px; width: 20px; height: 20px; margin-right: 10px; border-radius: 50%; border: 2px solid #00e85d; background: radial-gradient(circle, #00e85d 0 45%, transparent 48%); }
.pdp-stock__text .out-of-stock { color: #ee5858; }
.brxe-block.pdp-price { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 8px; width: 100%; }
.pdp-price__amount, .pdp-price__amount p { margin: 0; font-size: 20px; line-height: 1.2; color: #313131; }
.pdp-price__amount .price { display: flex; flex-direction: row-reverse; gap: 8px; align-items: baseline; justify-content: flex-end; }
.pdp-price__amount ins { text-decoration: none; background: none; font-weight: 600; }
.pdp-price__amount del { font-size: 20px; color: rgba(49, 49, 49, .5); text-decoration: line-through; }
.pdp-price__save { width: auto; font-size: 20px; line-height: 1.5; color: #ff0004; }

/* add to cart: variations, qty, button */
.pdp-cart { width: 100%; }
.pdp-cart table.variations { width: 100%; border: 0; margin: 0 0 10px; }
.pdp-cart table.variations th, .pdp-cart table.variations td { display: block; padding: 0; border: 0; text-align: left; }
.pdp-cart table.variations th.label label { font-size: 14px; font-weight: 600; line-height: 1.5; color: #313131; }
.pdp-cart table.variations select { width: 100%; height: 38px; padding: 0 16px; border: 1px solid #3575db; border-radius: 10px; font-size: 14px; font-weight: 600; color: #043146; appearance: none; background: linear-gradient(125deg, rgba(143, 203, 229, .1) 55%, rgba(151, 71, 255, .1) 134%) , url('/wp-content/uploads/cpap-pdp/arrow-down.svg') right 16px center / 10px no-repeat; }
.pdp-cart .reset_variations { font-size: 12px; color: #3575db; }
.pdp-cart .woocommerce-variation-price { display: none; }
.pdp-cart .quantity { display: inline-flex; align-items: center; height: 38px; margin: 10px 0 0; border: 1px solid #3575db; border-radius: 10px; background: linear-gradient(100deg, rgba(143, 203, 229, .1) 55%, rgba(151, 71, 255, .1) 134%); overflow: hidden; }
.pdp-cart .quantity input.qty { width: 56px; height: 36px; border: 0; background: transparent; text-align: center; font-size: 14px; font-weight: 600; color: #043146; -moz-appearance: textfield; }
.pdp-cart .quantity .minus, .pdp-cart .quantity .plus { width: 30px; height: 36px; border: 0; background: transparent; font-size: 14px; font-weight: 600; color: #043146; cursor: pointer; }
.pdp-cart .single_add_to_cart_button { display: block; width: 100%; margin-top: 20px; padding: 10px 16px; border: 0; border-radius: 0; background: #3575db; color: #fff; font-family: "Chonky Brush", Poppins, sans-serif; font-style: italic; font-size: 24px; font-weight: 400; line-height: 1.5; text-transform: none; cursor: pointer; transition: background-color .2s; }
.pdp-cart .single_add_to_cart_button:hover { background: #2a5fb8; }

/* benefits */
.brxe-block.pdp-benefits { width: 100%; gap: 0; }
.brxe-block.pdp-benefit { flex-direction: row; align-items: center; gap: 20px; width: 100%; min-height: 48px; padding: 15px 16px; border-top: 1px solid #d6d6d6; }
.brxe-block.pdp-benefit--note { align-items: flex-start; }
.pdp-benefit__ico { width: 16px; height: 16px; flex: 0 0 auto; }
.pdp-benefit__text { font-size: 14px; font-weight: 600; line-height: 1.5; color: #043146; width: auto; flex: 1 1 0; }
.pdp-benefit__text a { color: #3575db; text-decoration: underline; }
.pdp-benefit--note .pdp-benefit__text { font-weight: 400; }
.pdp-benefit--note .pdp-benefit__text a { color: inherit; }

/* cards */
.brxe-block.pdp-cards { width: 100%; gap: 10px; }
.brxe-block.pdp-card { width: 100%; border-radius: 10px; padding: 20px; }
.brxe-block.pdp-card--mgs { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(105deg, #c4aad9 -10%, #8752db 20%, #7335db 55%, #8752db 100%); }
.pdp-card__logo { width: 93px; height: 45px; object-fit: contain; }
.pdp-card__mgs-text { font-size: 16px; line-height: 1; color: #fff; text-align: right; width: auto; }
.brxe-button.pdp-card__mgs-btn { align-self: flex-end; padding: 5px 9px; font-size: 7.5px; font-weight: 700; color: #fff; background: #fa8525; border-radius: 4.7px; min-height: 0; }
.brxe-block.pdp-card--bnpl { background: #eee; gap: 10px; }
.pdp-card__title { font-size: 16px; font-weight: 600; line-height: 1.5; color: #043146; margin: 0; }
.brxe-block.pdp-bnpl { flex-direction: row; align-items: center; gap: 9px; width: 100%; }
.pdp-bnpl__logo { height: 32px; width: auto; object-fit: contain; }
.pdp-bnpl__logo--ap { height: 28px; margin-left: 10px; }
.pdp-bnpl__info { width: 16px; height: 16px; }
.brxe-block.pdp-card--help { flex-direction: row; align-items: flex-start; gap: 10px; border: 1px solid #8fcbe5; background: #fff; min-height: 172px; }
.brxe-block.pdp-help__body { flex: 1 1 0; width: auto; gap: 7px; }
.pdp-help__text { font-size: 14px; line-height: 1.5; color: #043146; }
.brxe-block.pdp-help__btns { flex-direction: row; gap: 12px; width: 100%; }
.brxe-button.pdp-btn { flex: 1 1 0; min-height: 40px; padding: 10px 14px; border-radius: 2px; font-size: 12px; font-weight: 600; line-height: 1.25; justify-content: center; }
.brxe-button.pdp-btn--dark { background: #043146; color: #fff; }
.brxe-button.pdp-btn--ghost { background: transparent; color: #043146; }
.pdp-help__badge { width: 94px; height: 114px; object-fit: cover; flex: 0 0 auto; }

/* description / spec / ctas */
.brxe-block.pdp-desc { width: 100%; gap: 40px; padding: 40px; background: #eee; border: 1px solid #d6d6d6; border-radius: 10px; }
.brxe-block.pdp-tabs { flex-direction: row; justify-content: center; gap: 20px; width: 100%; border-bottom: 1px solid #a3a3a3; overflow-x: auto; }
.pdp-tab { display: flex; align-items: center; height: 48px; padding: 15px 16px; font-size: 16px; font-weight: 600; line-height: 1.5; color: #a3a3a3; text-decoration: none; white-space: nowrap; }
.pdp-tab.is-active, .pdp-tab:hover { color: #043146; }
.brxe-block.pdp-desc__body { width: 100%; max-width: 920px; margin: 0 auto; padding: 15px 16px; }
.pdp-content { font-size: 14px; line-height: 1.5; color: #043146; }
.pdp-content h2, .pdp-content h3 { font-size: 24px; font-weight: 600; line-height: 1.2; color: #043146; margin: 24px 0 12px; }
.pdp-content a { color: #043146; text-decoration: underline; }
.pdp-content ul { padding-left: 20px; }
.brxe-block.pdp-spec { width: 100%; max-width: 496px; margin: 0 auto; }
.pdp-spec__table table { width: 100%; border: 1px solid #d6d6d6; border-radius: 10px; border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; }
.pdp-spec__table th, .pdp-spec__table td { padding: 10px 12px; border-top: 1px solid #d6d6d6; border-left: 1px solid #d6d6d6; font-family: Inter, Poppins, sans-serif; font-size: 12px; line-height: 1.3; color: #000; text-align: left; font-weight: 400; background: transparent; }
.pdp-spec__table tr:nth-child(even) th, .pdp-spec__table tr:nth-child(even) td { background: #eee; }
.pdp-spec__table th { font-weight: 600; }
.brxe-block.pdp-ctas { flex-direction: row; gap: 40px; width: 100%; max-width: 1160px; margin: 0 auto; }
.brxe-block.pdp-cta { flex: 1 1 0; min-width: 0; width: auto; align-items: center; justify-content: center; gap: 10px; padding: 60px 20px; border-radius: 10px; background-size: cover; background-position: center; }
.brxe-block.pdp-cta--fit { background-image: url('/wp-content/uploads/cpap-pdp/cta-1.png'); }
.brxe-block.pdp-cta--help { background-image: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url('/wp-content/uploads/cpap-pdp/cta-2.png'); }
.pdp-cta__title { font-size: 24px; font-weight: 600; line-height: 1.5; color: #fff; text-align: center; margin: 0; }
.pdp-cta__text { font-size: 12px; line-height: 1.5; color: #fff; text-align: center; }
.brxe-button.pdp-cta__btn { padding: 15px 20px; font-size: 12px; font-weight: 600; line-height: 1.25; border-radius: 0; }
.brxe-button.pdp-cta__btn--yellow { background: #fecd44; color: #000; }
.brxe-button.pdp-cta__btn--blue { background: #3575db; color: #fff; }

/* reviews + related */
.brxe-block.pdp-reviews { width: 100%; gap: 20px; }
.pdp-h2 { font-size: 28px; font-weight: 700; line-height: 1.2; color: #043146; margin: 0; }
.pdp-reviews__list #reviews { display: flex; flex-direction: column; gap: 20px; }
.pdp-reviews__list .woocommerce-Reviews-title { font-size: 20px; font-weight: 600; color: #043146; }
.pdp-reviews__list ol.commentlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.pdp-reviews__list ol.commentlist li { padding: 20px; border: 1px solid #eee; border-radius: 10px; }
.pdp-reviews__list .comment-text { margin: 0; font-size: 14px; line-height: 1.5; color: #313131; }
.pdp-reviews__list .comment_container { display: flex; gap: 16px; }
.pdp-reviews__list img.avatar { width: 48px; height: 48px; border-radius: 50%; }
.brxe-block.pdp-related { width: 100%; gap: 30px; padding: 40px; background: linear-gradient(96deg, #316378 0%, #043146 100%); }
.pdp-related__title { font-size: 28px; font-weight: 700; line-height: 1.2; color: #8fcbe5; margin: 0; }
.pdp-related__grid ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.pdp-related__grid ul.products li.product { margin: 0; width: auto; padding: 20px; background: #fff; border: 1px solid #eee; border-radius: 10px; text-align: center; float: none; }
.pdp-related__grid .woocommerce-loop-product__title { font-size: 14px; font-weight: 600; line-height: 1.25; color: #043146; }
.pdp-related__grid .price { color: #043146; font-weight: 600; }
.pdp-related__grid .button { display: block; margin-top: 10px; background: #043146; color: #fff; border-radius: 0; padding: 12px; font-size: 12px; font-weight: 600; text-align: center; }
.pdp-related__grid > h2 { display: none; }

@media (max-width: 991px) {
  .brxe-block.pdp-top { flex-direction: column; }
  .brxe-block.pdp-gallery, .brxe-block.pdp-info { width: 100%; flex: 0 0 auto; }
  .brxe-block.pdp-ctas { flex-direction: column; gap: 20px; }
  .brxe-block.pdp-desc { padding: 24px 16px; }
  .pdp-related__grid ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brxe-block.pdp-tabs { justify-content: flex-start; }
}
@media (max-width: 767px) {
  .pdp-sec > .brxe-container { gap: 24px; padding-top: 20px; }
  .brxe-block.pdp-gallery { gap: 10px; }
  .pdp-title { font-size: 20px; }
  .brxe-block.pdp-related { padding: 24px 16px; }
  .pdp-related__grid ul.products { grid-template-columns: 1fr; }
  .brxe-block.pdp-card--help { flex-direction: column; }
  .pdp-help__badge { align-self: center; }
}

/* PDP header details */
.pdp-chips__cats { display: flex; flex-wrap: wrap; gap: 5px; width: auto; }
.pdp-chip__link { display: inline-block; padding: 3px 6px; border-radius: 3.5px 3.5px 3.5px 0; background: #8fcbe5; color: #043146; font-size: 11.5px; font-weight: 600; line-height: 1.25; text-decoration: none; white-space: nowrap; }
.pdp-chip__link:nth-child(2) { background: #feb62c; }
.pdp-sku:empty { display: none; }
.pdp-stock__text--out { color: #ee5858; }
.pdp-stock__text--out::before { border-color: #ee5858; background: radial-gradient(circle, #ee5858 0 45%, transparent 48%); }
.brxe-block.pdp-info, .brxe-block.pdp-gallery { overflow-wrap: anywhere; }

/* PDP gallery: featured + gallery images in a 2-column grid (Figma 396px squares) */
.brxe-block.pdp-gallery { display: block; }
.pdp-gallery ul.pdp-gallery__grid, .pdp-gallery .bricks-layout-wrapper.pdp-gallery__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; width: 100%; }
.pdp-gallery__grid > li.bricks-layout-item { margin: 0; padding: 0; width: auto; }
.pdp-gallery__grid figure { margin: 0; }
.pdp-gallery__grid img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; border: 1px solid #eee; border-radius: 10px; display: block; }
@media (max-width: 767px) { .pdp-gallery ul.pdp-gallery__grid { gap: 10px; } }

/* PDP gallery lightbox: links wrap the image, show zoom cursor */
.pdp-gallery__grid figure > a { display: block; cursor: zoom-in; }
.pdp-gallery__grid figure > a img { transition: transform .25s ease; }
.pdp-gallery__grid figure > a:hover img { transform: scale(1.02); }
.pdp-gallery__grid figure { overflow: hidden; border-radius: 10px; }

/* PDP lightbox thumbnails (Bricks "Lightbox thumbnails"): active thumb outlined in the brand blue */
.pswp__thumbnail-nav-wrapper .pswp__thumbnail-nav { gap: 8px; }
.pswp__thumbnail-nav img, .pswp__thumbnail-nav .pswp__thumbnail { border-radius: 6px; opacity: .6; transition: opacity .2s, outline-color .2s; outline: 2px solid transparent; outline-offset: 0; cursor: pointer; }
.pswp__thumbnail-nav .is-active img, .pswp__thumbnail-nav img.is-active, .pswp__thumbnail-nav [aria-current="true"] img, .pswp__thumbnail-nav img:hover { opacity: 1; outline-color: #3575db; }

/* PDP: description tabs stay pinned while scrolling (header is not sticky, so top: 0; admin bar offset when logged in) */
.brxe-block.pdp-tabs { position: sticky; top: 0; z-index: 20; background: #eee; margin-top: -40px; padding-top: 40px; }
.admin-bar .brxe-block.pdp-tabs { top: 32px; }
@media (max-width: 782px) { .admin-bar .brxe-block.pdp-tabs { top: 46px; } }
@media (max-width: 991px) { .brxe-block.pdp-tabs { margin-top: -24px; padding-top: 24px; } }
.pdp-tab { transition: color .2s; }
/* anchors land below the pinned bar */
#pdp-description, #pdp-specification, #pdp-reviews { scroll-margin-top: 110px; }

/* PDP: the tab bar is the first child of .pdp-body (description + reviews), so it stays pinned through both */
.brxe-block.pdp-body { width: 100%; gap: 0; }
.brxe-block.pdp-body > .pdp-tabs { position: sticky; top: 0; z-index: 20; margin: 0; padding: 40px 40px 0; background: #eee; border: 1px solid #d6d6d6; border-bottom: 0; border-radius: 10px 10px 0 0; box-sizing: border-box; }
.admin-bar .brxe-block.pdp-body > .pdp-tabs { top: 32px; }
.brxe-block.pdp-body > .pdp-tabs::after { content: ''; position: absolute; left: 40px; right: 40px; bottom: 0; height: 1px; background: #a3a3a3; }
.brxe-block.pdp-body > .pdp-desc { border-top: 0; border-radius: 0 0 10px 10px; padding-top: 40px; }
.brxe-block.pdp-body > .pdp-reviews { margin-top: 40px; }
@media (max-width: 991px) { .brxe-block.pdp-body > .pdp-tabs { padding: 24px 16px 0; } .brxe-block.pdp-body > .pdp-tabs::after { left: 16px; right: 16px; } }

/* ===== PDP: reviews layout (Figma "Customer review") + Exclusive Deal ===== */
.brxe-block.pdp-reviews { width: 100%; gap: 32px; align-items: stretch; }
.pdp-reviews > .pdp-h2 { font-size: 24px; font-weight: 600; line-height: 1.2; color: #043146; text-align: center; }

/* summary: big average + stars + count */
.brxe-block.pdp-rsum { flex-direction: row; align-items: center; justify-content: center; gap: 30px; width: 100%; }
.brxe-block.pdp-rsum:has(.pdp-rsum__num:empty) { display: none; }
.pdp-rsum__num { font-size: 96px; font-weight: 600; line-height: 1.2; color: #043146; width: auto; }
.brxe-block.pdp-rsum__side { align-items: center; justify-content: center; gap: 4px; width: auto; }
.pdp-rsum__stars { width: auto; line-height: 0; }
.pdp-rsum__count { width: auto; font-size: 14px; line-height: 1.5; color: #043146; }
.pdp-stars { display: inline-flex; gap: 4px; }
.pdp-stars__star { position: relative; width: 20px; height: 20px; background: #a3a3a3; -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; --star: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l2.9 6.9 7.1.6-5.4 4.7 1.7 7.1L12 17.8 5.7 21.3l1.7-7.1L2 9.5l7.1-.6z'/></svg>"); }
.pdp-stars__star::after { content: ''; position: absolute; inset: 0; width: var(--fill, 0%); background: #043146; }

/* review list + form box */
.pdp-reviews__list { width: 100%; padding: 40px; border: 1px solid #d6d6d6; border-radius: 10px; box-sizing: border-box; }
.pdp-reviews__list #reviews { display: flex; flex-direction: column; gap: 36px; }
.pdp-reviews__list #comments { display: flex; flex-direction: column; gap: 24px; }
.pdp-reviews__list .woocommerce-Reviews-title { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.2; color: #043146; }
.pdp-reviews__list .woocommerce-noreviews { margin: 0; font-size: 14px; line-height: 1.5; color: #313131; }
.pdp-reviews__list ol.commentlist { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 0; list-style: none; }
.pdp-reviews__list ol.commentlist li.review { padding: 20px; border: 1px solid #eee; border-radius: 10px; background: #fff; }
.pdp-reviews__list ol.commentlist li .comment_container { display: flex; align-items: flex-start; gap: 16px; }
.pdp-reviews__list ol.commentlist li img.avatar { position: static; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; flex: 0 0 auto; }
.pdp-reviews__list ol.commentlist li .comment-text { flex: 1 1 0; margin: 0; padding: 0; border: 0; }
.pdp-reviews__list .star-rating { margin: 0 0 6px; color: #043146; }
.pdp-reviews__list .meta { margin: 0 0 6px; font-size: 14px; color: #313131; }
.pdp-reviews__list .description p { margin: 0; font-size: 14px; line-height: 1.5; color: #313131; }

/* review form */
.pdp-reviews__list #review_form_wrapper { padding-top: 24px; border-top: 1px solid #eee; }
.pdp-reviews__list #reply-title { display: block; margin: 0 0 16px; font-size: 20px; font-weight: 600; line-height: 1.2; color: #043146; }
.pdp-reviews__list .comment-form { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.pdp-reviews__list .comment-form p { margin: 0; }
.pdp-reviews__list .comment-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: #043146; }
.pdp-reviews__list .comment-form input[type="text"], .pdp-reviews__list .comment-form input[type="email"], .pdp-reviews__list .comment-form textarea { width: 100%; padding: 10px 14px; border: 1px solid #d6d6d6; border-radius: 6px; font-size: 14px; color: #043146; background: #fff; box-sizing: border-box; }
.pdp-reviews__list .comment-form textarea { min-height: 140px; resize: vertical; }
.pdp-reviews__list .comment-form input:focus, .pdp-reviews__list .comment-form textarea:focus { outline: none; border-color: #3575db; }
.pdp-reviews__list p.stars a { color: #043146; }
.pdp-reviews__list .form-submit .submit { padding: 12px 28px; border: 0; border-radius: 0; background: #3575db; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .2s; }
.pdp-reviews__list .form-submit .submit:hover { background: #2a5fb8; }

/* Exclusive Deal (static) */
.brxe-block.pdp-deal { width: 100%; gap: 10px; padding: 20px; background: rgba(143, 203, 229, .3); border-radius: 10px; }
.pdp-deal__title { position: relative; margin: 0; padding-left: 20px; font-family: "Chonky Brush", Poppins, sans-serif; font-style: italic; font-size: 36px; font-weight: 400; line-height: 1.25; color: #000; }
.pdp-deal__title::before { content: ''; position: absolute; left: 0; top: 50%; width: 5px; height: 50px; transform: translateY(-50%); background: #feb62c; }
.brxe-block.pdp-deal__row { flex-direction: row; align-items: stretch; gap: 20px; width: 100%; padding: 15px 16px; }
.brxe-block.pdp-deal__item { flex: 1 1 0; min-width: 0; width: auto; padding: 10px; align-items: center; justify-content: center; }
.pdp-deal__img, .pdp-deal__img img { width: 100%; height: auto; aspect-ratio: 1080 / 1399; object-fit: cover; border-radius: 0; display: block; }

@media (max-width: 991px) {
  .brxe-block.pdp-deal__row { flex-direction: column; padding: 10px 0; }
  .pdp-rsum__num { font-size: 64px; }
  .pdp-reviews__list { padding: 20px 16px; }
}
@media (max-width: 767px) {
  .pdp-deal__title { font-size: 28px; }
  .brxe-block.pdp-rsum { gap: 16px; }
}

/* PDP "Help, advice & price match": icons on the two buttons (Figma: headset 24px before "Call Us", arrow 20px after "Price Match") */
.brxe-button.pdp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.brxe-button.pdp-btn--dark::before { content: ''; flex: 0 0 24px; width: 24px; height: 24px; background: url('/wp-content/uploads/cpap-pdp/support.svg') center / contain no-repeat; }
.brxe-button.pdp-btn--ghost::after { content: ''; flex: 0 0 20px; width: 20px; height: 20px; background: url('/wp-content/uploads/cpap-pdp/arrow-right.svg') center / contain no-repeat; transition: transform .2s; }
.brxe-button.pdp-btn--ghost:hover::after { transform: translateX(3px); }

/* PDP gallery: the border sits on the figure (so it never gets clipped); hover only changes its color */
.pdp-gallery__grid figure { overflow: hidden; border: 1px solid #eee; border-radius: 10px; background: #fff; box-sizing: border-box; transition: border-color .2s; }
.pdp-gallery__grid figure:hover { border-color: #3575db; }
.pdp-gallery__grid img { border: 0; border-radius: 0; background: transparent; }
.pdp-gallery__grid figure > a:hover img { transform: none; }

/* PDP "Price Match": no side padding, text + arrow on a single line */
.brxe-button.pdp-btn--ghost { padding-left: 0; padding-right: 0; white-space: nowrap; flex-wrap: nowrap; }
.brxe-button.pdp-btn--dark { white-space: nowrap; flex-wrap: nowrap; }

/* PDP MyGoodSleep card = a single linked image */
.brxe-block.pdp-card--mgs-img { padding: 0; background: none; border-radius: 10px; overflow: hidden; display: block; width: 100%; }
.pdp-card__mgs-img, .pdp-card__mgs-img img { display: block; width: 100%; height: auto; border-radius: 10px; }
.pdp-card--mgs-img a { display: block; transition: opacity .2s; }
.pdp-card--mgs-img a:hover { opacity: .92; }

/* PDP Buy now pay later card = a single image */
.brxe-block.pdp-card--bnpl-img { padding: 0; background: none; border-radius: 10px; overflow: hidden; display: block; width: 100%; }
.pdp-card__bnpl-img, .pdp-card__bnpl-img img { display: block; width: 100%; height: auto; border-radius: 10px; }

/* PDP Exclusive Deal: original 1080x1920 poster cropped like the design (visible band starts ~10% from the top) */
.pdp-deal__img, .pdp-deal__img img { object-fit: cover; object-position: 50% 38%; }

/* ===== PDP buy box: exact Figma styles (chips, rating line, price line, options label, qty label) ===== */
/* chips: rounded except bottom-left, small tail under the left edge */
.pdp-chip, .pdp-chip__link { position: relative; padding: 3.4px 5.7px; border-radius: 3.45px 3.45px 3.45px 0; font-size: 11.5px; font-weight: 600; line-height: 1.25; }
.brxe-block.pdp-chips { gap: 5px; padding-bottom: 10px; }
.pdp-chips__cats { gap: 5px; }
.pdp-chip--sale::after, .pdp-chip__link::after { content: ''; position: absolute; left: 0; top: 100%; width: 0; height: 0; border-top: 9.5px solid var(--tail, #8fcbe5); border-right: 9.5px solid transparent; }
.pdp-chip__link { --tail: #8fcbe5; }
.pdp-chip__link:nth-child(2) { --tail: #feb62c; background: #feb62c; }
.pdp-chip--sale { --tail: #ff0004; background: #ff0004; color: #fff; }

/* rating line: yellow stars + "5.0 (6)" */
.pdp-rating-line { display: flex; align-items: center; gap: 5px; width: auto; font-size: 14px; line-height: 1.5; color: #313131; }
.pdp-rating-line:empty { display: none; }
.pdp-rl__stars { display: inline-flex; gap: 0; }
.pdp-rl__star { position: relative; width: 16px; height: 16px; background: #d6d6d6; -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; --star: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l2.9 6.9 7.1.6-5.4 4.7 1.7 7.1L12 17.8 5.7 21.3l1.7-7.1L2 9.5l7.1-.6z'/></svg>"); }
.pdp-rl__star::after { content: ''; position: absolute; inset: 0; width: var(--fill, 0%); background: #feb62c; }
.pdp-rl__text { font-size: 14px; color: #313131; }

/* stock + price */
.brxe-block.pdp-stock { gap: 10px; margin-bottom: -15px; }
.pdp-stock__text { font-size: 14px; font-weight: 600; color: #00e85d; }
.brxe-block.pdp-price { gap: 0; }
.pdp-price__amount .price { display: inline-flex; flex-direction: row-reverse; align-items: baseline; justify-content: flex-end; gap: 0; font-size: 20px; line-height: 1.5; color: #313131; }
.pdp-price__amount ins { order: 1; text-decoration: none; background: none; font-weight: 600; line-height: 1.2; color: #313131; }
.pdp-price__amount del { order: 2; display: inline; text-decoration: none; font-size: 20px; color: rgba(49, 49, 49, .5); }
.pdp-price__amount del::before { content: ' - '; color: #313131; }
.pdp-price__amount del .woocommerce-Price-amount { text-decoration: line-through; }
.pdp-price__amount del::after { content: ' RRP '; color: rgba(49, 49, 49, .5); }
.pdp-price__save { width: auto; font-size: 20px; line-height: 1.5; color: #ff0004; }
.pdp-price__save:empty { display: none; }

/* variation: label + "Size guide" link on one row, then the select */
.pdp-cart { position: relative; }
.pdp-cart table.variations th.label label { font-size: 14px; font-weight: 600; line-height: 1.5; color: #313131; }
.pdp-cart table.variations th.label label::after { content: ':'; }
.pdp-cart table.variations th.label { margin-bottom: 10px; }
.pdp-cart table.variations select { height: 38px; font-weight: 600; }
.brxe-text-link.pdp-sizeguide { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; gap: 5px; width: auto; font-size: 14px; font-weight: 600; line-height: 1.5; color: #313131; text-decoration: underline; z-index: 2; }
.brxe-text-link.pdp-sizeguide::before { content: ''; width: 10px; height: 10px; background: url('/wp-content/uploads/cpap-pdp/ruler.svg') center / contain no-repeat; }
.pdp-info:not(:has(table.variations)) .pdp-sizeguide { display: none; }

/* quantity label */
.pdp-cart .quantity { position: relative; overflow: visible; margin-top: 34px; height: 38px; width: auto; }
.pdp-cart .quantity::before { content: 'Quantity:'; position: absolute; left: 0; top: -26px; font-size: 14px; font-weight: 600; line-height: 1.5; color: #313131; white-space: nowrap; }
.pdp-cart .quantity .minus, .pdp-cart .quantity .plus { border-radius: 0; }
.brxe-block.pdp-cartwrap { position: relative; width: 100%; }
.pdp-cart { position: static; }

/* PDP price line order: $188.00 - $249.00 RRP $61 OFF */
.pdp-price__amount .price { flex-direction: row; justify-content: flex-start; flex-wrap: wrap; }
.pdp-price__amount .price .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brxe-block.pdp-price { flex-direction: row; flex-wrap: wrap; align-items: baseline; }
.pdp-price__amount del::after { margin-right: 0; }

/* PDP variation select: full width of the buy box */
.pdp-cart table.variations, .pdp-cart table.variations tbody, .pdp-cart table.variations tr, .pdp-cart table.variations th, .pdp-cart table.variations td { display: block; width: 100%; }
.pdp-cart table.variations td.value { position: relative; }
.pdp-cart table.variations select { display: block; width: 100%; max-width: 100%; box-sizing: border-box; }

/* PDP variation select: no focus outline, text vertically centered */
.pdp-cart table.variations select,
.pdp-cart table.variations select:focus,
.pdp-cart table.variations select:focus-visible { outline: none; box-shadow: none; }
.pdp-cart table.variations select { height: 38px; padding: 0 40px 0 16px; line-height: 36px; text-overflow: ellipsis; }
.pdp-cart .quantity input.qty:focus, .pdp-cart .quantity input.qty:focus-visible,
.pdp-cart .quantity .minus:focus, .pdp-cart .quantity .plus:focus { outline: none; box-shadow: none; }

/* WooCommerce notices ("... added to your cart" + View cart): message left, button right on one line */
.woocommerce-message, .woocommerce-info, .woocommerce-error li { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button { order: 2; flex: 0 0 auto; float: none; margin: 0; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 10px 24px; line-height: 1.25; }
.woocommerce-message > :not(.button), .woocommerce-info > :not(.button) { flex: 1 1 auto; min-width: 0; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { flex: 0 0 auto; }
@media (max-width: 575px) {
  .woocommerce-message, .woocommerce-info { flex-direction: column; align-items: stretch; gap: 12px; }
  .woocommerce-message .button, .woocommerce-info .button { order: 0; width: 100%; }
}

/* Woo notices: breathing room above (they sit right under the shipping strip) */
.woocommerce-notices-wrapper { margin-top: 20px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { margin-top: 20px; }
.woocommerce-notices-wrapper .woocommerce-message, .woocommerce-notices-wrapper .woocommerce-info, .woocommerce-notices-wrapper .woocommerce-error { margin-top: 0; }
