/* Dean's "Connecting US website review 1" (WA 28/11 11:02), US storefront + checkout (inc/us-review1.php). */

/* #1 the scrolling trust bar never shows while a menu is open (desktop Shop mega menu, phone drawer); it also stops moving */
body.cxr1:has(#HMMMega.is-open) .tm-trust,
body.cxr1.hmm-drawer-open .tm-trust{visibility:hidden!important;opacity:0!important}
body.cxr1:has(#HMMMega.is-open) .tm-trust .tm__track,
body.cxr1.hmm-drawer-open .tm-trust .tm__track{animation-play-state:paused!important}

/* #2 checkout: the grey legal line above Pay now carries the policy links, so no red "Terms and policies" link under the form.
   The thank-you page has no legal line: its link stays, grey like the rest of the small print. */
/* review 7 (Dean WA 29/11 11:00): the footer "Terms and policies" is back on the checkout as the LAST thing on the page (opens the policy sheet) */
body.cxco.woocommerce-order-received .cxco-footer a{color:#707070!important}
body.cxco .cxco-subterms{margin:4px 0 16px!important;font-size:12px!important;line-height:17px!important;color:#707070!important}

/* #4 Manage subscription (dod-subs portal): the plugin's stylesheet is Hebrew-first (direction:rtl); English left to right, one centred card */
body.cxr1 .ds-portal,body.cxr1 .ds-tl,body.cxr1 .ds-pdp,body.cxr1 .ds-modal{direction:ltr!important;text-align:left!important}
body.cxr1 .ds-portal{max-width:520px;margin:8px auto 64px;padding:0 20px}
body.cxr1 .ds-portal h2{text-align:center;font-size:26px;line-height:1.25;margin:0 0 10px}
body.cxr1 .ds-portal h2+p,body.cxr1 .ds-portal > p:first-of-type{text-align:center;color:#555;font-size:15px;line-height:1.6;margin:0 auto 22px;max-width:440px}
body.cxr1 .ds-portal form{background:#fff;border:1px solid #e7e2e2;border-radius:16px;padding:24px 22px;box-shadow:0 10px 30px rgba(30,10,10,.06);display:grid;gap:14px}
body.cxr1 .ds-portal label{display:block;text-align:left!important;font-size:13px;font-weight:600;letter-spacing:.2px;margin:0 0 6px;color:#1f1d1c}
body.cxr1 .ds-portal input[type=email],body.cxr1 .ds-portal input[type=text],body.cxr1 .ds-portal input:not([type]){width:100%;height:50px;border:1px solid #cfc9c9;border-radius:10px;padding:0 14px;font-size:16px;background:#fff;text-align:left}
body.cxr1 .ds-portal input:focus-visible{outline:2px solid #a71d21;outline-offset:1px;border-color:#a71d21}
body.cxr1 .ds-portal .ds-btn{min-height:52px;border-radius:10px;letter-spacing:.3px}
/* the page title above the portal repeats its own heading: keep one */
body.cxr1 .cx-page:has(.ds-portal)>h1{display:none}
body.cxr1 .cx-page:has(.ds-portal){padding-top:36px}
body.cxr1 .cx-page:has(.ds-portal) .cx-content{max-width:none!important;width:100%!important;margin:0 auto!important;display:block!important}
body.cxr1 .ds-portal{margin-left:auto!important;margin-right:auto!important}
body.cxr1 .ds-portal .ds-lookup{margin-top:0}

/* #4 Account (login + register): side by side only where there is room; stacked cards on phones */
body.cxr1 .cx-legacy .u-columns.col2-set{display:grid;grid-template-columns:1fr;gap:20px;max-width:960px;margin:0 auto}
body.cxr1 .cx-legacy .u-columns.col2-set .u-column1,body.cxr1 .cx-legacy .u-columns.col2-set .u-column2{width:auto!important;float:none!important;margin:0!important;max-width:none!important}
body.cxr1 .cx-legacy .u-columns.col2-set form{margin:0!important;padding:22px 20px!important;border:1px solid #e7e2e2!important;border-radius:14px!important;background:#fff}
@media (min-width:750px){body.cxr1 .cx-legacy .u-columns.col2-set{grid-template-columns:1fr 1fr;gap:28px}}

/* #5 footer Contact: one fact per line, room to breathe */
body.cxr1 .cxr1-contact{display:flex;flex-direction:column;gap:6px;font-style:normal;line-height:1.5;margin:0}
body.cxr1 .cxr1-contact__co{font-weight:600}
body.cxr1 .cxr1-contact__mail{margin-top:10px;color:inherit;text-decoration:underline;text-underline-offset:3px;width:max-content;max-width:100%}
body.cxr1 .cxr1-contact__hours{opacity:.85}

/* #6 track page: a real card, the form inside it with padding */
body.cxr1 .cxt-search{background:#fff!important;border:1px solid #ece7e7;border-radius:18px!important;padding:8px 24px 24px!important;box-shadow:0 12px 34px rgba(30,10,10,.07);max-width:520px;margin:12px auto 18px!important}
body.cxr1 .cxt-note{background:#f6f3f3!important;color:#4a4550}
@media (max-width:480px){body.cxr1 .cxt-search{padding:4px 16px 18px!important;border-radius:14px!important}}


/* #4 our own pages inside the live layout (policies, account, portal): the 820 px text column sat on the left edge of a 1380 px page
   at desktop widths; centred like Shopify's policy pages */
body.cxr1 .cx-legacy .cx-page>.cx-h1,body.cxr1 .cx-legacy .cx-page>.cx-content{max-width:820px;margin-left:auto;margin-right:auto}
body.cxr1 .cx-legacy .cx-page{padding-bottom:48px}
/* account grid: Woo's clearfix pseudo-elements are not grid cells; readable "Log in" / "Register" buttons */
body.cxr1 .cx-legacy .u-columns.col2-set::before,body.cxr1 .cx-legacy .u-columns.col2-set::after{content:none!important;display:none!important}
body.cxr1 .cx-legacy .woocommerce-form-login__submit,body.cxr1 .cx-legacy .woocommerce-form-register__submit{color:#fff!important;border-radius:10px!important;min-height:46px;padding:0 26px!important;font-weight:700}
body.cxr1 .cx-legacy .u-columns.col2-set input.input-text{height:46px;border-radius:10px!important;padding:0 12px}

/* #5/#6 footer at tablet + desktop: columns sized to their content, links on one line each with even spacing, no word split in the headings */
@media (min-width:750px){
  body.cxr1 .footer__blocks-wrapper.grid{display:grid!important;grid-template-columns:minmax(170px,1.1fr) max-content max-content minmax(240px,1.3fr);column-gap:clamp(28px,4vw,72px);row-gap:40px;margin:0!important}
  body.cxr1 .footer__blocks-wrapper.grid>.footer-block{width:auto!important;max-width:none!important;margin:0!important;padding:0!important}
  body.cxr1 .footer__blocks-wrapper.grid>.footer-block--desktop-12{grid-column:1/-1}
  body.cxr1 .footer-block__heading{word-break:keep-all;overflow-wrap:normal;hyphens:none;margin-bottom:14px!important}
  body.cxr1 .footer-block--menu .list-menu__item--link{white-space:nowrap;padding:4px 0!important;line-height:1.45!important}
  body.cxr1 .cxr1-contact__mail{white-space:nowrap}
}
/* account on phones: the Log in / Register buttons in the brand red with white text */
body.cxr1 .cx-legacy .woocommerce-form-login__submit,body.cxr1 .cx-legacy .woocommerce-form-register__submit{background:#a71d21!important;border:0!important;opacity:1!important}

/* #9 review 1 + Dean review 2 (WA 28/11 12:04 "I just wanted the images bigger"): the 26/11 tiles stay (3 across, same text and badges),
   only the game pictures are bigger: picture row 64 -> 96 px (phone) / 120 px (desktop), the game alone fills its tile, bundles keep "+ FREE playbooks" */
body.cxr1 .cxb--tiles .cxb__tile{padding-left:2px;padding-right:2px}
body.cxr1 .cxb--tiles .cxb__pic{height:96px;gap:1px;margin:0 0 8px}
body.cxr1 .cxb--tiles .cxb__main{width:72px;height:92px;object-fit:contain}
body.cxr1 .cxb--tiles .cxb__tile:first-child .cxb__main{width:100px;height:96px}
body.cxr1 .cxb--tiles .cxb__plus{font-size:12px}
body.cxr1 .cxb--tiles .cxb__gift,body.cxr1 .cxb--tiles .cxb__gift img{width:28px;height:28px}
@media (min-width:750px){
  body.cxr1 .cxb--tiles .cxb__pic{height:120px;gap:3px}
  body.cxr1 .cxb--tiles .cxb__main{width:96px;height:116px}
  body.cxr1 .cxb--tiles .cxb__tile:first-child .cxb__main{width:130px;height:120px}
  body.cxr1 .cxb--tiles .cxb__plus{font-size:14px}
  body.cxr1 .cxb--tiles .cxb__gift,body.cxr1 .cxb--tiles .cxb__gift img{width:40px;height:40px}
}

/* Dean review 2 (WA 28/11 12:04) #2: the policy names open their text in a panel right under the line; it never leaves the checkout */
body.cxco .cxco-legal .cxco-legal__t{margin:0;font:inherit;color:inherit}
body.cxco .cxco-legal a.cxco-pol-link{color:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
body.cxco .cxco-legal a.cxco-pol-link[aria-expanded=true]{color:#000;font-weight:600}
body.cxco .cxco-pol{margin:10px 0 4px;border:1px solid #dedede;border-radius:10px;background:#fff;box-shadow:0 6px 18px rgba(0,0,0,.07);text-align:left;overflow:hidden;animation:cxco-pol-in .18s ease-out}
@keyframes cxco-pol-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
body.cxco .cxco-pol__top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 8px 10px 14px;border-bottom:1px solid #eee;background:#fafafa}
body.cxco .cxco-pol__h{margin:0;font-size:13px;line-height:18px;font-weight:600;color:#000}
body.cxco .cxco-pol__x{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;margin:0;padding:0;border:0;border-radius:8px;background:transparent;color:#333;cursor:pointer}
body.cxco .cxco-pol__x:hover{background:#eee}
body.cxco .cxco-pol__x:focus-visible,body.cxco .cxco-pol__b:focus-visible{outline:2px solid #000;outline-offset:-2px}
body.cxco .cxco-pol__b{max-height:240px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:12px 14px 14px;font-size:12.5px;line-height:1.55;color:#333}
body.cxco .cxco-pol__b :is(h2,h3,h4,h5){font-size:13px;line-height:1.4;font-weight:700;color:#000;margin:14px 0 6px}
body.cxco .cxco-pol__b :is(h2,h3,h4,h5):first-child{margin-top:0}
body.cxco .cxco-pol__b p,body.cxco .cxco-pol__b ul,body.cxco .cxco-pol__b ol{margin:0 0 8px}
body.cxco .cxco-pol__b ul,body.cxco .cxco-pol__b ol{padding-left:18px}
body.cxco .cxco-pol__b a{color:inherit;text-decoration:underline}
body.cxco .cxco-pol__load{color:#707070;margin:0}
@media (min-width:1000px){body.cxco .cxco-pol__b{max-height:300px}}
@media (prefers-reduced-motion:reduce){body.cxco .cxco-pol{animation:none}}
/* narrow tiles (phones, 1024 product column): the bundle picture shrinks to fit, the FREE playbooks + tag stay whole inside the tile */
body.cxr1 .cxb--tiles .cxb__pic{width:100%;box-sizing:border-box;padding:0 8px 0 4px;min-width:0}
body.cxr1 .cxb--tiles .cxb__tile:not(:first-child) .cxb__main{flex:0 1 auto;min-width:0;max-width:calc(100% - 44px)}
body.cxr1 .cxb--tiles .cxb__plus,body.cxr1 .cxb--tiles .cxb__gift{flex:none}
body.cxr1 .cxb--tiles .cxb__gift em{right:-5px}
@media (min-width:750px){body.cxr1 .cxb--tiles .cxb__tile:not(:first-child) .cxb__main{max-width:calc(100% - 58px)}}
/* all widths: the FREE playbooks sit on the picture's bottom corner so the game picture can use the whole tile width */
@media all{
  body.cxr1 .cxb--tiles .cxb__pic{position:relative;padding:0 2px}
  body.cxr1 .cxb--tiles .cxb__plus{display:none}
  body.cxr1 .cxb--tiles .cxb__tile:not(:first-child) .cxb__main{max-width:100%;width:100%;height:92px;flex:1 1 auto}
  body.cxr1 .cxb--tiles .cxb__gift{position:absolute;right:2px;bottom:-4px;width:32px!important;height:32px!important;padding:2px;border-radius:6px;background:#fff;box-shadow:0 1px 6px rgba(0,0,0,.18)}
  body.cxr1 .cxb--tiles .cxb__gift img{width:28px!important;height:28px!important}
  body.cxr1 .cxb--tiles .cxb__gift em{top:-9px;right:-3px}
}
@media (min-width:750px){
  body.cxr1 .cxb--tiles .cxb__tile:not(:first-child) .cxb__main{height:112px}
  body.cxr1 .cxb--tiles .cxb__gift{width:40px!important;height:40px!important}
  body.cxr1 .cxb--tiles .cxb__gift img{width:36px!important;height:36px!important}
}
