/**
 * Vasipour My Account v2
 * Scoped to body.pym-account-v2 to avoid leaking into the rest of the site.
 */
body.pym-account-v2 {
    --pym-red: #d13232;
    --pym-red-dark: #b92525;
    --pym-red-soft: #fff3f3;
    --pym-dark: #30303d;
    --pym-dark-2: #24242f;
    --pym-yellow: #ffc928;
    --pym-text: #25252f;
    --pym-muted: #747480;
    --pym-line: #e8e8ee;
    --pym-surface: #ffffff;
    --pym-bg: #fafafa;
    --pym-success: #188553;
    --pym-warning: #b7791f;
    --pym-danger: #c32f2f;
    --pym-radius-xl: 22px;
    --pym-radius-lg: 16px;
    --pym-radius-md: 12px;
    --pym-shadow: 0 18px 50px rgba(48, 48, 61, 0.08);
    --pym-shadow-sm: 0 8px 24px rgba(48, 48, 61, 0.06);
    color: var(--pym-text);
}

body.pym-account-v2 .page-header,
body.pym-account-v2 .entry-header {
    display: none;
}

body.pym-account-v2 .woocommerce,
body.pym-account-v2 .woocommerce-MyAccount-content,
body.pym-account-v2 .woocommerce-MyAccount-navigation {
    width: 100%;
    float: none;
}

body.pym-account-v2 .woocommerce::before,
body.pym-account-v2 .woocommerce::after,
body.pym-account-v2 .pym-account-shell::before,
body.pym-account-v2 .pym-account-shell::after {
    content: none;
}

body.pym-account-v2 .pym-icon {
    display: block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex: 0 0 20px;
    overflow: visible;
    color: inherit;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.pym-account-v2 .pym-account-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 42px auto 64px;
    direction: rtl;
}

body.pym-account-v2 .pym-account-layout {
    display: grid;
    grid-template-columns: 276px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

body.pym-account-v2 .pym-account-sidebar {
    position: sticky;
    top: 24px;
}

body.pym-account-v2 .pym-account-nav-card {
    overflow: hidden;
    border: 1px solid var(--pym-line);
    border-radius: var(--pym-radius-xl);
    background: var(--pym-surface);
    box-shadow: var(--pym-shadow-sm);
}

body.pym-account-v2 .pym-account-profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 118px;
    padding: 22px 18px;
    color: #fff;
    background:
        radial-gradient(circle at 10% 15%, rgba(255, 201, 40, .22), transparent 35%),
        linear-gradient(140deg, var(--pym-dark), var(--pym-dark-2));
}

body.pym-account-v2 .pym-account-profile::after {
    content: "";
    position: absolute;
    inset-inline-end: -28px;
    bottom: -48px;
    width: 130px;
    height: 130px;
    border: 24px solid rgba(209, 50, 50, .28);
    border-radius: 50%;
    pointer-events: none;
}

body.pym-account-v2 .pym-account-avatar-wrap {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
}

body.pym-account-v2 .pym-account-avatar-wrap > img,
body.pym-account-v2 .pym-account-avatar {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, .75);
    border-radius: 50%;
    background: #fff;
}

body.pym-account-v2 .pym-account-avatar-edit {
    position: absolute;
    inset-inline-start: -3px;
    bottom: -2px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px;
    height: 28px;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    color: var(--pym-red);
    border: 2px solid var(--pym-dark);
    border-radius: 50%;
    background: #fff;
    font-size: 0 !important;
    line-height: 0 !important;
    text-decoration: none !important;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body.pym-account-v2 .pym-account-avatar-edit:hover,
body.pym-account-v2 .pym-account-avatar-edit:focus-visible {
    border-color: var(--pym-red);
    box-shadow: 0 5px 14px rgba(209, 50, 50, .22);
    transform: translateY(-2px);
}

/* Elementor/wpautop can inject line-breaks inside shortcode output. */
body.pym-account-v2 .pym-account-avatar-edit > br,
body.pym-account-v2 .pym-account-avatar-edit > p:empty {
    display: none !important;
}

body.pym-account-v2 .pym-account-avatar-edit-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin: 0;
    padding: 0;
    line-height: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

body.pym-account-v2 .pym-account-avatar-edit-icon .pym-icon,
body.pym-account-v2 .pym-account-avatar-edit > .pym-icon {
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 14px !important;
    transform: none !important;
}

body.pym-account-v2 .pym-account-profile-copy {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

body.pym-account-v2 .pym-account-profile-copy strong {
    overflow: hidden;
    font-size: 15px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.pym-account-v2 .pym-account-profile-copy span {
    overflow: hidden;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    direction: ltr;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.pym-account-v2 .pym-account-navigation {
    padding: 12px;
}

body.pym-account-v2 .pym-account-navigation ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.pym-account-v2 .pym-account-navigation li {
    margin: 0;
    padding: 0;
}

body.pym-account-v2 .pym-account-navigation li:last-child {
    margin-top: 9px;
    padding-top: 10px;
    border-top: 1px solid var(--pym-line);
}

body.pym-account-v2 .pym-account-navigation a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 46px;
    padding: 10px 12px;
    color: #44444f;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

body.pym-account-v2 .pym-account-navigation a:hover {
    color: var(--pym-red);
    background: var(--pym-red-soft);
    transform: translateX(-2px);
}

body.pym-account-v2 .pym-account-navigation .is-active > a {
    color: #fff;
    background: var(--pym-red);
    box-shadow: 0 8px 18px rgba(209, 50, 50, .22);
}

body.pym-account-v2 .pym-account-navigation li:last-child a {
    color: var(--pym-danger);
}

body.pym-account-v2 .pym-account-navigation li:last-child.is-active a,
body.pym-account-v2 .pym-account-navigation li:last-child a:hover {
    color: #fff;
    background: var(--pym-danger);
}

body.pym-account-v2 .pym-account-nav-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    color: #565661;
    border-radius: 8px;
    background: rgba(48, 48, 61, .06);
    transition: color .18s ease, background .18s ease;
}

body.pym-account-v2 .pym-account-navigation a:hover .pym-account-nav-icon {
    color: var(--pym-red);
    background: rgba(209, 50, 50, .1);
}

body.pym-account-v2 .pym-account-navigation .is-active .pym-account-nav-icon,
body.pym-account-v2 .pym-account-navigation .is-active .pym-account-nav-icon .pym-icon {
    color: #fff !important;
}

body.pym-account-v2 .pym-account-navigation .is-active .pym-account-nav-icon {
    background: rgba(255, 255, 255, .18);
}

body.pym-account-v2 .pym-account-nav-icon .pym-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    flex-basis: 18px;
}

body.pym-account-v2 .pym-account-content {
    min-width: 0;
    min-height: 0;
    padding: 28px;
    border: 1px solid var(--pym-line);
    border-radius: var(--pym-radius-xl);
    background: var(--pym-surface);
    box-shadow: var(--pym-shadow);
}

body.pym-account-v2 .pym-account-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

body.pym-account-v2 .pym-account-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 2px;
}

body.pym-account-v2 .pym-account-page-header > div {
    min-width: 0;
}

body.pym-account-v2 .pym-account-page-header h1,
body.pym-account-v2 .pym-account-page-header h2 {
    margin: 5px 0 7px;
    color: var(--pym-dark);
    font-size: clamp(21px, 2vw, 28px);
    font-weight: 800;
    line-height: 1.45;
}

body.pym-account-v2 .pym-account-page-header p {
    max-width: 650px;
    margin: 0;
    color: var(--pym-muted);
    font-size: 13px;
    line-height: 2;
}

body.pym-account-v2 .pym-account-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 3px 10px;
    color: var(--pym-red);
    border: 1px solid rgba(209, 50, 50, .14);
    border-radius: 999px;
    background: var(--pym-red-soft);
    font-size: 11px;
    font-weight: 700;
}

body.pym-account-v2 .pym-account-hero {
    position: relative;
    overflow: hidden;
    padding: 26px;
    color: #fff;
    border-radius: var(--pym-radius-lg);
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 201, 40, .25), transparent 28%),
        linear-gradient(135deg, var(--pym-red), #e34a4a 55%, #b92525);
}

body.pym-account-v2 .pym-account-hero::after {
    content: "";
    position: absolute;
    inset-inline-start: -45px;
    bottom: -80px;
    width: 180px;
    height: 180px;
    border: 35px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
}

body.pym-account-v2 .pym-account-hero > * {
    position: relative;
    z-index: 1;
}

body.pym-account-v2 .pym-account-hero .pym-account-eyebrow {
    color: #fff;
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .13);
}

body.pym-account-v2 .pym-account-hero h1,
body.pym-account-v2 .pym-account-hero p {
    color: #fff;
}

body.pym-account-v2 .pym-account-hero p {
    color: rgba(255, 255, 255, .82);
}

body.pym-account-v2 .pym-account-hero-copy {
    min-width: 0;
    flex: 1 1 auto;
}

body.pym-account-v2 .pym-account-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
}

body.pym-account-v2 .pym-hero-edit-button {
    width: auto !important;
    min-width: 0 !important;
    min-height: 38px !important;
    padding: 7px 13px !important;
    color: var(--pym-dark) !important;
    border-color: rgba(255, 255, 255, .68) !important;
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 8px 22px rgba(89, 20, 20, .12) !important;
    white-space: nowrap;
}

body.pym-account-v2 .pym-hero-edit-button:hover {
    color: var(--pym-red) !important;
    background: #fff !important;
}

/* Elementor text widgets can inject wpautop breaks around shortcode output. */
body.pym-account-v2 .pym-btn > br,
body.pym-account-v2 .pym-panel-action > br,
body.pym-account-v2 .pym-address-action > br,
body.pym-account-v2 .pym-download-button > br,
body.pym-account-v2 .pym-download-extra-button > br {
    display: none !important;
}

body.pym-account-v2 .pym-account-hero > p:has(> .pym-btn:only-child),
body.pym-account-v2 .pym-panel-heading > p:has(> a:only-child) {
    display: contents;
    margin: 0 !important;
    padding: 0 !important;
}

body.pym-account-v2 .pym-btn,
body.pym-account-v2 button.pym-btn,
body.pym-account-v2 a.pym-btn,
body.pym-account-v2 .woocommerce-button.button,
body.pym-account-v2 .woocommerce-Button.button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

body.pym-account-v2 .pym-btn:hover,
body.pym-account-v2 button.pym-btn:hover,
body.pym-account-v2 a.pym-btn:hover {
    transform: translateY(-1px);
}

body.pym-account-v2 .pym-btn .pym-icon {
    width: 17px;
    height: 17px;
}

body.pym-account-v2 .pym-btn-primary,
body.pym-account-v2 .woocommerce-button.button,
body.pym-account-v2 .woocommerce-Button.button {
    color: #fff;
    border-color: var(--pym-red);
    background: var(--pym-red);
    box-shadow: 0 8px 18px rgba(209, 50, 50, .18);
}

body.pym-account-v2 .pym-btn-primary:hover,
body.pym-account-v2 .woocommerce-button.button:hover,
body.pym-account-v2 .woocommerce-Button.button:hover {
    color: #fff;
    border-color: var(--pym-red-dark);
    background: var(--pym-red-dark);
}

body.pym-account-v2 .pym-btn-secondary {
    color: var(--pym-dark);
    border-color: var(--pym-line);
    background: #fff;
}

body.pym-account-v2 .pym-btn-secondary:hover {
    color: var(--pym-red);
    border-color: rgba(209, 50, 50, .28);
}

body.pym-account-v2 .pym-btn-light {
    color: var(--pym-dark);
    border-color: rgba(255, 255, 255, .62);
    background: #fff;
}

body.pym-account-v2 .pym-btn-ghost {
    color: var(--pym-dark);
    border-color: var(--pym-line);
    background: #fff;
}

body.pym-account-v2 .pym-btn-ghost:hover {
    color: var(--pym-red);
    border-color: rgba(209, 50, 50, .28);
    background: var(--pym-red-soft);
}

body.pym-account-v2 a:focus-visible,
body.pym-account-v2 button:focus-visible,
body.pym-account-v2 input:focus-visible,
body.pym-account-v2 select:focus-visible,
body.pym-account-v2 textarea:focus-visible {
    outline: 3px solid rgba(209, 50, 50, .2);
    outline-offset: 2px;
}

/* Notices */
body.pym-account-v2 .woocommerce-notices-wrapper:empty {
    display: none;
}

body.pym-account-v2 .woocommerce-message,
body.pym-account-v2 .woocommerce-info,
body.pym-account-v2 .woocommerce-error {
    margin: 0 0 18px;
    padding: 15px 18px 15px 18px;
    border: 1px solid var(--pym-line);
    border-top: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--pym-shadow-sm);
    font-size: 12px;
    line-height: 1.9;
}

body.pym-account-v2 .woocommerce-message {
    border-right: 4px solid var(--pym-success);
}

body.pym-account-v2 .woocommerce-info {
    border-right: 4px solid var(--pym-yellow);
}

body.pym-account-v2 .woocommerce-error {
    border-right: 4px solid var(--pym-danger);
}

body.pym-account-v2 .woocommerce-message::before,
body.pym-account-v2 .woocommerce-info::before,
body.pym-account-v2 .woocommerce-error::before {
    display: none;
}

/* Dashboard */
body.pym-account-v2 .pym-account-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

body.pym-account-v2 .pym-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 15px;
    color: var(--pym-text);
    border: 1px solid var(--pym-line);
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

body.pym-account-v2 .pym-stat-card:hover {
    color: var(--pym-text);
    border-color: rgba(209, 50, 50, .24);
    box-shadow: var(--pym-shadow-sm);
    transform: translateY(-2px);
}

body.pym-account-v2 .pym-stat-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    color: var(--pym-red);
    border-radius: 12px;
    background: var(--pym-red-soft);
}

body.pym-account-v2 .pym-stat-card:nth-child(2) .pym-stat-icon {
    color: var(--pym-success);
    background: #edf9f3;
}

body.pym-account-v2 .pym-stat-card:nth-child(3) .pym-stat-icon {
    color: #6d5bd0;
    background: #f1efff;
}

body.pym-account-v2 .pym-stat-card:nth-child(4) .pym-stat-icon {
    color: var(--pym-warning);
    background: #fff8df;
}

body.pym-account-v2 .pym-stat-card > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

body.pym-account-v2 .pym-stat-card strong {
    color: var(--pym-dark);
    font-size: 19px;
    line-height: 1.2;
}

body.pym-account-v2 .pym-stat-card small {
    color: var(--pym-muted);
    font-size: 10.5px;
}

body.pym-account-v2 .pym-account-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
    gap: 16px;
}

body.pym-account-v2 .pym-panel {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--pym-line);
    border-radius: var(--pym-radius-lg);
    background: #fff;
}

body.pym-account-v2 .pym-panel-wide {
    grid-column: 1 / -1;
}

body.pym-account-v2 .pym-panel-heading,
body.pym-account-v2 .pym-form-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 17px;
}

body.pym-account-v2 .pym-panel-heading > div,
body.pym-account-v2 .pym-form-section-heading > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.pym-account-v2 .pym-panel-heading h2,
body.pym-account-v2 .pym-form-section-heading h2 {
    margin: 0;
    color: var(--pym-dark);
    font-size: 15px;
    font-weight: 800;
}

body.pym-account-v2 .pym-panel-heading > a,
body.pym-account-v2 .pym-panel-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 31px;
    padding: 5px 9px;
    color: var(--pym-red);
    border: 1px solid rgba(209, 50, 50, .14);
    border-radius: 9px;
    background: var(--pym-red-soft);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

body.pym-account-v2 .pym-panel-action .pym-icon {
    width: 14px;
    height: 14px;
    min-width: 14px;
    flex-basis: 14px;
}

body.pym-account-v2 .pym-panel-heading > a:hover,
body.pym-account-v2 .pym-panel-action:hover {
    color: #fff;
    border-color: var(--pym-red);
    background: var(--pym-red);
}

body.pym-account-v2 .pym-panel-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--pym-red);
    border-radius: 10px;
    background: var(--pym-red-soft);
}

body.pym-account-v2 .pym-panel-icon .pym-icon {
    width: 17px;
    height: 17px;
}

body.pym-account-v2 .pym-compact-order-list {
    display: flex;
    flex-direction: column;
}

body.pym-account-v2 .pym-compact-order {
    display: grid;
    grid-template-columns: 72px minmax(100px, 1fr) 110px auto;
    gap: 10px;
    align-items: center;
    min-height: 57px;
    padding: 10px 0;
    color: var(--pym-text);
    border-bottom: 1px solid var(--pym-line);
    text-decoration: none;
}

body.pym-account-v2 .pym-compact-order:last-child {
    border-bottom: 0;
}

body.pym-account-v2 .pym-compact-order:hover {
    color: var(--pym-red);
}

body.pym-account-v2 .pym-compact-order-id {
    direction: ltr;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}

body.pym-account-v2 .pym-compact-order-date,
body.pym-account-v2 .pym-compact-order-total {
    color: var(--pym-muted);
    font-size: 10.5px;
}

body.pym-account-v2 .pym-profile-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.pym-account-v2 .pym-profile-details > div {
    display: flex;
    align-items: center;
    gap: 11px;
}

body.pym-account-v2 .pym-profile-details > div > span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    color: var(--pym-muted);
    border: 1px solid var(--pym-line);
    border-radius: 10px;
}

body.pym-account-v2 .pym-profile-details > div > span .pym-icon {
    width: 17px;
    height: 17px;
}

body.pym-account-v2 .pym-profile-details > div > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

body.pym-account-v2 .pym-profile-details small {
    color: var(--pym-muted);
    font-size: 10px;
}

body.pym-account-v2 .pym-profile-details strong {
    overflow: hidden;
    color: var(--pym-text);
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
}

body.pym-account-v2 .pym-address-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 17px;
    border: 1px dashed #d8d8df;
    border-radius: 13px;
    background: var(--pym-bg);
}

body.pym-account-v2 .pym-address-pin {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    color: var(--pym-red);
    border-radius: 12px;
    background: #fff;
}

body.pym-account-v2 .pym-address-card > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.pym-account-v2 .pym-address-card strong {
    color: var(--pym-text);
    font-size: 12px;
    line-height: 2;
}

body.pym-account-v2 .pym-address-card small {
    color: var(--pym-muted);
    font-size: 10.5px;
}

/* Status badges */
body.pym-account-v2 .pym-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 3px 9px;
    color: #53535d;
    border: 1px solid var(--pym-line);
    border-radius: 999px;
    background: #f7f7f9;
    font-size: 9.5px;
    font-weight: 700;
    white-space: nowrap;
}

body.pym-account-v2 .pym-status-completed,
body.pym-account-v2 .pym-status-active {
    color: #176b48;
    border-color: #c9ecd9;
    background: #edf9f3;
}

body.pym-account-v2 .pym-status-processing,
body.pym-account-v2 .pym-status-on-hold,
body.pym-account-v2 .pym-status-pending {
    color: #916516;
    border-color: #f5df9f;
    background: #fff8df;
}

body.pym-account-v2 .pym-status-cancelled,
body.pym-account-v2 .pym-status-failed,
body.pym-account-v2 .pym-status-refunded {
    color: #a72b2b;
    border-color: #f1caca;
    background: #fff1f1;
}

/* Orders */
body.pym-account-v2 .pym-order-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 3px 2px 8px;
    scrollbar-width: thin;
}

body.pym-account-v2 .pym-order-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 39px;
    padding: 7px 12px;
    color: #555560;
    border: 1px solid var(--pym-line);
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

body.pym-account-v2 .pym-order-filter small {
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    color: var(--pym-muted);
    border-radius: 999px;
    background: #f2f2f5;
    font-size: 9px;
}

body.pym-account-v2 .pym-order-filter.is-active {
    color: #fff;
    border-color: var(--pym-red);
    background: var(--pym-red);
}

body.pym-account-v2 .pym-order-filter.is-active small {
    color: var(--pym-red);
    background: #fff;
}

body.pym-account-v2 .pym-order-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.pym-account-v2 .pym-order-card {
    overflow: hidden;
    border: 1px solid var(--pym-line);
    border-radius: var(--pym-radius-lg);
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

body.pym-account-v2 .pym-order-card:hover {
    border-color: rgba(209, 50, 50, .2);
    box-shadow: var(--pym-shadow-sm);
}

body.pym-account-v2 .pym-order-card[hidden] {
    display: none;
}

body.pym-account-v2 .pym-order-card-header,
body.pym-account-v2 .pym-order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    background: #fbfbfc;
}

body.pym-account-v2 .pym-order-card-header {
    border-bottom: 1px solid var(--pym-line);
}

body.pym-account-v2 .pym-order-card-footer {
    border-top: 1px solid var(--pym-line);
}

body.pym-account-v2 .pym-order-number {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.pym-account-v2 .pym-order-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--pym-red);
    border-radius: 10px;
    background: var(--pym-red-soft);
}

body.pym-account-v2 .pym-order-number > div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

body.pym-account-v2 .pym-order-number small {
    color: var(--pym-muted);
    font-size: 9px;
}

body.pym-account-v2 .pym-order-number strong {
    color: var(--pym-dark);
    font-size: 13px;
    direction: ltr;
}

body.pym-account-v2 .pym-order-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 17px;
}

body.pym-account-v2 .pym-order-product {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

body.pym-account-v2 .pym-order-product-image {
    display: block;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    object-fit: cover;
    border: 1px solid var(--pym-line);
    border-radius: 11px;
    background: #f7f7f7;
}

body.pym-account-v2 .pym-order-product > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

body.pym-account-v2 .pym-order-product strong {
    overflow: hidden;
    color: var(--pym-dark);
    font-size: 11.5px;
    line-height: 1.8;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.pym-account-v2 .pym-order-product small,
body.pym-account-v2 .pym-order-more-items {
    color: var(--pym-muted);
    font-size: 9.5px;
}

body.pym-account-v2 .pym-order-more-items {
    grid-column: 1 / -1;
    padding-top: 2px;
}

body.pym-account-v2 .pym-order-meta-list {
    display: flex;
    align-items: center;
    gap: 24px;
}

body.pym-account-v2 .pym-order-meta-list > span {
    display: grid;
    grid-template-columns: 20px auto;
    column-gap: 6px;
    align-items: center;
}

body.pym-account-v2 .pym-order-meta-list .pym-icon {
    grid-row: 1 / 3;
    color: var(--pym-muted);
    width: 17px;
    height: 17px;
}

body.pym-account-v2 .pym-order-meta-list small {
    color: var(--pym-muted);
    font-size: 8.5px;
}

body.pym-account-v2 .pym-order-meta-list strong {
    color: var(--pym-text);
    font-size: 10.5px;
}

body.pym-account-v2 .pym-no-filter-results {
    padding: 30px;
    color: var(--pym-muted);
    border: 1px dashed var(--pym-line);
    border-radius: 14px;
    text-align: center;
    font-size: 12px;
}

body.pym-account-v2 .pym-account-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
}

body.pym-account-v2 .pym-account-pagination > span {
    color: var(--pym-muted);
    font-size: 10px;
}

/* Licenses */
body.pym-account-v2 .pym-license-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

body.pym-account-v2 .pym-license-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--pym-line);
    border-radius: var(--pym-radius-lg);
    background: #fff;
}

body.pym-account-v2 .pym-license-card::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 4px;
    background: var(--pym-red);
}

body.pym-account-v2 .pym-license-card.is-pending::before {
    background: var(--pym-yellow);
}

body.pym-account-v2 .pym-license-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body.pym-account-v2 .pym-license-card-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    color: #fff;
    border-radius: 13px;
    background: var(--pym-dark);
}

body.pym-account-v2 .pym-license-card h2 {
    margin: 14px 0 8px;
    color: var(--pym-dark);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.9;
}

body.pym-account-v2 .pym-license-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--pym-muted);
    font-size: 9.5px;
}

body.pym-account-v2 .pym-license-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

body.pym-account-v2 .pym-license-meta .pym-icon {
    width: 14px;
    height: 14px;
}

body.pym-account-v2 .pym-license-key-wrap {
    margin-top: 16px;
    padding: 13px;
    border: 1px solid var(--pym-line);
    border-radius: 12px;
    background: var(--pym-bg);
}

body.pym-account-v2 .pym-license-key-wrap label {
    display: block;
    margin-bottom: 7px;
    color: var(--pym-muted);
    font-size: 9.5px;
    font-weight: 700;
}

body.pym-account-v2 .pym-license-key-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
}

body.pym-account-v2 .pym-license-key-row input {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 11px;
    color: var(--pym-dark);
    border: 1px solid var(--pym-line);
    border-radius: 9px;
    background: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
}

body.pym-account-v2 .pym-copy-license {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 72px;
    height: 40px;
    padding: 0 11px;
    color: #fff;
    border: 0;
    border-radius: 9px;
    background: var(--pym-dark);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

body.pym-account-v2 .pym-copy-license.is-copied {
    background: var(--pym-success);
}

body.pym-account-v2 .pym-copy-license .pym-icon {
    width: 15px;
    height: 15px;
}

body.pym-account-v2 .pym-license-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

body.pym-account-v2 .pym-license-pending-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 15px 0 12px;
    padding: 13px;
    color: #75571a;
    border: 1px solid #f3dea0;
    border-radius: 11px;
    background: #fff9e8;
}

body.pym-account-v2 .pym-license-pending-note .pym-icon {
    flex: 0 0 auto;
    margin-top: 3px;
}

body.pym-account-v2 .pym-license-pending-note p {
    margin: 0;
    font-size: 10px;
    line-height: 1.9;
}

body.pym-account-v2 .pym-license-test-label {
    position: absolute;
    inset-inline-end: 12px;
    bottom: 10px;
    color: var(--pym-muted);
    font-size: 8px;
}

/* Messages */
body.pym-account-v2 .pym-message-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

body.pym-account-v2 .pym-message-filters a {
    min-height: 37px;
    padding: 8px 12px;
    color: var(--pym-muted);
    border: 1px solid var(--pym-line);
    border-radius: 10px;
    background: #fff;
    font-size: 10.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

body.pym-account-v2 .pym-message-filters a.is-active {
    color: #fff;
    border-color: var(--pym-red);
    background: var(--pym-red);
}

body.pym-account-v2 .pym-message-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.pym-account-v2 .pym-message-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 13px;
    padding: 17px;
    border: 1px solid var(--pym-line);
    border-radius: 14px;
    background: #fff;
}

body.pym-account-v2 .pym-message-card-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--pym-red);
    border-radius: 12px;
    background: var(--pym-red-soft);
}

body.pym-account-v2 .pym-message-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 8px;
}

body.pym-account-v2 .pym-message-card h2 {
    margin: 0;
    color: var(--pym-dark);
    font-size: 13px;
    font-weight: 800;
}

body.pym-account-v2 .pym-message-card time {
    color: var(--pym-muted);
    font-size: 9px;
    white-space: nowrap;
}

body.pym-account-v2 .pym-message-body,
body.pym-account-v2 .pym-message-body p {
    margin: 0;
    color: #656570;
    font-size: 11px;
    line-height: 2;
}

/* Forms */
body.pym-account-v2 .pym-account-form,
body.pym-account-v2 form.woocommerce-EditAccountForm,
body.pym-account-v2 form.woocommerce-address-fields,
body.pym-account-v2 .woocommerce-ResetPassword,
body.pym-account-v2 .woocommerce-form-login,
body.pym-account-v2 .woocommerce-form-register {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.pym-account-v2 .pym-form-section {
    padding: 20px;
    border: 1px solid var(--pym-line);
    border-radius: var(--pym-radius-lg);
    background: #fff;
}

body.pym-account-v2 .pym-form-section-heading > small {
    color: var(--pym-muted);
    font-size: 9.5px;
}

body.pym-account-v2 .pym-avatar-editor {
    display: flex;
    align-items: center;
    gap: 20px;
}

body.pym-account-v2 .pym-avatar-editor > img {
    display: block;
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    object-fit: cover;
    border: 5px solid #fff;
    border-radius: 50%;
    background: #f3f3f5;
    box-shadow: 0 0 0 1px var(--pym-line), var(--pym-shadow-sm);
}

body.pym-account-v2 .pym-avatar-actions {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
}

body.pym-account-v2 .pym-avatar-actions small,
body.pym-account-v2 .pym-form-grid .form-row > small {
    color: var(--pym-muted);
    font-size: 9px;
    line-height: 1.8;
}

body.pym-account-v2 .pym-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--pym-danger);
    font-size: 10px;
    cursor: pointer;
}

body.pym-account-v2 .pym-checkbox input {
    accent-color: var(--pym-red);
}

body.pym-account-v2 .pym-form-grid,
body.pym-account-v2 form.edit-address .form-row,
body.pym-account-v2 form.edit-account > .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

body.pym-account-v2 .pym-form-grid-wide,
body.pym-account-v2 form.edit-address .form-row-wide {
    grid-column: 1 / -1;
}

body.pym-account-v2 .form-row,
body.pym-account-v2 .woocommerce-form-row {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

body.pym-account-v2 .form-row label,
body.pym-account-v2 .woocommerce-form-row label {
    display: block;
    margin-bottom: 7px;
    color: #454550;
    font-size: 10.5px;
    font-weight: 700;
}

body.pym-account-v2 .required {
    color: var(--pym-red);
}

body.pym-account-v2 input[type="text"],
body.pym-account-v2 input[type="email"],
body.pym-account-v2 input[type="tel"],
body.pym-account-v2 input[type="password"],
body.pym-account-v2 input[type="number"],
body.pym-account-v2 input[type="url"],
body.pym-account-v2 select,
body.pym-account-v2 textarea,
body.pym-account-v2 .select2-container .select2-selection--single {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 9px 12px;
    color: var(--pym-text);
    border: 1px solid #ddddE5;
    border-radius: 11px;
    outline: none;
    background: #fff;
    font-family: inherit;
    font-size: 11.5px;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

body.pym-account-v2 textarea {
    min-height: 110px;
    resize: vertical;
}

body.pym-account-v2 input:focus,
body.pym-account-v2 select:focus,
body.pym-account-v2 textarea:focus,
body.pym-account-v2 .select2-container--open .select2-selection--single {
    border-color: rgba(209, 50, 50, .58);
    box-shadow: 0 0 0 3px rgba(209, 50, 50, .08);
}

body.pym-account-v2 .select2-container .select2-selection--single {
    display: flex;
    align-items: center;
}

body.pym-account-v2 .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0;
    color: var(--pym-text);
    line-height: 1.5;
}

body.pym-account-v2 .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 10px;
    left: 8px;
    right: auto;
}

body.pym-account-v2 .pym-form-actions,
body.pym-account-v2 .submit-button-wrapper {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    padding-top: 3px;
}

body.pym-account-v2 .pym-form-actions .pym-btn,
body.pym-account-v2 .submit-button-wrapper .button {
    min-width: 150px;
}

/* Downloads */
body.pym-account-v2 .pym-downloads-wrapper {
    gap: 16px;
}

body.pym-account-v2 .pym-downloads-header {
    align-items: flex-start;
}

body.pym-account-v2 .pym-downloads-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.pym-account-v2 .pym-downloads-title .pym-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    color: var(--pym-red);
}

body.pym-account-v2 .pym-downloads-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 10px;
    color: var(--pym-red);
    border: 1px solid rgba(209, 50, 50, .14);
    border-radius: 999px;
    background: var(--pym-red-soft);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

body.pym-account-v2 .pym-downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.pym-account-v2 .pym-download-card {
    display: flex;
    min-width: 0;
    min-height: 0 !important;
    height: auto !important;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--pym-line);
    border-radius: 14px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.pym-account-v2 .pym-download-card:hover {
    border-color: rgba(209, 50, 50, .22);
    box-shadow: var(--pym-shadow-sm);
    transform: translateY(-1px);
}

body.pym-account-v2 .pym-download-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

body.pym-account-v2 .pym-download-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    color: #fff;
    border-radius: 10px;
    background: var(--pym-dark);
}

body.pym-account-v2 .pym-download-icon .pym-icon {
    width: 19px;
    height: 19px;
    min-width: 19px;
}

body.pym-account-v2 .pym-download-info {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
}

body.pym-account-v2 .pym-download-product-name,
body.pym-account-v2 .pym-download-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.pym-account-v2 .pym-download-product-name {
    color: var(--pym-dark);
    font-size: 11.5px;
    font-weight: 800;
}

body.pym-account-v2 .pym-download-file-name {
    color: var(--pym-muted);
    font-size: 9.5px;
}

body.pym-account-v2 .pym-download-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body.pym-account-v2 .pym-download-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 27px;
    padding: 4px 8px;
    color: var(--pym-muted);
    border: 1px solid var(--pym-line);
    border-radius: 8px;
    background: var(--pym-bg);
    font-size: 9px;
    line-height: 1.4;
}

body.pym-account-v2 .pym-download-meta .pym-icon {
    width: 13px;
    height: 13px;
    min-width: 13px;
    flex-basis: 13px;
}

body.pym-account-v2 .pym-download-meta.is-limited {
    color: var(--pym-warning);
    border-color: rgba(183, 121, 31, .18);
    background: #fffaf0;
}

body.pym-account-v2 .pym-download-meta.is-unlimited {
    color: var(--pym-success);
    border-color: rgba(24, 133, 83, .16);
    background: #f1faf6;
}

body.pym-account-v2 .pym-download-action {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 1px;
}

body.pym-account-v2 .pym-download-button,
body.pym-account-v2 .pym-download-extra-button,
body.pym-account-v2 .pym-downloads-empty-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    height: auto !important;
    min-height: 34px !important;
    max-height: none !important;
    padding: 6px 11px !important;
    color: #fff;
    border: 1px solid var(--pym-red);
    border-radius: 9px;
    background: var(--pym-red);
    font-size: 9.5px !important;
    font-weight: 700;
    line-height: 1.35 !important;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

body.pym-account-v2 .pym-download-button:hover,
body.pym-account-v2 .pym-downloads-empty-button:hover {
    color: #fff;
    border-color: var(--pym-red-dark);
    background: var(--pym-red-dark);
    transform: translateY(-1px);
}

body.pym-account-v2 .pym-download-button .pym-icon,
body.pym-account-v2 .pym-download-extra-button .pym-icon {
    width: 14px;
    height: 14px;
    min-width: 14px;
    flex-basis: 14px;
}

body.pym-account-v2 .pym-download-extra-button {
    color: var(--pym-dark);
    border-color: var(--pym-line);
    background: #fff;
}

body.pym-account-v2 .pym-download-extra-button:hover {
    color: var(--pym-red);
    border-color: rgba(209, 50, 50, .28);
    background: var(--pym-red-soft);
}

body.pym-account-v2 .pym-downloads-empty {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 42px 20px;
    border: 1px dashed var(--pym-line);
    border-radius: var(--pym-radius-lg);
    background: var(--pym-bg);
    text-align: center;
}

body.pym-account-v2 .pym-downloads-empty-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: var(--pym-red);
    border-radius: 18px;
    background: var(--pym-red-soft);
}

body.pym-account-v2 .pym-downloads-empty-icon .pym-icon {
    width: 27px;
    height: 27px;
    min-width: 27px;
}

body.pym-account-v2 .pym-downloads-empty-title {
    margin: 13px 0 5px;
    color: var(--pym-dark);
    font-size: 16px;
}

body.pym-account-v2 .pym-downloads-empty-text {
    margin: 0 0 16px;
    color: var(--pym-muted);
    font-size: 10.5px;
}

/* Woo standard tables / addresses / view order */
body.pym-account-v2 table.shop_table,
body.pym-account-v2 .woocommerce-table,
body.pym-account-v2 .woocommerce-orders-table {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--pym-line);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 14px;
    background: #fff;
    font-size: 11px;
}

body.pym-account-v2 table.shop_table th,
body.pym-account-v2 table.shop_table td,
body.pym-account-v2 .woocommerce-table th,
body.pym-account-v2 .woocommerce-table td {
    padding: 12px 13px;
    border: 0;
    border-bottom: 1px solid var(--pym-line);
    text-align: right;
}

body.pym-account-v2 table.shop_table th,
body.pym-account-v2 .woocommerce-table th {
    color: var(--pym-dark);
    background: #fafafd;
    font-weight: 800;
}

body.pym-account-v2 table.shop_table tr:last-child td,
body.pym-account-v2 .woocommerce-table tr:last-child td {
    border-bottom: 0;
}

body.pym-account-v2 .woocommerce-Addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

body.pym-account-v2 .woocommerce-Address {
    float: none;
    width: auto;
    padding: 18px;
    border: 1px solid var(--pym-line);
    border-radius: 14px;
    background: #fff;
}

body.pym-account-v2 .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body.pym-account-v2 .woocommerce-Address-title h2 {
    margin: 0;
    color: var(--pym-dark);
    font-size: 14px;
}

body.pym-account-v2 .woocommerce-Address-title .edit {
    color: var(--pym-red);
    font-size: 10px;
    font-weight: 700;
}

body.pym-account-v2 address {
    margin: 0;
    color: var(--pym-muted);
    font-size: 11px;
    font-style: normal;
    line-height: 2;
}

body.pym-account-v2 .pym-addresses-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

body.pym-account-v2 .pym-addresses-grid:has(> :only-child) {
    grid-template-columns: minmax(0, 1fr);
}

body.pym-account-v2 .pym-address-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--pym-line);
    border-radius: var(--pym-radius-lg);
    background: #fff;
}

body.pym-account-v2 .pym-address-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--pym-line);
    background: #fcfcfd;
}

body.pym-account-v2 .pym-address-panel-title {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

body.pym-account-v2 .pym-address-panel-title > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

body.pym-account-v2 .pym-address-panel-title small {
    color: var(--pym-muted);
    font-size: 9px;
}

body.pym-account-v2 .pym-address-panel-title h2 {
    margin: 0;
    color: var(--pym-dark);
    font-size: 14px;
    font-weight: 800;
}

body.pym-account-v2 .pym-address-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 31px;
    padding: 5px 9px;
    color: var(--pym-red);
    border: 1px solid rgba(209, 50, 50, .16);
    border-radius: 9px;
    background: var(--pym-red-soft);
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}

body.pym-account-v2 .pym-address-action:hover {
    color: #fff;
    border-color: var(--pym-red);
    background: var(--pym-red);
}

body.pym-account-v2 .pym-address-action .pym-icon {
    width: 13px;
    height: 13px;
    min-width: 13px;
    flex-basis: 13px;
}

body.pym-account-v2 .pym-address-panel-body {
    display: flex;
    min-height: 132px;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
}

body.pym-account-v2 .pym-address-content {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

body.pym-account-v2 .pym-address-content-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    color: var(--pym-red);
    border-radius: 10px;
    background: var(--pym-red-soft);
}

body.pym-account-v2 .pym-address-content-icon .pym-icon {
    width: 17px;
    height: 17px;
    min-width: 17px;
}

body.pym-account-v2 .pym-address-content address {
    flex: 1 1 auto;
    color: var(--pym-text);
    font-size: 10.5px;
    line-height: 2.05;
}

body.pym-account-v2 .pym-address-empty {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px;
    border: 1px dashed #dddde5;
    border-radius: 12px;
    background: var(--pym-bg);
}

body.pym-account-v2 .pym-address-empty > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    color: var(--pym-red);
    border-radius: 11px;
    background: var(--pym-red-soft);
}

body.pym-account-v2 .pym-address-empty > span .pym-icon {
    width: 17px;
    height: 17px;
    min-width: 17px;
}

body.pym-account-v2 .pym-address-empty > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

body.pym-account-v2 .pym-address-empty strong {
    color: var(--pym-dark);
    font-size: 11px;
}

body.pym-account-v2 .pym-address-empty small {
    color: var(--pym-muted);
    font-size: 9.5px;
    line-height: 1.8;
}

body.pym-account-v2 .pymdashboardviword-order-section,
body.pym-account-v2 .pymdashboard-wallet-section,
body.pym-account-v2 .pymdashboard-account-info,
body.pym-account-v2 .pymdashboard-messages-section,
body.pym-account-v2 .pymdashboard-orders-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.pym-account-v2 .pymdashboardviword-order-header,
body.pym-account-v2 .pymdashboard-section-header,
body.pym-account-v2 .pymdashboard-order-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.pym-account-v2 .pymdashboardviword-section-title,
body.pym-account-v2 .pymdashboard-section-title,
body.pym-account-v2 .pymdashboard-order-list-title {
    margin: 0;
    color: var(--pym-dark);
    font-size: 18px;
    font-weight: 800;
}

body.pym-account-v2 .pymdashboardviword-order-meta-row,
body.pym-account-v2 .pymdashboardviword-receiver-row,
body.pym-account-v2 .pymdashboardviword-address-row,
body.pym-account-v2 .pymdashboardviword-payment-row,
body.pym-account-v2 .pymdashboardviword-order-items {
    padding: 16px;
    border: 1px solid var(--pym-line);
    border-radius: 13px;
    background: #fff;
}

body.pym-account-v2 .pymdashboard-wallet-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

body.pym-account-v2 .pymdashboard-tab-btn,
body.pym-account-v2 .pymdashboard-category-btn {
    min-height: 38px;
    padding: 7px 12px;
    color: var(--pym-muted);
    border: 1px solid var(--pym-line);
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

body.pym-account-v2 .pymdashboard-tab-btn.active,
body.pym-account-v2 .pymdashboard-category-btn.active {
    color: #fff;
    border-color: var(--pym-red);
    background: var(--pym-red);
}

/* Login / reset password (when logged out) */
body.pym-account-v2:not(.logged-in) .woocommerce {
    width: min(920px, calc(100% - 32px));
    margin: 48px auto 70px;
}

body.pym-account-v2 .u-columns.col2-set {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

body.pym-account-v2 .u-column1,
body.pym-account-v2 .u-column2 {
    float: none;
    width: auto;
    padding: 24px;
    border: 1px solid var(--pym-line);
    border-radius: var(--pym-radius-xl);
    background: #fff;
    box-shadow: var(--pym-shadow-sm);
}

body.pym-account-v2 .u-column1 h2,
body.pym-account-v2 .u-column2 h2 {
    color: var(--pym-dark);
    font-size: 20px;
}

/* Empty state and toast */
body.pym-account-v2 .pym-empty-state {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 56px 24px;
    border: 1px dashed #dadbe2;
    border-radius: var(--pym-radius-lg);
    background: var(--pym-bg);
    text-align: center;
}

body.pym-account-v2 .pym-empty-state-icon,
body.pym-account-v2 .pym-empty-inline > span {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    color: var(--pym-red);
    border-radius: 20px;
    background: var(--pym-red-soft);
}

body.pym-account-v2 .pym-empty-state-icon .pym-icon {
    width: 30px;
    height: 30px;
}

body.pym-account-v2 .pym-empty-state h2 {
    margin: 15px 0 7px;
    color: var(--pym-dark);
    font-size: 18px;
}

body.pym-account-v2 .pym-empty-state p {
    max-width: 470px;
    margin: 0 0 18px;
    color: var(--pym-muted);
    font-size: 11px;
    line-height: 2;
}

body.pym-account-v2 .pym-empty-inline {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    color: var(--pym-muted);
    text-align: center;
}

body.pym-account-v2 .pym-empty-inline > span {
    width: 48px;
    height: 48px;
    border-radius: 15px;
}

body.pym-account-v2 .pym-empty-inline p {
    margin: 0;
    font-size: 10.5px;
}

.pym-account-toast {
    position: fixed;
    inset-inline-start: 22px;
    bottom: 22px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: min(360px, calc(100% - 32px));
    padding: 12px 16px;
    color: #fff;
    border-radius: 11px;
    background: var(--pym-dark, #30303d);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .2);
    font-size: 11px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease;
}

.pym-account-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.pym-account-toast.is-error {
    background: #b82d2d;
}

@media (max-width: 1024px) {
    body.pym-account-v2 .pym-account-layout {
        grid-template-columns: 235px minmax(0, 1fr);
        gap: 18px;
    }

    body.pym-account-v2 .pym-account-content {
        padding: 22px;
    }

    body.pym-account-v2 .pym-account-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.pym-account-v2 .pym-account-dashboard-grid {
        grid-template-columns: 1fr;
    }

    body.pym-account-v2 .pym-panel-wide {
        grid-column: auto;
    }

    body.pym-account-v2 .pym-license-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    body.pym-account-v2 .pym-account-shell {
        width: min(680px, calc(100% - 20px));
        margin: 22px auto 42px;
    }

    body.pym-account-v2 .pym-account-layout {
        display: block;
    }

    body.pym-account-v2 .pym-account-sidebar {
        position: static;
        margin-bottom: 14px;
    }

    body.pym-account-v2 .pym-account-nav-card {
        border-radius: 17px;
    }

    body.pym-account-v2 .pym-account-profile {
        min-height: 92px;
        padding: 15px;
    }

    body.pym-account-v2 .pym-account-avatar-wrap,
    body.pym-account-v2 .pym-account-avatar-wrap > img,
    body.pym-account-v2 .pym-account-avatar {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }

    body.pym-account-v2 .pym-account-navigation {
        position: relative;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        padding: 9px 26px 9px 9px;
        scroll-padding-inline: 26px;
        scroll-snap-type: inline proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        -webkit-mask-image: linear-gradient(to left, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
        mask-image: linear-gradient(to left, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
    }

    body.pym-account-v2 .pym-account-navigation::-webkit-scrollbar {
        display: none;
    }

    body.pym-account-v2 .pym-account-navigation ul {
        flex-direction: row;
        gap: 6px;
        width: max-content;
    }

    body.pym-account-v2 .pym-account-navigation li,
    body.pym-account-v2 .pym-account-navigation li:last-child {
        width: clamp(114px, 30vw, 136px);
        flex: 0 0 clamp(114px, 30vw, 136px);
        margin: 0;
        padding: 0;
        border: 0;
        scroll-snap-align: start;
    }

    body.pym-account-v2 .pym-account-navigation a {
        justify-content: center;
        gap: 7px;
        min-height: 40px;
        padding: 7px 8px;
        font-size: 10.5px;
        white-space: nowrap;
    }

    body.pym-account-v2 .pym-account-nav-icon {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
    }

    body.pym-account-v2 .pym-account-content {
        min-height: 0;
        padding: 17px;
        border-radius: 17px;
    }

    body.pym-account-v2 .pym-account-page {
        gap: 18px;
    }

    body.pym-account-v2 .pym-downloads-grid,
    body.pym-account-v2 .pym-addresses-grid {
        grid-template-columns: 1fr;
    }

    body.pym-account-v2 .pym-download-card {
        gap: 9px;
        padding: 13px;
    }

    body.pym-account-v2 .pym-download-action > a {
        flex: 1 1 auto;
    }

    body.pym-account-v2 .pym-account-page-header,
    body.pym-account-v2 .pym-account-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    body.pym-account-v2 .pym-account-hero {
        padding: 21px;
    }

    body.pym-account-v2 .pym-account-hero-actions {
        width: 100%;
        justify-content: flex-start;
    }

    body.pym-account-v2 .pym-hero-edit-button {
        width: auto !important;
    }

    body.pym-account-v2 .pym-account-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    body.pym-account-v2 .pym-stat-card {
        align-items: center;
        min-height: 76px;
        padding: 11px;
    }

    body.pym-account-v2 .pym-stat-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    body.pym-account-v2 .pym-stat-card strong {
        font-size: 16px;
    }

    body.pym-account-v2 .pym-panel,
    body.pym-account-v2 .pym-form-section,
    body.pym-account-v2 .pym-license-card {
        padding: 15px;
    }

    body.pym-account-v2 .pym-compact-order {
        grid-template-columns: 62px minmax(90px, 1fr) auto;
    }

    body.pym-account-v2 .pym-compact-order-date {
        display: none;
    }

    body.pym-account-v2 .pym-order-card-header,
    body.pym-account-v2 .pym-order-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    body.pym-account-v2 .pym-order-products {
        grid-template-columns: 1fr;
    }

    body.pym-account-v2 .pym-order-card-footer .pym-btn {
        width: 100%;
    }

    body.pym-account-v2 .pym-order-meta-list {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    body.pym-account-v2 .pym-form-grid,
    body.pym-account-v2 form.edit-address .form-row,
    body.pym-account-v2 form.edit-account > .form-row,
    body.pym-account-v2 .woocommerce-Addresses,
    body.pym-account-v2 .pym-addresses-grid,
    body.pym-account-v2 .u-columns.col2-set {
        grid-template-columns: 1fr;
    }

    body.pym-account-v2 .pym-avatar-editor {
        align-items: flex-start;
        flex-direction: column;
    }

    body.pym-account-v2 .pym-license-key-row {
        grid-template-columns: 1fr;
    }

    body.pym-account-v2 .pym-copy-license {
        width: 100%;
    }

    body.pym-account-v2 .pym-license-actions .pym-btn {
        flex: 1 1 100%;
    }

    body.pym-account-v2 .pym-message-card {
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 14px;
    }

    body.pym-account-v2 .pym-message-card-icon {
        width: 38px;
        height: 38px;
    }

    body.pym-account-v2 .pym-message-card header {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    body.pym-account-v2 .pym-account-content {
        padding: 14px;
    }

    body.pym-account-v2 .pym-account-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.pym-account-v2 .pym-stat-card {
        align-items: center;
        flex-direction: row;
        gap: 8px;
        min-height: 72px;
        padding: 10px;
    }

    body.pym-account-v2 .pym-stat-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    body.pym-account-v2 .pym-stat-card strong {
        font-size: 15px;
    }

    body.pym-account-v2 .pym-stat-card small {
        font-size: 9px;
    }

    body.pym-account-v2 .pym-form-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    body.pym-account-v2 .pym-panel-heading {
        align-items: center;
        flex-direction: row;
    }

    body.pym-account-v2 .pym-address-card {
        flex-direction: column;
    }

    body.pym-account-v2 .pym-account-pagination {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.pym-account-v2 *,
    body.pym-account-v2 *::before,
    body.pym-account-v2 *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Order details v2 */
body.pym-account-v2 .pym-order-details-header {
    align-items: flex-end;
}

body.pym-account-v2 .pym-account-back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    color: var(--pym-muted);
    font-size: 10.5px;
    font-weight: 700;
    text-decoration: none;
}

body.pym-account-v2 .pym-account-back-link:hover {
    color: var(--pym-red);
}

body.pym-account-v2 .pym-account-back-link .pym-icon {
    width: 16px;
    height: 16px;
}

body.pym-account-v2 .pym-order-details-header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

body.pym-account-v2 .pym-order-invoice-button {
    min-height: 39px;
}

body.pym-account-v2 .pym-order-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
}

body.pym-account-v2 .pym-order-summary-card {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--pym-line);
    border-radius: 14px;
    background: #fff;
}

body.pym-account-v2 .pym-order-summary-card > span {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    color: var(--pym-red);
    border-radius: 12px;
    background: var(--pym-red-soft);
}

body.pym-account-v2 .pym-order-summary-card.is-total > span {
    color: var(--pym-dark);
    background: #fff8df;
}

body.pym-account-v2 .pym-order-summary-card > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

body.pym-account-v2 .pym-order-summary-card small {
    color: var(--pym-muted);
    font-size: 9.5px;
}

body.pym-account-v2 .pym-order-summary-card strong {
    overflow: hidden;
    color: var(--pym-dark);
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.pym-account-v2 .pym-order-details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(250px, .75fr);
    gap: 15px;
    align-items: start;
}

body.pym-account-v2 .pym-order-products-panel {
    min-width: 0;
}

body.pym-account-v2 .pym-order-detail-products {
    display: flex;
    flex-direction: column;
}

body.pym-account-v2 .pym-order-detail-product {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 13px;
    padding: 15px 0;
    border-bottom: 1px solid var(--pym-line);
}

body.pym-account-v2 .pym-order-detail-product:first-child {
    padding-top: 4px;
}

body.pym-account-v2 .pym-order-detail-product:last-child {
    border-bottom: 0;
}

body.pym-account-v2 .pym-order-detail-image-wrap {
    display: block;
    width: 74px;
    height: 74px;
    overflow: hidden;
    border: 1px solid var(--pym-line);
    border-radius: 13px;
    background: var(--pym-bg);
}

body.pym-account-v2 .pym-order-detail-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.pym-account-v2 .pym-order-detail-product-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

body.pym-account-v2 .pym-order-detail-product-name {
    color: var(--pym-dark);
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.8;
    text-decoration: none;
}

body.pym-account-v2 a.pym-order-detail-product-name:hover {
    color: var(--pym-red);
}

body.pym-account-v2 .pym-order-detail-product-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 15px;
    color: var(--pym-muted);
    font-size: 10px;
}

body.pym-account-v2 .pym-order-detail-product-meta span:last-child {
    color: var(--pym-text);
    font-weight: 800;
}

body.pym-account-v2 .pym-order-detail-product .wc-item-meta {
    margin: 0;
    padding: 0;
    color: var(--pym-muted);
    font-size: 9.5px;
    list-style: none;
}

body.pym-account-v2 .pym-order-detail-product .wc-item-meta li {
    display: flex;
    gap: 5px;
}

body.pym-account-v2 .pym-order-detail-product .wc-item-meta p {
    margin: 0;
}

body.pym-account-v2 .pym-order-totals {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    padding: 14px;
    border-radius: 13px;
    background: var(--pym-bg);
}

body.pym-account-v2 .pym-order-totals > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--pym-muted);
    font-size: 10.5px;
}

body.pym-account-v2 .pym-order-totals > div:last-child {
    margin-top: 3px;
    padding-top: 10px;
    color: var(--pym-dark);
    border-top: 1px solid var(--pym-line);
    font-size: 12px;
}

body.pym-account-v2 .pym-order-totals strong {
    color: var(--pym-dark);
    font-weight: 800;
}

body.pym-account-v2 .pym-order-customer-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

body.pym-account-v2 .pym-order-customer-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.pym-account-v2 .pym-order-customer-details > div {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
}

body.pym-account-v2 .pym-order-customer-details > div > span {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    color: var(--pym-red);
    border-radius: 10px;
    background: var(--pym-red-soft);
}

body.pym-account-v2 .pym-order-customer-details > div > span .pym-icon {
    width: 17px;
    height: 17px;
}

body.pym-account-v2 .pym-order-customer-details > div > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

body.pym-account-v2 .pym-order-customer-details small {
    color: var(--pym-muted);
    font-size: 9px;
}

body.pym-account-v2 .pym-order-customer-details strong {
    overflow-wrap: anywhere;
    color: var(--pym-text);
    font-size: 10.5px;
}

body.pym-account-v2 .pym-order-address {
    color: var(--pym-muted);
    font-size: 10.5px;
    line-height: 2;
}

body.pym-account-v2 .pym-order-delivery-date {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    padding: 10px 12px;
    color: var(--pym-warning);
    border-radius: 10px;
    background: #fff8df;
    font-size: 10px;
    font-weight: 700;
}

body.pym-account-v2 .pym-order-delivery-date .pym-icon {
    width: 17px;
    height: 17px;
}

body.pym-account-v2 .pym-order-notes-panel {
    margin-top: 0;
}

body.pym-account-v2 .pym-order-notes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.pym-account-v2 .pym-order-notes li {
    padding: 12px 14px;
    border: 1px solid var(--pym-line);
    border-radius: 12px;
    background: var(--pym-bg);
}

body.pym-account-v2 .pym-order-notes time {
    color: var(--pym-muted);
    font-size: 9px;
}

body.pym-account-v2 .pym-order-notes p {
    margin: 5px 0 0;
    color: var(--pym-text);
    font-size: 10.5px;
    line-height: 1.9;
}

body.pym-account-v2 .pym-order-license-inline {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 18px;
    border: 1px solid rgba(209, 50, 50, .2);
    border-radius: var(--pym-radius-lg);
    background: linear-gradient(145deg, #fff, #fff8f8);
}

body.pym-account-v2 .pym-order-license-inline .pym-license-key-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
    border: 1px dashed #dadbe2;
    border-radius: 12px;
    background: #fff;
}

body.pym-account-v2 .pym-order-license-inline .pym-license-key-box code {
    overflow: hidden;
    padding: 8px;
    color: var(--pym-dark);
    font-size: 10px;
    line-height: 1.7;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.pym-account-v2 .pym-order-license-inline .pym-btn {
    align-self: flex-start;
}

/* Wallet v2 */
body.pym-account-v2 .pym-wallet-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

body.pym-account-v2 .pym-wallet-tabs a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 46px;
    padding: 9px 11px;
    color: var(--pym-muted);
    border: 1px solid var(--pym-line);
    border-radius: 12px;
    background: #fff;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}

body.pym-account-v2 .pym-wallet-tabs a:hover {
    color: var(--pym-red);
    border-color: rgba(209, 50, 50, .28);
    transform: translateY(-1px);
}

body.pym-account-v2 .pym-wallet-tabs a.is-active {
    color: #fff;
    border-color: var(--pym-red);
    background: var(--pym-red);
    box-shadow: 0 8px 22px rgba(209, 50, 50, .2);
}

body.pym-account-v2 .pym-wallet-tabs .pym-icon {
    width: 17px;
    height: 17px;
}

body.pym-account-v2 .pym-wallet-content {
    min-height: 220px;
}

body.pym-account-v2 .pym-wallet-plugin-content {
    min-width: 0;
}

body.pym-account-v2 .pym-wallet-plugin-content input,
body.pym-account-v2 .pym-wallet-plugin-content select,
body.pym-account-v2 .pym-wallet-plugin-content textarea {
    max-width: 100%;
    border: 1px solid var(--pym-line);
    border-radius: 10px;
    font-family: inherit;
}

body.pym-account-v2 .pym-wallet-plugin-content button,
body.pym-account-v2 .pym-wallet-plugin-content input[type="submit"],
body.pym-account-v2 .pym-wallet-plugin-content .button {
    min-height: 40px;
    padding: 8px 15px;
    color: #fff;
    border: 0;
    border-radius: 10px;
    background: var(--pym-red);
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 1024px) {
    body.pym-account-v2 .pym-order-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.pym-account-v2 .pym-order-details-grid {
        grid-template-columns: 1fr;
    }

    body.pym-account-v2 .pym-order-customer-column {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    body.pym-account-v2 .pym-order-details-header {
        align-items: flex-start;
    }

    body.pym-account-v2 .pym-order-details-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    body.pym-account-v2 .pym-wallet-tabs {
        display: flex;
        overflow-x: auto;
        padding-bottom: 3px;
        scroll-snap-type: x proximity;
    }

    body.pym-account-v2 .pym-wallet-tabs a {
        min-width: 132px;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
}

@media (max-width: 560px) {
    body.pym-account-v2 .pym-order-summary-grid,
    body.pym-account-v2 .pym-order-customer-column {
        grid-template-columns: 1fr;
    }

    body.pym-account-v2 .pym-order-detail-product {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    body.pym-account-v2 .pym-order-detail-image-wrap {
        width: 62px;
        height: 62px;
    }

    body.pym-account-v2 .pym-order-license-inline .pym-license-key-box {
        grid-template-columns: 1fr;
    }

    body.pym-account-v2 .pym-order-license-inline .pym-copy-license,
    body.pym-account-v2 .pym-order-license-inline .pym-btn,
    body.pym-account-v2 .pym-order-invoice-button {
        width: 100%;
    }
}


/* ========================================================================== 
 * Account layout compatibility hardening — v2.1.0
 *
 * Some page-builder / WooCommerce combinations apply legacy block, float or
 * intrinsic-width rules to the account shortcode. The rules below establish a
 * single deterministic desktop layout while also supporting WooCommerce's
 * default wrapper markup if the custom shell is bypassed by a builder/widget.
 * ========================================================================== */
body.pym-account-v2.logged-in .woocommerce {
    display: block !important;
    box-sizing: border-box !important;
    width: min(1180px, calc(100% - 32px)) !important;
    max-width: 1180px !important;
    margin: 42px auto 64px !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
    direction: rtl;
}

body.pym-account-v2.logged-in .woocommerce > .pym-account-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body.pym-account-v2 .pym-account-shell,
body.pym-account-v2 .pym-account-layout {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    clear: both !important;
}

body.pym-account-v2 .pym-account-layout {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: flex-start !important;
    justify-content: stretch !important;
    gap: 24px !important;
    direction: rtl;
}

body.pym-account-v2 .pym-account-layout > .pym-account-sidebar {
    display: block !important;
    width: 276px !important;
    min-width: 276px !important;
    max-width: 276px !important;
    flex: 0 0 276px !important;
    margin: 0 !important;
    float: none !important;
    order: 0;
}

body.pym-account-v2 .pym-account-layout > .pym-account-content {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 1 1 0% !important;
    margin: 0 !important;
    float: none !important;
    order: 1;
}

/* Fallback for the stock WooCommerce account shell. */
body.pym-account-v2.logged-in .woocommerce:has(> .woocommerce-MyAccount-navigation) {
    display: grid !important;
    grid-template-columns: 276px minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    align-items: start !important;
    gap: 24px !important;
}

body.pym-account-v2.logged-in .woocommerce > .woocommerce-notices-wrapper {
    grid-column: 1 / -1;
    width: 100% !important;
    margin: 0 !important;
}

body.pym-account-v2.logged-in .woocommerce > .woocommerce-MyAccount-navigation {
    grid-column: 1 !important;
    grid-row: 2 !important;
    position: sticky;
    top: 24px;
    width: 276px !important;
    min-width: 276px !important;
    max-width: 276px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

body.pym-account-v2.logged-in .woocommerce > .woocommerce-MyAccount-content {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 28px !important;
    float: none !important;
    border: 1px solid var(--pym-line);
    border-radius: var(--pym-radius-xl);
    background: var(--pym-surface);
    box-shadow: var(--pym-shadow);
}

/* Preserve embedded account icons against global Elementor / theme SVG rules. */
body.pym-account-v2 svg.pym-icon {
    display: block !important;
    min-width: 0;
    max-width: none !important;
    overflow: visible;
    color: inherit;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.9 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.pym-account-v2 svg.pym-icon path,
body.pym-account-v2 svg.pym-icon circle,
body.pym-account-v2 svg.pym-icon rect,
body.pym-account-v2 svg.pym-icon line,
body.pym-account-v2 svg.pym-icon polyline,
body.pym-account-v2 svg.pym-icon polygon {
    fill: none !important;
    stroke: currentColor !important;
    visibility: visible !important;
    opacity: 1 !important;
    vector-effect: non-scaling-stroke;
}

@media (max-width: 1024px) and (min-width: 768px) {
    body.pym-account-v2 .pym-account-layout {
        gap: 18px !important;
    }

    body.pym-account-v2 .pym-account-layout > .pym-account-sidebar,
    body.pym-account-v2.logged-in .woocommerce > .woocommerce-MyAccount-navigation {
        width: 235px !important;
        min-width: 235px !important;
        max-width: 235px !important;
        flex-basis: 235px !important;
    }

    body.pym-account-v2.logged-in .woocommerce:has(> .woocommerce-MyAccount-navigation) {
        grid-template-columns: 235px minmax(0, 1fr) !important;
        gap: 18px !important;
    }

    body.pym-account-v2.logged-in .woocommerce > .woocommerce-MyAccount-content {
        padding: 22px !important;
    }
}

@media (max-width: 767px) {
    body.pym-account-v2.logged-in .woocommerce {
        display: block !important;
        width: min(680px, calc(100% - 20px)) !important;
        max-width: 680px !important;
        margin: 22px auto 42px !important;
    }

    body.pym-account-v2 .pym-account-shell {
        width: 100% !important;
        margin: 0 !important;
    }

    body.pym-account-v2 .pym-account-layout {
        display: block !important;
    }

    body.pym-account-v2 .pym-account-layout > .pym-account-sidebar,
    body.pym-account-v2.logged-in .woocommerce > .woocommerce-MyAccount-navigation {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 0 14px !important;
    }

    body.pym-account-v2 .pym-account-layout > .pym-account-content,
    body.pym-account-v2.logged-in .woocommerce > .woocommerce-MyAccount-content {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 17px !important;
    }
}

/* ========================================================================== 
 * Account UI refinement — v2.2.0
 * ========================================================================== */

/* Keep the decorative profile ring strictly inside the dark profile header. */
body.pym-account-v2 .pym-account-profile {
    overflow: hidden;
    isolation: isolate;
}

body.pym-account-v2 .pym-account-profile::after {
    inset-inline-end: -34px;
    bottom: -62px;
    z-index: 0;
}

body.pym-account-v2 .pym-account-profile > * {
    position: relative;
    z-index: 1;
}

/* Logout must remain readable on hover/active, including its icon. */
body.pym-account-v2 .pym-account-navigation li:last-child a:hover .pym-account-nav-icon,
body.pym-account-v2 .pym-account-navigation li:last-child.is-active a .pym-account-nav-icon,
body.pym-account-v2 .pym-account-navigation li:last-child a:hover .pym-icon,
body.pym-account-v2 .pym-account-navigation li:last-child.is-active a .pym-icon {
    color: #fff !important;
    background: rgba(255, 255, 255, .17) !important;
    stroke: currentColor !important;
}

/* Compact, predictable avatar picker; resistant to label/button styles from builders. */
body.pym-account-v2 label.pym-avatar-upload-button {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 38px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 7px 12px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    color: var(--pym-dark) !important;
    border: 1px solid var(--pym-line) !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    cursor: pointer;
}

body.pym-account-v2 label.pym-avatar-upload-button:hover {
    color: var(--pym-red) !important;
    border-color: rgba(209, 50, 50, .3) !important;
    background: var(--pym-red-soft) !important;
}

body.pym-account-v2 label.pym-avatar-upload-button .pym-icon {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    flex-basis: 15px !important;
}

/* Address editor: use WooCommerce's own field contract, but provide a clean UI. */
body.pym-account-v2 .pym-edit-address-page {
    gap: 18px;
}

body.pym-account-v2 .pym-address-back {
    min-height: 38px;
    padding: 7px 12px;
    white-space: nowrap;
}

body.pym-account-v2 .pym-address-back .pym-icon {
    width: 16px;
    height: 16px;
}

body.pym-account-v2 .pym-address-edit-form,
body.pym-account-v2 .pym-address-edit-form .woocommerce-address-fields {
    display: flex !important;
    width: 100% !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin: 0 !important;
}

body.pym-account-v2 .pym-address-form-section {
    width: 100%;
    margin: 0;
}

body.pym-account-v2 .pym-address-form-section .pym-form-section-heading {
    margin-bottom: 17px;
}

body.pym-account-v2 .pym-address-form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 16px !important;
    width: 100% !important;
}

body.pym-account-v2 .pym-address-form-grid > .form-row,
body.pym-account-v2 .pym-address-form-grid > .woocommerce-form-row {
    display: block !important;
    grid-template-columns: none !important;
    grid-column: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
}

body.pym-account-v2 .pym-address-form-grid > .form-row-wide,
body.pym-account-v2 .pym-address-form-grid > .pym-address-field--wide,
body.pym-account-v2 .pym-address-form-grid > [id$="_address_1_field"],
body.pym-account-v2 .pym-address-form-grid > [id$="_address_2_field"] {
    grid-column: 1 / -1 !important;
}

body.pym-account-v2 .pym-address-form-grid label {
    margin: 0 0 7px !important;
    color: #454550 !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1.7 !important;
}

body.pym-account-v2 .pym-address-form-grid input:not([type="hidden"]),
body.pym-account-v2 .pym-address-form-grid select,
body.pym-account-v2 .pym-address-form-grid textarea,
body.pym-account-v2 .pym-address-form-grid .select2-container,
body.pym-account-v2 .pym-address-form-grid .select2-selection--single {
    width: 100% !important;
    max-width: none !important;
}

body.pym-account-v2 .pym-address-form-grid textarea {
    min-height: 104px !important;
}

body.pym-account-v2 .pym-address-form-grid .select2-container {
    display: block;
}

body.pym-account-v2 .pym-address-form-grid .select2-selection--single {
    min-height: 46px !important;
}

body.pym-account-v2 .pym-address-form-grid .select2-selection__rendered {
    padding-inline: 12px 32px !important;
    line-height: 44px !important;
}

body.pym-account-v2 .pym-address-form-actions {
    justify-content: flex-start !important;
    padding-top: 0 !important;
}

body.pym-account-v2 .pym-address-form-actions .pym-btn {
    min-width: 150px !important;
}

/* Force the requested 2 × 2 account summary on every phone and tablet width. */
@media (max-width: 1024px) {
    body.pym-account-v2 .pym-account-stats {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-flow: row !important;
        gap: 9px !important;
        width: 100% !important;
    }

    body.pym-account-v2 .pym-account-stats > .pym-stat-card {
        display: flex !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
    }
}

/* Tablet and phone navigation becomes a compact horizontal rail with a visible peek. */
@media (max-width: 900px) {
    body.pym-account-v2.logged-in .woocommerce {
        display: block !important;
        width: min(760px, calc(100% - 20px)) !important;
        max-width: 760px !important;
        margin: 24px auto 44px !important;
    }

    body.pym-account-v2 .pym-account-layout {
        display: block !important;
    }

    body.pym-account-v2 .pym-account-layout > .pym-account-sidebar,
    body.pym-account-v2.logged-in .woocommerce > .woocommerce-MyAccount-navigation {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 0 14px !important;
    }

    body.pym-account-v2 .pym-account-layout > .pym-account-content,
    body.pym-account-v2.logged-in .woocommerce > .woocommerce-MyAccount-content {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 18px !important;
    }

    body.pym-account-v2 .pym-account-profile {
        min-height: 88px;
        padding: 14px 15px;
    }

    body.pym-account-v2 .pym-account-navigation {
        position: relative;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 8px 18px 8px 8px !important;
        scroll-padding-inline: 18px !important;
        scroll-snap-type: inline proximity;
        scrollbar-width: none;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
        -webkit-mask-image: linear-gradient(to left, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
        mask-image: linear-gradient(to left, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
    }

    body.pym-account-v2 .pym-account-navigation::-webkit-scrollbar {
        display: none;
    }

    body.pym-account-v2 .pym-account-navigation ul {
        display: flex !important;
        width: max-content !important;
        min-width: max-content !important;
        flex-flow: row nowrap !important;
        gap: 5px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.pym-account-v2 .pym-account-navigation li,
    body.pym-account-v2 .pym-account-navigation li:last-child {
        width: clamp(86px, calc((100vw - 58px) / 3.35), 122px) !important;
        min-width: clamp(86px, calc((100vw - 58px) / 3.35), 122px) !important;
        max-width: clamp(86px, calc((100vw - 58px) / 3.35), 122px) !important;
        flex: 0 0 clamp(86px, calc((100vw - 58px) / 3.35), 122px) !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        scroll-snap-align: start;
    }

    body.pym-account-v2 .pym-account-navigation a {
        justify-content: center !important;
        gap: 5px !important;
        min-height: 38px !important;
        padding: 6px 6px !important;
        border-radius: 10px !important;
        font-size: 9.5px !important;
        line-height: 1.35 !important;
        white-space: nowrap !important;
        transform: none !important;
    }

    body.pym-account-v2 .pym-account-nav-icon {
        width: 23px !important;
        height: 23px !important;
        min-width: 23px !important;
        flex-basis: 23px !important;
        border-radius: 7px !important;
    }

    body.pym-account-v2 .pym-account-nav-icon .pym-icon {
        width: 15px !important;
        height: 15px !important;
        min-width: 15px !important;
        flex-basis: 15px !important;
    }
}

@media (max-width: 700px) {
    body.pym-account-v2 .pym-address-form-grid {
        grid-template-columns: 1fr !important;
        gap: 13px !important;
    }

    body.pym-account-v2 .pym-address-form-grid > .form-row,
    body.pym-account-v2 .pym-address-form-grid > .woocommerce-form-row,
    body.pym-account-v2 .pym-address-form-grid > .form-row-wide,
    body.pym-account-v2 .pym-address-form-grid > .pym-address-field--wide {
        grid-column: 1 !important;
    }

    body.pym-account-v2 .pym-address-back {
        width: auto !important;
    }

    body.pym-account-v2 .pym-avatar-editor {
        display: grid !important;
        grid-template-columns: 82px minmax(0, 1fr) !important;
        gap: 14px !important;
        align-items: center !important;
    }

    body.pym-account-v2 .pym-avatar-editor > img {
        width: 82px !important;
        height: 82px !important;
        flex-basis: 82px !important;
        border-width: 4px !important;
    }

    body.pym-account-v2 .pym-avatar-actions {
        min-width: 0;
    }
}

@media (max-width: 420px) {
    body.pym-account-v2 .pym-account-stats {
        gap: 8px !important;
    }

    body.pym-account-v2 .pym-stat-card {
        min-height: 68px !important;
        gap: 7px !important;
        padding: 9px !important;
    }

    body.pym-account-v2 .pym-stat-icon {
        width: 32px !important;
        height: 32px !important;
        flex-basis: 32px !important;
    }

    body.pym-account-v2 .pym-stat-card strong {
        font-size: 14px !important;
    }

    body.pym-account-v2 .pym-stat-card small {
        font-size: 8.5px !important;
    }

    body.pym-account-v2 .pym-avatar-editor {
        grid-template-columns: 70px minmax(0, 1fr) !important;
    }

    body.pym-account-v2 .pym-avatar-editor > img {
        width: 70px !important;
        height: 70px !important;
        flex-basis: 70px !important;
    }
}

/* ========================================================================== 
 * Account UI refinement — v2.3.0
 * ========================================================================== */

/* Defensive cleanup for wpautop output when My Account is rendered in a text widget. */
body.pym-account-v2 .pym-stat-card > br,
body.pym-account-v2 .pym-compact-order > br,
body.pym-account-v2 .pym-panel-title > br,
body.pym-account-v2 .pym-panel-heading > br,
body.pym-account-v2 .pym-panel-title > p:empty,
body.pym-account-v2 .pym-panel-heading > p:empty,
body.pym-account-v2 .pym-stat-card > p:empty,
body.pym-account-v2 .pym-compact-order > p:empty {
    display: none !important;
}

/* The license key is the only action required in the active-license card. */
body.pym-account-v2 .pym-license-actions {
    display: none !important;
}

/* Compact and balanced dashboard summary cards. */
body.pym-account-v2 .pym-account-stats {
    gap: 10px;
}

body.pym-account-v2 .pym-stat-card {
    min-height: 66px;
    gap: 10px;
    padding: 11px 12px;
    border-color: #e2e3e9;
    border-radius: 13px;
    box-shadow: 0 3px 12px rgba(48, 48, 61, .025);
}

body.pym-account-v2 .pym-stat-card:hover {
    border-color: rgba(209, 50, 50, .28);
    box-shadow: 0 9px 24px rgba(48, 48, 61, .07);
}

body.pym-account-v2 .pym-stat-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 11px;
}

body.pym-account-v2 .pym-stat-icon .pym-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    flex-basis: 18px;
}

body.pym-account-v2 .pym-stat-copy,
body.pym-account-v2 .pym-stat-card > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
}

body.pym-account-v2 .pym-stat-card strong {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
}

body.pym-account-v2 .pym-stat-card small {
    overflow: hidden;
    font-size: 9.5px;
    line-height: 1.55;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Prevent the latest-orders panel from stretching to the height of its neighbour. */
body.pym-account-v2 .pym-account-dashboard-grid {
    align-items: start;
}

body.pym-account-v2 .pym-account-dashboard-grid > .pym-panel {
    align-self: start;
}

body.pym-account-v2 .pym-account-dashboard .pym-panel {
    padding: 16px;
}

body.pym-account-v2 .pym-account-dashboard .pym-panel-heading {
    margin-bottom: 11px;
}

body.pym-account-v2 .pym-panel-title {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

body.pym-account-v2 .pym-compact-order-list {
    display: grid;
    gap: 8px;
}

body.pym-account-v2 .pym-compact-order {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto 26px;
    gap: 10px;
    align-items: center;
    min-height: 0;
    padding: 10px 11px;
    color: var(--pym-text);
    border: 1px solid #e7e7ed;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(48, 48, 61, .02);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.pym-account-v2 .pym-compact-order:last-child {
    border-bottom: 1px solid #e7e7ed;
}

body.pym-account-v2 .pym-compact-order:hover {
    color: var(--pym-text);
    border-color: rgba(209, 50, 50, .25);
    box-shadow: 0 7px 18px rgba(48, 48, 61, .06);
    transform: translateY(-1px);
}

body.pym-account-v2 .pym-compact-order-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

body.pym-account-v2 .pym-compact-order-id {
    color: var(--pym-dark);
    font-size: 11.5px;
    line-height: 1.35;
}

body.pym-account-v2 .pym-compact-order-date,
body.pym-account-v2 .pym-compact-order-total {
    color: var(--pym-muted);
    font-size: 9.5px;
    line-height: 1.5;
    white-space: nowrap;
}

body.pym-account-v2 .pym-compact-order-total {
    color: var(--pym-dark);
    font-weight: 700;
}

body.pym-account-v2 .pym-compact-order-arrow {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: var(--pym-muted);
    border-radius: 8px;
    background: #f5f5f7;
    transition: color .18s ease, background .18s ease;
}

body.pym-account-v2 .pym-compact-order-arrow .pym-icon {
    width: 14px;
    height: 14px;
    min-width: 14px;
    flex-basis: 14px;
}

body.pym-account-v2 .pym-compact-order:hover .pym-compact-order-arrow {
    color: #fff;
    background: var(--pym-red);
}

/* Address inputs: explicit border contract that wins over WooCommerce and builder defaults. */
body.pym-account-v2 .pym-address-form-grid .form-row,
body.pym-account-v2 .pym-address-form-grid .woocommerce-form-row {
    min-width: 0 !important;
}

body.pym-account-v2 .pym-address-form-grid .woocommerce-input-wrapper {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
}

body.pym-account-v2 .pym-address-form-grid input.input-text,
body.pym-account-v2 .pym-address-form-grid input[type="text"],
body.pym-account-v2 .pym-address-form-grid input[type="email"],
body.pym-account-v2 .pym-address-form-grid input[type="tel"],
body.pym-account-v2 .pym-address-form-grid input[type="number"],
body.pym-account-v2 .pym-address-form-grid select,
body.pym-account-v2 .pym-address-form-grid textarea,
body.pym-account-v2 .pym-address-form-grid .select2-container--default .select2-selection--single {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 9px 12px !important;
    color: #2f3039 !important;
    border: 1px solid #d8dae3 !important;
    border-radius: 11px !important;
    outline: 0 !important;
    background-color: #fff !important;
    box-shadow: 0 1px 2px rgba(48, 48, 61, .035) !important;
    font-family: inherit !important;
    font-size: 11px !important;
    line-height: 1.65 !important;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease !important;
}

body.pym-account-v2 .pym-address-form-grid select {
    padding-inline-end: 34px !important;
}

body.pym-account-v2 .pym-address-form-grid textarea {
    min-height: 96px !important;
    resize: vertical;
}

body.pym-account-v2 .pym-address-form-grid input.input-text:hover,
body.pym-account-v2 .pym-address-form-grid input[type="text"]:hover,
body.pym-account-v2 .pym-address-form-grid input[type="email"]:hover,
body.pym-account-v2 .pym-address-form-grid input[type="tel"]:hover,
body.pym-account-v2 .pym-address-form-grid input[type="number"]:hover,
body.pym-account-v2 .pym-address-form-grid select:hover,
body.pym-account-v2 .pym-address-form-grid textarea:hover,
body.pym-account-v2 .pym-address-form-grid .select2-container--default .select2-selection--single:hover {
    border-color: #bdc0cb !important;
}

body.pym-account-v2 .pym-address-form-grid input.input-text:focus,
body.pym-account-v2 .pym-address-form-grid input[type="text"]:focus,
body.pym-account-v2 .pym-address-form-grid input[type="email"]:focus,
body.pym-account-v2 .pym-address-form-grid input[type="tel"]:focus,
body.pym-account-v2 .pym-address-form-grid input[type="number"]:focus,
body.pym-account-v2 .pym-address-form-grid select:focus,
body.pym-account-v2 .pym-address-form-grid textarea:focus,
body.pym-account-v2 .pym-address-form-grid .select2-container--open .select2-selection--single,
body.pym-account-v2 .pym-address-form-grid .select2-container--focus .select2-selection--single {
    border-color: rgba(209, 50, 50, .72) !important;
    box-shadow: 0 0 0 3px rgba(209, 50, 50, .09) !important;
}

body.pym-account-v2 .pym-address-form-grid .select2-container {
    width: 100% !important;
    min-width: 0 !important;
}

body.pym-account-v2 .pym-address-form-grid .select2-container--default .select2-selection--single {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
}

body.pym-account-v2 .pym-address-form-grid .select2-container--default .select2-selection--single .select2-selection__rendered {
    width: 100%;
    padding: 0 12px 0 35px !important;
    color: #2f3039 !important;
    line-height: 44px !important;
}

body.pym-account-v2 .pym-address-form-grid .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9698a3 !important;
}

body.pym-account-v2 .pym-address-form-grid .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 9px !important;
    left: 9px !important;
    right: auto !important;
}

body.pym-account-v2 .pym-address-form-grid .woocommerce-invalid input.input-text,
body.pym-account-v2 .pym-address-form-grid .woocommerce-invalid select,
body.pym-account-v2 .pym-address-form-grid .woocommerce-invalid .select2-selection--single {
    border-color: #d9534f !important;
    box-shadow: 0 0 0 3px rgba(217, 83, 79, .08) !important;
}

@media (max-width: 760px) {
    body.pym-account-v2 .pym-compact-order {
        grid-template-columns: minmax(0, 1fr) auto 25px;
        gap: 7px 8px;
        padding: 9px 10px;
    }

    body.pym-account-v2 .pym-compact-order-total {
        grid-column: 1 / 2;
        grid-row: 2;
    }

    body.pym-account-v2 .pym-compact-order .pym-status-badge {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    body.pym-account-v2 .pym-compact-order-arrow {
        grid-column: 3;
        grid-row: 1 / span 2;
    }
}

@media (max-width: 420px) {
    body.pym-account-v2 .pym-stat-card {
        min-height: 61px !important;
        padding: 8px 9px !important;
    }

    body.pym-account-v2 .pym-stat-icon {
        width: 31px !important;
        height: 31px !important;
        flex-basis: 31px !important;
    }
}

/* SpotPlayer web-player entry — v2.4.1 */
body.pym-account-v2 .pym-license-watch-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    margin-top: 12px;
    padding: 0 14px;
    color: #fff;
    border: 1px solid var(--pym-red);
    border-radius: 11px;
    background: var(--pym-red);
    box-shadow: 0 8px 20px rgba(209, 50, 50, .14);
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body.pym-account-v2 .pym-license-watch-button .pym-icon {
    width: 18px;
    height: 18px;
    color: currentColor;
    background: transparent !important;
}

body.pym-account-v2 .pym-license-watch-button:hover {
    color: #fff;
    border-color: var(--pym-dark);
    background: var(--pym-dark);
    box-shadow: 0 10px 24px rgba(47, 48, 61, .16);
    transform: translateY(-1px);
}

body.pym-account-v2 .pym-license-watch-button:focus-visible {
    outline: 3px solid rgba(209, 50, 50, .18);
    outline-offset: 3px;
}

@media (max-width: 767px) {
    body.pym-account-v2 .pym-license-watch-button {
        min-height: 40px;
        margin-top: 10px;
        border-radius: 10px;
    }
}

body.pym-account-v2 .pym-license-test-label {
    position: static;
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-top: 8px;
    padding: 4px 8px;
    color: #8a6517;
    border: 1px solid #f1dd9f;
    border-radius: 999px;
    background: #fff9e8;
    font-size: 8px;
    font-weight: 700;
}

/* Professional customer messages — v2.5.0 */
body.pym-account-v2 .pym-account-navigation a {
    position: relative;
}

body.pym-account-v2 .pym-account-nav-count {
    display: inline-grid;
    flex: 0 0 auto;
    min-width: 19px;
    height: 19px;
    margin-inline-start: auto;
    place-items: center;
    padding: 0 5px;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--pym-red);
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
}

body.pym-account-v2 .pym-account-navigation .is-active .pym-account-nav-count {
    color: var(--pym-red);
    border-color: rgba(255, 255, 255, .72);
    background: #fff;
}

body.pym-account-v2 .pym-message-page-header {
    align-items: center;
}

body.pym-account-v2 .pym-message-unread-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 104px;
    padding: 9px 11px;
    color: var(--pym-red);
    border: 1px solid rgba(209, 50, 50, .16);
    border-radius: 12px;
    background: var(--pym-red-soft);
}

body.pym-account-v2 .pym-message-unread-summary strong {
    display: grid;
    flex: 0 0 29px;
    place-items: center;
    width: 29px;
    height: 29px;
    color: #fff;
    border-radius: 9px;
    background: var(--pym-red);
    font-size: 11px;
}

body.pym-account-v2 .pym-message-unread-summary span {
    color: #8c3a3d;
    font-size: 9.5px;
    font-weight: 800;
    white-space: nowrap;
}

body.pym-account-v2 .pym-messages-page .pym-message-filters {
    padding-bottom: 2px;
    scrollbar-width: none;
}

body.pym-account-v2 .pym-messages-page .pym-message-filters::-webkit-scrollbar {
    display: none;
}

body.pym-account-v2 .pym-messages-page .pym-message-card {
    position: relative;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    overflow: hidden;
    padding: 17px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease;
}

body.pym-account-v2 .pym-messages-page .pym-message-card::before {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 3px;
    content: "";
    background: #4f75bc;
}

body.pym-account-v2 .pym-messages-page .pym-message-card--success::before {
    background: #21a671;
}

body.pym-account-v2 .pym-messages-page .pym-message-card--warning::before {
    background: #e2a516;
}

body.pym-account-v2 .pym-messages-page .pym-message-card--important::before {
    background: var(--pym-red);
}

body.pym-account-v2 .pym-messages-page .pym-message-card.is-unread {
    border-color: rgba(209, 50, 50, .2);
    box-shadow: 0 10px 28px rgba(46, 48, 64, .07);
}

body.pym-account-v2 .pym-messages-page .pym-message-card.is-read {
    background: #fff;
}

body.pym-account-v2 .pym-messages-page .pym-message-card:hover {
    border-color: #cfd2dc;
    box-shadow: 0 12px 30px rgba(46, 48, 64, .08);
    transform: translateY(-1px);
}

body.pym-account-v2 .pym-messages-page .pym-message-card-icon {
    width: 46px;
    height: 46px;
    color: #3866ad;
    background: #edf4ff;
}

body.pym-account-v2 .pym-messages-page .pym-message-card--success .pym-message-card-icon {
    color: #16815a;
    background: #eaf8f2;
}

body.pym-account-v2 .pym-messages-page .pym-message-card--warning .pym-message-card-icon {
    color: #986d0a;
    background: #fff7df;
}

body.pym-account-v2 .pym-messages-page .pym-message-card--important .pym-message-card-icon {
    color: var(--pym-red);
    background: var(--pym-red-soft);
}

body.pym-account-v2 .pym-message-card-content {
    min-width: 0;
}

body.pym-account-v2 .pym-messages-page .pym-message-card-header {
    align-items: flex-start;
    margin-bottom: 10px;
}

body.pym-account-v2 .pym-message-title-row,
body.pym-account-v2 .pym-message-meta,
body.pym-account-v2 .pym-message-card-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

body.pym-account-v2 .pym-message-title-row {
    gap: 7px;
    min-width: 0;
}

body.pym-account-v2 .pym-messages-page .pym-message-card h2 {
    font-size: 13px;
    line-height: 1.75;
}

body.pym-account-v2 .pym-message-new-badge,
body.pym-account-v2 .pym-message-pinned-badge,
body.pym-account-v2 .pym-message-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 23px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 8.5px;
    font-weight: 800;
    white-space: nowrap;
}

body.pym-account-v2 .pym-message-new-badge {
    color: #fff;
    background: var(--pym-red);
}

body.pym-account-v2 .pym-message-pinned-badge {
    color: #7b5b0f;
    background: #fff6d8;
}

body.pym-account-v2 .pym-message-pinned-badge .pym-icon {
    width: 11px;
    height: 11px;
}

body.pym-account-v2 .pym-message-meta {
    justify-content: flex-end;
    gap: 7px;
    margin-inline-start: auto;
}

body.pym-account-v2 .pym-message-type-badge {
    color: #5b5e6c;
    border: 1px solid #e2e4eb;
    background: #f8f9fb;
}

body.pym-account-v2 .pym-message-meta time {
    color: var(--pym-muted);
    font-size: 9px;
}

body.pym-account-v2 .pym-messages-page .pym-message-body,
body.pym-account-v2 .pym-messages-page .pym-message-body p,
body.pym-account-v2 .pym-messages-page .pym-message-body li {
    color: #5f626f;
    font-size: 10.5px;
    line-height: 2;
}

body.pym-account-v2 .pym-messages-page .pym-message-body p:last-child {
    margin-bottom: 0;
}

body.pym-account-v2 .pym-messages-page .pym-message-body ul,
body.pym-account-v2 .pym-messages-page .pym-message-body ol {
    margin: 8px 0;
    padding-inline-start: 20px;
}

body.pym-account-v2 .pym-message-card-footer {
    justify-content: flex-start;
    gap: 8px;
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid #eceef3;
}

body.pym-account-v2 .pym-message-cta,
body.pym-account-v2 .pym-message-read-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 35px !important;
    margin: 0 !important;
    padding: 0 11px !important;
    border-radius: 9px !important;
    font-family: inherit !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: .18s ease;
}

body.pym-account-v2 .pym-message-cta {
    color: #fff !important;
    border: 1px solid var(--pym-red) !important;
    background: var(--pym-red) !important;
}

body.pym-account-v2 .pym-message-cta:hover {
    color: #fff !important;
    border-color: var(--pym-dark) !important;
    background: var(--pym-dark) !important;
}

body.pym-account-v2 .pym-message-read-button {
    color: #4f5260 !important;
    border: 1px solid #dfe2e9 !important;
    background: #fff !important;
    box-shadow: none !important;
}

body.pym-account-v2 .pym-message-read-button:hover {
    color: var(--pym-red) !important;
    border-color: rgba(209, 50, 50, .25) !important;
    background: var(--pym-red-soft) !important;
}

body.pym-account-v2 .pym-message-read-button:disabled {
    cursor: wait;
    opacity: .55;
}

body.pym-account-v2 .pym-message-cta .pym-icon,
body.pym-account-v2 .pym-message-read-button .pym-icon {
    width: 14px !important;
    height: 14px !important;
    background: transparent !important;
}

@media (max-width: 900px) {
    body.pym-account-v2 .pym-account-nav-count {
        position: absolute;
        top: 4px;
        inset-inline-end: 5px;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        font-size: 7px;
    }
}

@media (max-width: 640px) {
    body.pym-account-v2 .pym-message-page-header {
        align-items: flex-start;
    }

    body.pym-account-v2 .pym-message-unread-summary {
        min-width: auto;
    }

    body.pym-account-v2 .pym-messages-page .pym-message-card {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 11px;
        padding: 14px;
    }

    body.pym-account-v2 .pym-messages-page .pym-message-card-icon {
        width: 38px;
        height: 38px;
    }

    body.pym-account-v2 .pym-messages-page .pym-message-card-header {
        flex-direction: column;
        gap: 7px;
    }

    body.pym-account-v2 .pym-message-meta {
        justify-content: flex-start;
        margin-inline-start: 0;
    }

    body.pym-account-v2 .pym-message-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    body.pym-account-v2 .pym-message-cta,
    body.pym-account-v2 .pym-message-read-button {
        width: 100%;
    }
}

/* Account password setup & recovery — v2.6.0 */
body.pym-account-v2 .pym-password-section {
    overflow: hidden;
}

body.pym-account-v2 .pym-password-first-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0 0 16px;
    padding: 13px 14px;
    border: 1px solid rgba(5, 150, 105, .18);
    border-radius: 12px;
    background: rgba(5, 150, 105, .055);
}

body.pym-account-v2 .pym-password-first-note__icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    color: #08795a;
    border-radius: 9px;
    background: rgba(5, 150, 105, .1);
}

body.pym-account-v2 .pym-password-first-note__icon .pym-icon {
    width: 17px;
    height: 17px;
}

body.pym-account-v2 .pym-password-first-note > div {
    display: grid;
    gap: 3px;
}

body.pym-account-v2 .pym-password-first-note strong {
    color: #1f2937;
    font-size: 11px;
    font-weight: 800;
}

body.pym-account-v2 .pym-password-first-note span:not(.pym-password-first-note__icon) {
    color: #687181;
    font-size: 10px;
    line-height: 1.9;
}

body.pym-account-v2 .pym-password-recovery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 16px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--pym-line);
}

body.pym-account-v2 .pym-password-recovery__content {
    display: grid;
    gap: 4px;
}

body.pym-account-v2 .pym-password-recovery__content strong {
    color: #30303d;
    font-size: 11px;
    font-weight: 800;
}

body.pym-account-v2 .pym-password-recovery__content span,
body.pym-account-v2 .pym-password-recovery__status {
    color: var(--pym-muted);
    font-size: 9.5px;
    line-height: 1.8;
}

body.pym-account-v2 .pym-password-recovery__status {
    display: none;
    grid-column: 1 / -1;
    padding: 8px 10px;
    border-radius: 9px;
}

body.pym-account-v2 .pym-password-recovery__status.is-visible {
    display: block;
    color: #08795a;
    background: rgba(5, 150, 105, .07);
}

body.pym-account-v2 .pym-password-recovery__status.is-error {
    color: #b42318;
    background: rgba(180, 35, 24, .06);
}

body.pym-account-v2 .pym-password-reset-email.is-loading {
    opacity: .65;
    pointer-events: none;
}

body.pym-account-v2 .pym-password-reset-email:disabled {
    opacity: .48 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

@media (max-width: 640px) {
    body.pym-account-v2 .pym-password-recovery {
        grid-template-columns: 1fr;
    }

    body.pym-account-v2 .pym-password-reset-email {
        width: 100%;
    }
}
