/* HPP · Mi cuenta v2 — capa encima del CSS heredado, alineada con carrito y checkout */

/* Tipografía base */
html body.hpp-acc-v2 .woocommerce-MyAccount-content,
html body.hpp-acc-v2 .hp-sidebar,
html body.hpp-acc-v2 .woocommerce-form-login,
html body.hpp-acc-v2 .woocommerce-form-register { font-family: var(--font-sans) !important; color: var(--ink); }
html body.hpp-acc-v2 .woocommerce-MyAccount-content h2,
html body.hpp-acc-v2 .woocommerce-MyAccount-content h3,
html body.hpp-acc-v2 #customer_login h2 { font-family: var(--font-sans) !important; font-weight: 600 !important; letter-spacing: -0.01em !important; color: var(--ink) !important; text-transform: none !important; }

/* Menú lateral */
html body.hpp-acc-v2 .woocommerce-MyAccount-navigation li a { border-radius: var(--radius-md) !important; font-weight: 500 !important; text-transform: none !important; letter-spacing: 0 !important; transition: background-color .15s ease, color .15s ease !important; }
html body.hpp-acc-v2 .woocommerce-MyAccount-navigation li:not(.is-active) a:hover { background: var(--brand-red-tint) !important; color: var(--brand-red-text) !important; transform: none !important; }
html body.hpp-acc-v2 .woocommerce-MyAccount-navigation li.is-active a { background: var(--brand-red) !important; background-image: none !important; color: #fff !important; font-weight: 600 !important; box-shadow: 0 6px 16px rgba(231, 25, 25, 0.22) !important; }

/* Números de las tarjetas del escritorio: peso del sistema, no "black" */
html body.hpp-acc-v2 .hp-ma-stats strong,
html body.hpp-acc-v2 .hp-ma-stats b,
html body.hpp-acc-v2 .hp-ma-stats h2,
html body.hpp-acc-v2 .hp-ma-stats h3 { font-family: var(--font-sans) !important; font-weight: 700 !important; letter-spacing: -0.02em !important; }

/* Enlaces */
html body.hpp-acc-v2 .woocommerce-MyAccount-content a:not(.button):not(.woocommerce-button) { color: var(--brand-red-text) !important; }
html body.hpp-acc-v2 .woocommerce-orders-table__cell-order-number a,
html body.hpp-acc-v2 .hp-ma-content .woocommerce-orders-table__cell-order-number a { color: var(--ink) !important; font-weight: 600 !important; }

/* Botones secundarios (Ver, Factura, Volver a pedir, Descargar) */
html body.hpp-acc-v2 .woocommerce-MyAccount-content a.button,
html body.hpp-acc-v2 .woocommerce-MyAccount-content a.woocommerce-button,
html body.hpp-acc-v2 .woocommerce-MyAccount-content .order-again .button {
  display: inline-flex !important; align-items: center; justify-content: center; min-height: 36px !important; height: auto !important; padding: 0 16px !important;
  border: 1px solid var(--brand-red) !important; border-radius: var(--radius-pill) !important; background: var(--surface-card) !important; background-image: none !important;
  color: var(--brand-red-text) !important; font: 600 14px/1 var(--font-sans) !important; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important;
}
html body.hpp-acc-v2 .woocommerce-MyAccount-content a.button:hover,
html body.hpp-acc-v2 .woocommerce-MyAccount-content a.woocommerce-button:hover { background: var(--brand-red-tint) !important; transform: none !important; }

/* Botones principales (Guardar, Acceder, Registrarse) */
html body.hpp-acc-v2 .woocommerce-MyAccount-content button[type="submit"],
html body.hpp-acc-v2 .woocommerce-MyAccount-content .woocommerce-Button,
html body.hpp-acc-v2 #customer_login button[type="submit"],
html body.hpp-acc-v2 .woocommerce-ResetPassword button[type="submit"] {
  display: inline-flex !important; align-items: center; justify-content: center; min-height: 48px !important; height: auto !important; padding: 0 28px !important;
  border: 0 !important; border-radius: var(--radius-pill) !important; background: var(--brand-red) !important; background-image: none !important; color: #fff !important;
  font: 600 16px/1 var(--font-sans) !important; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important;
}
html body.hpp-acc-v2 .woocommerce-MyAccount-content button[type="submit"]:hover,
html body.hpp-acc-v2 #customer_login button[type="submit"]:hover,
html body.hpp-acc-v2 .woocommerce-ResetPassword button[type="submit"]:hover { background: var(--brand-red-hover) !important; transform: none !important; }

/* Campos: iguales al checkout */
html body.hpp-acc-v2 .woocommerce-MyAccount-content label,
html body.hpp-acc-v2 #customer_login label,
html body.hpp-acc-v2 .woocommerce-ResetPassword label { font: 600 14px/20px var(--font-sans) !important; color: var(--ink) !important; text-transform: none !important; letter-spacing: 0 !important; }
html body.hpp-acc-v2 .woocommerce-MyAccount-content label .required,
html body.hpp-acc-v2 #customer_login label .required { color: var(--brand-red) !important; }
html body.hpp-acc-v2 .woocommerce-MyAccount-content .input-text,
html body.hpp-acc-v2 .woocommerce-MyAccount-content select,
html body.hpp-acc-v2 .woocommerce-MyAccount-content .select2-selection--single,
html body.hpp-acc-v2 #customer_login .input-text,
html body.hpp-acc-v2 .woocommerce-ResetPassword .input-text {
  box-sizing: border-box !important; width: 100% !important; min-height: 48px !important; height: 48px !important; padding: 12px 16px !important;
  background: var(--surface-card) !important; border: 1px solid var(--control-border) !important; border-radius: var(--radius-md) !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; font: 400 17px/22px var(--font-sans) !important; color: var(--ink) !important;
}
html body.hpp-acc-v2 .woocommerce-MyAccount-content .select2-selection--single .select2-selection__rendered { line-height: 22px !important; padding: 0 !important; }
html body.hpp-acc-v2 .woocommerce-MyAccount-content .select2-selection--single .select2-selection__arrow { height: 46px !important; }
html body.hpp-acc-v2 .woocommerce-MyAccount-content .input-text:focus,
html body.hpp-acc-v2 .woocommerce-MyAccount-content select:focus,
html body.hpp-acc-v2 .woocommerce-MyAccount-content .select2-container--focus .select2-selection--single,
html body.hpp-acc-v2 #customer_login .input-text:focus,
html body.hpp-acc-v2 .woocommerce-ResetPassword .input-text:focus { outline: none !important; border-color: var(--brand-red) !important; box-shadow: 0 0 0 3px rgba(231, 25, 25, 0.18) !important; }
html body.hpp-acc-v2 .woocommerce-MyAccount-content input[type="checkbox"],
html body.hpp-acc-v2 #customer_login input[type="checkbox"],
html body.hpp-acc-v2 #customer_login input[type="radio"] { accent-color: var(--brand-red); }

/* Estados de pedido como chips */
html body.hpp-acc-v2 .woocommerce-orders-table__cell-order-status { font: 600 13px/1.2 var(--font-sans) !important; }
html body.hpp-acc-v2 .woocommerce-orders-table__row--status-completed .woocommerce-orders-table__cell-order-status { color: var(--success) !important; }
html body.hpp-acc-v2 .woocommerce-orders-table__row--status-processing .woocommerce-orders-table__cell-order-status,
html body.hpp-acc-v2 .woocommerce-orders-table__row--status-on-hold .woocommerce-orders-table__cell-order-status,
html body.hpp-acc-v2 .woocommerce-orders-table__row--status-pending .woocommerce-orders-table__cell-order-status { color: var(--warning) !important; }
html body.hpp-acc-v2 .woocommerce-orders-table__row--status-cancelled .woocommerce-orders-table__cell-order-status,
html body.hpp-acc-v2 .woocommerce-orders-table__row--status-failed .woocommerce-orders-table__cell-order-status { color: var(--brand-red-text) !important; }

/* Línea vertical del tema en el menú lateral */
html body.hpp-acc-v2 .wd-my-account-sidebar { border-right: 0 !important; }
/* Pedidos: espacio entre tarjetas */
html body.hpp-acc-v2 .woocommerce-orders-table tbody { display: flex !important; flex-direction: column; gap: 16px; }
html body.hpp-acc-v2 .woocommerce-orders-table tbody tr { margin: 0 !important; }
/* Número de pedido en negro */
html body.hpp-acc-v2 .woocommerce-MyAccount-content .woocommerce-orders-table .woocommerce-orders-table__cell-order-number a:not(.button):not(.woocommerce-button) { color: var(--ink) !important; font-weight: 600 !important; }

/* Responsive tablet + móvil */
@media (max-width:1100px){
html body.hpp-acc-v2 .hp-ma-nav .wd-my-account-wrapper{display:block !important}
html body.hpp-acc-v2 .wd-my-account-sidebar{width:100% !important;max-width:none !important;padding:0 !important;flex:none !important}
html body.hpp-acc-v2 .woocommerce-MyAccount-navigation{width:100% !important}
html body.hpp-acc-v2 .woocommerce-MyAccount-navigation ul{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px !important;margin:0 !important;padding:0 !important}
html body.hpp-acc-v2 .woocommerce-MyAccount-navigation li{display:block !important;width:auto !important;margin:0 !important}
html body.hpp-acc-v2 .woocommerce-MyAccount-navigation li a{height:100%;min-height:56px;font-size:15px !important;line-height:1.3 !important}
html body.hpp-acc-v2.woocommerce-account .woocommerce .woocommerce-orders-table tbody tr.woocommerce-orders-table__row{padding:20px 20px 20px 96px !important;margin:0 0 16px !important}
html body.hpp-acc-v2.woocommerce-account .woocommerce .woocommerce-orders-table tbody tr.woocommerce-orders-table__row::before{left:22px !important;top:48px !important;grid-area:auto !important}
html body.hpp-acc-v2.woocommerce-account .woocommerce .woocommerce-orders-table tbody tr.woocommerce-orders-table__row::after{display:none !important}
}
@media (max-width:767px){
html body.hpp-acc-v2 .woocommerce-MyAccount-navigation ul{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px !important}
html body.hpp-acc-v2.woocommerce-account .woocommerce .woocommerce-orders-table tbody tr.woocommerce-orders-table__row{padding:16px 16px 16px 72px !important}
html body.hpp-acc-v2.woocommerce-account .woocommerce .woocommerce-orders-table tbody tr.woocommerce-orders-table__row::before{left:14px !important;top:38px !important;width:44px !important;height:44px !important;background-size:22px !important;grid-area:auto !important}
html body.hpp-acc-v2 .elementor-column.hp-glass{width:100% !important;margin:0 !important;padding:18px 14px !important}
html body.hpp-acc-v2 .elementor-column.hp-glass > .elementor-widget-wrap{padding:0 !important}
html body.hpp-acc-v2 .woocommerce-MyAccount-navigation li a{padding:14px 12px !important;gap:10px !important;font-size:14px !important;min-height:52px}
html body.hpp-acc-v2.woocommerce-account .woocommerce .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a.button{display:inline-flex !important;align-items:center;justify-content:center;width:fit-content !important;max-width:fit-content !important;flex:0 0 auto !important;align-self:flex-start !important;justify-self:start !important;min-width:88px;margin:0 !important;height:40px !important;min-height:40px !important;padding:0 22px !important;background:var(--brand-red-tint) !important;background-image:none !important;color:var(--brand-red-text) !important;border:1px solid rgba(231,25,25,.25) !important;text-transform:none !important;font-size:15px !important;font-weight:600 !important;letter-spacing:0 !important;box-shadow:none !important}
}

/* Panel de bienvenida (visitantes sin sesión) */
html body.hpp-acc-v2 .elementor-widget.hp-userbox:has(.hpp-welcome){display:block !important;padding:8px 4px 0 !important}
html body.hpp-acc-v2 .elementor-widget.hp-userbox:has(.hpp-welcome)::before,html body.hpp-acc-v2 .elementor-widget.hp-userbox:has(.hpp-welcome)::after{display:none !important}
html body.hpp-acc-v2 .hpp-welcome{text-align:center;font-family:var(--font-sans)}
html body.hpp-acc-v2 .hpp-welcome__icon{width:88px;height:88px;margin:0 auto 18px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--brand-red-tint);color:var(--brand-red);box-shadow:0 0 0 8px rgba(231,25,25,.05)}
html body.hpp-acc-v2 .hpp-welcome__title{margin:0 0 6px !important;font-size:24px !important;font-weight:600 !important;color:var(--ink) !important;letter-spacing:-.01em}
html body.hpp-acc-v2 .hpp-welcome__text{margin:0 0 22px !important;font-size:15px;color:var(--ink-secondary)}
html body.hpp-acc-v2 .hpp-welcome__list{list-style:none !important;margin:0 !important;padding:18px 0 0 !important;border-top:1px solid var(--hairline);text-align:left;display:grid;gap:14px}
html body.hpp-acc-v2 .hpp-welcome__list li{position:relative;margin:0 !important;padding:0 0 0 32px !important;font-size:15px;line-height:1.4;color:var(--ink)}
html body.hpp-acc-v2 .hpp-welcome__list li::before{content:"";position:absolute;left:0;top:0;width:20px;height:20px;border-radius:50%;background:var(--brand-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat}
@media (max-width:1100px){html body.hpp-acc-v2 .hpp-welcome{max-width:420px;margin:0 auto}html body.hpp-acc-v2 .hpp-welcome__list{justify-content:center}}
@media (max-width:767px){html body.hpp-acc-v2 .hpp-welcome__icon{width:64px;height:64px;margin-bottom:12px}html body.hpp-acc-v2 .hpp-welcome__icon svg{width:30px;height:30px}html body.hpp-acc-v2 .hpp-welcome__title{font-size:21px !important}html body.hpp-acc-v2 .hpp-welcome__text{margin-bottom:0 !important}html body.hpp-acc-v2 .hpp-welcome__list{display:none !important}}
