.elementor-698 .elementor-element.elementor-element-6c7653eb{--display:flex;}.elementor-widget-text-editor{font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );color:var( --e-global-color-text );}.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:var( --e-global-color-primary );}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap, .elementor-widget-text-editor.elementor-drop-cap-view-default .elementor-drop-cap{color:var( --e-global-color-primary );border-color:var( --e-global-color-primary );}:root{--page-title-display:none;}/* Start custom CSS for container, class: .elementor-element-6c7653eb *//* ==================================================
   Mahland – WooCommerce My Account
   ================================================== */

.mahland-account {
    --mahland-green: #929f76;
    --mahland-green-dark: #697653;
    --mahland-green-light: #bcc7a5;
    --mahland-cream: #fbf6f1;
    --mahland-pink: #f4d9ce;
    --mahland-pink-dark: #c85f7a;
    --mahland-text: #2e302c;
    --mahland-muted: #777b70;
    --mahland-border: rgba(105, 118, 83, 0.15);
    --mahland-white: #ffffff;
}

.mahland-account,
.mahland-account * {
    box-sizing: border-box;
}

.mahland-account .woocommerce {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 295px;
    gap: 28px;
    align-items: start;
    width: 100%;
    margin: 35px auto 55px;
    direction: rtl;
    color: var(--mahland-text);
}

/* حذف فاصله‌های اضافی HTML */
.mahland-account .woocommerce-MyAccount-navigation a br {
    display: none !important;
}

/* ==================================================
   منوی کناری حساب
   ================================================== */

.mahland-account .woocommerce-MyAccount-navigation {
    grid-column: 2;
    width: 100% !important;
    float: none !important;
    position: sticky;
    top: 120px;
    padding: 18px;
    border: 1px solid var(--mahland-border);
    border-radius: 26px;
    background:
        radial-gradient(
            circle at 10% 5%,
            rgba(244, 217, 206, 0.9),
            transparent 105px
        ),
        linear-gradient(145deg, #a8b48d 0%, #909d73 100%);
    box-shadow: 0 16px 45px rgba(68, 76, 55, 0.12);
    overflow: hidden;
}

.mahland-account .woocommerce-MyAccount-navigation::before {
    content: "حساب کاربری من";
    display: block;
    margin: 3px 5px 17px;
    padding: 7px 8px 17px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    color: #252820;
    font-size: 17px;
    font-weight: 800;
    text-align: right;
}

.mahland-account .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.mahland-account .woocommerce-MyAccount-navigation li {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.mahland-account .woocommerce-MyAccount-navigation li::marker {
    content: "";
}

.mahland-account .woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    min-height: 49px;
    padding: 11px 42px 11px 15px;
    border: 1px solid transparent;
    border-radius: 15px;
    color: #303328;
    background: rgba(255, 255, 255, 0.13);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.8;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.mahland-account .woocommerce-MyAccount-navigation li a::before {
    content: "";
    position: absolute;
    right: 18px;
    width: 10px;
    height: 10px;
    border: 2px solid rgba(46, 48, 44, 0.65);
    border-radius: 4px;
    transform: rotate(45deg);
    transition: 0.25s ease;
}

.mahland-account .woocommerce-MyAccount-navigation li a:hover {
    color: var(--mahland-green-dark);
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateX(-4px);
}

.mahland-account .woocommerce-MyAccount-navigation li a:hover::before {
    border-color: var(--mahland-pink-dark);
    background: var(--mahland-pink);
}

.mahland-account .woocommerce-MyAccount-navigation li.is-active a {
    color: var(--mahland-green-dark);
    background: var(--mahland-white);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 25px rgba(65, 73, 51, 0.14);
}

.mahland-account .woocommerce-MyAccount-navigation li.is-active a::before {
    border-color: var(--mahland-pink-dark);
    background: var(--mahland-pink);
    box-shadow: 0 0 0 4px rgba(244, 217, 206, 0.4);
}

/* خروج از حساب */
.mahland-account
    .woocommerce-MyAccount-navigation-link--customer-logout
    a {
    margin-top: 7px;
    color: #9d4158 !important;
    background: rgba(255, 239, 242, 0.65) !important;
}

.mahland-account
    .woocommerce-MyAccount-navigation-link--customer-logout
    a::before {
    border-color: #b5526b !important;
}

/* ==================================================
   محتوای اصلی پنل
   ================================================== */

.mahland-account .woocommerce-MyAccount-content {
    grid-column: 1;
    float: none !important;
    width: 100% !important;
    min-width: 0;
    min-height: 330px;
    padding: 34px;
    border: 1px solid var(--mahland-border);
    border-radius: 26px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(244, 217, 206, 0.45),
            transparent 210px
        ),
        radial-gradient(
            circle at 0 100%,
            rgba(188, 199, 165, 0.28),
            transparent 190px
        ),
        var(--mahland-white);
    box-shadow: 0 16px 50px rgba(68, 76, 55, 0.08);
    overflow: hidden;
}

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

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

.mahland-account .woocommerce-MyAccount-content p {
    color: var(--mahland-muted);
    font-size: 14px;
    line-height: 2.15;
}

.mahland-account .woocommerce-MyAccount-content > p:first-of-type {
    position: relative;
    margin: 0 0 18px;
    padding: 19px 22px;
    border: 1px solid rgba(200, 95, 122, 0.12);
    border-radius: 18px;
    color: var(--mahland-text);
    background: linear-gradient(
        135deg,
        rgba(244, 217, 206, 0.75),
        rgba(251, 246, 241, 0.8)
    );
}

.mahland-account .woocommerce-MyAccount-content strong {
    color: var(--mahland-green-dark);
    font-weight: 800;
}

.mahland-account .woocommerce-MyAccount-content a {
    color: var(--mahland-pink-dark);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mahland-account .woocommerce-MyAccount-content a:hover {
    color: var(--mahland-green-dark);
}

/* تیترهای صفحات */
.mahland-account .woocommerce-MyAccount-content h2,
.mahland-account .woocommerce-MyAccount-content h3 {
    margin: 0 0 20px;
    color: var(--mahland-text);
    font-weight: 800;
    line-height: 1.7;
}

.mahland-account .woocommerce-MyAccount-content h2 {
    font-size: 22px;
}

.mahland-account .woocommerce-MyAccount-content h3 {
    font-size: 18px;
}

/* ==================================================
   پیام‌ها و اعلان‌های ووکامرس
   ================================================== */

.mahland-account .woocommerce-message,
.mahland-account .woocommerce-info,
.mahland-account .woocommerce-error {
    margin: 0 0 22px !important;
    padding: 17px 20px !important;
    border: 0 !important;
    border-radius: 16px;
    line-height: 2;
    box-shadow: none;
}

.mahland-account .woocommerce-message {
    color: #4b583a;
    background: #edf3e4;
}

.mahland-account .woocommerce-info {
    color: #596148;
    background: #f3f0e7;
}

.mahland-account .woocommerce-error {
    color: #98475d;
    background: #fff0f3;
}

.mahland-account .woocommerce-message::before,
.mahland-account .woocommerce-info::before,
.mahland-account .woocommerce-error::before {
    display: none;
}

/* ==================================================
   جدول سفارش‌ها و دانلودها
   ================================================== */

.mahland-account table.shop_table {
    width: 100%;
    margin: 15px 0 0 !important;
    border: 0 !important;
    border-collapse: separate;
    border-spacing: 0 9px;
    background: transparent;
}

.mahland-account table.shop_table thead th {
    padding: 13px 15px;
    border: 0 !important;
    color: var(--mahland-green-dark);
    background: var(--mahland-cream);
    font-size: 13px;
    font-weight: 800;
}

.mahland-account table.shop_table thead th:first-child {
    border-radius: 0 13px 13px 0;
}

.mahland-account table.shop_table thead th:last-child {
    border-radius: 13px 0 0 13px;
}

.mahland-account table.shop_table tbody tr {
    background: #fff;
    box-shadow: 0 5px 20px rgba(68, 76, 55, 0.06);
}

.mahland-account table.shop_table tbody td {
    padding: 15px;
    border-top: 1px solid var(--mahland-border) !important;
    border-bottom: 1px solid var(--mahland-border) !important;
    color: var(--mahland-muted);
    font-size: 13px;
}

.mahland-account table.shop_table tbody td:first-child {
    border-right: 1px solid var(--mahland-border) !important;
    border-radius: 0 14px 14px 0;
}

.mahland-account table.shop_table tbody td:last-child {
    border-left: 1px solid var(--mahland-border) !important;
    border-radius: 14px 0 0 14px;
}

/* ==================================================
   دکمه‌های ووکامرس
   ================================================== */

.mahland-account .woocommerce a.button,
.mahland-account .woocommerce button.button,
.mahland-account .woocommerce input.button,
.mahland-account .woocommerce .button {
    min-height: 43px;
    padding: 10px 20px !important;
    border: 0 !important;
    border-radius: 13px !important;
    color: #fff !important;
    background: linear-gradient(
        135deg,
        var(--mahland-green-dark),
        var(--mahland-green)
    ) !important;
    font-family: inherit;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.8 !important;
    box-shadow: 0 7px 18px rgba(105, 118, 83, 0.2);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease !important;
}

.mahland-account .woocommerce a.button:hover,
.mahland-account .woocommerce button.button:hover,
.mahland-account .woocommerce input.button:hover,
.mahland-account .woocommerce .button:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(105, 118, 83, 0.28);
}

/* ==================================================
   فرم ویرایش اطلاعات و آدرس
   ================================================== */

.mahland-account .woocommerce form {
    margin: 0;
}

.mahland-account .woocommerce form .form-row {
    margin: 0 0 17px;
    padding: 0;
}

.mahland-account .woocommerce form .form-row label {
    margin: 0 0 7px;
    color: var(--mahland-text);
    font-size: 13px;
    font-weight: 700;
}

.mahland-account .woocommerce form .required {
    color: var(--mahland-pink-dark);
}

.mahland-account .woocommerce input.input-text,
.mahland-account .woocommerce input[type="text"],
.mahland-account .woocommerce input[type="email"],
.mahland-account .woocommerce input[type="tel"],
.mahland-account .woocommerce input[type="password"],
.mahland-account .woocommerce textarea,
.mahland-account .woocommerce select,
.mahland-account .select2-container .select2-selection {
    width: 100%;
    min-height: 49px;
    padding: 10px 14px;
    border: 1px solid var(--mahland-border) !important;
    border-radius: 14px !important;
    outline: none;
    color: var(--mahland-text);
    background: #fbfaf7;
    font-family: inherit;
    font-size: 13px;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.mahland-account .woocommerce textarea {
    min-height: 120px;
    resize: vertical;
}

.mahland-account .woocommerce input:focus,
.mahland-account .woocommerce textarea:focus,
.mahland-account .woocommerce select:focus,
.mahland-account
    .select2-container--focus
    .select2-selection {
    border-color: var(--mahland-green) !important;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(146, 159, 118, 0.12);
}

.mahland-account .woocommerce fieldset {
    margin: 25px 0;
    padding: 22px;
    border: 1px solid var(--mahland-border);
    border-radius: 18px;
    background: var(--mahland-cream);
}

.mahland-account .woocommerce fieldset legend {
    padding: 0 10px;
    color: var(--mahland-green-dark);
    font-size: 15px;
    font-weight: 800;
}

/* ==================================================
   کارت آدرس‌ها
   ================================================== */

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

.mahland-account .woocommerce-Address {
    float: none !important;
    width: 100% !important;
    padding: 21px;
    border: 1px solid var(--mahland-border);
    border-radius: 19px;
    background: var(--mahland-cream);
}

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

.mahland-account .woocommerce-Address-title h3 {
    margin: 0;
}

.mahland-account .woocommerce-Address-title a.edit {
    float: none;
    padding: 6px 12px;
    border-radius: 9px;
    color: var(--mahland-pink-dark);
    background: var(--mahland-pink);
    font-size: 12px;
}

.mahland-account .woocommerce-Address address {
    margin: 0;
    color: var(--mahland-muted);
    font-style: normal;
    line-height: 2.1;
}

/* ==================================================
   صفحه دوره‌های من
   ================================================== */

.mahland-account
    .woocommerce-MyAccount-navigation-link--my-courses
    a::before {
    border-radius: 50%;
}

.mahland-account .woocommerce-MyAccount-content .course,
.mahland-account .woocommerce-MyAccount-content .course-card {
    border: 1px solid var(--mahland-border);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 25px rgba(68, 76, 55, 0.07);
}

/* ==================================================
   موبایل و تبلت
   ================================================== */

@media (max-width: 900px) {
    .mahland-account .woocommerce {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    .mahland-account .woocommerce-MyAccount-navigation,
    .mahland-account .woocommerce-MyAccount-content {
        grid-column: 1;
    }

    .mahland-account .woocommerce-MyAccount-navigation {
        position: relative;
        top: auto;
    }

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

    .mahland-account .woocommerce-MyAccount-navigation li a {
        min-height: 46px;
        padding-right: 37px;
        font-size: 13px;
    }

    .mahland-account .woocommerce-MyAccount-navigation li a::before {
        right: 15px;
    }
}

@media (max-width: 600px) {
    .mahland-account .woocommerce {
        gap: 15px;
        margin: 15px auto 35px;
    }

    .mahland-account .woocommerce-MyAccount-navigation {
        padding: 14px;
        border-radius: 20px;
    }

    .mahland-account .woocommerce-MyAccount-navigation::before {
        margin-bottom: 12px;
        padding-bottom: 13px;
        font-size: 15px;
    }

    .mahland-account .woocommerce-MyAccount-navigation ul {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .mahland-account .woocommerce-MyAccount-content {
        min-height: auto;
        padding: 20px 17px;
        border-radius: 20px;
    }

    .mahland-account .woocommerce-MyAccount-content > p:first-of-type {
        padding: 16px;
    }

    .mahland-account .woocommerce-Addresses {
        grid-template-columns: 1fr;
    }

    .mahland-account table.shop_table_responsive tr {
        margin-bottom: 14px;
        padding: 12px;
        border: 1px solid var(--mahland-border);
        border-radius: 15px;
        background: var(--mahland-cream);
    }

    .mahland-account
        table.shop_table_responsive
        tbody
        tr
        td {
        padding: 10px 5px !important;
        border: 0 !important;
        border-bottom: 1px dashed var(--mahland-border) !important;
        border-radius: 0 !important;
        background: transparent;
    }

    .mahland-account
        table.shop_table_responsive
        tbody
        tr
        td:last-child {
        border-bottom: 0 !important;
    }
}

/* ==================================================
   رفع مشکل فضای خالی و جابه‌جایی ستون‌ها
   ================================================== */

.mahland-account .woocommerce::before,
.mahland-account .woocommerce::after {
    content: none !important;
    display: none !important;
}

/* دسکتاپ */
@media (min-width: 901px) {

    .mahland-account .woocommerce {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 295px !important;
        grid-template-rows: auto !important;
        gap: 28px !important;
        align-items: start !important;

        /* چینش فیزیکی ستون‌ها */
        direction: ltr !important;
    }

    .mahland-account .woocommerce-MyAccount-navigation {
        grid-column: 2 !important;
        grid-row: 1 !important;
        direction: rtl !important;
    }

    .mahland-account .woocommerce-MyAccount-content {
        grid-column: 1 !important;
        grid-row: 1 !important;
        direction: rtl !important;
    }
}

/* دکمه منوی موبایل در دسکتاپ مخفی باشد */
.mahland-account-toggle {
    display: none;
}

/* ==================================================
   منوی بازشونده موبایل
   ================================================== */

@media (max-width: 900px) {

    .mahland-account .woocommerce {
        display: block !important;
        width: 100% !important;
        margin: 20px auto 40px !important;
        direction: rtl !important;
    }

    .mahland-account .woocommerce-MyAccount-navigation {
        width: 100% !important;
        margin: 0 0 16px !important;
        padding: 12px !important;
        position: relative !important;
        top: auto !important;
        border-radius: 20px !important;
        overflow: hidden;
    }

    /* عنوان قدیمی حساب کاربری مخفی می‌شود */
    .mahland-account
    .woocommerce-MyAccount-navigation::before {
        display: none !important;
    }

    .mahland-account-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        width: 100%;
        min-height: 62px;
        padding: 10px 15px;
        border: 1px solid rgba(255, 255, 255, 0.55);
        border-radius: 15px;
        outline: none;
        color: #303328;
        background: rgba(255, 255, 255, 0.87);
        font-family: inherit;
        text-align: right;
        cursor: pointer;
        box-shadow: 0 7px 22px rgba(68, 76, 55, 0.1);
    }

    .mahland-account-toggle > span:first-child {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .mahland-account-toggle small {
        color: #7b816e;
        font-size: 10px;
        font-weight: 500;
    }

    .mahland-account-toggle strong {
        color: #424837;
        font-size: 14px;
        font-weight: 800;
    }

    /* آیکون فلش */
    .mahland-toggle-icon {
        position: relative;
        display: block;
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        border-radius: 12px;
        background: #f4d9ce;
        transition:
            transform 0.3s ease,
            background-color 0.3s ease;
    }

    .mahland-toggle-icon::before,
    .mahland-toggle-icon::after {
        content: "";
        position: absolute;
        top: 18px;
        width: 9px;
        height: 2px;
        border-radius: 5px;
        background: #697653;
        transition: transform 0.3s ease;
    }

    .mahland-toggle-icon::before {
        right: 11px;
        transform: rotate(45deg);
    }

    .mahland-toggle-icon::after {
        left: 11px;
        transform: rotate(-45deg);
    }

    /* منو در حالت بسته */
    .mahland-account
    .woocommerce-MyAccount-navigation
    ul {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 7px !important;
        max-height: 0;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition:
            max-height 0.45s ease,
            margin 0.3s ease,
            opacity 0.25s ease,
            visibility 0.25s ease,
            transform 0.3s ease;
    }

    /* منو در حالت باز */
    .mahland-account
    .woocommerce-MyAccount-navigation.is-open
    ul {
        max-height: 700px;
        margin-top: 11px !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .mahland-account
    .woocommerce-MyAccount-navigation.is-open
    .mahland-toggle-icon {
        transform: rotate(180deg);
        background: #ffffff;
    }

    .mahland-account
    .woocommerce-MyAccount-navigation
    li {
        width: 100% !important;
    }

    .mahland-account
    .woocommerce-MyAccount-navigation
    li a {
        width: 100% !important;
        min-height: 47px !important;
    }

    .mahland-account .woocommerce-MyAccount-content {
        width: 100% !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 22px 18px !important;
        border-radius: 20px !important;
        direction: rtl !important;
    }
}/* End custom CSS */