/* Bentryx Cuentas: scoped exclusively to the WooCommerce My Account page. */
body.btx-cuentas-active {
  --btx-account-bg:var(--bg,#0c111b);
  --btx-account-panel:var(--panel,#19253a);
  --btx-account-panel2:var(--panel2,#202938);
  --btx-account-stroke:var(--stroke,#343f50);
  --btx-account-white:var(--white,#fff);
  --btx-account-muted:var(--muted,#98a2b2);
  --btx-account-red:var(--red,#d81915);
  background:var(--btx-account-bg)!important;
  color:var(--btx-account-white);
}
body.btx-cuentas-active :is(main, #main, #content, .site-content, .content-area, .site-main, .entry-content, .elementor-location-single) {background:transparent!important;}
body.btx-cuentas-active .woocommerce,
body.btx-cuentas-active .woocommerce-account .woocommerce {color:var(--btx-account-white);}
body.btx-cuentas-active :is(.entry-content > .woocommerce, .wp-block-shortcode > .woocommerce, .woocommerce > .u-columns, .woocommerce > .woocommerce-MyAccount-navigation, .woocommerce > .woocommerce-MyAccount-content) {box-sizing:border-box;}
body.btx-cuentas-active .entry-content:has(> .woocommerce),
body.btx-cuentas-active .woocommerce:has(> #customer_login),
body.btx-cuentas-active .woocommerce:has(> .woocommerce-MyAccount-navigation){max-width:var(--btx-account-max,1140px);width:calc(100% - 40px);margin-inline:auto;}
body.btx-cuentas-active .woocommerce:has(> #customer_login),
body.btx-cuentas-active .woocommerce:has(> .woocommerce-MyAccount-navigation){padding-block:44px 80px;}
body.btx-cuentas-active .btx-account-intro{position:relative;margin:0 0 30px;padding:36px clamp(20px,4vw,48px);background:linear-gradient(115deg,var(--btx-account-panel) 0%,var(--btx-account-bg) 85%);border:1px solid var(--btx-account-stroke);border-radius:16px;overflow:hidden}
body.btx-cuentas-active .btx-account-intro::after{content:"";position:absolute;right:-55px;top:-100px;width:250px;height:250px;border:1px solid color-mix(in srgb,var(--btx-account-red) 30%,transparent);border-radius:50%;pointer-events:none}
body.btx-cuentas-active .btx-account-eyebrow{display:block;color:var(--btx-account-red);font-size:12px;letter-spacing:.14em;font-weight:800;margin-bottom:12px}
body.btx-cuentas-active .btx-account-intro h1{font-family:var(--font-display,inherit);color:var(--btx-account-white)!important;font-weight:800;font-size:clamp(28px,3.3vw,44px);line-height:1.12;margin:0 0 12px!important}
body.btx-cuentas-active .btx-account-intro p{color:var(--btx-account-muted)!important;font-size:15px;line-height:1.6;margin:0!important}
body.btx-cuentas-active .btx-account-intro--compact{padding:26px 34px}
body.btx-cuentas-active .woocommerce #customer_login {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:0!important;}
body.btx-cuentas-active .woocommerce #customer_login::before,
body.btx-cuentas-active .woocommerce #customer_login::after{content:none!important}
body.btx-cuentas-active .woocommerce #customer_login > .u-column1,
body.btx-cuentas-active .woocommerce #customer_login > .u-column2{float:none!important;width:100%!important;max-width:none!important;margin:0!important;min-width:0;}
body.btx-cuentas-active .woocommerce #customer_login h2{font-family:var(--font-display,inherit);color:var(--btx-account-white)!important;font-size:clamp(23px,2vw,30px);margin:0 0 17px!important;font-weight:800;}
body.btx-cuentas-active .woocommerce :is(form.login,form.register,form.lost_reset_password,form.edit-account,form.edit-address){background:var(--btx-account-panel)!important;border:1px solid var(--btx-account-stroke)!important;border-radius:14px!important;padding:clamp(20px,3vw,32px)!important;margin:0!important;box-shadow:none!important;color:var(--btx-account-white)!important;}
body.btx-cuentas-active .woocommerce :is(form.login,form.register,form.lost_reset_password,form.edit-account,form.edit-address) p,
body.btx-cuentas-active .woocommerce :is(label,legend){color:var(--btx-account-white)!important;}
body.btx-cuentas-active .woocommerce .form-row{margin:0 0 17px!important;padding:0!important;}
body.btx-cuentas-active .woocommerce .form-row label{font-size:13px;font-weight:700;margin-bottom:7px;line-height:1.5;}
body.btx-cuentas-active .woocommerce :is(input.input-text,input[type="text"],input[type="email"],input[type="password"],input[type="tel"],textarea,select,.select2-selection){width:100%;min-height:45px;background:var(--btx-account-panel2)!important;color:var(--btx-account-white)!important;border:1px solid var(--btx-account-stroke)!important;border-radius:7px!important;box-shadow:none!important;padding:10px 12px;font:inherit;}
body.btx-cuentas-active .woocommerce :is(input,textarea)::placeholder{color:var(--btx-account-muted)!important;opacity:1}
body.btx-cuentas-active .woocommerce input[type="checkbox"]{accent-color:var(--btx-account-red);width:auto;min-height:0;}
body.btx-cuentas-active .woocommerce :is(input,select,textarea,a,button):focus-visible{outline:2px solid var(--btx-account-red)!important;outline-offset:2px;}
body.btx-cuentas-active .woocommerce :is(button.button,input.button,a.button,.woocommerce-Button){background:var(--btx-account-red)!important;color:#fff!important;border:1px solid var(--btx-account-red)!important;box-shadow:none!important;border-radius:7px!important;font-weight:800!important;padding:12px 20px!important;min-height:44px;line-height:1.25;transition:filter .2s ease;}
body.btx-cuentas-active .woocommerce :is(button.button,input.button,a.button,.woocommerce-Button):hover{filter:brightness(1.12)}
body.btx-cuentas-active .woocommerce a:not(.button){color:var(--btx-account-white);text-decoration:underline;text-underline-offset:3px;}
body.btx-cuentas-active .woocommerce :is(.woocommerce-LostPassword,.woocommerce-privacy-policy-text,.woocommerce-form__label-for-checkbox){color:var(--btx-account-muted)!important;}
body.btx-cuentas-active .woocommerce .woocommerce-MyAccount-navigation{float:none!important;width:100%!important;}
body.btx-cuentas-active .woocommerce:has(> .woocommerce-MyAccount-navigation){display:grid;grid-template-columns:minmax(190px,250px) minmax(0,1fr);gap:25px;align-items:start;}
body.btx-cuentas-active .woocommerce:has(> .woocommerce-MyAccount-navigation) > .btx-account-intro{grid-column:1/-1;margin:0;}
body.btx-cuentas-active .woocommerce .woocommerce-MyAccount-content{float:none!important;width:100%!important;min-width:0;color:var(--btx-account-white);background:var(--btx-account-panel);border:1px solid var(--btx-account-stroke);border-radius:14px;padding:clamp(20px,3vw,32px);}
body.btx-cuentas-active .woocommerce .woocommerce-MyAccount-content :is(h2,h3,h4,p,strong){color:var(--btx-account-white);}
body.btx-cuentas-active .woocommerce .woocommerce-MyAccount-content p{line-height:1.7}
body.btx-cuentas-active .woocommerce .woocommerce-MyAccount-navigation ul{list-style:none;margin:0!important;padding:9px!important;background:var(--btx-account-panel);border:1px solid var(--btx-account-stroke);border-radius:14px;}
body.btx-cuentas-active .woocommerce .woocommerce-MyAccount-navigation li{margin:0!important;padding:0!important;}
body.btx-cuentas-active .woocommerce .woocommerce-MyAccount-navigation li a{display:block;padding:13px 14px;color:var(--btx-account-muted)!important;text-decoration:none!important;border-radius:8px;transition:background .2s,color .2s}
body.btx-cuentas-active .woocommerce .woocommerce-MyAccount-navigation li.is-active a,
body.btx-cuentas-active .woocommerce .woocommerce-MyAccount-navigation li a:hover{background:var(--btx-account-panel2);color:#fff!important;}
body.btx-cuentas-active .woocommerce :is(table.shop_table,.woocommerce-orders-table){background:var(--btx-account-panel2);color:var(--btx-account-white);border:1px solid var(--btx-account-stroke);border-collapse:separate;border-spacing:0;overflow:hidden;border-radius:10px;}
body.btx-cuentas-active .woocommerce :is(table.shop_table,.woocommerce-orders-table) :is(th,td){color:var(--btx-account-white)!important;border-color:var(--btx-account-stroke)!important;background:transparent!important;}
body.btx-cuentas-active .woocommerce :is(.woocommerce-info,.woocommerce-message,.woocommerce-error){background:var(--btx-account-panel)!important;color:var(--btx-account-white)!important;border:1px solid var(--btx-account-stroke)!important;border-left:4px solid var(--btx-account-red)!important;border-radius:8px;padding:17px 22px!important;}
body.btx-cuentas-active .woocommerce :is(.woocommerce-info,.woocommerce-message,.woocommerce-error)::before{color:var(--btx-account-red)!important}
body.btx-cuentas-active .woocommerce .woocommerce-Address{padding:18px;border:1px solid var(--btx-account-stroke);border-radius:10px;background:var(--btx-account-panel2)}
body.btx-cuentas-active .woocommerce .woocommerce-Address address{color:var(--btx-account-muted);font-style:normal}
/* Widget de Turnstile preserved; never hide its iframe or required-response inputs. */
body.btx-cuentas-active .woocommerce :is(.cf-turnstile,.cf-turnstile-container,.cf-turnstile-wrapper){margin-block:12px;max-width:100%;}
@media(max-width:800px){
 body.btx-cuentas-active .woocommerce #customer_login{grid-template-columns:1fr;gap:24px}
 body.btx-cuentas-active .woocommerce:has(> .woocommerce-MyAccount-navigation){grid-template-columns:1fr;gap:18px}
 body.btx-cuentas-active .woocommerce .woocommerce-MyAccount-navigation ul{display:flex;gap:5px;overflow-x:auto;white-space:nowrap}
 body.btx-cuentas-active .woocommerce .woocommerce-MyAccount-navigation li{flex:0 0 auto}
}
@media(max-width:480px){
 body.btx-cuentas-active .woocommerce:has(> #customer_login),body.btx-cuentas-active .woocommerce:has(> .woocommerce-MyAccount-navigation){width:calc(100% - 28px);padding-block:22px 48px}
 body.btx-cuentas-active .btx-account-intro{padding:25px 20px}
 body.btx-cuentas-active .woocommerce :is(form.login,form.register,form.lost_reset_password,form.edit-account,form.edit-address){padding:20px!important}
 body.btx-cuentas-active .woocommerce .woocommerce-MyAccount-content{padding:18px}
 body.btx-cuentas-active .woocommerce table.shop_table{display:block;overflow-x:auto}
}
@media(prefers-reduced-motion:reduce){body.btx-cuentas-active *,body.btx-cuentas-active *::before,body.btx-cuentas-active *::after{transition:none!important;scroll-behavior:auto!important}}

/* v1.0.1: WooCommerce account layout repair (theme/Elementor independent). */
body.btx-cuentas-active.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation),
body.btx-cuentas-active .woocommerce:has(> .woocommerce-MyAccount-navigation) {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  align-items: start !important;
  column-gap: clamp(18px, 2.8vw, 32px) !important;
  row-gap: 22px !important;
  width: min(calc(100% - 40px), var(--btx-account-max, 1140px)) !important;
  max-width: var(--btx-account-max, 1140px) !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: 48px 0 76px !important;
  float: none !important;
}
body.btx-cuentas-active.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation,
body.btx-cuentas-active .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-navigation {
  display: block !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  position: static !important;
  float: none !important;
  clear: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.btx-cuentas-active.woocommerce-account .woocommerce .woocommerce-MyAccount-content,
body.btx-cuentas-active .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-content {
  display: block !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  position: static !important;
  float: none !important;
  clear: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow-wrap: anywhere;
}
body.btx-cuentas-active .woocommerce-MyAccount-content > .btx-account-intro {
  width: 100%; max-width: none; margin-bottom: 24px;
}
@media (max-width: 800px) {
  body.btx-cuentas-active.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation),
  body.btx-cuentas-active .woocommerce:has(> .woocommerce-MyAccount-navigation) {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    width: calc(100% - 28px) !important;
    padding: 24px 0 48px !important;
  }
  body.btx-cuentas-active.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation,
  body.btx-cuentas-active .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-navigation {
    grid-column: 1 !important; grid-row: 1 !important;
  }
  body.btx-cuentas-active.woocommerce-account .woocommerce .woocommerce-MyAccount-content,
  body.btx-cuentas-active .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-content {
    grid-column: 1 !important; grid-row: 2 !important;
  }
}

/* v1.0.2: suppress WooCommerce decorative notice glyphs that overlap text.
   Notice content and actionable links/buttons remain unchanged. */
body.btx-cuentas-active .woocommerce :is(.woocommerce-info,.woocommerce-message,.woocommerce-error)::before {
  content: none !important;
  display: none !important;
}
