/* ==========================================================
   COPYZEN ACCOUNT v2
   Interfaz modular para Mi cuenta
   ========================================================== */

body.woocommerce-account {
    background: #f4f6f7;
}

body.woocommerce-account .woocommerce {
    width: min(1500px, calc(100% - 56px));
    max-width: none;
    margin: 0 auto;
    padding: 32px 0 64px;
    color: #172126;
}

.cz-account-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
    padding: 34px 38px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 14%, rgba(255,255,255,.14), transparent 24%),
        linear-gradient(135deg, #00353f, #086373);
    color: #fff;
    box-shadow: 0 16px 40px rgba(0,53,63,.16);
}

.cz-account-hero__eyebrow {
    display: block;
    margin-bottom: 9px;
    color: rgba(255,255,255,.72);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .17em;
}

.cz-account-hero h1 {
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.035em;
}

.cz-account-hero p {
    margin: 12px 0 0;
    color: rgba(255,255,255,.84);
    font-size: 18px;
}

.cz-account-hero__workspace {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    color: #fff !important;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none !important;
}

body.woocommerce-account .woocommerce::after {
    content: "";
    display: table;
    clear: both;
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
    float: left;
    width: 24%;
    padding-right: 24px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    margin: 0;
    padding: 12px;
    list-style: none;
    border: 1px solid #dfe6e8;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(28,42,48,.07);
}

body.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin: 0 0 6px;
    padding: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
    margin-bottom: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 13px;
    color: #253238;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
    background: #00353f;
    color: #fff;
}

body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout {
    padding-top: 8px;
    border-top: 1px solid #e5eaec;
}

body.woocommerce-account .woocommerce-MyAccount-content {
    float: right;
    width: 76%;
    min-height: 430px;
    padding: 28px;
    border: 1px solid #dfe6e8;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(28,42,48,.07);
}

.cz-account-section-heading {
    margin-bottom: 18px;
}

.cz-account-section-heading span {
    display: block;
    margin-bottom: 4px;
    color: #00353f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
}

.cz-account-section-heading h2 {
    margin: 0;
    padding: 0;
    color: #172126;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 800;
}

.cz-account-section-heading p {
    margin: 8px 0 0;
    color: #6e7a7f;
    font-size: 15px;
}

/* Dashboard */
.cz-account-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.cz-account-action {
    display: grid;
    grid-template-columns: 54px 1fr 38px;
    align-items: center;
    min-height: 114px;
    padding: 18px;
    border: 1px solid #dfe6e8;
    border-radius: 18px;
    background: #fff;
    color: #172126 !important;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease;
}

.cz-account-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(28,42,48,.11);
}

.cz-account-action__icon,
.cz-account-contact__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #edf4f5;
    color: #00353f;
    font-size: 21px;
}

.cz-account-action__content strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
}

.cz-account-action__content small {
    display: block;
    margin-top: 6px;
    color: #6e7a7f;
    font-size: 14px;
}

.cz-account-action__arrow,
.cz-account-contact__arrow {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #00353f;
    color: #fff;
}

.cz-account-action--logout {
    grid-column: 1 / -1;
}

.cz-account-active-orders,
.cz-account-contact {
    margin-top: 34px;
}

.cz-account-order-list {
    display: grid;
    gap: 14px;
}

.cz-account-order-card {
    padding: 18px;
    border: 1px solid #dfe6e8;
    border-radius: 17px;
    background: #fff;
}

.cz-account-order-card__top,
.cz-account-order-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.cz-account-order-card__top {
    padding-bottom: 15px;
    border-bottom: 1px solid #e7ecee;
}

.cz-account-order-card__bottom {
    padding-top: 15px;
}

.cz-account-order-card__number {
    display: block;
    font-size: 17px;
    font-weight: 800;
}

.cz-account-order-card time {
    display: block;
    margin-top: 4px;
    color: #6e7a7f;
    font-size: 13px;
}

.cz-account-order-status {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.cz-account-order-status--pending {
    background: #fff4d8;
    color: #7a5700;
}

.cz-account-order-status--processing {
    background: #e8f3f5;
    color: #00353f;
}

.cz-account-order-status--ready {
    background: #e8f6ec;
    color: #176b35;
}

.cz-account-order-card__bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    background: #00353f;
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
}

.cz-account-empty-state {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 1px dashed #cbd6d9;
    border-radius: 16px;
    background: #f8fafb;
}

.cz-account-empty-state > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e8f6ec;
    color: #176b35;
    font-size: 20px;
    font-weight: 900;
}

.cz-account-empty-state p {
    margin: 4px 0 0;
    color: #6e7a7f;
}

.cz-account-contact__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cz-account-contact__item {
    display: grid;
    grid-template-columns: 48px 1fr 36px;
    align-items: center;
    gap: 13px;
    min-height: 92px;
    padding: 17px;
    border: 1px solid #dfe6e8;
    border-radius: 17px;
    background: #fff;
    color: #172126 !important;
    text-decoration: none !important;
}

.cz-account-contact__item strong {
    display: block;
    font-size: 17px;
    font-weight: 800;
}

.cz-account-contact__item small {
    display: block;
    margin-top: 4px;
    color: #6e7a7f;
}

/* Direcciones propias */
.cz-addresses__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.cz-address-card {
    display: flex;
    min-width: 0;
    min-height: 360px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dfe6e8;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(28,42,48,.07);
}

.cz-address-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px;
    border-bottom: 1px solid #e7ecee;
}

.cz-address-card__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #edf4f5;
    color: #00353f;
    font-size: 20px;
    font-weight: 900;
}

.cz-address-card__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #6e7a7f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

.cz-address-card h3 {
    margin: 0;
    padding: 0;
    color: #172126;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 800;
}

.cz-address-card__body {
    flex: 1;
    padding: 24px 22px;
}

.cz-address-card address {
    margin: 0;
    color: #34454b;
    font-size: 16px;
    line-height: 1.75;
    font-style: normal;
}

.cz-address-card__empty strong {
    display: block;
    font-size: 17px;
    font-weight: 800;
}

.cz-address-card__empty p {
    margin: 7px 0 0;
    color: #6e7a7f;
}

.cz-address-card__footer {
    padding: 16px 22px 22px;
}

.cz-address-card__footer a {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 12px;
    background: #00353f;
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
}

/* WooCommerce restante */
body.woocommerce-account table.shop_table {
    overflow: hidden;
    border: 1px solid #dfe6e8 !important;
    border-radius: 16px;
    border-collapse: separate;
    border-spacing: 0;
}

body.woocommerce-account table.shop_table th {
    padding: 14px 16px;
    background: #f3f6f7;
    font-weight: 800;
}

body.woocommerce-account table.shop_table td {
    padding: 15px 16px;
    border-color: #e6ebed;
}

body.woocommerce-account .button,
body.woocommerce-account button.button,
body.woocommerce-account input.button {
    border-radius: 11px !important;
    background: #00353f !important;
    color: #fff !important;
    font-weight: 800 !important;
}

body.woocommerce-account .woocommerce-form-row input,
body.woocommerce-account .woocommerce-form-row select,
body.woocommerce-account .woocommerce-form-row textarea {
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #d7e0e2;
    border-radius: 11px;
    background: #fff;
}

@media (max-width: 980px) {
    body.woocommerce-account .woocommerce-MyAccount-navigation,
    body.woocommerce-account .woocommerce-MyAccount-content {
        float: none;
        width: 100%;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation {
        margin-bottom: 18px;
        padding-right: 0;
    }

    .cz-account-actions,
    .cz-account-contact__grid,
    .cz-addresses__grid {
        grid-template-columns: 1fr;
    }

    .cz-account-action--logout {
        grid-column: auto;
    }
}

/* ==========================================================
   LOGIN / REGISTRO EN TARJETA CON PESTAÑAS
   ========================================================== */

body.woocommerce-account:not(.logged-in) {
    background: #f4f6f7;
}

body.woocommerce-account:not(.logged-in) .woocommerce {
    width: min(100% - 32px, 680px);
    max-width: 680px;
    margin: 0 auto;
    padding: 54px 0 80px;
    color: #172126;
}

/* Contenedor único */
body.woocommerce-account:not(.logged-in) #customer_login {
    position: relative;
    display: block !important;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid #dfe6e8;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(28,42,48,.09);
    overflow: hidden;
}

/* Ocultar títulos originales de WooCommerce */
body.woocommerce-account:not(.logged-in)
#customer_login > .u-column1 > h2,
body.woocommerce-account:not(.logged-in)
#customer_login > .u-column2 > h2 {
    display: none !important;
}

/* Ambas columnas pasan a ocupar la misma tarjeta */
body.woocommerce-account:not(.logged-in)
#customer_login > .u-column1,
body.woocommerce-account:not(.logged-in)
#customer_login > .u-column2 {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 30px !important;
    box-sizing: border-box;
}

/* Solo se muestra el panel activo */
body.woocommerce-account:not(.logged-in)
#customer_login > .u-column1,
body.woocommerce-account:not(.logged-in)
#customer_login > .u-column2 {
    display: none !important;
}

body.woocommerce-account:not(.logged-in)
#customer_login.cz-auth-login-active > .u-column1,
body.woocommerce-account:not(.logged-in)
#customer_login.cz-auth-register-active > .u-column2 {
    display: block !important;
}

/* Cabecera y selector */
.cz-auth-header {
    padding: 30px 30px 0;
}

.cz-auth-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #00353f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
}

.cz-auth-title {
    margin: 0;
    padding: 0;
    color: #172126;
    font-size: clamp(32px, 5vw, 44px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.035em;
}

.cz-auth-subtitle {
    margin: 10px 0 0;
    color: #6e7a7f;
    font-size: 15px;
    line-height: 1.55;
}

.cz-auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 24px 30px 0;
    padding: 6px;
    border-radius: 14px;
    background: #edf4f5;
}

.cz-auth-tab {
    min-height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #4f6267;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background .18s ease,
        color .18s ease,
        box-shadow .18s ease;
}

.cz-auth-tab.is-active {
    background: #00353f;
    color: #fff;
    box-shadow: 0 8px 18px rgba(0,53,63,.18);
}

/* Formularios */
body.woocommerce-account:not(.logged-in)
#customer_login form {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.woocommerce-account:not(.logged-in)
#customer_login .woocommerce-form-row {
    margin: 0 0 20px !important;
}

body.woocommerce-account:not(.logged-in)
#customer_login label {
    display: block;
    margin-bottom: 8px;
    color: #253238;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 800;
}

body.woocommerce-account:not(.logged-in)
#customer_login .required {
    color: #b42318;
}

body.woocommerce-account:not(.logged-in)
#customer_login input.input-text {
    width: 100%;
    min-height: 54px;
    padding: 0 15px !important;
    border: 1px solid #d7e0e2 !important;
    border-radius: 12px !important;
    background: #f8fafb !important;
    color: #172126 !important;
    font-size: 16px !important;
    box-shadow: none !important;
    box-sizing: border-box;
    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

body.woocommerce-account:not(.logged-in)
#customer_login input.input-text:hover {
    background: #fff !important;
    border-color: #c4d0d3 !important;
}

body.woocommerce-account:not(.logged-in)
#customer_login input.input-text:focus {
    outline: 0 !important;
    background: #fff !important;
    border-color: #00353f !important;
    box-shadow: 0 0 0 3px rgba(0,53,63,.10) !important;
}

body.woocommerce-account:not(.logged-in)
#customer_login .password-input {
    display: block;
    position: relative;
}

body.woocommerce-account:not(.logged-in)
#customer_login .show-password-input {
    top: 50% !important;
    right: 16px !important;
    transform: translateY(-50%) !important;
}

/* Recuérdame */
body.woocommerce-account:not(.logged-in)
#customer_login .woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px !important;
    color: #34454b;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

body.woocommerce-account:not(.logged-in)
#customer_login .woocommerce-form-login__rememberme input {
    width: 17px;
    height: 17px;
    margin: 0 !important;
    accent-color: #00353f;
}

/* Botones */
body.woocommerce-account:not(.logged-in)
#customer_login button.button {
    width: 100%;
    min-height: 52px;
    margin: 6px 0 0 !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #00353f !important;
    color: #fff !important;
    font-size: 16px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 24px rgba(0,53,63,.16) !important;
    transition:
        background .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

body.woocommerce-account:not(.logged-in)
#customer_login button.button:hover {
    background: #086373 !important;
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(0,53,63,.22) !important;
}

/* Contraseña olvidada */
body.woocommerce-account:not(.logged-in)
#customer_login .woocommerce-LostPassword {
    margin: 18px 0 0 !important;
    text-align: center;
}

body.woocommerce-account:not(.logged-in)
#customer_login .woocommerce-LostPassword a {
    color: #00353f !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
}

body.woocommerce-account:not(.logged-in)
#customer_login .woocommerce-LostPassword a:hover {
    text-decoration: underline !important;
}

/* Texto informativo del registro */
body.woocommerce-account:not(.logged-in)
#customer_login .woocommerce-privacy-policy-text,
body.woocommerce-account:not(.logged-in)
#customer_login .woocommerce-form-register > p {
    color: #5f7075;
    font-size: 14px;
    line-height: 1.65;
}

body.woocommerce-account:not(.logged-in)
#customer_login .woocommerce-privacy-policy-text a {
    color: #00353f;
    font-weight: 700;
}

/* Avisos */
body.woocommerce-account:not(.logged-in)
.woocommerce-error,
body.woocommerce-account:not(.logged-in)
.woocommerce-message,
body.woocommerce-account:not(.logged-in)
.woocommerce-info {
    width: min(100% - 32px, 680px);
    margin: 18px auto 0 !important;
    padding: 16px 18px 16px 48px !important;
    border: 1px solid #dfe6e8 !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: #172126 !important;
    box-shadow: 0 8px 24px rgba(28,42,48,.05);
}

@media (max-width: 600px) {
    body.woocommerce-account:not(.logged-in) .woocommerce {
        width: calc(100% - 24px);
        padding: 28px 0 48px;
    }

    .cz-auth-header {
        padding: 24px 20px 0;
    }

    .cz-auth-tabs {
        margin: 20px 20px 0;
    }

    body.woocommerce-account:not(.logged-in)
    #customer_login > .u-column1,
    body.woocommerce-account:not(.logged-in)
    #customer_login > .u-column2 {
        padding: 24px 20px !important;
    }

    .cz-auth-title {
        font-size: 32px;
    }
}
