/* Melanin Bliss Account Gate v1.5.0 — robust light theme */
:root{
  --mbag-bg:#ffffff;
  --mbag-panel:#ffffff;
  --mbag-text:#3e2723;
  --mbag-muted:#6f5d58;
  --mbag-accent:#844d00;
  --mbag-button:#844d00;
  --mbag-line:rgba(132,77,0,.18);
  --mbag-shadow:0 18px 48px rgba(62,39,35,.09);
  --mbag-body-font:var(--mb-font-body,"Portal","Inter",Arial,sans-serif);
  --mbag-heading-font:var(--mb-font-heading,"Portal","Open Sans",Arial,sans-serif);
}

/* Popup gate ------------------------------------------------------------ */
.mbag-locked{overflow:hidden}
.mbag-modal{position:fixed;inset:0;z-index:100020;display:grid;place-items:center;padding:20px;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .25s ease,visibility .25s ease}
.mbag-modal.is-open{visibility:visible;opacity:1;pointer-events:auto}
.mbag-backdrop{position:absolute;inset:0;background:rgba(62,39,35,.34);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.mbag-dialog{position:relative;z-index:1;width:min(94vw,960px);max-height:92vh;overflow:auto;padding:clamp(28px,5vw,56px);border:1px solid var(--mbag-line);border-radius:28px;background:#fff;color:var(--mbag-text);box-shadow:0 36px 100px rgba(62,39,35,.22);font-family:var(--mbag-body-font)}
.mbag-close{position:absolute;top:18px;right:18px;width:44px;height:44px;display:grid;place-items:center;padding:0;border:1px solid rgba(132,77,0,.22);border-radius:50%;background:#fff;color:#3e2723;font-size:28px;line-height:1;cursor:pointer}
.mbag-close:hover,.mbag-close:focus{background:#f6f3ee;color:#844d00;outline:none}
.mbag-brand{color:#844d00;font-family:var(--mbag-heading-font);font-size:.76rem;font-weight:700;letter-spacing:.22em;text-transform:uppercase}
.mbag-heading{max-width:680px;margin:24px 0 30px}
.mbag-heading>span{color:#844d00;font-size:.72rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase}
.mbag-heading h2{margin:10px 0 12px;color:#3e2723!important;font-family:var(--mbag-heading-font);font-size:clamp(2rem,5vw,3.7rem);font-weight:700;line-height:1.05;letter-spacing:-.045em;opacity:1!important}
.mbag-heading p{max-width:58ch;margin:0;color:#6f5d58!important;line-height:1.7;opacity:1!important}
.mbag-form .u-columns{display:grid!important;grid-template-columns:1fr 1fr!important;gap:24px!important;margin:0!important}
.mbag-form .u-column1,.mbag-form .u-column2{float:none!important;width:auto!important;margin:0!important;padding:28px!important;border:1px solid var(--mbag-line)!important;border-radius:22px!important;background:#fff!important;box-shadow:var(--mbag-shadow)!important}
.mbag-form h2{margin:0 0 22px!important;color:#3e2723!important;font-family:var(--mbag-heading-font)!important;font-size:1.55rem!important;font-weight:700!important;opacity:1!important}
.mbag-form p,.mbag-form label,.mbag-form span,.mbag-form small{color:#3e2723!important;opacity:1!important}
.mbag-form label{display:block;margin:0 0 8px;font-weight:500}
.mbag-form input.input-text{box-sizing:border-box;width:100%!important;min-height:52px;border:1px solid rgba(132,77,0,.24)!important;border-radius:14px!important;background:#fff!important;color:#3e2723!important;padding:13px 15px!important;box-shadow:none!important}
.mbag-form input.input-text:focus{border-color:#844d00!important;outline:2px solid rgba(132,77,0,.12)!important;outline-offset:1px}
.mbag-form button.button{border:0!important;border-radius:999px!important;background:#844d00!important;color:#fff!important;padding:13px 24px!important;font-weight:800!important;letter-spacing:.08em!important;text-transform:uppercase!important;box-shadow:none!important}
.mbag-form button.button:hover,.mbag-form button.button:focus{background:#6f4100!important;color:#fff!important}
.mbag-form a{color:#844d00!important;text-decoration-color:rgba(132,77,0,.35)!important}

/* WooCommerce My Account page ------------------------------------------ */
body.mbag-styled-account,
body.mbag-styled-account #page,
body.mbag-styled-account .site,
body.mbag-styled-account .site-content,
body.mbag-styled-account .site-main,
body.mbag-styled-account main,
body.mbag-styled-account #primary,
body.mbag-styled-account .content-area{background:#fff!important;color:#3e2723!important}

body.mbag-styled-account :where(.entry-header,.page-header){width:min(92%,1240px)!important;margin:0 auto!important;padding:clamp(32px,5vw,58px) 0 8px!important}
body.mbag-styled-account :where(.entry-title,.page-title,h1){margin:0!important;color:#3e2723!important;font-family:var(--mbag-heading-font)!important;font-size:clamp(2.1rem,4vw,3.2rem)!important;font-weight:600!important;line-height:1.12!important;letter-spacing:-.035em!important;opacity:1!important}
body.mbag-styled-account .woocommerce{width:min(92%,1240px)!important;margin:0 auto!important;padding:clamp(24px,4vw,48px) 0 clamp(64px,8vw,96px)!important;font-family:var(--mbag-body-font)!important;color:#3e2723!important}
body.mbag-styled-account .woocommerce :where(h2,h3,h4,p,label,span,small,strong,em,li,legend){color:#3e2723!important;opacity:1!important}
body.mbag-styled-account .woocommerce h2{margin:0 0 24px!important;font-family:var(--mbag-heading-font)!important;font-size:clamp(1.7rem,2.6vw,2.2rem)!important;font-weight:600!important;line-height:1.2!important}

/* Logged-out Login/Register layout */
body.mbag-styled-account .woocommerce .u-columns.col2-set{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:28px!important;margin:0!important;align-items:start!important}
body.mbag-styled-account .woocommerce .u-column1,
body.mbag-styled-account .woocommerce .u-column2{float:none!important;width:auto!important;margin:0!important;padding:clamp(24px,3vw,36px)!important;border:1px solid var(--mbag-line)!important;border-radius:24px!important;background:#fff!important;box-shadow:var(--mbag-shadow)!important}
body.mbag-styled-account .woocommerce form.login,
body.mbag-styled-account .woocommerce form.register{margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.mbag-styled-account .woocommerce form .form-row{margin:0 0 18px!important;padding:0!important}
body.mbag-styled-account .woocommerce form label{display:block!important;margin:0 0 8px!important;color:#3e2723!important;font-weight:500!important;opacity:1!important}
body.mbag-styled-account .woocommerce input.input-text,
body.mbag-styled-account .woocommerce input[type="text"],
body.mbag-styled-account .woocommerce input[type="email"],
body.mbag-styled-account .woocommerce input[type="password"],
body.mbag-styled-account .woocommerce textarea,
body.mbag-styled-account .woocommerce select{box-sizing:border-box!important;width:100%!important;min-height:52px!important;border:1px solid rgba(132,77,0,.24)!important;border-radius:14px!important;background:#fff!important;color:#3e2723!important;padding:13px 15px!important;box-shadow:none!important;opacity:1!important}
body.mbag-styled-account .woocommerce input::placeholder,
body.mbag-styled-account .woocommerce textarea::placeholder{color:#8b7771!important;opacity:1!important}
body.mbag-styled-account .woocommerce input:focus,
body.mbag-styled-account .woocommerce textarea:focus,
body.mbag-styled-account .woocommerce select:focus{border-color:#844d00!important;outline:2px solid rgba(132,77,0,.12)!important;outline-offset:1px!important}
body.mbag-styled-account .woocommerce .password-input{display:block!important;width:100%!important}
body.mbag-styled-account .woocommerce .show-password-input{color:#3e2723!important;opacity:1!important}
body.mbag-styled-account .woocommerce button.button,
body.mbag-styled-account .woocommerce a.button,
body.mbag-styled-account .woocommerce input.button{border:0!important;border-radius:999px!important;background:#844d00!important;color:#fff!important;padding:13px 24px!important;font-weight:800!important;letter-spacing:.07em!important;text-transform:uppercase!important;box-shadow:none!important}
body.mbag-styled-account .woocommerce button.button:hover,
body.mbag-styled-account .woocommerce a.button:hover,
body.mbag-styled-account .woocommerce input.button:hover{background:#6f4100!important;color:#fff!important}
body.mbag-styled-account .woocommerce a{color:#844d00!important;text-decoration-color:rgba(132,77,0,.35)!important;opacity:1!important}
body.mbag-styled-account .woocommerce .woocommerce-form-login__rememberme{display:inline-flex!important;align-items:center!important;gap:7px!important;margin:0 14px 0 0!important;color:#3e2723!important;opacity:1!important}
body.mbag-styled-account .woocommerce .woocommerce-privacy-policy-text,
body.mbag-styled-account .woocommerce .woocommerce-privacy-policy-text p{color:#6f5d58!important;opacity:1!important;line-height:1.65!important}

/* Logged-in account navigation/content */
body.mbag-styled-account .woocommerce-MyAccount-navigation ul{display:grid!important;gap:6px!important;margin:0!important;padding:18px!important;list-style:none!important;border:1px solid var(--mbag-line)!important;border-radius:22px!important;background:#fff!important;box-shadow:var(--mbag-shadow)!important}
body.mbag-styled-account .woocommerce-MyAccount-navigation a{display:block!important;padding:12px 14px!important;border-radius:11px!important;color:#5f4b46!important;text-decoration:none!important}
body.mbag-styled-account .woocommerce-MyAccount-navigation .is-active a,
body.mbag-styled-account .woocommerce-MyAccount-navigation a:hover{background:#f6f3ee!important;color:#844d00!important}
body.mbag-styled-account .woocommerce-MyAccount-content{padding:clamp(22px,4vw,40px)!important;border:1px solid var(--mbag-line)!important;border-radius:22px!important;background:#fff!important;box-shadow:var(--mbag-shadow)!important;min-height:320px!important;color:#3e2723!important}
body.mbag-styled-account .woocommerce table.shop_table{overflow:hidden!important;border-color:rgba(132,77,0,.18)!important;border-radius:16px!important;background:#fff!important;color:#3e2723!important}
body.mbag-styled-account .woocommerce table.shop_table th,
body.mbag-styled-account .woocommerce table.shop_table td{color:#3e2723!important;border-color:rgba(132,77,0,.14)!important}
body.mbag-styled-account .woocommerce mark{background:#f6f3ee!important;color:#844d00!important}

@media(max-width:900px){
  body.mbag-styled-account .woocommerce .u-columns.col2-set{grid-template-columns:1fr!important}
}
@media(max-width:760px){
  .mbag-modal{padding:12px}
  .mbag-dialog{padding:28px 18px;border-radius:22px}
  .mbag-form .u-columns{grid-template-columns:1fr!important}
  .mbag-form .u-column1,.mbag-form .u-column2{padding:22px!important}
  body.mbag-styled-account :where(.entry-header,.page-header){padding-top:28px!important}
  body.mbag-styled-account .woocommerce{width:min(92%,680px)!important;padding-top:20px!important;padding-bottom:100px!important}
  body.mbag-styled-account .woocommerce .u-column1,
  body.mbag-styled-account .woocommerce .u-column2{padding:22px!important;border-radius:18px!important}
  body.mbag-styled-account .woocommerce-MyAccount-navigation,
  body.mbag-styled-account .woocommerce-MyAccount-content{float:none!important;width:100%!important}
  body.mbag-styled-account .woocommerce-MyAccount-content{margin-top:18px!important}
}
