/* WordPress-only additions: generic pages (MemberPress Login/Account/Thank You), the 404 page
   and server-rendered form messages. Loaded on every page after styles.css / theme.css. */

.etb-page .room-section{padding:40px 0 64px;}
.etb-entry{background:#fff; border:1px solid var(--line); border-radius:28px; padding:clamp(22px, 4vw, 34px); box-shadow:0 24px 40px -28px rgba(46,42,36,.25);}
.etb-entry h1{color:var(--navy); font-size:clamp(1.7rem, 3.6vw, 2.4rem); margin:0 0 16px;}
.etb-entry-content{color:#4a4438; line-height:1.7; max-width:70ch;}
.etb-entry-content a:where(:not(.btn):not(.etb-cp-btn)){color:var(--navy); font-weight:700; text-decoration:underline;}   /* text links only: buttons keep their own colours */
.etb-entry-content h2, .etb-entry-content h3{color:var(--navy); margin:26px 0 10px;}
.etb-entry-content ul{list-style:disc; padding-left:1.4em;}
.members-cta{display:flex; flex-wrap:wrap; gap:12px; margin-top:22px;}

/* MemberPress forms inside .etb-entry-content */
.etb-entry-content input[type="text"], .etb-entry-content input[type="email"],
.etb-entry-content input[type="password"], .etb-entry-content select{font:inherit; font-size:1rem; padding:12px 14px; border:1px solid rgba(46,42,36,.35); border-radius:12px; background:#fff; min-height:48px; width:100%; max-width:420px;}
.etb-entry-content input[type="submit"], .etb-entry-content button[type="submit"]{font:inherit; font-weight:800; background:var(--coral-btn); color:#fff; border:0; border-radius:999px; padding:12px 22px; box-shadow:0 6px 0 var(--coral-btn-shadow); cursor:pointer;}

/* server-rendered status line after a form is sent (etb_form_status) */
.cf-status{margin:12px 0 0; font-weight:800; color:#2F6B61;}
.cf-status:empty{display:none;}
.cf-status.is-shown{padding:12px 14px; background:#E6F2EF; border-radius:12px;}
.cf-status.is-error{color:#8a2c0d; background:#FCE9E2;}
.etb-hp{display:none !important;}

/* Founder-only links (Founder Packs door, the Founder song): hidden unless functions.php adds
   body class etb-founder. The files themselves are also refused to non-Founders by the server. */
body:not(.etb-founder) [data-founder-only]{display:none !important;}

/* Blocks meant for the Netlify prototype only (e.g. Netlify form wording, replaced here by
   the real sign-up). data-wp-only blocks are un-hidden by build-wordpress.py removing the attribute. */
[data-netlify-only]{display:none !important;}

/* Emotibears Child Profiles plugin (body classes etb-kid-mode, etb-age-<band>).
   Age bands: an item with data-ages="cubs bears" shows only to those bands in Kid Mode;
   grown-ups and "Show everything" children see all; items without data-ages are for everyone.
   This is a suitability filter, not security - the files are members' media either way. */
body.etb-age-cublets [data-ages]:not([data-ages~="cublets"]),
body.etb-age-cubs [data-ages]:not([data-ages~="cubs"]),
body.etb-age-bears [data-ages]:not([data-ages~="bears"]){display:none !important;}

/* Kid Mode: no shop, contact, account, sign-up or social links in the header and footer
   (the plugin also blocks those pages and pauses links that leave the site). */
body.etb-kid-mode .primary-nav a[href*="/shop/"],
body.etb-kid-mode .primary-nav a[href*="/contact/"],
body.etb-kid-mode .header-right .social-row,
body.etb-kid-mode .header-right .icon-btn,
body.etb-kid-mode .header-right a[href*="/club/"],
body.etb-kid-mode footer .socials,
body.etb-kid-mode footer li:has(> a[href*="/shop/"]),
body.etb-kid-mode footer li:has(> a[href*="/contact/"]),
body.etb-kid-mode footer li:has(> a[href*="/account/"]),
body.etb-kid-mode .etb-grownups-only{display:none !important;}

/* "Pick a bear" uses the bears' plush photos (functions.php etb_child_profile_avatars). */
.etb-cp-avatar, .etb-cp-avatar-choice img{object-fit:cover; object-position:top center; background:#FBF3E7;}

/* ---------- MemberPress account page (inc/account.php, 4 Nov 2026) ---------- */
.etb-acc-top{margin-bottom:18px;}
.etb-acc-hello{display:flex; align-items:center; justify-content:space-between; gap:20px;}
.etb-acc-hello h1{margin:4px 0 6px; color:var(--navy); font-size:clamp(1.6rem,3.4vw,2.2rem);}
.etb-acc-status{margin:0; color:#4a4438; line-height:1.55;}
.etb-acc-status strong{color:var(--navy);}
.etb-acc-tip{margin:10px 0 0; font-size:.92rem; color:#6D6559;}
.etb-acc-badge{width:110px; height:auto; flex:none;}
.etb-acc-nudge{margin:16px 0 0; padding:12px 14px; border-radius:14px; background:#FFF4DA; border:1px solid #EDD9A6; color:#5b4a1c; font-weight:700;}
.etb-acc-nudge a{color:var(--navy); text-decoration:underline; margin-left:6px;}
.etb-acc-links ul{list-style:none; margin:20px 0 0; padding:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px;}
.etb-acc-links a{display:flex; align-items:center; gap:10px; min-height:56px; padding:12px 16px; border-radius:16px; background:var(--cream); border:1px solid var(--line); color:var(--navy); font-weight:800; text-decoration:none; transition:border-color .15s, transform .15s;}
.etb-acc-links a span{font-size:1.4rem;}
.etb-acc-links a:hover{border-color:var(--coral); transform:translateY(-2px);}
.etb-acc-links a:focus-visible{outline:3px solid var(--navy); outline-offset:3px;}

.etb-entry--account .etb-entry-content{max-width:none;}
.etb-acc-settings-head{margin:0 0 16px; color:var(--navy); font-size:1.45rem;}
#mepr-account-welcome-message{display:none;}             /* the panel above says hello */
#mepr-account-nav{display:flex; flex-wrap:wrap; gap:8px; margin:0 0 24px; padding:0 0 18px; border-bottom:1px solid var(--line);}
#mepr-account-nav .mepr-nav-item{margin:0; padding:0;}
#mepr-account-nav .mepr-nav-item a{display:inline-flex; align-items:center; min-height:44px; padding:8px 16px; border-radius:999px; border:1px solid var(--line); background:var(--cream); color:var(--navy); font-weight:800; font-size:.95rem; text-decoration:none;}
#mepr-account-nav .mepr-nav-item a:hover{border-color:var(--coral);}
#mepr-account-nav .mepr-active-nav-tab a, #mepr-account-nav a[aria-current="page"]{background:var(--navy); border-color:var(--navy); color:#fff;}
#mepr-account-nav .mepr-nav-item a:focus-visible{outline:3px solid var(--coral-deep); outline-offset:2px;}
#mepr-account-nav .mepr-logout, #mepr-account-nav .mepr-nav-item:last-child:has(a[href*="logout"]){margin-left:auto;}
#mepr-account-nav .mepr-logout a, #mepr-account-nav a[href*="logout"]{background:#fff; color:#6D6559;}

/* My details form: two columns on wide screens */
.etb-entry--account .mepr-account-form{display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:4px 22px; max-width:760px;}
.etb-entry--account .mepr-account-form > :not(.mp-form-row){grid-column:1 / -1;}
.etb-entry--account .mp-form-row{margin:0 0 12px;}
.etb-entry--account .mp-form-label{display:flex; justify-content:space-between; gap:8px; margin-bottom:6px;}
.etb-entry--account .mp-form-label label{font-weight:800; color:var(--navy); font-size:.95rem;}
.etb-entry--account .mepr-form-input, .etb-entry--account .mp-form-row input, .etb-entry--account .mp-form-row select{max-width:none !important; width:100%; box-sizing:border-box;}
.etb-entry--account .mepr-account-form input[type="submit"]{justify-self:start; margin-top:8px;}
.etb-entry--account a[href*="action=newpassword"]{display:inline-flex; align-items:center; min-height:44px; margin-top:14px; padding:8px 18px; border-radius:999px; border:2px solid var(--navy); color:var(--navy); font-weight:800; text-decoration:none;}
.etb-entry--account .cc-error, .etb-entry--account .mepr_error{color:#8a2c0d; background:#FCE9E2; border-radius:12px; padding:10px 14px;}
.etb-entry--account .mepr_updated, .etb-entry--account .mepr-account-message{color:#1F6B3F; background:#EAF6EE; border-radius:12px; padding:10px 14px; font-weight:700;}

/* My membership / Payment history tables; stacked cards on phones (labels added by inc/account.php) */
.etb-entry--account .mepr-account-table{width:100%; border-collapse:separate; border-spacing:0; font-size:.95rem; border:1px solid var(--line); border-radius:16px; overflow:hidden;}
.etb-entry--account .mepr-account-table th{background:var(--cream); color:var(--navy); text-align:left; font-weight:800; padding:12px 14px; border-bottom:1px solid var(--line);}
.etb-entry--account .mepr-account-table td{padding:12px 14px; border-bottom:1px solid var(--line); vertical-align:top;}
.etb-entry--account .mepr-account-table tr:last-child td{border-bottom:0;}
.etb-entry--account .mepr-account-table a{font-weight:800;}
.etb-acc-note{margin:16px 0 0; padding:12px 14px; border-radius:14px; background:#FFF4DA; border:1px solid #EDD9A6; color:#5b4a1c; line-height:1.5;}
@media (max-width:700px){
  .etb-entry--account .mepr-account-table, .etb-entry--account .mepr-account-table tbody,
  .etb-entry--account .mepr-account-table tr, .etb-entry--account .mepr-account-table td{display:block; width:auto;}
  .etb-entry--account .mepr-account-table thead{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0);}
  .etb-entry--account .mepr-account-table{border:0;}
  .etb-entry--account .mepr-account-table tr{border:1px solid var(--line); border-radius:16px; margin:0 0 12px; overflow:hidden;}
  .etb-entry--account .mepr-account-table td{display:flex; justify-content:space-between; gap:12px; text-align:right;}
  .etb-entry--account .mepr-account-table td::before{content:attr(data-label); font-weight:800; color:var(--navy); text-align:left;}
  .etb-acc-hello{flex-direction:column-reverse; align-items:flex-start;}
  .etb-acc-badge{width:84px;}
  #mepr-account-nav .mepr-logout, #mepr-account-nav .mepr-nav-item:last-child:has(a[href*="logout"]){margin-left:0;}
}

/* My downloads tab */
.etb-acc-downloads h2{margin-top:0;}
.etb-dl-list{list-style:none !important; padding:0 !important; margin:0; display:grid; gap:10px;}
.etb-dl-list li{display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 16px; border:1px solid var(--line); border-radius:16px; background:var(--cream);}
.etb-dl-list strong{display:block; color:var(--navy);}
.etb-dl-list span{font-size:.88rem; color:#6D6559;}
.etb-acc-small{font-size:.9rem; color:#6D6559;}

/* Your data and privacy */
.etb-acc-data{margin-top:18px;}
.etb-acc-data h2{margin:0 0 8px; color:var(--navy); font-size:1.25rem;}
.etb-acc-data p{color:#4a4438; line-height:1.6; max-width:70ch;}
.etb-acc-data a:not(.btn){color:var(--navy); font-weight:700; text-decoration:underline;}
.etb-acc-data__actions{display:flex; flex-wrap:wrap; gap:10px; margin-top:12px;}
.etb-acc-data__actions form{margin:0;}
@media (prefers-reduced-motion:reduce){ .etb-acc-links a{transition:none;} .etb-acc-links a:hover{transform:none;} }

/* ---------- Header basket button (inc/shop.php etb_header_basket, 4 Nov 2026) ---------- */
.header-right .etb-basket{position:relative; width:auto; min-width:34px; height:34px; padding:0 12px 0 9px; gap:6px; border-radius:999px; text-decoration:none; color:var(--navy); font-weight:800; font-size:.85rem;}
.header-right .etb-basket svg{width:18px; height:18px;}
.header-right .etb-basket svg path{stroke:currentColor;}
.etb-basket__count{position:absolute; top:-6px; right:-6px; min-width:20px; height:20px; padding:0 5px; box-sizing:border-box; border-radius:999px; background:var(--coral-btn,#CE491A); color:#fff; font-size:.72rem; font-weight:900; line-height:20px; text-align:center; box-shadow:0 0 0 2px #fff;}
.etb-basket__count[hidden]{display:none;}
.header-right .etb-basket.has-items{background:var(--gold,#E0A937);}
.header-right .etb-basket:focus-visible{outline:3px solid var(--navy); outline-offset:2px;}
@media (max-width:1100px){
  .header-right .etb-basket{width:34px; padding:0; justify-content:center;}
  .header-right .etb-basket .etb-basket__label{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;}
}

/* MemberPress sign-up: the "Password Strength" read-out is #707071 on #eee (4.3:1, fails WCAG 1.4.3). Darker text, all states. */
.mp-password-strength-display{color:#2E2A24 !important;}

/* Grown-ups' email sign-up (30 Nov 2026, inc/newsletter.php): shown only once Brevo is set up
   (body.etb-newsletter-on), never in Kid Mode. */
[data-newsletter]{display:none !important;}
body.etb-newsletter-on [data-newsletter]{display:block !important;}
body.etb-kid-mode [data-newsletter]{display:none !important;}
