/* Quartz Auth Skin 2.2.0 — native Digits steps and a separate core password login. */
html:root :is(.digits_login_form, .eq-auth-card, body.eq-auth-account) {
    --eq-brand: var(--eq-auth-brand, #2a1e87);
    --eq-background: var(--eq-auth-background, #f7f9ff);
    --eq-radius: var(--eq-auth-radius, 24px);
    --eq-ink: #292735;
    --eq-muted: #686578;
    --eq-line: #ddddea;
    --eq-font: var(--e-global-typography-text-font-family, "IRANSansXFaNum"), Tahoma, sans-serif;
    font-family: var(--eq-font) !important;
    color: var(--eq-ink);
    line-height: 1.8;
}
html:root .digits_login_form :is(input, button, select, textarea, label, a, .button, .transupbutton) {
    font-family: var(--eq-font) !important;
}
html:root .digits_login_form .dig_ma-box :is(.signdesc, .dig_input_wrapper div, .dig_resendotp, .dig_resendotp span, .dig_verify_code_text, .dig_login_cancel span, label span, .button span) {
    font-family: var(--eq-font) !important;
}
html:root .digits_login_form :is(.dig_bdy_container, .dig_lrf_box, .digits_bx_cred_frm_container, .dig_clg_bx, .logocontainer, .dig-container, .dig-modal-con, .minput, .minput_inner, .digits-input-wrapper, input, button, select, textarea),
html:root .eq-auth-card, html:root .eq-auth-card * { box-sizing: border-box; }

/* Standalone Digits page: reuse its existing logo and image, in a contained card. */
html:root body.digits_login_form {
    margin: 0 !important;
    padding: clamp(20px, 4vw, 64px) !important;
    min-height: 100vh;
    height: auto !important;
    overflow: auto !important;
    background: var(--eq-background) !important;
}
html:root body.digits_login_form > .dig_bdy_container {
    width: min(100%, 1080px) !important;
    height: auto !important;
    min-height: 620px;
    margin: 3vh auto !important;
    border: 1px solid #eceaf5;
    border-radius: var(--eq-radius) !important;
    background: #fff;
    box-shadow: 0 18px 64px #2a1e870c;
    overflow: visible;
}
html:root body.digits_login_form > .dig_bdy_container.dig_ul_divd {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: stretch;
}
html:root body.digits_login_form > .dig_bdy_container > .dig_ul_left_side {
    background-color: #eff1fc !important;
    background-size: 94% auto !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-width: 0;
    border-start-start-radius: var(--eq-radius);
    border-end-start-radius: var(--eq-radius);
}
html:root body.digits_login_form .dig-bgleft-arrow-right { display: none !important; }
html:root body.digits_login_form > .dig_bdy_container > .dig_lrf_box {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    position: relative !important;
    padding: 44px 36px !important;
    width: 100% !important;
    min-width: 0;
    height: auto !important;
    overflow: visible !important;
    border-start-end-radius: var(--eq-radius);
    border-end-end-radius: var(--eq-radius);
}
html:root body.digits_login_form :is(.dig_clg_bx, .logocontainer, .dig-container) {
    /* Keep legacy centering offsets from moving the form outside its card. */
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 420px;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 auto !important;
}
html:root body.digits_login_form .dig_clg_bx { flex: 0 0 auto; overflow: visible !important; }
/* Digits 7's first layout can leave these two wrappers at opacity:0 until resize.
   They are presentation wrappers, not login/register/OTP state containers. */
html:root body.digits_login_form > .dig_bdy_container > .dig_lrf_box > :is(.logocontainer, .dig_clg_bx) {
    opacity: 1 !important;
}
html:root body.digits_login_form .dig-container :is(.digloginpage, .register, .forgot) {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    float: none !important;
    width: 100% !important;
}
html:root body.digits_login_form .logocontainer { margin-bottom: 28px !important; }
html:root body.digits_login_form .logocontainer .logo {
    width: 72px !important;
    max-width: 72px !important;
    height: 72px;
    max-height: 72px !important;
    object-fit: contain;
    border-radius: 18px;
}
html:root body.digits_login_form .dig-container {
    padding: 0 !important;
    background: #fff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}
html:root body.digits_login_form .dig_login_cancel {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    margin-top: 22px;
    width: 100%;
}
html:root body.digits_login_form .dig_page_cancel_color { color: var(--eq-muted) !important; }

/* Modal presentation. Do not force open the overlay or a hidden authentication step. */
html:root .digits_login_form #dig-ucr-container .dig-content {
    background: #fff !important;
    border: 1px solid var(--eq-line) !important;
    border-radius: var(--eq-radius) !important;
    box-shadow: 0 24px 90px #1712392b !important;
    max-width: 500px !important;
    width: calc(100% - 32px) !important;
    min-height: 0 !important;
    max-height: 90vh !important;
    grid-template-columns: minmax(0, 1fr) !important;
}
html:root .digits_login_form #dig-ucr-container :is(.dig_ul_left_side, .dig-bgleft-arrow-right) { display: none !important; }
html:root .digits_login_form #dig-ucr-container .digits_bx_cred_frm_container {
    padding: 36px 28px !important;
    left: auto !important;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto !important;
}
html:root .digits_login_form .dig-cont-close {
    color: var(--eq-ink) !important;
    border-radius: 50%;
    min-width: 36px;
    min-height: 36px;
}

/* Form controls. Explicit colours repair transparent settings produced by the current skin. */
html:root .digits_login_form .dig_ma-box :is(.digloginpage, .register, .forgot) {
    color: var(--eq-ink) !important;
    padding: 8px 0 !important;
    max-width: 100%;
}
html:root .digits_login_form .dig_ma-box .minput .minput_inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 20px !important;
}
html:root .digits_login_form .dig_ma-box .minput .minput_inner > label {
    display: block !important;
    position: static !important;
    transform: none !important;
    order: 0 !important;
    color: var(--eq-ink) !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    text-align: start !important;
    direction: inherit;
}
html:root .digits_login_form .dig_ma-box .minput .minput_inner > label:empty { display: none !important; }
html:root .digits_login_form .dig_ma-box .digits-input-wrapper { order: 1; width: 100%; min-width: 0; }
html:root .digits_login_form .dig_ma-box .minput input:where(:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"])),
html:root .digits_login_form .dig_ma-box .minput :is(textarea, select) {
    width: 100%;
    min-height: 52px;
    margin: 0 !important;
    padding: 12px 16px !important;
    border: 1px solid var(--eq-field-border, var(--eq-line)) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--eq-ink) !important;
    -webkit-text-fill-color: var(--eq-ink) !important;
    caret-color: var(--eq-brand);
    font-size: 16px !important;
    line-height: 26px !important;
    box-shadow: none;
}
html:root .digits_login_form .dig_ma-box .minput :is(input, textarea, select):focus {
    --eq-field-border: var(--eq-brand);
    outline: 2px solid #a69cd9 !important;
    outline-offset: 2px;
}
html:root .digits_login_form .dig_ma-box .minput :is(input, textarea, select).dig_input_error,
html:root .digits_login_form .dig_ma-box .minput [aria-invalid="true"] {
    --eq-field-border: #b42318;
    outline-color: #b42318 !important;
}
html:root .digits_login_form .dig_ma-box .minput input::placeholder {
    color: #858194 !important;
    -webkit-text-fill-color: #858194 !important;
    opacity: 1;
    letter-spacing: 0;
}
html:root .digits_login_form .dig_ma-box .minput .optional { color: var(--eq-muted) !important; font-size: 12px; }
html:root .digits_login_form .dig_ma-box .minput .minput_inner > span.bgdark { display: none !important; }
html:root .digits_login_form .dig_ma-box .minput .countrycodecontainer {
    bottom: 1px !important;
    left: 1px !important;
    right: auto !important;
    max-width: 76px;
    direction: ltr;
}
html:root .digits_login_form .dig_ma-box .minput .countrycodecontainer input[type="text"] {
    width: 72px !important;
    min-height: 50px !important;
    height: 50px !important;
    padding: 10px 4px !important;
    border: 0 !important;
    border-right: 1px solid var(--eq-line) !important;
    border-radius: 0 !important;
    color: var(--eq-ink) !important;
    background: transparent !important;
    text-align: center !important;
}
html:root .digits_login_form .dig_ma-box .minput input:is([data-type="2"], .eq-has-country) {
    padding-left: 88px !important;
    direction: ltr !important;
    text-align: left !important;
    text-indent: 0 !important;
}
/* Prefix and number occupy separate grid cells; native padding writes cannot overlap them. */
html:root .digits_login_form .dig_ma-box .minput .minput_inner.eq-phone-row {
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 8px !important;
    direction: ltr;
}
html:root .digits_login_form .dig_ma-box .minput .minput_inner.eq-phone-row > label {
    grid-column: 1 / -1;
    grid-row: 1;
    direction: rtl;
    text-align: right !important;
}
html:root .digits_login_form .dig_ma-box .minput .minput_inner.eq-phone-row > .countrycodecontainer {
    grid-column: 1;
    grid-row: 2;
    position: relative !important;
    inset: auto !important;
    align-self: start;
    width: 76px !important;
    max-width: none;
    margin: 0 !important;
}
html:root .digits_login_form .dig_ma-box .minput .minput_inner.eq-phone-row > .digits-input-wrapper {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    width: 100%;
}
html:root .digits_login_form .dig_ma-box .minput .minput_inner.eq-phone-row .countrycodecontainer input.countrycode {
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 12px 4px !important;
    border: 1px solid var(--eq-field-border, var(--eq-line)) !important;
    border-radius: 12px !important;
    background: #fff !important;
}
html:root .digits_login_form .dig_ma-box .minput .minput_inner.eq-phone-row .digits-input-wrapper input.mobile_field {
    padding: 12px 16px !important;
    direction: ltr !important;
    text-align: left !important;
}
html:root .digits_login_form .dig_ma-box input:is(.countrycode, [name="digits_reg_mail"], [name="dig_otp"], [type="tel"]) {
    direction: ltr;
    unicode-bidi: isolate;
}
html:root .digits_login_form .dig_ma-box input[name="dig_otp"] { text-align: center !important; letter-spacing: 5px; }
html:root .digits_login_form .dig_ma-box :is(button[type="submit"], input[type="submit"], .button, .transupbutton) {
    color: #fff !important;
    background: var(--eq-brand) !important;
    border: 1px solid var(--eq-brand) !important;
    border-radius: 12px !important;
    min-height: 52px;
    padding: 12px 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 26px !important;
    text-align: center;
    text-decoration: none !important;
    box-shadow: none !important;
    cursor: pointer;
}
html:root .digits_login_form .dig_ma-box .signupbutton {
    color: var(--eq-brand) !important;
    border-color: #d4ceed !important;
    background: #f5f3fd !important;
}
html:root .digits_login_form .dig_ma-box :is(.button, .transupbutton):hover { filter: brightness(.96); }
html:root .digits_login_form .dig_ma-box :is(button, input, .button)[disabled] { cursor: not-allowed; opacity: .55; }
html:root .digits_login_form .dig_ma-box :is(a, button, .button, .transupbutton):focus-visible {
    outline: 3px solid #a69cd9 !important;
    outline-offset: 3px;
}
html:root .digits_login_form .dig_ma-box :is(.backtoLogin, .forgotpassworda, .dig_resendotp) {
    color: var(--eq-brand) !important;
    font-size: 14px;
    text-underline-offset: 4px;
}
html:root .digits_login_form .dig_ma-box .dig_resendotp[dis="1"] { color: var(--eq-muted) !important; }
html:root .digits_login_form .dig_ma-box :is(.signdesc, .dig_login_rembe) { color: var(--eq-muted) !important; font-size: 14px; }
html:root .digits_login_form .dig_ma-box .signdesc { margin: 22px 0 12px !important; }
html:root .digits_login_form .dig_ma-box .dig_login_rembe .dig_input_wrapper::before { background-color: var(--eq-brand) !important; }
html:root .digits_login_form input[type="checkbox"] { accent-color: var(--eq-brand); }

/* Account page spacing applies before and after login. */
html:root body.eq-auth-account main.site-main {
    max-width: 1120px;
    margin-inline: auto;
    padding: 48px 20px 64px;
    box-sizing: border-box;
}
/* WooCommerce account authentication; checkout and shop are outside this scope. */
html:root body.eq-auth-account:not(.logged-in) .woocommerce :is(form.login, form.register, form.lost_reset_password) {
    border: 1px solid var(--eq-line);
    background: #fff;
    border-radius: var(--eq-radius);
    box-shadow: 0 12px 44px #2a1e8708;
    padding: clamp(24px, 4vw, 40px);
    margin: 20px 0 0;
    font-family: var(--eq-font);
    color: var(--eq-ink);
}
html:root body.eq-auth-account:not(.logged-in) .woocommerce :is(form.login, form.register, form.lost_reset_password) .input-text:not(.dig_wc_countrycode) {
    border: 1px solid var(--eq-line) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--eq-ink) !important;
    font: inherit;
    font-size: 16px;
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    box-sizing: border-box;
}
html:root body.eq-auth-account:not(.logged-in) .woocommerce :is(form.login, form.register, form.lost_reset_password) :is(button.button, input[type="submit"], .dig_wc_log_otp) {
    color: #fff !important;
    background: var(--eq-brand) !important;
    border: 1px solid var(--eq-brand) !important;
    border-radius: 12px;
    font: inherit;
    font-weight: 600;
    padding: 12px 20px;
    min-height: 52px;
}
html:root body.eq-auth-account:not(.logged-in) .woocommerce :is(form.login, form.register, form.lost_reset_password) :is(a, label) { color: var(--eq-ink); }
html:root body.eq-auth-account:not(.logged-in) .woocommerce :is(form.login, form.register, form.lost_reset_password) :is(input, button, a):focus-visible { outline: 2px solid var(--eq-brand); outline-offset: 3px; }

/* Native WooCommerce account dashboard. Preserve all endpoints, notices and account actions. */
html:root body.eq-auth-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
    display: grid !important;
    grid-template-columns: minmax(200px, 248px) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    direction: rtl;
    margin: 16px 0 32px;
    width: 100%;
    min-width: 0;
    font-family: var(--eq-font);
    color: var(--eq-ink);
}
html:root body.eq-auth-account .woocommerce:has(> .woocommerce-MyAccount-navigation)::before,
html:root body.eq-auth-account .woocommerce:has(> .woocommerce-MyAccount-navigation)::after { content: none !important; }
html:root body.eq-auth-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-notices-wrapper {
    grid-column: 1 / -1;
    min-width: 0;
}
html:root body.eq-auth-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-notices-wrapper:empty { display: none; }
html:root body.eq-auth-account :is(.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content) {
    float: none !important;
    width: auto !important;
    min-width: 0;
    max-width: 100%;
    margin: 0 !important;
    padding: 24px;
    border: 1px solid #e8e5f2;
    border-radius: var(--eq-radius);
    background: #fff;
    color: var(--eq-ink);
    box-sizing: border-box;
    box-shadow: 0 10px 40px #2a1e8708;
    font-family: var(--eq-font);
    text-align: start;
}
html:root body.eq-auth-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
html:root body.eq-auth-account .woocommerce-MyAccount-navigation li {
    list-style: none !important;
    border: 0 !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
}
html:root body.eq-auth-account .woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 12px;
    background: transparent;
    color: #575269;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.8;
    text-decoration: none !important;
    box-sizing: border-box;
}
html:root body.eq-auth-account .woocommerce-MyAccount-navigation li a:hover {
    background: #f4f2fc;
    color: var(--eq-brand);
}
html:root body.eq-auth-account .woocommerce-MyAccount-navigation li.is-active a {
    background: var(--eq-brand);
    color: #fff;
}
html:root body.eq-auth-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout {
    margin-top: 20px !important;
    padding-top: 12px !important;
    border-top: 1px solid var(--eq-line) !important;
}
html:root body.eq-auth-account .woocommerce-MyAccount-content {
    padding: clamp(24px, 3vw, 36px);
    font-size: 16px;
    line-height: 2;
    overflow-wrap: anywhere;
}
html:root body.eq-auth-account .woocommerce-MyAccount-content p { margin: 0 0 18px; }
html:root body.eq-auth-account .woocommerce-MyAccount-content > p:last-child { margin-bottom: 0; }
html:root body.eq-auth-account .woocommerce-MyAccount-content :is(h2, h3, h4) {
    font-family: inherit;
    font-size: 22px;
    color: var(--eq-ink);
    line-height: 1.6;
    margin: 0 0 20px;
}
html:root body.eq-auth-account .woocommerce-MyAccount-content a:not(.button) { color: var(--eq-brand); text-underline-offset: 4px; }
html:root body.eq-auth-account .woocommerce-MyAccount-content :is(.button, button[type="submit"], input[type="submit"]) {
    background: var(--eq-brand) !important;
    color: #fff !important;
    border: 1px solid var(--eq-brand) !important;
    border-radius: 12px;
    font: inherit;
    font-weight: 500;
    min-height: 46px;
    padding: 10px 18px;
    line-height: 1.6;
    white-space: normal;
    text-decoration: none;
}
html:root body.eq-auth-account .woocommerce-MyAccount-content :is(input.input-text, select, textarea) {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--eq-line);
    border-radius: 12px;
    background: #fff;
    color: var(--eq-ink);
    font: inherit;
    box-sizing: border-box;
}
html:root body.eq-auth-account .woocommerce-MyAccount-content .form-row { margin-bottom: 18px; }
html:root body.eq-auth-account .woocommerce-MyAccount-content label { display: block; margin-bottom: 6px; }
html:root body.eq-auth-account .woocommerce-MyAccount-content fieldset { border: 1px solid var(--eq-line); border-radius: 14px; padding: 20px; margin: 24px 0; min-width: 0; }
html:root body.eq-auth-account .woocommerce-MyAccount-content legend { padding: 0 8px; font-size: 16px; }
html:root body.eq-auth-account .woocommerce-MyAccount-content table.shop_table {
    width: 100%;
    border: 1px solid var(--eq-line);
    border-radius: 12px;
    border-spacing: 0;
    font-size: 14px;
}
html:root body.eq-auth-account .woocommerce-MyAccount-content table.shop_table :is(th, td) { padding: 12px; border-color: var(--eq-line); }
html:root body.eq-auth-account .woocommerce-MyAccount-content table.shop_table th { background: var(--eq-background); }
html:root body.eq-auth-account .woocommerce-MyAccount-content address { font-style: normal; line-height: 2; }
html:root body.eq-auth-account :is(.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content) :is(a, button, input, textarea, select):focus-visible {
    outline: 2px solid #a69cd9;
    outline-offset: 3px;
}

/* [quartz_auth] entry card and [quartz_login] password form. */
html:root body.eq-auth-page main.site-main { max-width: 1140px; margin-inline: auto; padding: 32px 20px 48px; }
html:root .eq-auth-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    max-width: 1060px;
    margin: clamp(24px, 5vw, 64px) auto;
    border: 1px solid #e8e5f2;
    border-radius: var(--eq-radius);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 16px 60px #2a1e870a;
    text-align: right;
}
html:root .eq-auth-card__intro { background: var(--eq-background); padding: clamp(28px, 5vw, 56px); }
html:root .eq-auth-card__mark {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--eq-brand);
    color: #fff;
    font: italic 800 30px/1 Arial, sans-serif;
    margin-bottom: 22px;
}
html:root .eq-auth-card .eq-auth-card__eyebrow { color: var(--eq-brand); font-size: 14px; margin-bottom: 10px; }
html:root .eq-auth-card :is(h2, h3) { color: var(--eq-ink); font-family: inherit; line-height: 1.6; margin: 0 0 16px; }
html:root .eq-auth-card h2 { font-size: clamp(25px, 3vw, 32px); font-weight: 600; }
html:root .eq-auth-card h3 { font-size: 23px; font-weight: 600; }
html:root .eq-auth-card p { color: var(--eq-muted); font-size: 15px; line-height: 2; margin: 0 0 20px; }
html:root .eq-auth-card__action { padding: clamp(28px, 5vw, 56px); align-self: center; }
html:root .eq-auth-card .eq-auth-card__button {
    display: block;
    background: var(--eq-brand);
    color: #fff;
    border: 1px solid var(--eq-brand);
    border-radius: 12px;
    padding: 13px 20px;
    min-height: 52px;
    font: inherit;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}
html:root .eq-auth-card__button:hover { filter: brightness(.92); }
html:root .eq-auth-card a:focus-visible { outline: 3px solid #a69cd9; outline-offset: 4px; }
html:root .eq-auth-card .eq-auth-card__secondary { display: block; margin-top: 18px; font-size: 13px; text-align: center; color: var(--eq-muted); }

/* Core wp_login_form markup: no global wp-login or authentication overrides. */
html:root .eq-auth-password > div { min-width: 0; }
html:root .eq-auth-password form { margin: 0; padding: 0; border: 0; background: transparent; }
html:root .eq-auth-password form label {
    display: block;
    color: var(--eq-ink);
    font: inherit;
    font-size: 14px;
    margin-bottom: 8px;
}
html:root .eq-auth-password form :is(input[type="text"], input[type="password"]) {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 12px 16px;
    margin: 0;
    border: 1px solid var(--eq-line);
    border-radius: 12px;
    background: #fff;
    color: var(--eq-ink);
    font: inherit;
    font-size: 16px;
    line-height: 26px;
    direction: ltr;
    text-align: left;
    box-shadow: none;
}
html:root .eq-auth-password form input[type="submit"] {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 12px 20px;
    border: 1px solid var(--eq-brand);
    border-radius: 12px;
    background: var(--eq-brand);
    color: #fff;
    font: inherit;
    font-weight: 600;
    line-height: 26px;
    cursor: pointer;
    white-space: normal;
}
html:root .eq-auth-password form input:focus-visible {
    outline: 2px solid #a69cd9;
    outline-offset: 3px;
}
html:root .eq-auth-password form .login-remember label { display: flex; align-items: center; gap: 8px; }
html:root .eq-auth-password form input[type="checkbox"] { accent-color: var(--eq-brand); margin: 0; width: 18px; height: 18px; }
html:root .eq-auth-password__links { display: grid; gap: 14px; text-align: center; }
html:root .eq-auth-password__links a { color: var(--eq-brand); font: inherit; font-size: 14px; text-underline-offset: 4px; }
html:root .eq-auth-password__signup :is(a, button) {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--eq-line);
    border-radius: 12px;
    background: var(--eq-background);
    color: var(--eq-brand);
    font: inherit;
    font-size: 14px;
    text-decoration: none;
}

/* Student portal; only within the account content, never the global footer. */
html:root body.eq-auth-account .eq-portal-banner { margin: 0 0 28px; overflow: hidden; border-radius: 16px; }
html:root body.eq-auth-account .eq-portal-banner a { display: block; }
html:root body.eq-auth-account .eq-portal-banner__image { display: block; width: 100%; height: auto; max-width: 100%; }
html:root body.eq-auth-account .eq-portal-shortcuts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 28px; }
html:root body.eq-auth-account .eq-portal-shortcuts a { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f6f4fd; border-radius: 14px; padding: 18px 14px; text-decoration: none; font-size: 14px; }
html:root body.eq-auth-account .eq-portal-cards { display: grid; gap: 18px; }
html:root body.eq-auth-account .eq-portal-item { padding: 22px; border: 1px solid var(--eq-line); border-radius: 16px; background: #fff; min-width: 0; }
html:root body.eq-auth-account .eq-portal-item__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
html:root body.eq-auth-account .eq-portal-item__head h3 { font-size: 18px; margin: 0; }
html:root body.eq-auth-account .eq-portal-badge { font-size: 12px; color: var(--eq-brand); background: #f1eefb; border-radius: 100px; padding: 4px 12px; }
html:root body.eq-auth-account .eq-portal-muted { color: var(--eq-muted); font-size: 13px; }
html:root body.eq-auth-account .eq-portal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 14px; }
html:root body.eq-auth-account .eq-portal-actions form { margin: 0; }
html:root body.eq-auth-account .eq-portal-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 26px; }
html:root body.eq-auth-account .eq-portal-summary > div { display: flex; flex-direction: column; gap: 10px; padding: 16px 12px; border-radius: 14px; background: #f6f4fd; text-align: center; }
html:root body.eq-auth-account .eq-portal-summary > div > span { font-size: 12px; color: var(--eq-muted); }
html:root body.eq-auth-account .eq-portal-summary strong { font-size: 16px; color: var(--eq-brand); }
html:root body.eq-auth-account .eq-portal-table { width: 100%; overflow-x: auto; border: 1px solid var(--eq-line); border-radius: 12px; margin-bottom: 24px; }
html:root body.eq-auth-account .eq-portal-table table { border: 0; width: 100%; border-collapse: collapse; font-size: 13px; margin: 0; }
html:root body.eq-auth-account .eq-portal-table :is(th,td) { padding: 14px 10px; border: 0; border-bottom: 1px solid var(--eq-line); text-align: start; vertical-align: middle; min-width: 90px; }
html:root body.eq-auth-account .eq-portal-table th { background: var(--eq-background); font-weight: 500; }
html:root body.eq-auth-account .eq-portal-table td small { display: block; color: var(--eq-muted); white-space: nowrap; margin-top: 6px; }
html:root body.eq-auth-account .eq-portal-table .button { font-size: 13px; padding: 6px 12px; min-height: 36px; }
html:root body.eq-auth-account .eq-portal-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; font-size: 13px; }

@media (max-width: 800px) {
    html:root body.eq-auth-account .eq-portal-shortcuts { grid-template-columns: minmax(0,1fr); }
    html:root body.eq-auth-account .eq-portal-summary { grid-template-columns: minmax(0,1fr); }
    html:root body.eq-auth-account .eq-portal-summary > div { flex-direction: row; align-items: center; justify-content: space-between; text-align: start; }
    html:root body.eq-auth-account .eq-portal-item { padding: 18px 14px; }
    html:root body.digits_login_form { padding: 20px 14px !important; }
    html:root body.digits_login_form > .dig_bdy_container,
    html:root body.digits_login_form > .dig_bdy_container.dig_ul_divd {
        display: block !important;
        width: min(100%, 480px) !important;
        min-height: 0;
        margin: 2vh auto !important;
    }
    html:root body.digits_login_form > .dig_bdy_container > .dig_ul_left_side { display: none !important; }
    html:root body.digits_login_form > .dig_bdy_container > .dig_lrf_box { padding: 28px 22px !important; }
    html:root .digits_login_form #dig-ucr-container .digits_bx_cred_frm_container { padding: 32px 22px !important; }
    html:root .eq-auth-card { grid-template-columns: minmax(0, 1fr); }
    html:root .eq-auth-card__intro, html:root .eq-auth-card__action { padding: 28px; }
    html:root .eq-auth-card__mark { width: 52px; height: 52px; font-size: 25px; margin-bottom: 16px; }
    html:root body.eq-auth-account main.site-main { padding: 24px 16px 40px; }
    html:root body.eq-auth-account .woocommerce:has(> .woocommerce-MyAccount-navigation) { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-block: 8px 24px; }
    html:root body.eq-auth-account .woocommerce-MyAccount-navigation { padding: 10px; }
    html:root body.eq-auth-account .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: nowrap; gap: 6px; max-width: 100%; overflow-x: auto; padding: 4px !important; scrollbar-width: thin; }
    html:root body.eq-auth-account .woocommerce-MyAccount-navigation li { flex: 0 0 auto; margin: 0 !important; }
    html:root body.eq-auth-account .woocommerce-MyAccount-navigation li a { white-space: nowrap; }
    html:root body.eq-auth-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout { margin: 0 !important; padding: 0 !important; border: 0 !important; }
    html:root body.eq-auth-account .woocommerce-MyAccount-content { padding: 22px 18px; }
    html:root body.eq-auth-account .woocommerce-MyAccount-content table.shop_table { display: block; max-width: 100%; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
    html:root .digits_login_form :is(.button, .transupbutton, input),
    html:root .eq-auth-card a { transition: none !important; }
}

/* Dynamic header button, including Elementor and standard WP menus. */
html:root a.eq-account-button {
    --eq-button-brand: var(--eq-auth-brand, #2a1e87);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 20px !important;
    border: 1px solid var(--eq-button-brand) !important;
    border-radius: 13px !important;
    background: var(--eq-button-brand) !important;
    color: #fff !important;
    font-family: var(--e-global-typography-text-font-family, "IRANSansXFaNum"), Tahoma, sans-serif !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
    white-space: nowrap;
    text-decoration: none !important;
    box-shadow: none;
    transition: box-shadow .15s ease;
}
html:root a.eq-account-button:hover { box-shadow: 0 4px 14px #2a1e8726; }
html:root a.eq-account-button:focus-visible {
    outline: 3px solid #a69cd9 !important;
    outline-offset: 3px;
}
html:root a.eq-account-button--outline {
    color: var(--eq-button-brand) !important;
    background: transparent !important;
}
html:root a.eq-account-button--link {
    color: var(--eq-button-brand) !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none;
}
html:root .digits_login_form .eq-auth-error {
    margin: -8px 0 18px !important;
    padding: 0;
    color: #aa2020 !important;
    font-family: var(--eq-font) !important;
    font-size: 13px;
    line-height: 1.9;
    text-align: right;
    direction: rtl;
}
html:root body.digits_login_form .dig_verify_mobile_otp_container {
    height: auto !important;
    min-height: 300px;
    padding: 12px 0 !important;
}
html:root body.digits_login_form .dig_verify_mobile_otp {
    padding-top: 0 !important;
    width: 100%;
}
html:root .digits_login_form .dig_verify_code_msg { color: var(--eq-muted) !important; line-height: 1.9; }
html:root .digits_login_form .dig_verify_code_msg span { display: block; direction: ltr; unicode-bidi: isolate; }
html:root .digits_login_form .dig_login_cancel .eq-auth-restart {
    display: inline-block;
    margin-inline-start: 24px;
    color: var(--eq-brand) !important;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 4px;
}
html:root .digits_login_form .dig_verify_otp_submit_button:focus-visible {
    outline: 3px solid #a69cd9 !important;
    outline-offset: 3px;
}
@media (max-width: 540px) {
    html:root body.digits_login_form > .dig_bdy_container > .dig_lrf_box { padding: 30px 20px !important; }
    html:root .digits_login_form .dig_login_cancel { line-height: 2.5; }
    html:root a.eq-account-button { padding: 8px 15px !important; }
}
@media (prefers-reduced-motion: reduce) {
    html:root a.eq-account-button { transition: none; }
}
html:root a.eq-account-button { gap: 8px; vertical-align: middle; }
html:root .eq-phone-verify { padding: 20px; margin-block: 20px; border: 1px solid #dedcf1; border-radius: 18px; background: #f7f9ff; color: #242139; }
html:root .eq-phone-verify [hidden] { display: none !important; }
html:root .eq-phone-verify button { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 12px; background: var(--eq-auth-brand, #2a1e87); color: white; font: inherit; cursor: pointer; }
html:root .eq-phone-verify button:disabled { opacity: .6; cursor: wait; }
html:root .eq-phone-verify label { display: block; margin-block: 12px 6px; }
html:root .eq-phone-verify input { max-width: 180px; margin: 0 0 0 8px; padding: 10px; min-height: 44px; border: 1px solid #cfcae9; border-radius: 10px; font: inherit; }
html:root .eq-phone-verify :focus-visible { outline: 3px solid #9d93d8; outline-offset: 3px; }
html:root a.eq-account-button .eq-account-button__icon { width: 20px; height: 20px; flex: 0 0 20px; }
@media (max-width: 640px) {
    html:root a.eq-account-button.eq-account-button--mobile-icon {
        width: 44px !important; min-width: 44px; height: 44px; min-height: 44px;
        padding: 0 !important; gap: 0; border-radius: 14px !important;
    }
    html:root a.eq-account-button--mobile-icon .eq-account-button__label {
        position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
        overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
    }
}
