/* =====================================================
   ANIMATED SVG LOGIN FORM
===================================================== */

/* SVG Scoping */
.custom-auth-wrapper .svgContainer {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 1em;
    border-radius: 50%;
    background: none;
    border: solid 2.5px #3A5E77;
    overflow: hidden;
    pointer-events: none;
}

.custom-auth-wrapper .svgContainer div {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
    padding-bottom: 100%;
}

.custom-auth-wrapper .svgContainer .mySVG {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible !important;
}

.custom-auth-wrapper .svgContainer .arms {
    clip-path: none !important;
}

.custom-auth-wrapper .svgContainer .armL,
.custom-auth-wrapper .svgContainer .armR {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Scoped Form Input Styling */
.custom-auth-wrapper .woocommerce-form-login .form-row,
.custom-auth-wrapper .woocommerce-form-register .form-row {
    position: relative;
    margin-bottom: 1.5em;
}

.custom-auth-wrapper .woocommerce-form-login input[type="text"],
.custom-auth-wrapper .woocommerce-form-login input[type="password"],
.custom-auth-wrapper .woocommerce-form-login input[type="email"],
.custom-auth-wrapper .woocommerce-form-register input[type="text"],
.custom-auth-wrapper .woocommerce-form-register input[type="password"],
.custom-auth-wrapper .woocommerce-form-register input[type="email"] {
    display: block;
    width: 100%;
    height: 50px !important;
    padding: 12px 1em 0;
    background-color: #FAF7F4 !important;
    border: solid 1.5px #D4CCC4 !important;
    border-radius: 6px !important;
    font-size: 1.1em !important;
    color: #353538 !important;
    font-weight: 600 !important;
    transition: box-shadow 0.2s linear, border-color 0.25s ease-out !important;
    box-sizing: border-box;
}

.custom-auth-wrapper .woocommerce-form-login input[type="text"]:focus,
.custom-auth-wrapper .woocommerce-form-login input[type="password"]:focus,
.custom-auth-wrapper .woocommerce-form-login input[type="email"]:focus,
.custom-auth-wrapper .woocommerce-form-register input[type="text"]:focus,
.custom-auth-wrapper .woocommerce-form-register input[type="password"]:focus,
.custom-auth-wrapper .woocommerce-form-register input[type="email"]:focus {
    outline: none !important;
    box-shadow: 0px 2px 10px rgba(224, 90, 43, 0.1) !important;
    border: solid 1.5px #E05A2B !important;
}

.custom-auth-wrapper .woocommerce-form-login label,
.custom-auth-wrapper .woocommerce-form-register label {
    display: block;
    margin-bottom: 12px;
    font-size: 1.1em;
    color: #1A1A1A;
    font-weight: 700;
}

.custom-auth-wrapper .woocommerce-form-login__rememberme {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.9em !important;
    font-weight: 400 !important;
    color: #555 !important;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.custom-auth-wrapper .woocommerce-form-login__rememberme input[type="checkbox"] {
    width: auto !important;
    height: auto !important;
    min-height: auto !important;
    padding: 0 !important;
    flex-shrink: 0;
    margin: 0 !important;
    cursor: pointer;
}

.custom-auth-wrapper .form-row .helper {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    transform: translate(1.4em, 2.6em) scale(1);
    transform-origin: 0 0;
    color: #5A5A5A;
    font-size: 1em;
    font-weight: 400;
    opacity: 0.65;
    pointer-events: none;
    transition: transform 0.2s ease-out, opacity 0.2s linear;
}

.custom-auth-wrapper .form-row.focusWithText .helper {
    transform: translate(1.4em, 1.8em) scale(0.65);
    opacity: 1;
}

/* Scoped Buttons */
#custom-login-wrapper .woocommerce-form-login button[type="submit"],
#custom-login-wrapper .woocommerce-form-register button[type="submit"] {
    /* Must beat .woocommerce-form-login.login button.woocommerce-form-login__submit (checkout page login, same classes) which caps max-width at 200px */
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 50px !important;
    background-color: #E05A2B !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 1.3em !important;
    color: #FFF !important;
    font-weight: 600 !important;
    text-align: center !important;
    transition: background-color 0.2s ease-out, transform 0.2s ease, box-shadow 0.2s ease !important;
    cursor: pointer;
}

.custom-auth-wrapper .woocommerce-form-login button[type="submit"]:hover,
.custom-auth-wrapper .woocommerce-form-register button[type="submit"]:hover {
    background-color: #C44A1E !important;
    box-shadow: 0 4px 14px rgba(224, 90, 43, 0.25) !important;
}

.custom-auth-wrapper .account-login-inner h3,
.custom-auth-wrapper .account-register-inner h3 {
    text-align: center;
    margin-bottom: 1em;
    color: #1A1A1A;
}

.custom-auth-wrapper .svgContainer .arms,
.custom-auth-wrapper .svgContainer .armL,
.custom-auth-wrapper .svgContainer .armR {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
}

@media (max-width: 768px) {
    .custom-auth-wrapper .svgContainer {
        width: 150px;
        height: 150px;
    }
    .custom-auth-wrapper .woocommerce-form-login input,
    .custom-auth-wrapper .woocommerce-form-register input,
    .custom-auth-wrapper .woocommerce-form-login button,
    .custom-auth-wrapper .woocommerce-form-register button {
        height: 55px !important;
        font-size: 1.1em !important;
    }
    #custom-login-wrapper .woocommerce-form-login button[type="submit"],
    #custom-login-wrapper .woocommerce-form-register button[type="submit"] {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
    }
}

.custom-auth-wrapper .svgContainer .tongue {
    display: none;
}

.custom-auth-wrapper .woocommerce-form-row {
    position: relative;
}

.custom-auth-wrapper .woocommerce-form-row label,
.custom-auth-wrapper .woocommerce-form-login.login label,
.custom-auth-wrapper .woocommerce-form-register label {
    /* Must beat the !important rule for .woocommerce-form-login.login label used on the checkout page login form (same classes) */
    display: none !important;
}

.custom-auth-wrapper .ntm-helper {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
    transition: all 0.3s ease;
    padding: 0 5px;
    background-color: transparent;
    z-index: 10;
}

.custom-auth-wrapper .woocommerce-Input:focus+.ntm-helper,
.custom-auth-wrapper .woocommerce-Input:valid+.ntm-helper,
.custom-auth-wrapper .focusWithText .ntm-helper {
    top: -12px;
    transform: translateY(0);
    font-size: 14px;
    background-color: #E05A2B;
    color: #fff;
    border-radius: 4px;
    padding: 2px 8px;
}

.custom-auth-wrapper .woocommerce-Input {
    background: transparent !important;
    z-index: 1;
    position: relative;
}

/* =====================================================
   SLIDING LOGIN / REGISTER FORM - REFINED
===================================================== */

.account-container.lightbox-inner:has(.custom-auth-wrapper) {
    padding: 0 !important;
    overflow: hidden;
    border-radius: 10px;
}

/* Bỏ nền trắng + min-height:100vh mà rule "Flatsome Mobile Sidebar Menu" (html body .off-canvas .mfp-content)
   vô tình áp lên popup đăng nhập vì dùng chung .mfp-content */
html body .off-canvas .mfp-content:has(.custom-auth-wrapper) {
    background-color: transparent !important;
    min-height: 0 !important;
}

/* ==========================================
   CUSTOM AUTH FORMS - SLIDING PANEL STYLE (Ported from Mende)
   ========================================== */

.custom-auth-wrapper {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    margin-top: 50px;
}

/* Scoped Auth Container & Child Elements to Isolate CSS */
.custom-auth-wrapper .auth-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
    position: relative;
    overflow: hidden;
    width: 960px;
    max-width: 100%;
    min-height: 800px;
}

/* Scoped Form Containers */
.custom-auth-wrapper .form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
    background-color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    width: 50%;
    overflow-y: auto;
}

.custom-auth-wrapper .auth-container .account-login-inner,
.custom-auth-wrapper .auth-container .account-register-inner {
    width: 100%;
    margin: auto;
    max-width: 400px;
    padding: 0;
}

.custom-auth-wrapper .sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.custom-auth-wrapper.right-panel-active .sign-in-container {
    transform: translateX(100%);
}

.custom-auth-wrapper .sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.custom-auth-wrapper.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

@keyframes show {
    0%,
    49.99% {
        opacity: 0;
        z-index: 1;
    }

    50%,
    100% {
        opacity: 1;
        z-index: 5;
    }
}

/* Scoped Overlay Container & Sliders */
.custom-auth-wrapper .overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
    pointer-events: none;
}

.custom-auth-wrapper .overlay-container * {
    pointer-events: auto;
}

.custom-auth-wrapper.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.custom-auth-wrapper .overlay {
    background: #E05A2B;
    background: linear-gradient(135deg, #E05A2B 0%, #C44A1E 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #FFFFFF;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.custom-auth-wrapper.right-panel-active .overlay {
    transform: translateX(50%);
}

.custom-auth-wrapper .overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.custom-auth-wrapper .overlay-panel h1 {
    color: #fff !important;
    margin-bottom: 0.5em;
    font-weight: bold;
    font-size: 2em;
    line-height: 1.2;
}

.custom-auth-wrapper .overlay-panel p {
    color: #fff !important;
    margin-bottom: 2em;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

.custom-auth-wrapper .overlay-panel button.ghost {
    border-radius: 6px;
    border: 1.5px solid #FFFFFF;
    background-color: transparent;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: bold;
    padding: 12px 35px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    cursor: pointer;
}

.custom-auth-wrapper .overlay-panel button.ghost:hover {
    background: #fff;
    color: #E05A2B;
}

.custom-auth-wrapper .overlay-left {
    left: 0;
    transform: translateX(-20%);
}

.custom-auth-wrapper.right-panel-active .overlay-left {
    left: 0;
    transform: translateX(0);
}

.custom-auth-wrapper .overlay-right {
    right: 0;
    transform: translateX(0);
}

.custom-auth-wrapper.right-panel-active .overlay-right {
    right: 0;
    transform: translateX(20%);
}

.custom-auth-wrapper .mobile-toggle-link {
    display: none;
    font-size: 14px;
    color: #666;
    margin: 10px 0;
    text-align: center;
}

.custom-auth-wrapper .mobile-toggle-link a {
    color: #E05A2B;
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
}

/* =====================================================
   MOBILE RESPONSIVE
===================================================== */
@media (max-width: 768px) {
    .custom-auth-wrapper {
        margin-top: 0;
        margin-bottom: 0;
        align-items: flex-start;
    }

    /* Auth container: bỏ giới hạn chiều cao, hiển thị full theo nội dung thật, không ép min-height/scroll riêng */
    .custom-auth-wrapper .auth-container {
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        box-shadow: none;
        border-radius: 0;
        overflow: visible !important;
    }

    /* Form containers: bỏ position absolute để nội dung đẩy chiều cao cha theo đúng chiều cao thật */
    .custom-auth-wrapper .form-container {
        position: relative !important;
        width: 100% !important;
        left: 0 !important;
        top: 0 !important;
        height: auto !important;
        transform: none !important;
        transition: opacity 0.2s ease !important;
        animation: none !important;
        display: block !important;
    }

    /* Xóa vertical centering (margin: auto trong flex) */
    .custom-auth-wrapper .auth-container .account-login-inner,
    .custom-auth-wrapper .auth-container .account-register-inner {
        margin: 0 auto !important;
        padding-top: 15px;
    }

    /* Sign-in: hiện mặc định */
    .custom-auth-wrapper .sign-in-container {
        display: block !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 2 !important;
        transform: none !important;
        animation: none !important;
    }

    /* Sign-up: ẩn mặc định (display:none để không chiếm chỗ, tránh đẩy trang dài ra) */
    .custom-auth-wrapper .sign-up-container {
        display: none !important;
        width: 100% !important;
        opacity: 0 !important;
        visibility: hidden !important;
        z-index: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    /* Khi right-panel-active: ẩn login, hiện register */
    .custom-auth-wrapper.right-panel-active .sign-in-container {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        z-index: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .custom-auth-wrapper.right-panel-active .sign-up-container {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 2 !important;
        transform: none !important;
        animation: none !important;
    }

    /* Ẩn overlay panel trên mobile */
    .custom-auth-wrapper .overlay-container,
    .custom-auth-wrapper .overlay,
    .custom-auth-wrapper .overlay-panel {
        display: none !important;
        visibility: hidden !important;
    }

    /* Hiện mobile toggle links */
    .custom-auth-wrapper .mobile-toggle-link {
        display: block;
        color: #333;
        margin: 8px 0 15px;
    }

    .custom-auth-wrapper .mobile-toggle-link a {
        color: #E05A2B;
        font-weight: bold;
    }

    .custom-auth-wrapper .mobile-toggle-link a:hover {
        color: #C44A1E !important;
    }

    /* Màu chữ bên trong form */
    .custom-auth-wrapper .auth-container form h3,
    .custom-auth-wrapper .auth-container form p,
    .custom-auth-wrapper .auth-container form label,
    .custom-auth-wrapper .auth-container form a {
        color: #333;
    }

    /* Thu nhỏ SVG */
    .custom-auth-wrapper .svgContainer {
        width: 140px;
        height: 140px;
    }
}

.custom-auth-wrapper .auth-container form h3,
.custom-auth-wrapper .woocommerce-privacy-policy-text {
    color: #E05A2B !important;
}

.custom-auth-wrapper .woocommerce-privacy-policy-text a {
    color: #E05A2B !important;
    text-decoration: underline;
}

/* Toast Notification Style for WooCommerce Messages */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 99999 !important;
    background-color: #fff !important;
    color: #333 !important;
    padding: 25px 35px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    text-align: center !important;
    max-width: 90% !important;
    width: auto !important;
    min-width: 300px;
    border: none !important;
    border-top: 5px solid #E05A2B !important;
    animation: toastPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 !important;
}

.woocommerce-error {
    border-top-color: #e74c3c !important;
}

.woocommerce-error li {
    list-style: none !important;
    margin: 0 !important;
    font-size: 16px;
    font-weight: 600;
}

.woocommerce-message li,
.woocommerce-info li {
    list-style: none !important;
}

@keyframes toastPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-form-login-toggle .woocommerce-info {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    background-color: var(--bg-surface, #FFFFFF) !important;
    color: var(--text-primary, #1A1A1A) !important;
    text-align: left !important;
    border: 1px solid var(--border-light, #EDE8E2) !important;
    border-left: 4px solid var(--accent-primary, #E05A2B) !important;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.05)) !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 20px 16px 50px !important;
    margin-bottom: 25px !important;
    border-radius: var(--radius-md, 8px) !important;
    display: block !important;
    animation: none !important;
    font-size: 15px !important;
    font-weight: 500 !important;
}

.woocommerce-form-coupon-toggle .woocommerce-info a,
.woocommerce-form-login-toggle .woocommerce-info a {
    color: var(--accent-primary, #E05A2B) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-bottom: 1px dashed var(--accent-primary, #E05A2B) !important;
    transition: all 0.2s ease !important;
}

.woocommerce-form-coupon-toggle .woocommerce-info a:hover,
.woocommerce-form-login-toggle .woocommerce-info a:hover {
    color: var(--accent-primary-dark, #C44A1E) !important;
    border-bottom-style: solid !important;
}

.woocommerce-form-coupon-toggle .woocommerce-info::before,
.woocommerce-form-login-toggle .woocommerce-info::before {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 18px !important;
    color: var(--accent-primary, #E05A2B) !important;
}

.woocommerce-form-coupon-toggle .woocommerce-info::before {
    content: "\f06b" !important;
    /* fa-gift */
}

.woocommerce-form-login-toggle .woocommerce-info::before {
    content: "\f007" !important;
    /* fa-user */
}

/* WooCommerce Login Form inside Checkout Page (Toggle Dropdown) */
.woocommerce-form-login.login {
    background-color: var(--bg-surface, #FFFFFF) !important;
    border: 1px solid var(--border-light, #EDE8E2) !important;
    border-radius: var(--radius-lg, 12px) !important;
    padding: 24px !important;
    margin: 15px 0 30px 0 !important;
    box-shadow: var(--shadow-md, 0 4px 6px rgba(0, 0, 0, 0.05)) !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce-form-login.login p {
    font-size: 15px !important;
    color: var(--text-secondary, #5A5A5A) !important;
    margin-bottom: 15px !important;
}

.woocommerce-form-login.login .form-row {
    margin-bottom: 20px !important;
    float: none !important;
    width: 100% !important;
}

.woocommerce-form-login.login label {
    display: block !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: var(--text-primary, #1A1A1A) !important;
    margin-bottom: 8px !important;
}

.woocommerce-form-login.login input.input-text {
    width: 100% !important;
    height: 46px !important;
    padding: 10px 15px !important;
    border: 1px solid var(--border-light, #EDE8E2) !important;
    border-radius: var(--radius-md, 8px) !important;
    background-color: var(--bg-base, #FAF7F4) !important;
    color: var(--text-primary, #1A1A1A) !important;
    font-size: 15px !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.woocommerce-form-login.login input.input-text:focus {
    outline: none !important;
    border-color: var(--accent-primary, #E05A2B) !important;
    box-shadow: 0 0 0 3px rgba(224, 90, 43, 0.1) !important;
    background-color: var(--bg-surface, #FFFFFF) !important;
}

/* Password input wrapper helper if present */
.woocommerce-form-login.login .password-input {
    display: block !important;
    position: relative !important;
    width: 100% !important;
}

.woocommerce-form-login.login .password-input input {
    padding-right: 45px !important;
}

.woocommerce-form-login.login .show-password-input {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    color: var(--text-muted, #9A9A9A) !important;
    padding: 0 !important;
}

.woocommerce-form-login.login .show-password-input::after {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    content: "\f06e" !important; /* eye icon */
}

/* Remember me checkbox container */
.woocommerce-form-login.login .woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    color: var(--text-secondary, #5A5A5A) !important;
    margin-bottom: 0 !important;
    cursor: pointer !important;
}

.woocommerce-form-login.login .woocommerce-form-login__rememberme input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    border: 1px solid var(--border-medium, #D4CCC4) !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

/* Submit button */
.woocommerce-form-login.login button.woocommerce-form-login__submit {
    display: block !important;
    width: 100% !important;
    max-width: 200px !important;
    height: 46px !important;
    background-color: var(--accent-primary, #E05A2B) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    border: none !important;
    border-radius: var(--radius-md, 8px) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-top: 15px !important;
}

.woocommerce-form-login.login button.woocommerce-form-login__submit:hover {
    background-color: var(--accent-primary-dark, #C44A1E) !important;
    box-shadow: var(--shadow-accent, 0 4px 14px rgba(224, 90, 43, 0.25)) !important;
}

/* Lost password link */
.woocommerce-form-login.login .lost_password {
    margin-top: 15px !important;
    margin-bottom: 0 !important;
}

.woocommerce-form-login.login .lost_password a {
    color: var(--accent-primary, #E05A2B) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    border-bottom: 1px dashed var(--accent-primary, #E05A2B) !important;
    transition: all 0.2s ease !important;
}

.woocommerce-form-login.login .lost_password a:hover {
    color: var(--accent-primary-dark, #C44A1E) !important;
    border-bottom-style: solid !important;
}


/* Google Login Button Styling Fallback */
.foxtool-google a {
    font-weight: bold;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 15px auto 20px !important;
    background: #f3f3f3 !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    text-align: center !important;
    text-decoration: none !important;
    color: #333 !important;
    max-width: 320px;
    border: 1px solid #ddd !important;
    transition: all 0.3s ease;
}
.foxtool-google a:hover {
    background: #e8e8e8 !important;
    opacity: 0.9 !important;
}
.foxtool-google a img {
    width: 24px !important;
    height: 24px !important;
    margin-right: 12px !important;
    vertical-align: middle;
}

/* Zalo Login Button Styling */
.foxtool-zalo a {
    font-weight: bold;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 10px auto 20px !important;
    background: #0068ff !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    text-align: center !important;
    text-decoration: none !important;
    color: #fff !important;
    max-width: 320px;
    border: 1px solid #0056d6 !important;
    transition: all 0.3s ease;
}
.foxtool-zalo a:hover {
    background: #0056d6 !important;
    opacity: 0.9 !important;
}
.foxtool-zalo a svg,
.foxtool-zalo a img {
    width: 24px !important;
    height: 24px !important;
    margin-right: 12px !important;
    vertical-align: middle;
}

/* Side-by-side Layout Wrapper */
.foxtool-social-wrapper {
    display: flex !important;
    flex-flow: row wrap !important;
    gap: 10px !important;
    justify-content: center !important;
    align-items: center !important;
    max-width: 320px !important;
    width: 100% !important;
    margin: 15px auto 20px !important;
}
.foxtool-social-wrapper .foxtool-google,
.foxtool-social-wrapper .foxtool-zalo {
    flex: 1 !important;
    margin: 0 !important;
}
.foxtool-social-wrapper .foxtool-google a,
.foxtool-social-wrapper .foxtool-zalo a {
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    font-size: 13px !important;
    padding: 10px 8px !important;
    gap: 6px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}
.foxtool-social-wrapper .foxtool-google a img,
.foxtool-social-wrapper .foxtool-zalo a svg,
.foxtool-social-wrapper .foxtool-zalo a img {
    margin-right: 0 !important;
}
.foxtool-social-wrapper > div:only-child {
    flex: none !important;
    width: 100% !important;
}
.foxtool-social-wrapper > div:only-child a {
    font-size: 14px !important;
    padding: 10px 20px !important;
}
.foxtool-social-wrapper > div:only-child a img,
.foxtool-social-wrapper > div:only-child a svg {
    margin-right: 12px !important;
}

/* Remove default white background and shadow around the lightbox container */
#login-form-popup,
.lightbox-inner,
.mfp-content,
.lightbox-inner.account-container,
.account-container.lightbox-inner {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

@media (min-width: 769px) {
    .mfp-content:has(.custom-auth-wrapper),
    .lightbox-inner:has(.custom-auth-wrapper),
    .lightbox-inner.account-container:has(.custom-auth-wrapper) {
        max-width: 960px !important;
        width: 960px !important;
    }
}

.woocommerce-account .page-wrapper,
.woocommerce-account .page-content,
.woocommerce-account .content-area {
    background: transparent !important;
    background-color: transparent !important;
}
