/* NDV · Đăng nhập / Đăng ký (trang Tài khoản và popup đăng nhập ở đầu trang). Thông tin khách hàng dùng chung kiểu ô nhập. */
.ndv-auth, .ndv-profile { --a-primary: var(--ndv-primary, #1d4ed8); --a-ink: #0f172a; --a-text: #334155; --a-muted: #64748b; --a-line: #e2e8f0; --a-bg: #f8fafc; color: var(--a-text); font-size: 15px; }
.ndv-auth { max-width: 560px; margin: 8px auto 32px; padding: 22px 24px; background: #fff; border: 1px solid var(--a-line); border-radius: 16px; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.07); }
.ndv-auth *, .ndv-profile * { box-sizing: border-box; }
.ndv-auth h2 { margin: 0 0 14px; color: var(--a-ink); font-size: 20px; font-weight: 800; text-transform: none; letter-spacing: 0; }
.ndv-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 18px; background: var(--a-bg); border: 1px solid var(--a-line); border-radius: 12px; }
.ndv-auth-tabs button { margin: 0; min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--a-muted); font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; cursor: pointer; }
.ndv-auth-tabs button.is-on { background: #fff; color: var(--a-primary); box-shadow: 0 1px 3px rgba(15,23,42,.1); }
.ndv-auth-pane[hidden] { display: none !important; }
.ndv-auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ndv-auth .ndv-f, .ndv-profile .ndv-f { display: grid; gap: 5px; align-content: start; margin: 0 0 12px; }
.ndv-f-wide { grid-column: 1 / -1; }
.ndv-auth label, .ndv-profile label { margin: 0; color: var(--a-ink); font-size: 13.5px; font-weight: 600; }
.ndv-auth .req, .ndv-profile .req { color: #dc2626; }
.ndv-auth .opt, .ndv-profile .opt { color: var(--a-muted); font-weight: 400; }
.ndv-auth small, .ndv-profile small { color: var(--a-muted); font-size: 12.5px; }
.ndv-auth input.input-text, .ndv-profile input.input-text { width: 100%; height: 44px; margin: 0; padding: 0 12px; border: 1px solid var(--a-line); border-radius: 10px; background: #fff; box-shadow: none; color: var(--a-ink); font-size: 15px; }
.ndv-auth input.input-text:focus, .ndv-profile input.input-text:focus { border-color: var(--a-primary); box-shadow: 0 0 0 3px rgba(var(--ndv-primary-rgb, 29, 78, 216), .12); outline: 0; }
.ndv-profile select.input-text { width: 100%; height: 44px; margin: 0; padding: 0 10px; border: 1px solid var(--a-line); border-radius: 10px; background: #fff; color: var(--a-ink); font-size: 15px; box-shadow: none; }
.ndv-profile input.input-text:disabled { background: var(--a-bg); color: var(--a-muted); }
.ndv-pw { position: relative; display: block; }
.ndv-pw input.input-text { padding-right: 44px; }
.ndv-pw-eye { position: absolute; top: 0; right: 0; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; opacity: .6; font-size: 16px; line-height: 44px; }
.ndv-pw-eye:hover { opacity: 1; }
.ndv-auth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 14px; }
.ndv-auth-row a, .ndv-auth-switch a, .ndv-terms a { color: var(--a-primary); font-weight: 600; }
.ndv-check { display: inline-flex; align-items: flex-start; gap: 8px; font-weight: 500 !important; }
.ndv-check input { margin: 3px 0 0; }
.ndv-terms { display: flex !important; margin: 6px 0 18px !important; line-height: 1.5; }
.ndv-auth-submit { display: block; width: 100%; min-height: 46px; margin: 0; border: 0; border-radius: 10px; background: var(--a-primary); color: #fff; font-size: 16px; font-weight: 700; text-transform: none; letter-spacing: 0; cursor: pointer; }
.ndv-auth-submit:hover { background: var(--ndv-primary-600, #1e40af); }
.ndv-auth-switch { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--a-muted); }
/* Thông tin khách hàng */
.ndv-pf-card { padding: 18px 20px; margin: 0 0 14px; background: #fff; border: 1px solid var(--a-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 16px rgba(15,23,42,.06); }
.ndv-pf-card h3 { margin: 0 0 14px; color: var(--a-ink); font-size: 17px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.ndv-vf-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin: 0 0 10px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.ndv-vf-row:last-child { margin-bottom: 0; }
.ndv-vf-row.is-warn { border-color: #fecaca; background: #fef2f2; }
.ndv-vf-row.is-info { border-color: #dbe4ff; background: #f5f8ff; }
.ndv-vf-ic { flex: 0 0 38px; display: inline-flex; align-items: center; justify-content: center; height: 38px; border-radius: 50%; background: #dcfce7; color: #15803d; font-weight: 700; font-size: 17px; }
.ndv-vf-row.is-warn .ndv-vf-ic { background: #fee2e2; color: #b91c1c; }
.ndv-vf-row.is-info .ndv-vf-ic { background: #e0e7ff; }
.ndv-vf-t { flex: 1; min-width: 0; }
.ndv-vf-t > b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--a-ink); font-size: 15px; }
.ndv-vf-t small b { color: var(--a-ink); }
.ndv-vf-t small { display: block; margin-top: 3px; color: #64748b; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.ndv-vf-t .ndv-kyc-tag { padding: 2px 9px; font-size: 12px; }
.ndv-vf-row form { margin: 0; }
.ndv-vf-row .ndv-btn { white-space: nowrap; }
@media (max-width: 560px) { .ndv-vf-row { flex-wrap: wrap; } .ndv-vf-row form, .ndv-vf-row > .ndv-btn { width: calc(100% - 52px); margin-left: 52px; } .ndv-vf-row form .ndv-btn, .ndv-vf-row > .ndv-btn { width: 100%; justify-content: center; } }
/* Popup đăng nhập của Flatsome */
.mfp-content .ndv-auth { margin: 0 auto; }
@media (max-width: 600px) {
	.ndv-auth { padding: 18px 16px; border-radius: 14px; }
	.ndv-auth-grid { grid-template-columns: 1fr; }
}
/* Nút trong form: màu xanh của khu tài khoản (không theo màu nút của theme). */
.ndv-auth .ndv-auth-submit, .ndv-auth button.ndv-auth-submit[type="submit"] { background: var(--a-primary) !important; border: 0 !important; color: #fff !important; box-shadow: none !important; text-shadow: none !important; }
.ndv-auth .ndv-auth-submit:hover { background: var(--ndv-primary-600, #1e40af) !important; }
/* Thanh đầu trang (Flatsome): chỉ một nút "Đăng nhập" (trang đăng nhập có sẵn thẻ Đăng ký). */
.header li.header-button-2, .header-top li.header-button-2 { display: none !important; }
.header li.account-item > a.nav-top-not-logged-in { display: inline-flex !important; align-items: center; height: 30px; padding: 0 14px 0 32px !important; position: relative; margin: 0 4px; border: 0 !important; border-radius: 999px; background-color: #fff !important; color: var(--ndv-primary, #1d4ed8) !important; font-size: 13px !important; font-weight: 700; text-transform: none !important; letter-spacing: 0 !important; line-height: 1; box-shadow: 0 1px 2px rgba(15,23,42,.15); text-decoration: none !important; transition: background .15s, transform .05s; }
.header li.account-item > a.nav-top-not-logged-in { padding-left: 32px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: 12px center !important; background-size: 15px 15px !important; }
/* Flatsome vẽ vạch gạch chân bằng ::before / ::after của link menu: tắt cho nút này (tránh biểu tượng nhảy khi di chuột / bấm giữ). */
.header li.account-item > a.nav-top-not-logged-in::before, .header li.account-item > a.nav-top-not-logged-in::after { content: none !important; display: none !important; }
.header li.account-item > a.nav-top-not-logged-in:hover { background-color: var(--ndv-primary-50, #eff4ff) !important; }
.header li.account-item > a.nav-top-not-logged-in:active { transform: translateY(1px); }
.header li.account-item > a.nav-top-not-logged-in i, .header li.account-item > a.nav-top-not-logged-in .icon-user { display: none; }
/* Header nền trắng (điện thoại / dính khi cuộn): nút xanh chữ trắng. */
.header-main li.account-item > a.nav-top-not-logged-in, .header-wrapper.stuck li.account-item > a.nav-top-not-logged-in { background-color: var(--ndv-primary, #1d4ed8) !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") !important; color: #fff !important; box-shadow: none; }

/* Quên mật khẩu / đặt mật khẩu mới */
.ndv-auth.ndv-auth-lost { max-width: 460px; margin: 36px auto 48px; padding: 30px 28px; text-align: center; }
.ndv-auth-lost form, .ndv-auth-lost .ndv-auth-tips { text-align: left; }
.ndv-auth-ic { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0 0 12px; border-radius: 16px; background: var(--ndv-primary-50, #eff4ff); font-size: 26px; line-height: 1; }
.ndv-auth-ic.is-ok { background: #ecfdf3; color: #16a34a; }
.ndv-auth-lost h2 { margin-bottom: 8px; font-size: 22px; }
.ndv-auth-lead { margin: 0 0 20px; color: var(--a-muted); font-size: 14.5px; line-height: 1.6; }
.ndv-auth-lead b { color: var(--a-ink); }
.ndv-auth-lost .ndv-auth-submit { margin-top: 4px; }
.ndv-auth-link { display: flex !important; align-items: center; justify-content: center; text-decoration: none !important; color: #fff !important; }
.ndv-auth-tips { margin: 0 0 20px; padding: 14px 16px 14px 34px; border: 1px solid var(--a-line); border-radius: 12px; background: var(--a-bg); color: var(--a-text); font-size: 14px; line-height: 1.6; }
.ndv-auth-tips li { margin: 0 0 4px; }
.ndv-auth-lost .ndv-auth-switch { margin: 16px 0 0; font-size: 14px; color: var(--a-muted); }
.ndv-auth-help { margin: 14px 0 0; padding-top: 14px; border-top: 1px dashed var(--a-line); color: var(--a-muted); font-size: 13px; }
.ndv-auth-help a { color: var(--a-primary); font-weight: 600; }
@media (max-width: 560px) { .ndv-auth.ndv-auth-lost { margin: 20px 12px 36px; padding: 24px 18px; } }
body.woocommerce-lost-password .woocommerce-error, body.woocommerce-lost-password .woocommerce-message, body.woocommerce-lost-password .woocommerce-info { max-width: 460px; margin: 28px auto -12px; padding: 12px 16px; border: 1px solid #fecaca; border-radius: 12px; background: #fef2f2; color: #991b1b; font-size: 14.5px; list-style: none; }
body.woocommerce-lost-password .woocommerce-message, body.woocommerce-lost-password .woocommerce-info { border-color: #bbf7d0; background: #ecfdf3; color: #166534; }
body.woocommerce-lost-password .woocommerce-error li, body.woocommerce-lost-password .message-container { margin: 0; padding: 0; }
body.woocommerce-lost-password .woocommerce-error::before { display: none; }
