/* AYF Mi Cuenta PRO 1.1.1 - presentación visual exclusivamente.
   Respeta al 100% el layout del tema Kadence: ni float, ni position,
   ni display/grid/flex para los contenedores estructurales WooCommerce. */
body.woocommerce-account .woocommerce-MyAccount-navigation {
  background:transparent;
  color:#142f53;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style:none;
  padding:0;
  margin:0;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  margin:0 0 5px;
  padding:0;
  border:0;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display:block;
  background:#fff;
  color:#17375b !important;
  border:1px solid transparent;
  border-radius:9px;
  padding:12px 14px;
  font-size:15px;
  font-weight:600;
  line-height:1.45;
  text-decoration:none;
  box-shadow:none;
  overflow-wrap:break-word;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:focus-visible {
  background:#eff6ff;
  color:#0b56aa !important;
  border-color:#c8ddf8;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  background:#1466c0;
  color:#fff !important;
  border-color:#1466c0;
}
body.woocommerce-account .woocommerce-MyAccount-content {
  color:#1a314b;
  font-size:16px;
  line-height:1.75;
  min-width:0;
}
body.woocommerce-account .woocommerce-MyAccount-content p { line-height:1.75; }
body.woocommerce-account .woocommerce-MyAccount-content a:not(.button):not(.woocommerce-button) {
  color:#135db0;
  text-underline-offset:3px;
}
body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 {
  color:#102e54;
}
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button,
body.woocommerce-account .woocommerce-MyAccount-content .button,
body.woocommerce-account .woocommerce-form-login .button,
body.woocommerce-account .woocommerce-form-register .button,
body.woocommerce-account .woocommerce-ResetPassword .button {
  background:#1466c0;
  color:#fff !important;
  border:1px solid #1466c0;
  border-radius:8px;
  font-weight:700;
  padding:11px 18px;
  text-decoration:none;
}
body.woocommerce-account .woocommerce-MyAccount-content .button:hover,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button:hover {
  background:#104f98;
  border-color:#104f98;
}
body.woocommerce-account .woocommerce-MyAccount-content input.input-text,
body.woocommerce-account .woocommerce-MyAccount-content input[type='text'],
body.woocommerce-account .woocommerce-MyAccount-content input[type='email'],
body.woocommerce-account .woocommerce-MyAccount-content input[type='password'],
body.woocommerce-account .woocommerce-MyAccount-content input[type='tel'],
body.woocommerce-account .woocommerce-MyAccount-content select,
body.woocommerce-account .woocommerce-MyAccount-content textarea {
  max-width:100%;
  border:1px solid #cbd9e9;
  border-radius:8px;
  background:#fff;
  color:#18314d;
  padding:11px 12px;
  box-shadow:none;
}
body.woocommerce-account .woocommerce-MyAccount-content input:focus,
body.woocommerce-account .woocommerce-MyAccount-content textarea:focus {
  border-color:#2776d1;
  outline:2px solid rgba(39,118,209,.12);
}
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-form-row,
body.woocommerce-account .woocommerce-MyAccount-content .form-row {
  min-width:0;
}
body.woocommerce-account .woocommerce-MyAccount-content fieldset {
  border:1px solid #d9e4f1;
  border-radius:10px;
  padding:16px;
  margin:20px 0;
}
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table {
  border:1px solid #dce7f3;
  border-radius:10px;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
}
body.woocommerce-account .woocommerce-MyAccount-content table th {
  color:#173b68;
  background:#edf4fe;
  font-weight:700;
}
body.woocommerce-account .woocommerce-MyAccount-content table td,
body.woocommerce-account .woocommerce-MyAccount-content table th {
  padding:12px;
  border-bottom:1px solid #e4ecf6;
}
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info {
  border-top-color:#1971c9;
  background:#f0f7ff;
  color:#213b55;
}
/* No rules touch .woocommerce-MyAccount-navigation width/float/position,
   .woocommerce-MyAccount-content width/float/position or external plugin endpoints. */
@media(max-width:700px){
  body.woocommerce-account .woocommerce-MyAccount-navigation ul li a { padding:10px 12px; font-size:14px; }
  body.woocommerce-account .woocommerce-MyAccount-content table td,
  body.woocommerce-account .woocommerce-MyAccount-content table th { padding:9px; }
}

/* v1.1.1: Botones de descargas en el apartado Mis Calculadoras.
   No se modifican columnas, elementos estructurales o endpoints. */
body.woocommerce-account:has(.woocommerce-MyAccount-navigation li.is-active a[href*="calculadora"]) .woocommerce-MyAccount-content a.button,
body.woocommerce-account:has(.woocommerce-MyAccount-navigation li.is-active a[href*="calculadora"]) .woocommerce-MyAccount-content a[download],
body.woocommerce-account:has(.woocommerce-MyAccount-navigation li.is-active a[href*="calculadora"]) .woocommerce-MyAccount-content a[style*="background"],
body.woocommerce-account:has(.woocommerce-MyAccount-navigation li.is-active a[href*="calculadora"]) .woocommerce-MyAccount-content a[class*="download"],
body.woocommerce-account:has(.woocommerce-MyAccount-navigation li.is-active a[href*="calculadora"]) .woocommerce-MyAccount-content a[class*="descarga"] {
  background:#1768c7 !important;
  border-color:#1768c7 !important;
  color:#ffffff !important;
  border-radius:10px;
}
body.woocommerce-account:has(.woocommerce-MyAccount-navigation li.is-active a[href*="calculadora"]) .woocommerce-MyAccount-content a.button:hover,
body.woocommerce-account:has(.woocommerce-MyAccount-navigation li.is-active a[href*="calculadora"]) .woocommerce-MyAccount-content a[download]:hover,
body.woocommerce-account:has(.woocommerce-MyAccount-navigation li.is-active a[href*="calculadora"]) .woocommerce-MyAccount-content a[style*="background"]:hover {
  background:#104f98 !important;
  border-color:#104f98 !important;
}
/* Títulos dentro de paneles con fondo azul oscuro declarado en línea.
   Las tarjetas blancas no quedan afectadas. */
body.woocommerce-account .woocommerce-MyAccount-content :is([style*="background:#143"],[style*="background: #143"],[style*="background:#163"],[style*="background: #163"],[style*="background:#173"],[style*="background: #173"],[style*="background-color:#143"],[style*="background-color: #143"]) > :is(h1,h2,h3,h4) {
  color:#ffffff !important;
}
