.pipp-account-page {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    grid-template-rows: 1fr auto;
    background: var(--pipp-color-page);
}

.admin-bar.pipp-account-page .pipp-home-header {
    top: 32px;
}

.pipp-account-page .pipp-account-main.site-main {
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(165px, 15vw, 205px) clamp(16px, 4vw, 48px) 110px;
    box-sizing: border-box;
}

.pipp-account-page .pipp-footer {
    grid-row: 2;
}

.pipp-account-shell {
    width: min(calc(100vw - 96px), 1536px);
    max-width: 1536px;
    margin-right: auto !important;
    margin-left: auto !important;
}

.pipp-account-heading {
    margin-bottom: clamp(38px, 5vw, 64px);
    text-align: center;
}

.pipp-account-heading > span {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.pipp-account-heading h1 {
    margin: 0;
    font-family: var(--pipp-font-display);
    font-size: clamp(48px, 7vw, 76px);
    font-weight: 400;
    line-height: .95;
}

.pipp-account-heading p {
    margin: 14px 0 0;
    font-size: 15px;
}

.pipp-account-content .woocommerce {
    width: 100%;
}

.pipp-account-page:not(.logged-in) .pipp-account-content .woocommerce {
    width: min(100%, 920px);
    margin-inline: auto;
    padding: clamp(24px, 3vw, 42px);
    border: 1px solid var(--pipp-color-border);
    border-radius: 12px;
    background: var(--pipp-color-surface);
    box-sizing: border-box;
}

.pipp-account-page:not(.logged-in) .pipp-account-content .woocommerce > h2 {
    margin: 0 0 24px;
    font-family: var(--pipp-font-display);
    font-size: clamp(30px, 3vw, 38px);
    font-weight: 500;
}

.pipp-account-page .woocommerce-notices-wrapper,
.pipp-account-page .woocommerce-error,
.pipp-account-page .woocommerce-message,
.pipp-account-page .woocommerce-info {
    width: 100%;
    margin-bottom: 22px;
}

/* Login y registro */
.pipp-account-page #customer_login {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 56px);
}

.pipp-account-page #customer_login > div,
.pipp-account-page .woocommerce-ResetPassword,
.pipp-account-page .woocommerce-MyAccount-content {
    padding: clamp(24px, 3vw, 42px);
    border: 1px solid var(--pipp-color-border);
    border-radius: 12px;
    background: var(--pipp-color-surface);
}

.pipp-account-page #customer_login h2,
.pipp-account-page .woocommerce-MyAccount-content h2,
.pipp-account-page .woocommerce-MyAccount-content h3,
.pipp-account-page .woocommerce-ResetPassword + h2 {
    margin: 0 0 24px;
    font-family: var(--pipp-font-display);
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 500;
}

.pipp-account-page form.login,
.pipp-account-page form.register,
.pipp-account-page form.lost_reset_password,
.pipp-account-page .woocommerce-EditAccountForm,
.pipp-account-page .woocommerce-address-fields {
    margin: 0;
    padding: 0;
    border: 0;
}

.pipp-account-page .form-row {
    margin: 0 0 16px;
    padding: 0;
}

.pipp-account-page label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
}

.pipp-account-page input.input-text,
.pipp-account-page input[type="email"],
.pipp-account-page input[type="password"],
.pipp-account-page input[type="text"],
.pipp-account-page input[type="tel"],
.pipp-account-page select,
.pipp-account-page textarea {
    min-height: 52px;
    border: 1px solid var(--pipp-color-border) !important;
    border-radius: 0 !important;
    background: var(--pipp-color-surface) !important;
    color: var(--pipp-color-copy) !important;
    box-shadow: none !important;
}

.pipp-account-page .password-input {
    width: 100%;
}

.pipp-account-page .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.pipp-account-page button.button,
.pipp-account-page a.button,
.pipp-account-page input.button {
    display: inline-flex !important;
    min-height: 50px;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 28px !important;
    border: 1px solid var(--pipp-color-primary) !important;
    border-radius: 0 !important;
    background: var(--pipp-color-primary) !important;
    color: var(--pipp-color-on-primary) !important;
    font-family: var(--pipp-font-display);
    font-size: 16px;
    font-style: italic;
    line-height: 1.2 !important;
    text-align: center !important;
    vertical-align: middle;
}

.pipp-account-page button.button:hover,
.pipp-account-page a.button:hover,
.pipp-account-page input.button:hover {
    background: var(--pipp-color-surface) !important;
    color: var(--pipp-color-primary) !important;
}

.pipp-account-page .woocommerce-LostPassword {
    margin: 18px 0 0;
    font-size: 14px;
}

/* Panel autenticado */
.pipp-account-page .woocommerce-MyAccount-navigation {
    float: none;
    width: 100%;
    margin-bottom: 24px;
}

.pipp-account-page .woocommerce-MyAccount-navigation ul {
    display: flex;
    margin: 0;
    padding: 0;
    border: 1px solid var(--pipp-color-border);
    border-radius: 10px;
    background: var(--pipp-color-surface);
    list-style: none;
    overflow-x: auto;
}

.pipp-account-page .woocommerce-MyAccount-navigation li {
    flex: 1 1 0;
    margin: 0;
    border-right: 1px solid var(--pipp-color-border);
}

.pipp-account-page .woocommerce-MyAccount-navigation li:last-child {
    border-right: 0;
}

.pipp-account-page .woocommerce-MyAccount-navigation a {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    color: var(--pipp-color-copy);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.pipp-account-page .woocommerce-MyAccount-navigation .is-active a,
.pipp-account-page .woocommerce-MyAccount-navigation a:hover {
    background: var(--pipp-color-primary);
    color: var(--pipp-color-on-primary);
}

.pipp-account-page .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
    min-height: 360px;
    box-sizing: border-box;
    font-size: 15px;
    line-height: 1.7;
}

.pipp-account-page .woocommerce-MyAccount-content > :first-child {
    margin-top: 0;
}

.pipp-account-page .woocommerce-MyAccount-content > :last-child {
    margin-bottom: 0;
}

.pipp-account-page table.shop_table {
    margin: 24px 0 0;
    border: 1px solid var(--pipp-color-border);
    border-collapse: separate;
    border-radius: 10px;
    background: var(--pipp-color-surface);
    overflow: hidden;
}

.pipp-account-page table.shop_table th,
.pipp-account-page table.shop_table td {
    padding: 16px;
    border: 0;
    border-bottom: 1px solid var(--pipp-color-border);
    background: transparent;
    font-size: 14px;
    vertical-align: middle;
}

.pipp-account-page table.shop_table tr:last-child td {
    border-bottom: 0;
}

.pipp-account-page .woocommerce-orders-table__cell-order-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.pipp-account-page .woocommerce-orders-table__cell-order-actions .button {
    min-width: 110px;
    margin: 0 !important;
}

.pipp-account-page .woocommerce-Addresses {
    display: grid !important;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(22px, 3vw, 42px);
    margin: 30px 0 0;
    align-items: stretch;
    clear: both;
}

.pipp-account-page .woocommerce-Addresses .woocommerce-Address,
.pipp-account-page .woocommerce-Addresses .u-column1,
.pipp-account-page .woocommerce-Addresses .u-column2,
.pipp-account-page .woocommerce-Addresses .col-1,
.pipp-account-page .woocommerce-Addresses .col-2 {
    float: none !important;
    clear: none !important;
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 250px;
    margin: 0 !important;
    padding: clamp(26px, 3vw, 38px);
    flex-direction: column;
    grid-column: auto !important;
    grid-row: auto !important;
    border: 1px solid var(--pipp-color-border);
    border-radius: 12px;
    background: var(--pipp-color-surface-soft);
    box-sizing: border-box;
}

.pipp-account-page .woocommerce-Addresses > :first-child {
    order: 1;
}

.pipp-account-page .woocommerce-Addresses > :last-child {
    order: 2;
}

.pipp-account-page .woocommerce-Address-title,
.pipp-account-page .woocommerce-Address header {
    display: flex !important;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    float: none !important;
    clear: none !important;
}

.pipp-account-page .woocommerce-Address-title h2,
.pipp-account-page .woocommerce-Address header h2 {
    margin: 0;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1;
    text-align: left;
}

.pipp-account-page .woocommerce-Address-title .edit,
.pipp-account-page .woocommerce-Address header .edit {
    float: none !important;
    display: inline-flex !important;
    min-height: 44px;
    width: auto;
    max-width: 220px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid var(--pipp-color-primary);
    background: var(--pipp-color-primary);
    color: var(--pipp-color-on-primary);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: normal;
}

.pipp-account-page .woocommerce-Address-title .edit:hover,
.pipp-account-page .woocommerce-Address header .edit:hover {
    background: var(--pipp-color-surface);
    color: var(--pipp-color-primary);
}

.pipp-account-page .woocommerce-Address address {
    margin: auto 0 0;
    padding-top: 28px;
    color: var(--pipp-color-copy);
    font-size: 15px;
    font-style: normal;
    line-height: 1.8;
}

.pipp-account-page .woocommerce-MyAccount-content > p:first-child {
    margin: 0;
    padding: 20px 24px;
    border-left: 4px solid var(--pipp-color-secondary);
    background: var(--pipp-color-surface-soft);
    font-size: 15px;
    line-height: 1.7;
}

.pipp-account-page .woocommerce-MyAccount-content .woocommerce-info {
    padding: 22px 24px;
    border: 1px solid var(--pipp-color-border);
    border-left: 4px solid var(--pipp-color-secondary);
    border-radius: 8px;
    background: var(--pipp-color-surface-soft);
}

.pipp-account-page .woocommerce-MyAccount-content fieldset {
    margin: 28px 0 0;
    padding: 24px;
    border: 1px solid var(--pipp-color-border);
}

.pipp-account-page .woocommerce-MyAccount-content fieldset legend {
    padding: 0 10px;
    font-family: var(--pipp-font-display);
    font-size: 26px;
}

.pipp-account-page .woocommerce-MyAccount-content .button + .button,
.pipp-account-page .woocommerce-MyAccount-content td .button + .button {
    margin-left: 8px;
}

.pipp-account-page .woocommerce-Pagination {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
}

.pipp-account-overview {
    display: grid;
    margin-top: 30px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.pipp-account-overview article {
    display: flex;
    min-height: 150px;
    padding: 24px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pipp-color-border);
    border-radius: 10px;
    background: var(--pipp-color-surface-soft);
    text-align: center;
}

.pipp-account-overview span {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.pipp-account-overview strong {
    margin: 10px 0;
    font-family: var(--pipp-font-display);
    font-size: 46px !important;
    font-weight: 500;
    line-height: 1;
}

.pipp-account-overview strong .amount,
.pipp-account-overview strong .woocommerce-Price-amount,
.pipp-account-overview strong .woocommerce-Price-currencySymbol,
.pipp-account-overview strong bdi {
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

.pipp-account-overview small {
    font-size: 15px;
    line-height: 1.5;
}

@media (min-width: 1600px) {
    .pipp-account-main {
        padding-inline: 32px;
    }

    .pipp-account-shell {
        width: min(calc(100vw - 64px), 1536px);
    }
}

@media (max-width: 767px) {
    .admin-bar.pipp-account-page .pipp-home-header {
        top: 46px;
    }

    .pipp-account-page .pipp-account-main.site-main {
        padding: 132px 12px 68px;
    }

    .pipp-account-heading {
        margin-bottom: 24px;
    }

    .pipp-account-heading > span {
        margin-bottom: 6px;
        font-size: 11px;
    }

    .pipp-account-heading h1 {
        font-size: 42px;
        line-height: 1;
        white-space: normal;
    }

    .pipp-account-heading p {
        margin-top: 10px;
        padding-inline: 8px;
        font-size: 14px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    .pipp-account-shell {
        width: 100%;
    }

    .pipp-account-page #customer_login,
    .pipp-account-page .woocommerce-Addresses {
        grid-template-columns: 1fr;
    }

    .pipp-account-page #customer_login > div,
    .pipp-account-page:not(.logged-in) .pipp-account-content .woocommerce,
    .pipp-account-page .woocommerce-ResetPassword,
    .pipp-account-page .woocommerce-MyAccount-content {
        padding: 22px 15px;
        border-radius: 9px;
    }

    .pipp-account-page .woocommerce-MyAccount-navigation ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: hidden;
    }

    .pipp-account-page .woocommerce-MyAccount-navigation li {
        width: 100%;
        border-right: 1px solid var(--pipp-color-border);
        border-bottom: 1px solid var(--pipp-color-border);
    }

    .pipp-account-page .woocommerce-MyAccount-navigation li:nth-child(even) {
        border-right: 0;
    }

    .pipp-account-page .woocommerce-MyAccount-navigation li:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .pipp-account-page .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout {
        grid-column: 1 / -1;
        border-right: 0;
        border-bottom: 0;
    }

    .pipp-account-page .woocommerce-MyAccount-navigation a {
        min-height: 52px;
        padding: 10px 8px;
        font-size: 11px;
        line-height: 1.25;
        white-space: normal;
    }

    .pipp-account-overview {
        margin-top: 22px;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pipp-account-overview article {
        min-height: 118px;
        padding: 18px 16px;
    }

    .pipp-account-overview span,
    .pipp-account-overview small {
        font-size: 14px;
    }

    .pipp-account-overview strong {
        font-size: 38px !important;
    }

    .pipp-account-page .woocommerce-Addresses .woocommerce-Address,
    .pipp-account-page .woocommerce-Addresses .u-column1,
    .pipp-account-page .woocommerce-Addresses .u-column2,
    .pipp-account-page .woocommerce-Addresses .col-1,
    .pipp-account-page .woocommerce-Addresses .col-2 {
        min-height: 0;
        padding: 20px 16px;
    }

    .pipp-account-page .woocommerce-Addresses {
        gap: 14px;
        margin-top: 20px;
    }

    .pipp-account-page .woocommerce-Address-title,
    .pipp-account-page .woocommerce-Address header {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .pipp-account-page .woocommerce-Address-title h2,
    .pipp-account-page .woocommerce-Address header h2 {
        font-size: 31px;
        text-align: center;
    }

    .pipp-account-page .woocommerce-Address-title .edit,
    .pipp-account-page .woocommerce-Address header .edit {
        width: 100%;
        max-width: none;
    }

    .pipp-account-page table.shop_table,
    .pipp-account-page table.shop_table tbody,
    .pipp-account-page table.shop_table tr,
    .pipp-account-page table.shop_table td {
        display: block;
        width: 100%;
    }

    .pipp-account-page table.shop_table thead {
        display: none;
    }

    .pipp-account-page table.shop_table tr {
        margin: 0;
        padding: 16px 14px;
        border-bottom: 1px solid var(--pipp-color-border);
    }

    .pipp-account-page table.shop_table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        padding: 9px 0;
        border: 0;
        font-size: 13px;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .pipp-account-page table.shop_table td::before {
        font-weight: 600;
        flex: 0 0 42%;
        text-align: left;
    }

    .pipp-account-page .woocommerce-orders-table__cell-order-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .pipp-account-page .woocommerce-orders-table__cell-order-actions .button {
        width: 100%;
    }

    .pipp-account-page button.button,
    .pipp-account-page a.button,
    .pipp-account-page input.button {
        min-height: 48px;
        padding: 11px 18px !important;
        font-size: 15px;
    }

    .pipp-account-page .woocommerce-MyAccount-content > p:first-child,
    .pipp-account-page .woocommerce-MyAccount-content .woocommerce-info {
        padding: 16px 14px;
        font-size: 14px;
    }

    .pipp-account-page .form-row-first,
    .pipp-account-page .form-row-last {
        float: none !important;
        width: 100% !important;
    }
}
