/**
 * PowerEn modern WooCommerce account dashboard.
 * Scope: authenticated Persian /my-account/ dashboard and native endpoints.
 */
body.poweren-my-account-modern {
    --pw-account-ink: #082d40;
    --pw-account-ink-soft: #16485c;
    --pw-account-muted: #54717e;
    --pw-account-cyan: #12b9d3;
    --pw-account-cyan-dark: #006f89;
    --pw-account-line: #d7e7eb;
    background:
        linear-gradient(rgba(8, 69, 89, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 69, 89, .03) 1px, transparent 1px),
        var(--pw-theme-page, #f3f8f9);
    background-size: 40px 40px;
}

body.poweren-my-account-modern #main-content,
body.poweren-my-account-modern #main-content * {
    box-sizing: border-box;
}

body.poweren-my-account-modern #main-content {
    width: min(1280px, calc(100% - 32px));
    max-width: none;
    margin-inline: auto;
}

body.poweren-my-account-modern .iranwp-crumbs-page {
    display: none;
}

body.poweren-my-account-modern .cart-p,
body.poweren-my-account-modern .iranwp-full-content {
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.poweren-my-account-modern .cart-p {
    margin-block: 34px 56px;
}

body.poweren-my-account-modern .iranwp-full-content > .woocommerce {
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    width: 100%;
}

body.poweren-my-account-modern .pw-account-hero {
    position: relative;
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    min-height: 190px;
    padding: 34px;
    overflow: hidden;
    border: 1px solid rgba(72, 203, 222, .28);
    border-radius: 28px;
    background:
        radial-gradient(circle at 8% 12%, rgba(68, 219, 232, .2), transparent 25%),
        linear-gradient(135deg, #062d3e, var(--pw-theme-raised, #084f64));
    color: #fff;
    box-shadow: 0 26px 65px rgba(8, 45, 64, .18);
}

body.poweren-my-account-modern .pw-account-hero::after {
    content: "";
    position: absolute;
    inset: auto -95px -150px auto;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(123, 231, 240, .16);
    border-radius: 50%;
    box-shadow: 0 0 0 48px rgba(123, 231, 240, .035), 0 0 0 96px rgba(123, 231, 240, .02);
    pointer-events: none;
}

body.poweren-my-account-modern .pw-account-hero__icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 22px;
    background: linear-gradient(145deg, #27d2df, #078aa7);
    box-shadow: 0 15px 32px rgba(3, 30, 42, .28);
}

body.poweren-my-account-modern .pw-account-hero__icon svg {
    width: 39px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.poweren-my-account-modern .pw-account-hero__copy,
body.poweren-my-account-modern .pw-account-hero__actions {
    position: relative;
    z-index: 1;
}

body.poweren-my-account-modern .pw-account-hero__copy > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #78dfeb;
    font-size: 12px;
    font-weight: 900;
}

body.poweren-my-account-modern .pw-account-hero__copy > span::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

body.poweren-my-account-modern .pw-account-hero h2 {
    margin: 7px 0 0;
    color: #fff !important;
    font-size: clamp(25px, 3vw, 40px);
    font-weight: 900;
    line-height: 1.45;
}

body.poweren-my-account-modern .pw-account-hero p {
    margin: 9px 0 0;
    color: #c7e1e8;
    font-size: 13px;
    line-height: 2;
}

body.poweren-my-account-modern .pw-account-hero__actions {
    display: grid;
    gap: 10px;
    min-width: 220px;
}

body.poweren-my-account-modern .pw-account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.5;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

body.poweren-my-account-modern .pw-account-button--primary {
    background: linear-gradient(135deg, #087f9b, #055f76);
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(1, 28, 39, .22);
}

body.poweren-my-account-modern .pw-account-button--ghost {
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .08);
    color: #fff !important;
}

body.poweren-my-account-modern .pw-account-button:hover {
    transform: translateY(-2px);
}

body.poweren-my-account-modern .woocommerce-MyAccount-navigation {
    display: block !important;
    float: none;
    width: 100%;
    margin: 0;
    padding: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 22px;
    background: linear-gradient(155deg, #0a3547, #082938);
    box-shadow: 0 20px 45px rgba(8, 45, 64, .14);
}

body.poweren-my-account-modern .woocommerce-MyAccount-navigation ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.poweren-my-account-modern .woocommerce-MyAccount-navigation li {
    margin: 0;
    padding: 0;
    border: 0;
}

body.poweren-my-account-modern .woocommerce-MyAccount-navigation a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 42px 0 14px;
    border-radius: 12px;
    color: #d5e6eb !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

body.poweren-my-account-modern .woocommerce-MyAccount-navigation a::before {
    content: "•";
    position: absolute;
    inset-inline-start: 15px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .08);
    color: #71d9e6;
    font-size: 16px;
}

body.poweren-my-account-modern .woocommerce-MyAccount-navigation .is-active a {
    background: linear-gradient(135deg, var(--pw-theme-action, #0b93ae), #06758f);
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(2, 27, 38, .22);
}

body.poweren-my-account-modern .woocommerce-MyAccount-navigation a:hover {
    background-color: rgba(255, 255, 255, .08);
    color: #fff !important;
    transform: translateX(-2px);
}

body.poweren-my-account-modern .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

body.poweren-my-account-dashboard-modern .woocommerce-MyAccount-content > p {
    display: none;
}

body.poweren-my-account-modern .woocommerce-notices-wrapper:empty {
    display: none;
}

body.poweren-my-account-modern .pw-account-dashboard {
    padding: 28px;
    border: 1px solid var(--pw-account-line);
    border-radius: 24px;
    background: var(--pw-theme-surface, rgba(255, 255, 255, .96));
    box-shadow: 0 20px 50px rgba(8, 45, 64, .08);
}

body.poweren-my-account-modern .pw-account-dashboard__heading > span {
    color: var(--pw-theme-link, var(--pw-account-cyan-dark));
    font-size: 11px;
    font-weight: 900;
}

body.poweren-my-account-modern .pw-account-dashboard__heading h2 {
    margin: 6px 0 0;
    color: var(--pw-theme-text, var(--pw-account-ink));
    font-size: clamp(21px, 2.2vw, 29px);
    font-weight: 900;
}

body.poweren-my-account-modern .pw-account-dashboard__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

body.poweren-my-account-modern .pw-account-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 24px;
    gap: 13px;
    align-items: center;
    min-height: 100px;
    padding: 17px;
    border: 1px solid var(--pw-theme-border, #dfebee);
    border-radius: 18px;
    background: linear-gradient(145deg, var(--pw-theme-surface, #fff), var(--pw-theme-surface, #f6fafb));
    color: var(--pw-theme-text, var(--pw-account-ink)) !important;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(8, 45, 64, .045);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body.poweren-my-account-modern .pw-account-card:hover {
    border-color: var(--pw-theme-border, #abdce4);
    transform: translateY(-3px);
    box-shadow: 0 15px 32px rgba(8, 45, 64, .09);
}

body.poweren-my-account-modern .pw-account-card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--pw-theme-subtle, #e1f6f9);
    color: var(--pw-theme-link, #006f89);
    font-size: 22px;
    font-weight: 900;
}

body.poweren-my-account-modern .pw-account-card--downloads .pw-account-card__icon {
    background: var(--pw-theme-subtle, #e9f7ef);
    color: var(--pw-theme-success, #087b62);
}

body.poweren-my-account-modern .pw-account-card--profile .pw-account-card__icon {
    background: var(--pw-theme-subtle, #f1effb);
    color: var(--pw-theme-link, #6651ae);
}

body.poweren-my-account-modern .pw-account-card--address .pw-account-card__icon {
    background: var(--pw-theme-subtle, #fff5df);
    color: var(--pw-theme-danger, #8b5d00);
}

body.poweren-my-account-modern .pw-account-card__copy,
body.poweren-my-account-modern .pw-account-card__copy strong,
body.poweren-my-account-modern .pw-account-card__copy small {
    display: block;
    min-width: 0;
}

body.poweren-my-account-modern .pw-account-card__copy strong {
    color: var(--pw-theme-text, var(--pw-account-ink));
    font-size: 14px;
    font-weight: 900;
}

body.poweren-my-account-modern .pw-account-card__copy small {
    margin-top: 6px;
    color: var(--pw-theme-muted, var(--pw-account-muted));
    font-size: 10px;
    line-height: 1.8;
}

body.poweren-my-account-modern .pw-account-card__arrow {
    color: var(--pw-theme-link, #7b959f);
    font-size: 18px;
    transition: transform .2s ease;
}

body.poweren-my-account-modern .pw-account-card:hover .pw-account-card__arrow {
    color: var(--pw-theme-link, var(--pw-account-cyan-dark));
    transform: translateX(-3px);
}

body.poweren-my-account-modern .pw-account-support {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid var(--pw-theme-border, #bee5eb);
    border-radius: 17px;
    background: linear-gradient(100deg, var(--pw-theme-subtle, #eaf9fb), var(--pw-theme-surface, #fbffff));
}

body.poweren-my-account-modern .pw-account-support > div {
    display: flex;
    align-items: center;
    gap: 11px;
}

body.poweren-my-account-modern .pw-account-support > div > span {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--pw-theme-subtle, #c9eff4);
    color: var(--pw-theme-link, #006f89);
    font-size: 18px;
    font-weight: 900;
}

body.poweren-my-account-modern .pw-account-support p {
    margin: 0;
}

body.poweren-my-account-modern .pw-account-support small,
body.poweren-my-account-modern .pw-account-support strong {
    display: block;
}

body.poweren-my-account-modern .pw-account-support small {
    color: var(--pw-theme-muted, var(--pw-account-muted));
    font-size: 10px;
}

body.poweren-my-account-modern .pw-account-support strong {
    margin-top: 4px;
    color: var(--pw-theme-text, var(--pw-account-ink));
    font-size: 12px;
}

body.poweren-my-account-modern .pw-account-support > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    background: var(--pw-account-ink);
    color: #fff !important;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none !important;
    white-space: nowrap;
}

/* Account endpoint header */
body.poweren-my-account-modern .pw-account-endpoint-hero {
    position: relative;
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    min-height: 152px;
    padding: 27px 30px;
    overflow: hidden;
    border: 1px solid rgba(72, 203, 222, .28);
    border-radius: 25px;
    background: radial-gradient(circle at 9% 12%, rgba(68, 219, 232, .2), transparent 24%), linear-gradient(135deg, #062d3e, var(--pw-theme-raised, #084f64));
    color: #fff;
    box-shadow: 0 24px 58px rgba(8, 45, 64, .16);
}

body.poweren-my-account-modern .pw-account-endpoint-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -160px auto;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(123, 231, 240, .16);
    border-radius: 50%;
    box-shadow: 0 0 0 44px rgba(123, 231, 240, .035), 0 0 0 88px rgba(123, 231, 240, .02);
    pointer-events: none;
}

body.poweren-my-account-modern .pw-account-endpoint-hero__icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 19px;
    background: linear-gradient(145deg, #27d2df, #078aa7);
    color: var(--pw-theme-page, #fff);
    font-size: 28px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(3, 30, 42, .26);
}

body.poweren-my-account-modern .pw-account-endpoint-hero__copy,
body.poweren-my-account-modern .pw-account-endpoint-hero > a {
    position: relative;
    z-index: 1;
}

body.poweren-my-account-modern .pw-account-endpoint-hero__copy > span {
    color: #78dfeb;
    font-size: 11px;
    font-weight: 900;
}

body.poweren-my-account-modern .pw-account-endpoint-hero h2 {
    margin: 4px 0 0;
    color: #fff !important;
    font-size: clamp(23px, 2.6vw, 34px);
    font-weight: 900;
    line-height: 1.45;
}

body.poweren-my-account-modern .pw-account-endpoint-hero p {
    margin: 5px 0 0;
    color: #c7e1e8;
    font-size: 11px;
    line-height: 1.9;
}

body.poweren-my-account-modern .pw-account-endpoint-hero > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 0 17px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 13px;
    background: rgba(255, 255, 255, .08);
    color: #fff !important;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none !important;
    white-space: nowrap;
}

/* Native endpoint content shell */
body.poweren-my-account-modern:not(.poweren-my-account-dashboard-modern) .woocommerce-MyAccount-content {
    padding: 24px;
    border: 1px solid var(--pw-account-line);
    border-radius: 23px;
    background: var(--pw-theme-surface, rgba(255, 255, 255, .97));
    color: var(--pw-theme-text, var(--pw-account-ink));
    box-shadow: 0 20px 50px rgba(8, 45, 64, .08);
}

body.poweren-my-account-modern .woocommerce-MyAccount-content > :first-child { margin-top: 0; }
body.poweren-my-account-modern .woocommerce-MyAccount-content > :last-child { margin-bottom: 0; }

body.poweren-my-account-modern .woocommerce-MyAccount-content p,
body.poweren-my-account-modern .woocommerce-MyAccount-content address,
body.poweren-my-account-modern .woocommerce-MyAccount-content label,
body.poweren-my-account-modern .woocommerce-MyAccount-content legend {
    color: var(--pw-theme-text, var(--pw-account-ink));
}

body.poweren-my-account-modern .woocommerce-info,
body.poweren-my-account-modern .woocommerce-message,
body.poweren-my-account-modern .woocommerce-error {
    margin: 0 0 18px !important;
    padding: 15px 52px 15px 18px !important;
    border: 1px solid var(--pw-theme-border, #bfe4ea) !important;
    border-radius: 15px;
    background: var(--pw-theme-surface, #effbfc) !important;
    color: var(--pw-theme-text, #16485c) !important;
    font-size: 11px;
    line-height: 1.9;
}

body.poweren-my-account-modern .woocommerce-info::before,
body.poweren-my-account-modern .woocommerce-message::before,
body.poweren-my-account-modern .woocommerce-error::before {
    inset-inline-start: 18px;
    color: var(--pw-theme-link, #0588a3);
}

/* Orders and downloads tables */
body.poweren-my-account-modern .woocommerce-MyAccount-content table.shop_table {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--pw-theme-border, #d7e7eb);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 18px;
    background: var(--pw-theme-surface, #fff);
}

body.poweren-my-account-modern .woocommerce-MyAccount-content table.shop_table thead {
    display: table-header-group !important;
    background: #082f41;
}

body.poweren-my-account-modern .woocommerce-MyAccount-content table.shop_table th,
body.poweren-my-account-modern .woocommerce-MyAccount-content table.shop_table td {
    padding: 14px 13px;
    border: 0;
    border-bottom: 1px solid var(--pw-theme-border, #e5eef1);
    color: var(--pw-theme-text, var(--pw-account-ink));
    font-size: 11px;
    line-height: 1.8;
    text-align: right;
    vertical-align: middle;
}

body.poweren-my-account-modern .woocommerce-MyAccount-content table.shop_table th {
    color: #fff !important;
    font-weight: 900;
    white-space: nowrap;
}

body.poweren-my-account-modern .woocommerce-MyAccount-content table.shop_table tbody tr:last-child td { border-bottom: 0; }
body.poweren-my-account-modern .woocommerce-MyAccount-content table.shop_table tbody tr { transition: background-color .18s ease; }
body.poweren-my-account-modern .woocommerce-MyAccount-content table.shop_table tbody tr:hover { background: var(--pw-theme-surface, #f7fbfc); }

body.poweren-my-account-modern .woocommerce-orders-table__cell-order-number a,
body.poweren-my-account-modern .woocommerce-table--order-downloads .download-product a {
    color: var(--pw-theme-link, #006f89) !important;
    font-weight: 900;
    text-decoration: none !important;
}

body.poweren-my-account-modern .woocommerce-orders-table__cell-order-status { font-weight: 900; }

body.poweren-my-account-modern .woocommerce-orders-table__cell-order-status::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-inline-end: 7px;
    border-radius: 50%;
    background: #6d8791;
    box-shadow: 0 0 0 4px #edf2f4;
}

body.poweren-my-account-modern .woocommerce-orders-table__row--status-completed .woocommerce-orders-table__cell-order-status { color: var(--pw-theme-success, #08785f); }
body.poweren-my-account-modern .woocommerce-orders-table__row--status-completed .woocommerce-orders-table__cell-order-status::before { background: #0ea37f; box-shadow: 0 0 0 4px #dcf5ed; }
body.poweren-my-account-modern .woocommerce-orders-table__row--status-processing .woocommerce-orders-table__cell-order-status { color: var(--pw-theme-link, #08729a); }
body.poweren-my-account-modern .woocommerce-orders-table__row--status-processing .woocommerce-orders-table__cell-order-status::before { background: #168bb6; box-shadow: 0 0 0 4px #e0f3fa; }
body.poweren-my-account-modern .woocommerce-orders-table__row--status-pending .woocommerce-orders-table__cell-order-status,
body.poweren-my-account-modern .woocommerce-orders-table__row--status-on-hold .woocommerce-orders-table__cell-order-status { color: var(--pw-theme-danger, #986200); }
body.poweren-my-account-modern .woocommerce-orders-table__row--status-pending .woocommerce-orders-table__cell-order-status::before,
body.poweren-my-account-modern .woocommerce-orders-table__row--status-on-hold .woocommerce-orders-table__cell-order-status::before { background: #dfa100; box-shadow: 0 0 0 4px #fff1c9; }
body.poweren-my-account-modern .woocommerce-orders-table__row--status-cancelled .woocommerce-orders-table__cell-order-status { color: var(--pw-theme-muted, #61737b); }
body.poweren-my-account-modern .woocommerce-orders-table__row--status-failed .woocommerce-orders-table__cell-order-status { color: var(--pw-theme-danger, #b22c3d); }
body.poweren-my-account-modern .woocommerce-orders-table__row--status-failed .woocommerce-orders-table__cell-order-status::before { background: #d44256; box-shadow: 0 0 0 4px #fbe4e8; }
body.poweren-my-account-modern .woocommerce-orders-table__row--status-refunded .woocommerce-orders-table__cell-order-status { color: var(--pw-theme-link, #7153a5); }
body.poweren-my-account-modern .woocommerce-orders-table__row--status-refunded .woocommerce-orders-table__cell-order-status::before { background: #8464ba; box-shadow: 0 0 0 4px #eee8f8; }

body.poweren-my-account-modern .woocommerce-MyAccount-content a.button,
body.poweren-my-account-modern .woocommerce-MyAccount-content button.button,
body.poweren-my-account-modern .woocommerce-MyAccount-content input.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #087f9b, #055f76) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
    box-shadow: 0 9px 20px rgba(5, 95, 118, .18);
}

body.poweren-my-account-modern .woocommerce-pagination { margin-top: 18px; }
body.poweren-my-account-modern .woocommerce-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--pw-theme-border, #cce1e6);
    border-radius: 12px;
    background: var(--pw-theme-surface, #fff);
    color: var(--pw-theme-link, #006f89) !important;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none !important;
}

body.poweren-my-account-modern .woocommerce-order-downloads > h2 {
    margin: 0 0 18px;
    color: var(--pw-theme-text, var(--pw-account-ink));
    font-size: clamp(20px, 2.1vw, 28px);
    font-weight: 900;
}

body.poweren-my-account-modern .woocommerce-table--order-downloads th.download-product,
body.poweren-my-account-modern .woocommerce-table--order-downloads th.download-remaining,
body.poweren-my-account-modern .woocommerce-table--order-downloads th.download-expires,
body.poweren-my-account-modern .woocommerce-table--order-downloads th.download-file,
body.poweren-my-account-modern .woocommerce-table--order-downloads td.download-product,
body.poweren-my-account-modern .woocommerce-table--order-downloads td.download-remaining,
body.poweren-my-account-modern .woocommerce-table--order-downloads td.download-expires,
body.poweren-my-account-modern .woocommerce-table--order-downloads td.download-file {
    display: table-cell !important;
}

body.poweren-my-account-modern .woocommerce-table--order-downloads .download-product a { cursor: pointer; }
body.poweren-my-account-modern .woocommerce-table--order-downloads .download-file { font-size: 11px; line-height: 1.8 !important; }
body.poweren-my-account-modern .woocommerce-table--order-downloads .download-file a { min-width: 110px; }

/* Address overview and native edit forms */
body.poweren-my-account-modern .woocommerce-Address,
body.poweren-my-account-modern .woocommerce-address-fields {
    position: relative;
    padding: 22px;
    border: 1px solid var(--pw-theme-border, #d8e8ec);
    border-radius: 18px;
    background: linear-gradient(145deg, var(--pw-theme-surface, #fff), var(--pw-theme-surface, #f7fbfc));
}

body.poweren-my-account-modern .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

body.poweren-my-account-modern .woocommerce-Address-title h2,
body.poweren-my-account-modern .woocommerce-Address-title h3 {
    margin: 0;
    color: var(--pw-theme-text, var(--pw-account-ink));
    font-size: 20px;
    font-weight: 900;
}

body.poweren-my-account-modern .woocommerce-Address-title a.edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--pw-theme-border, #bcdde4);
    border-radius: 11px;
    background: var(--pw-theme-subtle, #eaf8fa);
    color: var(--pw-theme-link, #006f89) !important;
    font-size: 10px;
    font-weight: 900;
    text-decoration: none !important;
}

body.poweren-my-account-modern .woocommerce-Address address {
    margin: 0;
    padding: 16px;
    border-radius: 13px;
    background: var(--pw-theme-surface, #fff);
    color: var(--pw-theme-muted, var(--pw-account-muted));
    font-style: normal;
    font-size: 12px;
    line-height: 2.2;
}

body.poweren-my-account-modern .woocommerce-EditAccountForm,
body.poweren-my-account-modern .woocommerce-address-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

body.poweren-my-account-modern .woocommerce-EditAccountForm .form-row,
body.poweren-my-account-modern .woocommerce-address-fields__field-wrapper .form-row {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

body.poweren-my-account-modern .woocommerce-EditAccountForm .form-row-wide,
body.poweren-my-account-modern .woocommerce-address-fields__field-wrapper .form-row-wide,
body.poweren-my-account-modern .woocommerce-EditAccountForm fieldset,
body.poweren-my-account-modern .woocommerce-EditAccountForm > p:last-child,
body.poweren-my-account-modern .woocommerce-address-fields > p:last-child {
    grid-column: 1 / -1;
}

body.poweren-my-account-modern .woocommerce-EditAccountForm label,
body.poweren-my-account-modern .woocommerce-address-fields label {
    display: block;
    margin: 0 0 7px;
    color: var(--pw-theme-text, var(--pw-account-ink));
    font-size: 11px;
    font-weight: 900;
}

body.poweren-my-account-modern .woocommerce-EditAccountForm input.input-text,
body.poweren-my-account-modern .woocommerce-address-fields input.input-text,
body.poweren-my-account-modern .woocommerce-address-fields select,
body.poweren-my-account-modern .select2-container .select2-selection {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid var(--pw-theme-border, #cbdde2) !important;
    border-radius: 12px !important;
    background: var(--pw-theme-input, #fbfdfe) !important;
    color: var(--pw-account-ink) !important;
    font-size: 12px;
    box-shadow: none !important;
}

body.poweren-my-account-modern .woocommerce-EditAccountForm input.input-text:focus,
body.poweren-my-account-modern .woocommerce-address-fields input.input-text:focus,
body.poweren-my-account-modern .woocommerce-address-fields select:focus {
    border-color: #16a8c2 !important;
    outline: 3px solid rgba(22, 168, 194, .13);
}

body.poweren-my-account-modern .woocommerce-EditAccountForm span em {
    display: block;
    margin-top: 6px;
    color: var(--pw-theme-muted, var(--pw-account-muted));
    font-size: 9px;
    font-style: normal;
    line-height: 1.8;
}

body.poweren-my-account-modern .woocommerce-EditAccountForm fieldset {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 8px 0 0;
    padding: 20px;
    border: 1px solid var(--pw-theme-border, #d8e8ec);
    border-radius: 17px;
    background: var(--pw-theme-surface, #f7fbfc);
}

body.poweren-my-account-modern .woocommerce-EditAccountForm legend {
    padding: 0 9px;
    color: var(--pw-theme-text, var(--pw-account-ink));
    font-size: 15px;
    font-weight: 900;
}

body.poweren-my-account-modern .show-password-input {
    top: 50% !important;
    transform: translateY(-50%);
}

body.poweren-my-account-modern .clear { display: none; }

body.poweren-my-account-modern a:focus-visible {
    outline: 3px solid rgba(18, 185, 211, .3);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    body.poweren-my-account-modern .pw-account-endpoint-hero {
        grid-template-columns: 62px minmax(0, 1fr);
        padding: 25px;
    }

    body.poweren-my-account-modern .pw-account-endpoint-hero > a {
        grid-column: 1 / -1;
        width: max-content;
    }

    body.poweren-my-account-modern .pw-account-hero {
        grid-template-columns: 68px minmax(0, 1fr);
        padding: 28px;
    }

    body.poweren-my-account-modern .pw-account-hero__icon {
        width: 62px;
        height: 62px;
        border-radius: 19px;
    }

    body.poweren-my-account-modern .pw-account-hero__actions {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
    }

    body.poweren-my-account-modern .iranwp-full-content > .woocommerce {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 18px;
    }

    body.poweren-my-account-modern .pw-account-dashboard__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    body.poweren-my-account-modern #main-content {
        width: min(100% - 18px, 1280px);
    }

    body.poweren-my-account-modern .cart-p {
        margin-block: 18px 36px;
    }

    body.poweren-my-account-modern .iranwp-full-content > .woocommerce {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    body.poweren-my-account-modern .pw-account-endpoint-hero {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 14px;
        min-height: 0;
        padding: 20px 16px;
        border-radius: 21px;
    }

    body.poweren-my-account-modern .pw-account-endpoint-hero__icon {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        font-size: 23px;
    }

    body.poweren-my-account-modern .pw-account-endpoint-hero h2 { font-size: 24px; }
    body.poweren-my-account-modern .pw-account-endpoint-hero p { font-size: 10px; }
    body.poweren-my-account-modern .pw-account-endpoint-hero > a { width: 100%; }

    body.poweren-my-account-modern:not(.poweren-my-account-dashboard-modern) .woocommerce-MyAccount-content {
        padding: 15px 12px;
        border-radius: 19px;
    }

    body.poweren-my-account-modern .woocommerce-EditAccountForm,
    body.poweren-my-account-modern .woocommerce-address-fields__field-wrapper {
        grid-template-columns: 1fr;
    }

    body.poweren-my-account-modern .woocommerce-EditAccountForm .form-row,
    body.poweren-my-account-modern .woocommerce-address-fields__field-wrapper .form-row {
        grid-column: 1 / -1;
    }

    body.poweren-my-account-modern .woocommerce-Address,
    body.poweren-my-account-modern .woocommerce-address-fields { padding: 16px 13px; }

    body.poweren-my-account-modern .woocommerce-MyAccount-content table.shop_table,
    body.poweren-my-account-modern .woocommerce-MyAccount-content table.shop_table tbody,
    body.poweren-my-account-modern .woocommerce-MyAccount-content table.shop_table tr,
    body.poweren-my-account-modern .woocommerce-MyAccount-content table.shop_table td {
        display: block;
        width: 100%;
    }

    body.poweren-my-account-modern .woocommerce-MyAccount-content table.shop_table thead { display: none !important; }

    body.poweren-my-account-modern .woocommerce-MyAccount-content table.shop_table {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    body.poweren-my-account-modern .woocommerce-MyAccount-content table.shop_table tr {
        margin-bottom: 12px;
        overflow: hidden;
        border: 1px solid var(--pw-theme-border, #d7e7eb);
        border-radius: 15px;
        background: var(--pw-theme-surface, #fff);
    }

    body.poweren-my-account-modern .woocommerce-MyAccount-content table.shop_table td {
        display: grid;
        grid-template-columns: minmax(95px, .8fr) minmax(0, 1.2fr);
        gap: 12px;
        align-items: center;
        padding: 11px 12px;
        font-size: 10px;
    }

    body.poweren-my-account-modern .woocommerce-table--order-downloads td.download-product,
    body.poweren-my-account-modern .woocommerce-table--order-downloads td.download-remaining,
    body.poweren-my-account-modern .woocommerce-table--order-downloads td.download-expires,
    body.poweren-my-account-modern .woocommerce-table--order-downloads td.download-file {
        display: grid !important;
    }

    body.poweren-my-account-modern .woocommerce-MyAccount-content table.shop_table td::before {
        content: attr(data-title);
        color: var(--pw-theme-muted, #5b747e);
        font-size: 9px;
        font-weight: 900;
    }

    body.poweren-my-account-modern .woocommerce-MyAccount-content table.shop_table td:last-child { border-bottom: 0; }
    body.poweren-my-account-modern .woocommerce-MyAccount-content table.shop_table td a.button { width: 100%; }

    body.poweren-my-account-modern .pw-account-hero {
        grid-template-columns: 1fr;
        gap: 15px;
        min-height: 0;
        padding: 22px 18px;
        border-radius: 22px;
    }

    body.poweren-my-account-modern .pw-account-hero__icon {
        width: 56px;
        height: 56px;
        border-radius: 17px;
    }

    body.poweren-my-account-modern .pw-account-hero h2 {
        font-size: 25px;
    }

    body.poweren-my-account-modern .pw-account-hero p {
        font-size: 11px;
    }

    body.poweren-my-account-modern .pw-account-hero__actions {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    body.poweren-my-account-modern .woocommerce-MyAccount-navigation {
        padding: 9px;
        border-radius: 18px;
    }

    body.poweren-my-account-modern .woocommerce-MyAccount-navigation ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.poweren-my-account-modern .woocommerce-MyAccount-navigation a {
        min-height: 44px;
        padding: 0 34px 0 8px;
        font-size: 10px;
    }

    body.poweren-my-account-modern .woocommerce-MyAccount-navigation a::before {
        inset-inline-start: 10px;
    }

    body.poweren-my-account-modern .pw-account-dashboard {
        padding: 20px 14px;
        border-radius: 20px;
    }

    body.poweren-my-account-modern .pw-account-dashboard__grid {
        margin-top: 17px;
    }

    body.poweren-my-account-modern .pw-account-card {
        grid-template-columns: 44px minmax(0, 1fr) 20px;
        min-height: 92px;
        padding: 14px;
        border-radius: 16px;
    }

    body.poweren-my-account-modern .pw-account-card__icon {
        width: 44px;
        height: 44px;
    }

    body.poweren-my-account-modern .pw-account-support {
        align-items: stretch;
        flex-direction: column;
        padding: 16px;
    }

    body.poweren-my-account-modern .pw-account-support > a {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.poweren-my-account-modern .pw-account-button,
    body.poweren-my-account-modern .woocommerce-MyAccount-navigation a,
    body.poweren-my-account-modern .pw-account-card,
    body.poweren-my-account-modern .pw-account-card__arrow {
        transition: none;
    }
}
