@charset "UTF-8";
/* customer auth — color tokens map to theme :root in master-include */
:root {
  --customer-color-accent: var(--shop-color-main);
  --customer-color-accent-hover: var(--shop-color-hover);
  --customer-color-button: var(--shop-color-button);
  --customer-color-title: var(--shop-color-title);
  --customer-color-text: var(--shop-color-text);
  --customer-color-muted: var(--shop-color-text);
  --customer-color-border: var(--shop-color-border);
  --customer-color-bg: var(--shop-color-bg);
  --customer-color-on-accent: #fff;
  --customer-color-surface: #fff;
  --customer-color-dark: var(--shop-color-title);
  --customer-color-input-border: var(--shop-color-border);
  --customer-color-btn-light-bg: #eee;
  --customer-color-success: #28a745;
  --customer-color-error: #dc3545;
  --customer-color-social-facebook: #167ee6;
  --customer-color-social-google: #d93f21;
  --customer-color-social-apple: #000; }

.btn3 {
  font-size: 16px;
  color: var(--customer-color-accent);
  background: transparent;
  border: 1px solid var(--customer-color-accent);
  border-radius: 30px;
  padding: 15px 24px;
  display: inline-block;
  font-weight: 700;
  cursor: pointer; }

.btn3:hover {
  background: var(--customer-color-accent-hover);
  border-color: var(--customer-color-accent-hover);
  color: var(--customer-color-on-accent); }

.btn3.isYellow {
  background: var(--customer-color-button);
  color: var(--customer-color-on-accent);
  border-color: var(--customer-color-button); }

.btn3.isYellow:hover {
  background: var(--customer-color-accent-hover);
  border-color: var(--customer-color-accent-hover);
  color: var(--customer-color-on-accent); }

.layout-customer {
  display: flex;
  align-items: center;
  justify-content: center; }

.layout-customer .customer-inner {
  padding: 30px 0;
  width: 100%;
  max-width: 410px;
  margin: 0 auto; }

@media (max-width: 991px) {
  .layout-customer .customer-inner {
    padding: 50px 0; } }

.layout-customer .customer-inner .heading-layout-customer {
  font-size: 24px;
  line-height: 30px;
  color: var(--customer-color-title);
  text-align: center;
  font-weight: 700;
  margin-bottom: 25px; }

.layout-customer .customer-inner .item-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center; }

.layout-customer .customer-inner .item-form ~ .item-form, .reg-v2-name-row + div {
  margin-top: 15px; }

.layout-customer .customer-inner .item-form label {
  margin: 0 0 5px 0;
  width: 100%;
  color: var(--customer-color-muted);
  display: none;
  cursor: pointer; }

.layout-customer .customer-inner .item-form input:not([type="radio"]) {
  height: 47px;
  border: 1px solid var(--customer-color-input-border);
  padding: 12px 16px;
  color: var(--customer-color-title);
  width: 100%;
  outline: none;
  box-shadow: none;
  font-weight: 500;
  background: var(--customer-color-surface); }

.layout-customer .customer-inner .item-form input[type="submit"] {
  color: #fff; }

.layout-customer .customer-inner .item-form input:not([type="radio"])::placeholder {
  color: var(--customer-color-muted);
  font-weight: 500; }

.layout-customer .customer-inner .item-form button {
  width: 100%;
  text-align: center; }

.layout-customer .customer-inner .sitebox-recaptcha {
  margin: 5px 0 15px 0;
  color: var(--customer-color-muted); }

.layout-customer .customer-inner .item-form-action {
  margin-top: 15px;
  text-align: center;
  color: var(--customer-color-muted); }

.layout-customer .customer-inner .item-form-action a {
  font-size: 16px;
  line-height: 24px;
  color: var(--customer-color-accent);
  font-weight: 700; }

/* cvapp */
.cv-container {
  margin: 30px auto;
  max-width: 400px;
  border: 1px solid var(--customer-color-dark);
  background-color: var(--customer-color-surface); }

.cv-card-header {
  background-color: var(--customer-color-dark);
  color: var(--customer-color-on-accent);
  text-align: center;
  padding: 15px;
  font-size: 1.25em; }

.cv-input-group {
  margin: 15px 0px; }

.cv-form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--customer-color-input-border);
  background: var(--customer-color-surface);
  color: var(--customer-color-title); }

.cv-input-otp-code {
  font-size: 2em; }

.cv-btn {
  padding: 15px;
  background-color: var(--customer-color-dark);
  color: var(--customer-color-on-accent);
  border: none;
  cursor: pointer; }

.cv-btn.cv-btn-light {
  background-color: var(--customer-color-btn-light-bg);
  color: var(--customer-color-title); }

.cv-alert {
  overflow: auto;
  white-space: normal;
  word-wrap: break-word; }

.cv-alert .cv-info {
  color: var(--customer-color-success); }

.cv-alert .cv-error {
  color: var(--customer-color-error); }

.cv-text-center {
  text-align: center; }

.cv-m-t-md {
  margin-top: 15px; }

.cv-m-lg {
  margin: 30px; }

.social-login .or-login {
  text-align: center;
  margin: 20px 0;
  color: var(--customer-color-muted); }

.social-login .heading-social {
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0 0 5px 0;
  color: var(--customer-color-title); }

.social-login .btn-social-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-direction: column; }

.social-login .btn-social-login button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 40px;
  border: none;
  background: var(--customer-color-social-facebook);
  color: var(--customer-color-on-accent);
  cursor: pointer; }

.social-login .btn-social-login button#btn-google-login {
  background: var(--customer-color-social-google); }

.social-login .btn-social-login button .icon-btn {
  width: 24px;
  height: 24px;
  background: var(--customer-color-surface);
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px; }

.social-login .btn-social-login button .icon-btn svg {
  width: 15px;
  height: 15px; }

.social-login .btn-social-login #appleid-signin {
  border-radius: 40px;
  position: relative;
  overflow: hidden;
  height: 44px;
  width: 100%;
  background: var(--customer-color-social-apple); }

.social-login .btn-social-login #appleid-signin > div {
  max-width: none !important; }

.social-login .btn-social-login #appleid-signin svg {
  height: 44px; }

.link-login-phone {
  text-align: right;
  margin: 0 0 6px 0; }

.link-login-phone.text-center {
  text-align: center; }

.link-login-phone a,
.link-login-phone .cv-btn.btn-link {
  color: var(--customer-color-accent) !important;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none; }

.link-login-phone a:hover,
.link-login-phone .cv-btn.btn-link:hover {
  text-decoration: underline;
  color: var(--customer-color-accent-hover) !important; }

.layout-customer .d-none {
  display: none !important; }

.layout-customer .reg-v2-divider,
.layout-customer .login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 12px;
  color: var(--customer-color-muted);
  font-size: 14px; }

.layout-customer .reg-v2-divider::before,
.layout-customer .reg-v2-divider::after,
.layout-customer .login-divider::before,
.layout-customer .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--customer-color-border); }

.cv-card-header-new {
  margin: 0 0 4px 0;
  font-weight: 700;
  color: var(--customer-color-title); }

.cv-btn.btn-link {
  border: none !important;
  background: none !important;
  color: var(--customer-color-title) !important;
  padding: 0 !important;
  margin: 4px 0 0 0;
  height: auto !important;
  width: auto !important; }

.cv-resend {
  text-decoration: underline;
  margin: 0;
  cursor: pointer;
  color: var(--customer-color-accent); }

.item-form-resend {
  gap: 5px; }

.item-form-password {
  position: relative; }

.item-form-password input[type="text"] ~ .eye-toggle svg:nth-child(1) {
  display: none; }

.item-form-password input[type="text"] ~ .eye-toggle svg:nth-child(2) {
  display: block; }

.item-form-password .eye-toggle {
  width: 45px;
  height: 35px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer; }

.item-form-password .eye-toggle svg {
  width: 20px;
  height: 20px; }

.item-form-password .eye-toggle svg:nth-child(2) {
  display: none; }

.group-confirm-type {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 12px;
  color: var(--customer-color-text); }

.group-confirm-type .item-type {
  display: flex;
  align-items: center;
  gap: 4px; }

.group-confirm-type .item-type label {
  cursor: pointer;
  margin-bottom: 0; }

.group-confirm-wrap {
  margin: 0 0 10px 0; }

.group-confirm-wrap .head-confirm {
  font-size: 12px;
  margin-bottom: 8px;
  color: var(--customer-color-muted); }

.login-method {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 18px; }

.login-tab {
  flex: 1;
  height: 48px;
  background: #fff;
  border: 0;
  font-size: 15px;
  color: #666;
  cursor: pointer;
  transition: .2s; }

.login-tab i {
  margin-right: 8px; }

.login-tab.active {
  color: #d6001c;
  font-weight: 600;
  border-bottom: 3px solid #d6001c; }

/* OTP 6 ô — bước 2 đăng ký */
.cv-otp-inputs {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: center; }

.cv-otp-digit {
  width: 44px;
  height: 47px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  border: 1px solid var(--customer-color-input-border);
  padding: 0;
  color: var(--customer-color-title);
  background: var(--customer-color-surface);
  outline: none;
  box-shadow: none; }

.cv-otp-digit:focus {
  border-color: var(--customer-color-accent); }

.cv-resend--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: none; }

.cv-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed; }

/* Giới tính — bước 3 (override .item-form label { display: none }) */
.item-form-gender {
  width: 100%; }

.item-form-gender .group-confirm-type {
  width: 100%; }

.item-form-gender .group-confirm-type label {
  display: inline !important;
  width: auto;
  margin: 0;
  color: var(--customer-color-title);
  font-size: 14px; }

/* Input date — datepicker native */
.cv-input-date {
  cursor: pointer; }

.cv-input-date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6; }

.cv-field-hint {
  margin: 0 0 4px 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--customer-color-muted); }

.layout-customer .customer-inner .cv-alert {
  width: 100%;
  margin-top: 4px; }

.item-form input:disabled {
  background: var(--customer-color-btn-light-bg);
  color: var(--customer-color-muted);
  cursor: not-allowed; }

/* Popup OTP xác thực SĐT (sau đăng ký email) */
.cv-pv-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45); }

body.cv-pv-open {
  overflow: hidden; }

.cv-pv-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--customer-color-surface, #fff);
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  text-align: center; }

.cv-pv-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--customer-color-muted, #888);
  cursor: pointer;
  padding: 4px 8px; }

.cv-pv-shield {
  margin: 0 auto 12px; }

.cv-pv-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--customer-color-title, #222); }

.cv-pv-desc {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
  color: var(--customer-color-muted, #666); }

.cv-pv-otp-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--customer-color-title, #222); }

.cv-pv-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0 8px;
  font-size: 13px; }

.cv-pv-timer {
  color: var(--customer-color-muted, #666); }

#cv_pv_resend {
  border: 0;
  background: transparent;
  color: var(--customer-color-accent, #e31e24);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-size: 13px; }

.cv-pv-submit {
  width: 100%;
  margin-top: 12px; }

.cv-pv-modal .cv-alert {
  margin: 8px 0;
  font-size: 13px;
  text-align: center; }

.cv-pv-modal .cv-alert .cv-info {
  color: var(--customer-color-success, #28a745); }

.cv-pv-modal .cv-alert .cv-error {
  color: var(--customer-color-error, #dc3545); }

/* Thông báo sync profile trên /account */
.cv-account-sync-notice {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  background: #f0f7ff;
  color: #1a5fb4; }

.cv-account-sync-notice--success {
  background: #edf7ed;
  color: #28a745; }

.cv-account-sync-notice--error {
  background: #fdecea;
  color: #dc3545; }
