/* V51: readable copy and resilient layouts, without changing product content. */
body.cp-global-shell :is(.cpc-panel,.cpcm-answer,.cp-journal-body,.cp-v32-commerce-intro) {text-align:start;word-spacing:normal;letter-spacing:normal}
body.cp-global-shell :is(.cpc-panel p,.cpcm-answer p,.cp-journal-body>p){text-wrap:pretty;hyphens:none}
body.cp-global-shell .cp-journal-body{font-size:18px;line-height:1.8}
body.cp-global-shell :is(.cpc-panel,.cpcm-answer){font-size:17px;line-height:1.75}
body.cp-global-shell :is(.cpc-panel p,.cpcm-answer p){font-size:17px;line-height:1.75}
body.cp-global-shell :is(.cp-journal-body,.cpc-panel,.cpcm-answer) a{overflow-wrap:anywhere}
body.cp-global-shell :is(.cp-journal-sources,.cpcm-review-footnote){font-size:15px!important;line-height:1.7!important}
@media(max-width:767px){
 body.cp-global-shell{font-size:17px;line-height:1.65}
 body.cp-global-shell :is(main p,main li,.cpcm p,.cpcm li){font-size:17px!important;line-height:1.7!important}
 body.cp-global-shell :is(main label,main summary,.cpcm summary,.cpcm label){font-size:17px!important;line-height:1.5!important}
 body.cp-global-shell :is(main input,main select,main textarea,.cpcm input,.cpcm select,.cp-site-footer input,.cp-product-search input){font-size:16px!important;line-height:1.5!important;max-width:100%;min-width:0}
 body.cp-global-shell :is(main small,.cpcm small,main figcaption){font-size:15px!important;line-height:1.6!important}
 body.cp-global-shell :is(.cpcm-eyebrow,.cp-journal-eyebrow,.cp-eyebrow,.cp-v32-commerce-eyebrow,.cp-v16-eyebrow){font-size:14px!important;line-height:1.5!important;letter-spacing:.09em!important}
 body.cp-global-shell :is(.cpcm-small,.cpcm-review-footnote,.cp-journal-meta,.cp-journal-sources p,.cp-journal-sources li,.cp-journal-sources a,.cp-journal-cite){font-size:15px!important;line-height:1.65!important}
 body.cp-global-shell :is(.cp-text-link,.cpcm-text-link,.cpcm-quiet-link,.cpcm-back,.cpcm-guidance-link,.cp-journal-back,.cp-journal-text-link,.cpcm-saved-actions a){font-size:16px!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:break-word}
 body.cp-global-shell :is(.cpcm-button,.cpcm-review-cta,.cp-journal-button,main .button,main button[type=submit]){font-size:16px!important;line-height:1.5!important;white-space:normal!important;min-height:48px}
 body.cp-global-shell .cpcm-chapters{gap:8px;flex-wrap:wrap}
 body.cp-global-shell .cpcm-chapters a{font-size:15px!important;line-height:1.5!important;min-height:44px;white-space:normal}
 body.cp-global-shell .cpcm-chapters a span{font-size:14px!important}
 body.cp-global-shell :is(.cpcm-chapters a,.cpcm-refill-card,.cpcm-review-choice,.cp-journal-card){min-width:0}
 body.cp-global-shell .cpcm-review-choice small{font-size:15px!important}
 body.cp-global-shell .cpcm-review-choice strong{font-size:21px!important;line-height:1.35!important}
 body.cp-global-shell .cpcm-refill-reassurance{font-size:15px!important}
 body.cp-global-shell .cpcm-saved-actions{flex-wrap:wrap;gap:12px}
 body.cp-global-shell .cpc-facts{grid-template-columns:1fr 1fr;gap:16px}
 body.cp-global-shell .cpc-facts>div:first-child{grid-column:1/-1}
 body.cp-global-shell .cpc-facts dt{font-size:15px!important;line-height:1.5!important}
 body.cp-global-shell .cpc-facts dd{font-size:17px!important;line-height:1.5!important}
 body.cp-global-shell :is(.cpc-nutrients th,.cpc-nutrients td,.cpc-nutrients caption){font-size:16px!important;line-height:1.55!important}
 body.cp-global-shell .cpc-nutrients th:first-child{width:66%;padding-inline-end:12px!important}
 body.cp-global-shell .cpc-nutrients :is(td,th:last-child){white-space:normal!important;overflow-wrap:break-word}
 body.cp-global-shell .cpc-nutrients small{font-size:15px!important}
 body.cp-global-shell .cp-v16-assurance :is(strong,span){font-size:15px!important;line-height:1.5!important}
 body.cp-global-shell .cp-v20-product-marker figcaption{font-size:14px!important;line-height:1.45!important;overflow-wrap:normal;text-align:center!important}
 body.cp-global-shell .cp-v20-product-markers{gap:16px 6px!important}
 body.cp-global-shell .cp-image-enlarge{font-size:15px!important;min-height:44px}
 body.cp-global-shell .cp-trust-item span{font-size:15px!important;line-height:1.5!important}
 body.cp-global-shell .cp-trust-item strong{font-size:20px!important;line-height:1.3!important}
 body.cp-global-shell .cp-trust-item{min-width:0;height:auto!important}
 body.cp-global-shell .cp41-card-actions{flex-wrap:wrap!important;gap:10px!important;align-items:center!important}
 body.cp-global-shell .cp41-card-actions .cp-text-link{font-size:15px!important;flex:1 1 100%;min-height:40px;display:flex;align-items:center}
 body.cp-global-shell .cp41-card-actions .cp41-quick-add{min-width:44px!important;min-height:44px!important}
 body.cp-global-shell :is(.cp-product-copy h3,.cp36-product-link h3,.woocommerce-loop-product__title){font-size:18px!important;line-height:1.4!important;height:auto!important;min-height:2.8em;max-height:none!important;-webkit-line-clamp:unset!important;overflow:visible!important}
 body.cp-global-shell .cp-journal-body{font-size:18px;line-height:1.8}
 body.cp-global-shell .cp-journal-body>p{font-size:18px!important;line-height:1.8!important}
 body.cp-global-shell .cp-journal-topics a{font-size:15px!important;line-height:1.4!important;min-height:44px;display:flex;align-items:center}
 body.cp-global-shell .cp-journal-card-bottom>span{font-size:15px!important;line-height:1.5!important}
 body.cp-global-shell .cp-journal-card-bottom strong{font-size:16px!important}
 body.cp-global-shell .cp-journal-toolbar label{font-size:16px!important}
 body.cp-global-shell .cp-journal-sidebar>a{font-size:16px!important}
 body.cp-global-shell .cp-site-footer :is(p,a){font-size:16px!important;line-height:1.6!important}
 body.cp-global-shell .cp-site-footer h2{font-size:18px!important;line-height:1.4!important}
 body.cp-global-shell .woocommerce :is(td,th,.woocommerce-Price-amount,.woocommerce-MyAccount-navigation a){font-size:16px!important;line-height:1.5!important}
 body.cp-global-shell .woocommerce-MyAccount-navigation a{white-space:normal!important;min-height:48px}
 body.cp-global-shell .woocommerce :is(.product-name a,.remove,.woocommerce-privacy-policy-text){font-size:16px!important;line-height:1.5!important}
 body.cp-global-shell :is(.cp-mobile-nav a,.cp42-care summary){font-size:16px!important;min-height:44px}
 body.cp-global-shell :is(.cpc-detail,.cpcm-question,.cp-journal-product){scroll-margin-top:95px}
}
@media(max-width:767px){
 /* Keep the discount invitation available without covering the product purchase controls. */
 body.cp-global-shell.cp-single-product-v16 #cp36-newsletter{position:relative!important;inset:auto!important;transform:none!important;margin:24px auto!important;width:calc(100% - 32px)!important;max-height:none!important;box-shadow:none!important}
 body.cp-global-shell #cp36-newsletter :is(strong,.cp36-newsletter-description,.cp36-privacy){font-size:15px!important;line-height:1.5!important}
 body.cp-global-shell #cp36-newsletter :is(input,button:not(.cp36-newsletter-close)){font-size:16px!important;line-height:1.5!important;min-height:44px}
 body.cp-global-shell #cp36-newsletter .cp36-newsletter-summary{flex-wrap:wrap;gap:12px}
 body.cp-global-shell .woocommerce-MyAccount-navigation a{display:flex!important;align-items:center;gap:9px}
 body.cp-global-shell .woocommerce-MyAccount-navigation a::before{flex-shrink:0}
}
@media(max-width:767px){
 body.cp-global-shell :is(.cp-v15-all-link,.cp-v14-product-cta,.cp-v15-all-products-cta a){font-size:16px!important;line-height:1.5!important;white-space:normal!important;min-height:44px;display:inline-flex;align-items:center}
 body.cp-global-shell :is(.woocommerce-Price-amount,.woocommerce-Price-currencySymbol){font-size:17px!important;line-height:1.5!important}
 body.cp-global-shell .cp41-card-actions .cp-v14-product-cta{flex:1 1 100%}
}
body.cp-global-shell.cp-single-product-v16 #cp36-newsletter{position:relative!important;inset:auto!important;transform:none!important;margin:24px auto!important;width:calc(100% - 32px)!important;max-height:none!important;box-shadow:none!important}

/* Type is sized together with its column, rather than shrinking body copy. */
body.cp-global-shell :is(h1,h2,h3){text-wrap:balance;word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important}
body.cp-global-shell :is(main,.cpcm) p{text-wrap:pretty;text-align:start;line-height:1.65}
body.cp-global-shell .cp42-care>summary::after,body.cp-global-shell .cp36-language summary::after{content:none!important;display:none!important}
body.cp-global-shell :is(.cp42-care,.cp36-language)>summary{list-style:none!important}
body.cp-global-shell :is(.cp42-care,.cp36-language)>summary::-webkit-details-marker{display:none!important}
body.cp-global-shell :is(.cp42-care,.cp36-language)>summary::marker{content:''}
body.cp-global-shell :is(.cp42-care,.cp36-language)>summary:focus-visible{outline:2px solid #173e30;outline-offset:5px}
body.cp-global-shell .cpc-journal-companion h3{font-size:32px!important;line-height:1.2!important;max-width:24ch!important}
body.cp-global-shell .cpcm .cpcm-section-intro h2{font-size:40px!important;line-height:1.18!important;max-width:22ch!important}
body.cp-global-shell .cpcm .cpcm-benefit-story h3{line-height:1.25!important;margin:0 0 12px!important}
body.cp-global-shell .cpcm .cpcm-benefit-story p{margin:0!important}
body.cp-global-shell .cpc-magnesium{padding-top:48px;padding-bottom:48px}
body.cp-global-shell .cpc-magnesium h2{font-size:36px;line-height:1.2;max-width:26ch;margin:12px 0 20px}
body.cp-global-shell .cpc-magnesium>p{max-width:68ch}
.cpc-magnesium table{width:100%;border-collapse:collapse;margin:24px 0;table-layout:fixed}
.cpc-magnesium caption{text-align:left;margin-bottom:12px;font-weight:600}
.cpc-magnesium :is(th,td){padding:18px;text-align:left;vertical-align:top;border-bottom:1px solid #d9dfd8;line-height:1.55}
.cpc-magnesium thead{background:#173e30;color:white}
.cpc-magnesium tr.is-current{background:#f5f2e8}
.cpc-magnesium small{display:block;font-weight:400;margin-top:8px}
.cpc-compare-label{display:none}
@media(max-width:767px){
 body.cp-global-shell .cpcm .cpcm-shell{width:calc(100% - 40px)!important}
 body.cp-global-shell .cpcm .cpcm-section-intro{max-width:none!important;width:100%!important}
 body.cp-global-shell :is(main,.cpcm) :is(.cpcm-eyebrow,.cp-v16-eyebrow,.cp-journal-eyebrow){font-size:13px!important;line-height:1.5!important;letter-spacing:.09em!important;max-width:none!important;margin-bottom:12px!important}
 body.cp-global-shell .cpcm .cpcm-section-intro h2{font-size:28px!important;line-height:1.2!important;max-width:none!important;margin-bottom:18px!important}
 body.cp-global-shell .cpcm .cpcm-benefit-story{grid-template-columns:18px minmax(0,1fr)!important;gap:12px!important;padding:22px 0!important}
 body.cp-global-shell .cpcm .cpcm-benefit-story h3{font-size:23px!important;line-height:1.25!important}
 body.cp-global-shell .cpc-journal-companion{padding:22px 18px!important}
 body.cp-global-shell .cpc-journal-companion h3{font-size:27px!important;line-height:1.23!important;max-width:none!important;margin:12px 0 18px!important}
 body.cp-global-shell .cpcm .cpcm-experience h2{font-size:28px!important;line-height:1.2!important;max-width:none!important;letter-spacing:-.015em!important}
 body.cp-global-shell .cp-journal h1{font-size:34px!important;line-height:1.18!important;max-width:none!important}
 body.cp-global-shell .cp-journal h2{font-size:27px!important;line-height:1.25!important}
 body.cp-global-shell .cpc-section-intro h2{font-size:30px!important;line-height:1.2!important}
 body.cp-global-shell.cp-single-product-v16 .cp-v20-product-markers{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px 16px!important}
 body.cp-global-shell.cp-single-product-v16 .cp-v20-product-marker figcaption{max-width:none!important;width:100%;font-size:15px!important;line-height:1.4!important}
 body.cp-global-shell .cpc-magnesium h2{font-size:28px!important}
 .cpc-magnesium table,.cpc-magnesium tbody{display:block}
 .cpc-magnesium thead{display:none}
 .cpc-magnesium tr{display:block;border:1px solid #d9dfd8;margin-bottom:16px;padding:18px;border-radius:6px}
 .cpc-magnesium :is(th,td){display:block;padding:8px 0;border:0;font-size:17px}
 .cpc-magnesium th{font-size:20px}
 .cpc-compare-label{display:block;font-size:14px;font-weight:600;margin-bottom:4px;color:#536359}
}
body.cp-global-shell .cpc-magnesium h2{font-family:Georgia,'Times New Roman',serif!important;font-weight:400!important;color:#173e30!important}
body.cp-global-shell .cpc-magnesium :is(a,th){color:#173e30!important}
body.cp-global-shell .cpc-magnesium thead th{color:white!important}
body.cp-global-shell .cpc-magnesium caption{display:block;width:100%;text-align:left;font-size:16px;line-height:1.5;white-space:normal}
@media(min-width:768px){body.cp-global-shell .cpc-magnesium caption{display:table-caption}}

body.cp-global-shell .cp-site-footer{border-top:48px solid #fff!important}
body.cp-global-shell .cp-v22-partners .cp-v22-section-head h2{max-width:none!important;width:100%!important}
body.cp-global-shell .cp53-heading-line{display:block}
body.cp-global-shell .cp53-delivery{background:#f6f3ea;color:#173e30;padding:20px;margin:18px 0 24px;border:1px solid #e2dfd3;border-radius:4px;text-align:start;clear:both}
body.cp-global-shell .cp53-delivery strong{display:block;font-size:17px;line-height:1.5}
body.cp-global-shell .cp53-delivery p{font-size:16px!important;line-height:1.6!important;margin:8px 0 0!important}
@media(max-width:767px){body.cp-global-shell .cp-site-footer{border-top-width:32px!important}body.cp-global-shell .cp-v22-partners .cp-v22-section-head h2{font-size:clamp(22px,6.3vw,29px)!important;line-height:1.2!important;letter-spacing:-.025em!important}body.cp-global-shell .cp53-heading-line{white-space:nowrap}}

body.cp-global-shell .cp54-page{display:block;width:100%;max-width:none;min-width:0;padding:0;background:white;color:#173e30}
.cp54-shell{width:calc(100% - 96px);max-width:1200px;margin:0 auto}
body.cp-global-shell .cp54-page :is(h1,h2,h3){font-family:Georgia,'Times New Roman',serif!important;font-weight:400;color:#173e30;line-height:1.15;text-wrap:balance;letter-spacing:-.025em}
body.cp-global-shell .cp54-page h1{font-size:clamp(36px,4.4vw,64px)!important;margin:18px 0 26px;max-width:18ch}
body.cp-global-shell .cp54-page h2{font-size:clamp(28px,3vw,42px)!important;margin:12px 0 22px;max-width:25ch}
body.cp-global-shell .cp54-page h3{font-size:25px!important;margin:12px 0 18px}
body.cp-global-shell .cp54-page p{font-size:18px;line-height:1.65;max-width:62ch;margin:12px 0 22px}
body.cp-global-shell .cp54-page .cp54-eyebrow{font:600 12px/1.5 Arial,sans-serif!important;letter-spacing:.15em;text-transform:uppercase;color:#9a7a38;margin:0 0 18px}
.cp54-hero{padding:72px 0 50px}.cp54-hero>p:last-child{max-width:52ch}
.cp54-help-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding-bottom:70px}
.cp54-help-card{border-top:1px solid #d9dfd9;padding:28px 0;display:flex;flex-direction:column;min-width:0}
body.cp-global-shell .cp54-help-card h2{font-size:29px!important}.cp54-help-card p{flex:1}.cp54-help-card a{display:flex;justify-content:space-between;gap:16px;font-weight:600;padding:12px 0;color:#173e30}
.cp54-number{font:12px/1.5 Arial,sans-serif;color:#9a7a38}.cp54-soft{background:#f6f3ea;padding:64px 0}
.cp54-split{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:start}.cp54-contact{padding-top:64px;padding-bottom:64px}
body.cp-global-shell .cp54-button{display:inline-flex;justify-content:space-between;align-items:center;gap:32px;min-height:52px;padding:16px 24px;border:0;border-radius:3px;background:#173e30;color:white;font:600 16px/1.4 Arial,sans-serif;text-decoration:none;max-width:100%;cursor:pointer}
.cp54-button:hover{background:#25523f!important}.cp54-button:focus-visible{outline:3px solid #b89951;outline-offset:3px}
.cp54-legal{display:flex;gap:28px;flex-wrap:wrap;padding:20px 0;border-top:1px solid #d9dfd9}.cp54-legal a{color:#173e30}
.cp54-partner-hero{display:grid;grid-template-columns:1.05fr 1fr;gap:64px;padding-top:76px;padding-bottom:76px;align-items:center}
.cp54-text-link{display:block;width:fit-content;color:#173e30;margin-top:22px;text-decoration:underline}
.cp54-product-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:center}
.cp54-product-group a{text-align:center;color:#173e30;text-decoration:none;min-width:0}.cp54-product-group img{width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;mix-blend-mode:multiply}.cp54-product-group span{display:block;font-size:13px;line-height:1.5;margin-top:18px}
.cp54-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px;margin-top:40px}.cp54-three article{border-top:1px solid #d9d6c9;padding-top:24px}
.cp54-partner-form-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:64px}.cp54-form-card{background:white;padding:32px;border:1px solid #deded2;border-radius:6px;min-width:0}
.cp54-steps{margin:32px 0;padding-left:22px}.cp54-steps li{padding-left:10px;margin:20px 0}.cp54-steps span{display:block;line-height:1.6;margin-top:7px}
.cp54-form-row{display:grid;grid-template-columns:1fr 1fr;gap:20px}.cp54-partner-form label{display:block;font-size:15px;font-weight:600;margin-bottom:20px;color:#173e30}.cp54-partner-form label>span{font-weight:400}
body.cp-global-shell .cp54-partner-form :is(input:not([type=checkbox]):not([type=hidden]),select,textarea){display:block;width:100%;max-width:100%;min-width:0;border:1px solid #bcc8bf;background:white;padding:12px;border-radius:3px;font-size:16px;line-height:1.4;color:#173e30;margin-top:8px;min-height:48px}
.cp54-partner-form textarea{resize:vertical}.cp54-partner-form .cp54-consent{display:flex;align-items:flex-start;gap:12px;font-size:15px;line-height:1.6}.cp54-consent input{margin-top:5px;flex-shrink:0;width:18px;height:18px}.cp54-consent a{color:#173e30;text-decoration:underline}
.cp54-trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.cp54-form-status{padding:18px;border:1px solid #b89951;background:#f6f3ea}.cp54-page .cp54-form-note{font-size:13px!important;margin-bottom:0!important}
body.cp-global-shell :is(.cp54-home-title,.cp54-shop-title,.cp54-results-title){font:400 42px/1.18 Georgia,'Times New Roman',serif!important;color:#173e30;letter-spacing:-.025em;margin:0}
body.cp-global-shell .cp-mobile-nav>a.cp54-corner-link{display:block;white-space:nowrap}
@media(max-width:767px){.cp54-shell{width:calc(100% - 40px)}.cp54-hero{padding:44px 0 30px}.cp54-help-grid{grid-template-columns:1fr;gap:0;padding-bottom:28px}.cp54-split,.cp54-partner-hero,.cp54-partner-form-grid,.cp54-three{grid-template-columns:1fr;gap:28px}.cp54-soft,.cp54-contact{padding-top:40px;padding-bottom:40px}.cp54-partner-hero{padding-top:44px;padding-bottom:44px}.cp54-form-card{padding:22px 18px}.cp54-form-row{grid-template-columns:1fr;gap:0}.cp54-three{margin-top:24px}.cp54-product-group{max-width:420px;margin:0 auto}.cp54-page .cp54-product-group span{font-size:12px}.cp54-page .cp54-button{width:100%;gap:14px}.cp54-legal{gap:18px;font-size:15px}body.cp-global-shell :is(.cp54-home-title,.cp54-shop-title,.cp54-results-title){font-size:30px!important}body.cp-global-shell .cp54-page p{font-size:17px}.cp54-partner-form-grid{gap:36px}}

body.cp54-service-page #content>.ast-container{display:block!important;max-width:none!important;padding:0!important;width:100%!important}body.cp54-service-page #primary.cp54-page{width:100%!important;float:none!important;margin:0!important;flex:none!important}body.cp54-partner-page #cp36-newsletter{display:none!important}

/* Consistent brand links and equal visible bottle scale. */
body.cp-global-shell .cp54-page a:not(.cp54-button){color:#173e30;text-decoration-color:#b89951}
body.cp-global-shell .cp54-page a:not(.cp54-button):is(:hover,:focus){color:#75602d}
.cp54-bottle-frame{aspect-ratio:1;display:flex;align-items:center;justify-content:center;overflow:hidden}
.cp54-steps{padding-left:0;padding-inline-start:22px}.cp54-steps li{padding-left:0;padding-inline-start:10px}
html[lang^="ar"] .cp54-page :is(h1,h2,h3){letter-spacing:0!important;line-height:1.45;font-family:Arial,Tahoma,sans-serif!important}
html[lang^="ar"] .cp54-page .cp54-eyebrow{letter-spacing:0!important}
.cp54-partner-form :is(input[type="email"],input[type="tel"],input[name="website"]){direction:ltr;text-align:left}

/* Restore original Customer Corner navigation; mobile panel stays in document flow. */
body.cp-site-v38 .cp54-corner-restored{padding-block:48px 64px}
body.cp-site-v38 .cp54-corner-menu.cp42-care-panel{position:static;width:min(100%,480px);box-shadow:none;margin-block:28px}
@media(max-width:1024px){
 body.cp-site-v38 .cp-mobile-nav{max-height:calc(100dvh - 110px);overflow-y:auto;overscroll-behavior:contain}
 body.cp-site-v38 .cp-mobile-nav .cp42-care{width:100%;min-width:0}
 body.cp-site-v38 .cp-mobile-nav .cp42-care>summary{padding:16px 0!important;border-bottom:1px solid #edf0e9}
 body.cp-site-v38 .cp-mobile-nav .cp42-care-panel{position:static!important;inset:auto!important;width:100%!important;max-width:100%;padding:8px 12px 16px!important;box-sizing:border-box;box-shadow:none;border:0;background:#faf8f3}
 body.cp-site-v38 .cp-mobile-nav .cp42-care-panel a{white-space:normal!important;min-height:44px;align-items:center;gap:12px;font-size:16px!important}
}

@media(max-width:1024px){body.cp-site-v38 .cp-mobile-nav .cp42-care>summary{width:100%!important;height:auto!important;display:flex!important;justify-content:flex-start!important;white-space:nowrap!important;font-weight:600;box-sizing:border-box}}
