/* MedCare Mobility — product page redesign (Tab, 2026-10-19). Staging build. Brand navy rgb(1,51,101), blue rgb(10,74,138). */
:root{--mcm-navy:rgb(1,51,101);--mcm-blue:rgb(10,74,138);--mcm-ink:#1b2430;--mcm-muted:#5b6673;--mcm-line:#e3e8ee;--mcm-bg:#f5f8fb}

/* ---------- 12. Breadcrumb: one line, sentence case, no wrap ---------- */
.single-product .breadcrumbs-wrap .breadcrumb{display:flex!important;flex-wrap:nowrap;align-items:center;overflow:hidden;white-space:nowrap;font-size:13px;line-height:1.6;text-transform:none;letter-spacing:0}
.single-product .breadcrumb li{display:flex!important;align-items:center;flex:0 0 auto;min-width:0;float:none!important;margin:0!important;padding:0!important}
.single-product .breadcrumb li:has(> span[itemprop="itemListElement"]),.single-product .breadcrumb li:last-child{flex:0 1 auto}
.single-product .breadcrumb li a,.single-product .breadcrumb li>span,.single-product .breadcrumb li span[itemprop="name"]{text-transform:none!important;letter-spacing:0!important;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.single-product .breadcrumb li .delimiter{flex:0 0 auto;float:none!important;margin:0 7px!important}
.single-product .breadcrumb li,.single-product .breadcrumb li *{text-transform:none!important;letter-spacing:0!important}
.single-product .breadcrumb li>span[itemprop="itemListElement"]{display:flex;align-items:center;min-width:0}
@media (max-width:767px){
  .single-product .breadcrumb li:last-child{display:none!important}
  .single-product .breadcrumb li:nth-last-child(2) .delimiter{display:none}
  .single-product .breadcrumbs-wrap{padding:6px 0}
  .single-product .page-top .container.hide-title .row{margin-bottom:0}
}

/* ---------- 2. Mobile fold: title, stars, price ABOVE the gallery; compact gallery + thumbnail strip ---------- */
@media (max-width:767px){
  .single-product .mcmpp-hero{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important}
  .single-product .mcmpp-hero>.vc_column_container,
  .single-product .mcmpp-hero>.vc_column_container>.pin-wrapper,
  .single-product .mcmpp-hero>.vc_column_container>.vc_column-inner,
  .single-product .mcmpp-hero>.vc_column_container>.pin-wrapper>.vc_column-inner,
  .single-product .mcmpp-hero>.vc_column_container>.vc_column-inner>.wpb_wrapper,
  .single-product .mcmpp-hero>.vc_column_container>.pin-wrapper>.vc_column-inner>.wpb_wrapper{display:contents!important}
  .single-product .mcmpp-hero .vc_column-inner>*,.single-product .mcmpp-hero .vc_column-inner>.wpb_wrapper>*{order:10}
  .single-product .mcmpp-hero .product_title{order:1!important;font-size:1.25rem;line-height:1.3;margin:4px 0 6px}
  .single-product .mcmpp-hero .mcmpp-rating{order:2!important}
  .single-product .mcmpp-hero .mcm-price{order:3!important;margin-bottom:6px}
  .single-product .mcmpp-hero .mcm-gallery{order:4!important;margin-bottom:10px;width:100%}
  .single-product .mcmpp-hero .mcmpp-trust-wrap{order:5!important}
  .single-product .mcmpp-hero .mcm-gallery .product-images .img-thumbnail .inner{display:flex;justify-content:center}
  .single-product .mcmpp-hero .mcm-gallery .product-images img{max-height:300px;width:auto;max-width:100%;object-fit:contain;margin:0 auto}
  .single-product .mcmpp-hero .mcm-gallery .product-thumbnails{margin-top:6px}
  .single-product .mcmpp-hero .mcm-gallery .product-thumbnails .img-thumbnail img{max-height:64px;width:auto}
  .single-product .mcmpp-hero .product-nav{display:none}
}

/* ---------- 6. Trust row under the price ---------- */
.mcmpp-trust-wrap.wpb_text_column{margin-bottom:10px}
.mcmpp-trust{list-style:none;margin:8px 0 2px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px}
.mcmpp-trust li{display:flex;align-items:center;gap:8px;font-size:13px;line-height:1.3;color:var(--mcm-ink);font-weight:600}
.mcmpp-trust svg{flex:0 0 20px;width:20px;height:20px;fill:none;stroke:var(--mcm-blue);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mcmpp-trust-line{font-size:12.5px;color:var(--mcm-muted);margin:4px 0 0}
.mcmpp-trust-line a{color:var(--mcm-blue);font-weight:600;white-space:nowrap}
@media (min-width:992px){.mcmpp-trust{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---------- 7. Shipping & returns one-liner near the CTA ---------- */
.mcm-ship-wrap.wpb_text_column{margin:8px 0 10px}
.mcm-ship{display:flex;align-items:flex-start;gap:8px;font-size:13px;line-height:1.45;color:var(--mcm-ink);margin:0;padding:10px 12px;background:var(--mcm-bg);border-radius:10px}
.mcm-ship svg{flex:0 0 20px;width:20px;height:20px;fill:none;stroke:var(--mcm-blue);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;margin-top:1px}
.mcm-ship a{color:var(--mcm-blue);font-weight:600;text-decoration:underline}

/* ---------- 11. Description jump links ---------- */
.mcm-jumps{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px;padding:0;list-style:none}
.mcm-jumps li{margin:0}
.mcm-jumps a{display:inline-block;padding:6px 12px;border:1px solid var(--mcm-line);border-radius:999px;font-size:13px;font-weight:600;color:var(--mcm-navy);background:#fff;text-decoration:none;line-height:1.2}
.mcm-jumps a:hover{border-color:var(--mcm-blue);color:var(--mcm-blue)}
/* mobile "Read more" clamp removed 2026-10-19 (Pinny): Description always shows in full when opened */
#tab-description,#tab-description.mcm-collapsed{max-height:none!important;overflow:visible!important}
#tab-description.mcm-collapsed:after{display:none!important}
.mcm-readmore{display:none!important}

/* ---------- 4. Compact "Configure your unit" add-on groups (CSS only; field types untouched) ---------- */
.single-product form.cart .zaddon-type-container{border:1px solid var(--mcm-line);border-radius:12px;padding:10px 12px;margin:0 0 10px;background:#fff}
.single-product form.cart .zaddon-type-container h3{font-size:13px;font-weight:700;color:var(--mcm-navy);margin:0 0 6px;text-transform:none;letter-spacing:0;display:flex;align-items:center;justify-content:space-between}
.single-product form.cart .zaddon-type-container .zaddon_select select{width:100%;height:40px;border:1px solid #cfd8e3;border-radius:8px;padding:0 10px;font-size:14px;background:#fff}
.single-product form.cart .zaddon-type-container .zaddon_option{margin:0}
.single-product form.cart .zaddon-type-container .zaddon_checkbox{display:inline-block;width:49%;vertical-align:top;margin:0 0 4px}
.single-product form.cart .zaddon-type-container .zaddon_checkbox label{display:flex;align-items:flex-start;gap:6px;font-size:13px;line-height:1.3;margin:0;padding:4px 0;cursor:pointer}
.single-product form.cart .zaddon-type-container .zaddon_checkbox input{margin:3px 0 0;flex:0 0 auto}
.single-product form.cart .zaddon-type-container .zaddon-radio-title{display:block}
.single-product form.cart .zaddon-type-container .zaddon_title{display:block;color:var(--mcm-ink)}
.single-product form.cart .zaddon-type-container .zaddon-radio-title .woocommerce-Price-amount{color:var(--mcm-blue);font-weight:600}
/* Collapsible add-on groups: the plugin hides options with `.zaddon_closed div{display:none}` (specificity 0,1,1); our .zaddon_checkbox rule above outranked it, so the arrow toggled the class but nothing collapsed (2026-10-19 fix). */
.single-product form.cart .zaddon-type-container.zaddon_closed .zaddon_option,.single-product form.cart .zaddon-type-container.zaddon_closed > div,.single-product form.cart .zaddon-type-container.zaddon_closed > p{display:none!important}
.single-product form.cart .zaddon-type-container h3 .zaddon-open{flex:0 0 auto;width:32px;height:32px;min-width:32px;margin:-6px -8px -6px 0;padding:0;border:0;border-radius:8px;background:transparent;color:var(--mcm-navy);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:16px;line-height:1;transition:transform .2s ease}
.single-product form.cart .zaddon-type-container h3 .zaddon-open:before{content:"";display:block;width:9px;height:9px;border:solid currentColor;border-width:0 0 2px 2px;transform:translateY(-2px) rotate(-45deg);transition:transform .2s ease}
.single-product form.cart .zaddon-type-container.zaddon_closed h3 .zaddon-open:before{transform:translateY(2px) rotate(135deg)}
.single-product form.cart .zaddon-type-container h3 .zaddon-open:hover,.single-product form.cart .zaddon-type-container h3 .zaddon-open:focus-visible{background:var(--mcm-bg);outline:0}
.single-product form.cart .zaddon-type-container h3{cursor:default}
.single-product form.cart .zaddon-type-container h3.mcm-toggle{cursor:pointer}
@media (min-width:768px){
  .single-product form.cart .mcm-addon-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:10px}
  .single-product form.cart .mcm-addon-grid .zaddon-type-container{margin:0}
  .single-product form.cart .mcm-addon-grid .zaddon-type-container.mcm-wide{grid-column:1/-1}
}
.single-product form.cart .mcm-addon-title{font-size:14px;font-weight:700;color:var(--mcm-navy);margin:8px 0 8px}
.single-product form.cart .zaddon_data{display:flex;flex-wrap:wrap;gap:4px 18px;align-items:baseline;margin:4px 0 10px;padding:8px 12px;background:var(--mcm-bg);border-radius:10px}
.single-product form.cart .zaddon_data > div{display:flex;gap:6px;align-items:baseline;margin:0}
.single-product form.cart .zaddon_data h4{font-size:13px;margin:0;font-weight:600;color:var(--mcm-muted)}
.single-product form.cart .zaddon_data p{margin:0}
.single-product form.cart .zaddon_data .zaddon_total h4,.single-product form.cart .zaddon_data .zaddon_total .amount{font-weight:800;color:var(--mcm-navy)}
.single-product form.cart .zaddon_data .zaddon_total .amount{font-size:1.1em}
.single-product form.cart .filter-item-list .filter-item{font-size:12.5px;padding:4px 10px;line-height:1.3;border-radius:8px}
@media (max-width:767px){
  .single-product form.cart .zaddon-type-container .zaddon_checkbox{width:100%}
}

/* ---------- 1. Sticky Add to cart: REMOVED 2026-10-19 (Pinny) — no child mobile bar, and Porto's sticky product bar hidden at every width ---------- */
.mcm-mobile-bar{display:none!important}
.single-product .sticky-product{display:none!important}
body.mcm-has-bar{padding-bottom:0!important}

/* ---------- 3. Rows under the product: accessories / compare / recently viewed ---------- */
.mcm-rows-wrap.wpb_text_column{margin:0}
.mcm-sec{padding:26px 0 8px;border-top:1px solid var(--mcm-line)}
.mcm-sec.mcm-acc{background:var(--mcm-bg);border:0;border-radius:18px;padding:22px 22px 16px;margin:10px 0 6px}
.mcm-sec-hd{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px}
.mcm-sec-hd h2{font-size:22px;margin:0;color:var(--mcm-navy);letter-spacing:-.01em;text-transform:none;line-height:1.2}
.mcm-sec-hd h2 small{display:block;font-size:13px;font-weight:400;color:var(--mcm-muted);margin-top:3px;letter-spacing:0}
.mcm-acc .mcm-sec-hd h2:before{content:"\2713\00a0";color:var(--mcm-blue)}
.mcm-sec-link{color:var(--mcm-blue)!important;font-weight:600;font-size:14px;text-decoration:none;white-space:nowrap}
.mcm-sec-trust{display:flex;gap:18px;flex-wrap:wrap;margin:12px 0 0;font-size:13px;color:var(--mcm-muted)}
.mcm-sec-trust span:before{content:"\25CF\00a0";color:var(--mcm-blue)}

/* card grid: real Porto/Woo product cards, restyled */
.mcm-grid ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;margin:0!important;padding:0!important;width:auto!important}
.mcm-grid ul.products:before,.mcm-grid ul.products:after{display:none}
.mcm-grid ul.products>li.product-col,.mcm-grid ul.products>li{width:auto!important;max-width:none!important;min-width:0;margin:0!important;padding:0!important;flex:none!important;text-align:left;float:none!important}
.mcm-grid .product-inner{position:relative;height:100%;display:flex;flex-direction:column;border:1px solid var(--mcm-line);border-radius:14px;background:#fff;overflow:hidden;transition:box-shadow .2s;padding:0!important;box-shadow:none}
.mcm-grid .product-inner:hover{box-shadow:0 8px 24px rgba(1,51,101,.12)}
.mcm-grid .product-image{padding:14px;margin:0;border:0!important;background:#fff;box-shadow:none!important}
.mcm-grid .product-image .inner,.mcm-grid .product-image img,.mcm-grid .product-image a{border:0!important;box-shadow:none!important}
/* 2026-10-20 (Tab): was repeat(auto-fit,minmax(180px,1fr)) — auto-fit collapses the empty tracks, so 1 or 2 accessories stretched to 1216px / 600px cards.
   Fixed 4 columns like the Related row: a card is the same width whatever the count (tablet 3 columns and the mobile swipe row below are unchanged). */
.mcm-grid-acc ul.products{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.mcm-grid .product-image img{width:100%;aspect-ratio:1/1;object-fit:contain;display:block;max-height:none}
.mcm-grid .product-image .labels{left:10px;top:10px}
.mcm-grid .product-content{padding:0 14px 14px;display:flex;flex-direction:column;gap:8px;flex:1;text-align:left}
.mcm-grid .category-list,.mcm-grid #learn-more,.mcm-grid .affirm-as-low-as,.mcm-grid .quickview,.mcm-grid .yith-wcwl-add-to-wishlist,.mcm-grid .add_to_wishlist,.mcm-grid .porto-general-swatch,.mcm-grid .product-content .woocommerce-product-details__short-description,.mcm-grid .mcm-rd-bullets,.mcm-grid .product-content .compare{display:none!important}
.mcm-grid .product-loop-title{display:block}
.mcm-grid .woocommerce-loop-product__title{font-size:14px;font-weight:600;line-height:1.3;color:var(--mcm-ink);margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em;text-transform:none}
.mcm-grid .rating-wrap{margin:0}
.mcm-grid .price{font-weight:800;color:var(--mcm-navy);font-size:16px;margin:0;display:block;line-height:1.3}
.mcm-grid .price del{font-weight:500;color:var(--mcm-muted);font-size:13px}
.mcm-grid .price ins{text-decoration:none}
.mcm-grid .add-links-wrap{margin-top:auto!important;display:block!important;position:static!important;opacity:1!important;visibility:visible!important;transform:none!important;padding:0!important}
.mcm-grid .add-links{display:flex!important;gap:8px;padding:0}
.mcm-grid .add-links .button,.mcm-grid .add-links a.add_to_cart_button,.mcm-grid .add-links a.product_type_variable{display:inline-flex!important;align-items:center;justify-content:center;width:100%;min-height:38px;background:var(--mcm-navy);color:#fff!important;border:0;border-radius:8px;padding:8px 12px;font-weight:700;font-size:13px;text-transform:none;letter-spacing:0;line-height:1.2;margin:0}
.mcm-grid .add-links .button:before,.mcm-grid .add-links .button:after{display:none!important}
.mcm-grid .add-links .button:hover{background:var(--mcm-blue)}
.mcm-grid .add-links .button.loading{opacity:.6}
.mcm-grid .add-links .added_to_cart{display:none!important}
/* recently viewed (built in the browser) */
.mcm-recent-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.mcm-recent-list li{margin:0}
.mcm-rc{display:flex;flex-direction:column;height:100%;border:1px solid var(--mcm-line);border-radius:14px;background:#fff;overflow:hidden;transition:box-shadow .2s}
.mcm-rc:hover{box-shadow:0 8px 24px rgba(1,51,101,.12)}
.mcm-rc-img{display:block;padding:14px}
.mcm-rc-img img{width:100%;aspect-ratio:1/1;object-fit:contain;display:block}
.mcm-rc-body{padding:0 14px 14px;display:flex;flex-direction:column;gap:8px;flex:1}
.mcm-rc-title{font-size:14px;font-weight:600;line-height:1.3;color:var(--mcm-ink);text-decoration:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
.mcm-rc-row{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:8px}
.mcm-rc-row .price{font-weight:800;color:var(--mcm-navy);font-size:15px;margin:0}
.mcm-rc-row .price del{font-weight:500;color:var(--mcm-muted);font-size:12px}
.mcm-rc-btn{display:inline-flex;align-items:center;justify-content:center;background:var(--mcm-navy);color:#fff!important;border-radius:8px;padding:8px 12px;font-weight:700;font-size:13px;text-decoration:none;white-space:nowrap}
.mcm-rc-btn:hover{background:var(--mcm-blue)}
@media (max-width:991px){
  .mcm-grid ul.products,.mcm-recent-list{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media (max-width:640px){
  .mcm-sec{padding:18px 0 6px}
  .mcm-sec.mcm-acc{padding:16px 14px 12px;border-radius:14px}
  .mcm-sec-hd h2{font-size:18px}
  /* Swipe row: 2 equal cards + a peek of the 3rd. flex-wrap:nowrap beats Porto's .has-ccols{flex-wrap:wrap}; the li selectors carry the same
     specificity as the desktop rule above (.mcm-grid ul.products>li.product-col) so flex:none no longer wins here (2026-10-19 fix). */
  .mcm-grid ul.products,.mcm-recent-list{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:stretch!important;grid-template-columns:none!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory;gap:10px!important;margin:0!important;padding:0 0 8px!important;width:auto!important;max-width:100%!important;-webkit-overflow-scrolling:touch;scrollbar-width:none;overscroll-behavior-x:contain}
  .mcm-grid ul.products::-webkit-scrollbar,.mcm-recent-list::-webkit-scrollbar{display:none}
  .mcm-grid ul.products>li.product-col,.mcm-grid ul.products>li,.mcm-acc .mcm-grid ul.products>li.product-col,.mcm-recent-list>li{flex:0 0 46%!important;width:46%!important;max-width:46%!important;min-width:0!important;margin:0!important;padding:0!important;float:none!important;display:block!important;scroll-snap-align:start;box-sizing:border-box}
  .mcm-grid .product-inner{height:100%!important;display:flex!important;flex-direction:column!important;border-radius:12px}
  .mcm-grid .product-image{padding:10px!important;margin:0!important;width:100%;box-sizing:border-box}
  .mcm-grid .product-image .inner,.mcm-grid .product-image a{display:block;width:100%}
  .mcm-grid .product-image img,.mcm-grid .product-image picture{display:block;width:100%!important;height:auto!important;max-width:100%!important;aspect-ratio:1/1;object-fit:contain}
  .mcm-grid .product-content{padding:0 10px 10px!important;gap:6px!important}
  .mcm-grid .woocommerce-loop-product__title{font-size:13px;line-height:1.3;min-height:2.6em;max-height:2.6em}
  .mcm-grid .price{font-size:15px}
  .mcm-grid .price del{font-size:12px}
  .mcm-grid .add-links .button,.mcm-grid .add-links a.add_to_cart_button,.mcm-grid .add-links a.product_type_variable{min-height:40px;font-size:13px;padding:0 8px;white-space:nowrap}
  .mcm-recent-list .mcm-rc{height:100%}
  .mcm-sec-trust{gap:10px 14px;font-size:12px}
}
}

/* ---------- 6. Hide the unconfirmed "Price Match" tile in the sidebar trust card ---------- */
.mc-dealer-trust .mc-proof-grid .mc-proof-card:first-child{display:none}

/* ---------- misc polish ---------- */
.single-product .mcm-price .single-product-price .price{color:var(--mcm-navy)}
.single-product .product-share .share-googleplus{display:none}

/* ---- Request Call Back popup (mu-plugin snippet 65706 #quote-modal), added 2026-10-19 ----
   The sitewide fixed header (#mcm-custom-header-wrap, z-index 9999) sat over the popup (z-index 999): on phones the title
   and the close X were hidden under the header/search bar. Lift the popup above the header, keep the whole form reachable
   by scrolling, and make the X a real tap target. Rollback: delete this block. */
#quote-modal.modal{z-index:100000!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;padding:12px 0!important;box-sizing:border-box}
#quote-modal .modal-content{position:relative;box-sizing:border-box;margin:12px auto!important;width:calc(100% - 24px)!important;max-width:600px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-y:auto!important;-webkit-overflow-scrolling:touch;padding:0 16px 8px!important}
#quote-modal .modal-header{position:sticky;top:0;z-index:2;background:#fefefe;margin:0 -16px 10px;padding:10px 16px 10px!important;min-height:52px}
#quote-modal .modal-header h3{font-size:18px;line-height:1.3;margin:0!important;padding-right:8px}
#quote-modal .close{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin:-4px -10px -4px 0;border-radius:50%;color:#333!important;font-size:30px;line-height:1;background:#f1f3f6}
#quote-modal .close:hover,#quote-modal .close:focus{background:#e2e6ec;color:#000!important}
@media (min-width:768px){#quote-modal .modal-content{margin:6vh auto!important;width:80%!important;padding:0 20px 8px!important}#quote-modal .modal-header{margin:0 -20px 12px;padding:12px 20px!important}}

/* desc-heading-fix 2026-10-20 (Tab): the product-tabs element in Porto builder 3534 has heading_color #ffffff, which prints
   ".wpb_custom_… .tab-content h2{color:#ffffff}" -> plain <h2> headings in product descriptions were white on white.
   Headings inside the product tab panels use brand navy. Inline colors (style="color:…") and .eg-cta h2 (!important) still win. */
body.single-product .woocommerce-tabs .tab-content h2:not(.resp-accordion){color:var(--mcm-navy,rgb(1,51,101))}
/* desc-heading-fix 2026-10-20 add-on (Pinny 10:35 AM): H3s in the Description tab at 18px. Overrides the theme h3 (~24.5px) and inline
   px sizes on the h3 or its inner span/strong; the related-products blockquote h3 and .eg-cta are left alone. Inline "!important" sizes still win. */
body.single-product .woocommerce-tabs #tab-description h3:not(blockquote h3):not(.eg-cta h3),
body.single-product .woocommerce-tabs #tab-description h3:not(blockquote h3):not(.eg-cta h3) :is(span,strong,b,em,i,u,a,font){font-size:18px!important}
body.single-product .woocommerce-tabs #tab-description h3:not(blockquote h3):not(.eg-cta h3){line-height:1.35}
