/* MK Account Compact v1.0 — guest account root only. WooCommerce forms and auth handlers unchanged. */
body.mk-account-compact {
  --mkac-ink:#23382b;
  --mkac-green:#3e6b24;
  --mkac-line:#dce6dd;
  --mkac-muted:#607164;
  background:#fff!important;
}
body.mk-account-compact #content {
  box-sizing:border-box!important;
  padding:12px 14px 40px!important;
}
body.mk-account-compact.mk-ui24-account #main .inside-article {
  box-sizing:border-box!important;
  width:min(850px,100%)!important;
  max-width:850px!important;
  margin:10px auto 30px!important;
  padding:clamp(16px,3vw,28px)!important;
  border:1px solid #e2e8e3!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:none!important;
}
body.mk-account-compact #main .entry-header {
  margin:0!important;
}
body.mk-account-compact #main .entry-title {
  margin:0 0 5px!important;
  color:var(--mkac-ink)!important;
  font-size:clamp(25px,3vw,32px)!important;
  font-weight:750!important;
  line-height:1.22!important;
}
body.mk-account-compact .mkac-intro {
  margin:0 0 17px!important;
  color:var(--mkac-muted)!important;
  font-size:14px!important;
  line-height:1.55!important;
}
body.mk-account-compact .mk-ui24-account-welcome,
body.mk-account-compact .mka-login-intro,
body.mk-account-compact .mkcd-prepared-guest,
body.mk-account-compact .mk-ui24-member-benefits {
  display:none!important;
}
body.mk-account-compact #main .woocommerce {
  min-width:0!important;
  max-width:100%!important;
  overflow:visible!important;
}
body.mk-account-compact #main .woocommerce-notices-wrapper:not(:empty),
body.mk-account-compact #main .woocommerce-error,
body.mk-account-compact #main .woocommerce-message {
  margin-bottom:12px!important;
}
/* Without JS, both native forms remain available. */
body.mk-account-compact #main #customer_login {
  display:block!important;
  float:none!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}
body.mk-account-compact #main #customer_login > .u-column1,
body.mk-account-compact #main #customer_login > .u-column2 {
  display:block!important;
  float:none!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  padding:0!important;
  margin:0 0 18px!important;
  clear:none!important;
}
body.mk-account-compact.mkac-enhanced #customer_login > [hidden] {
  display:none!important;
}
body.mk-account-compact #customer_login h2 {
  font-size:17px!important;
  font-weight:750!important;
  line-height:1.4!important;
  margin:0 0 10px!important;
  color:var(--mkac-ink)!important;
}
body.mk-account-compact #customer_login form.woocommerce-form {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  padding:18px!important;
  margin:0!important;
  background:#fff!important;
  border:1px solid var(--mkac-line)!important;
  border-radius:13px!important;
  box-shadow:none!important;
}
body.mk-account-compact #customer_login form.woocommerce-form :is(.form-row,.woocommerce-form-row) {
  min-width:0!important;
  margin:0 0 12px!important;
}
body.mk-account-compact #customer_login form.woocommerce-form label {
  color:var(--mkac-ink)!important;
  font-size:14px!important;
  line-height:1.5!important;
  font-weight:650!important;
}
body.mk-account-compact #customer_login form.woocommerce-form :is(input[type=text],input[type=email],input[type=password]) {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-height:48px!important;
  margin:6px 0 0!important;
  padding:9px 12px!important;
  border:1px solid #cddad1!important;
  border-radius:9px!important;
  background:#fff!important;
  color:var(--mkac-ink)!important;
  font-size:16px!important;
  line-height:1.45!important;
  box-shadow:none!important;
}
body.mk-account-compact #customer_login form.woocommerce-form :is(input,button,a):focus-visible {
  outline:2px solid var(--mkac-green)!important;
  outline-offset:2px!important;
}
body.mk-account-compact #customer_login form.woocommerce-form button[type=submit] {
  width:100%!important;
  min-height:48px!important;
  margin:6px 0 0!important;
  padding:11px 16px!important;
  border:0!important;
  border-radius:10px!important;
  background:var(--mkac-green)!important;
  color:#fff!important;
  font-family:inherit!important;
  font-size:16px!important;
  font-weight:750!important;
  line-height:1.4!important;
}
body.mk-account-compact #customer_login form.woocommerce-form p {
  margin-top:9px!important;
  margin-bottom:10px!important;
  color:var(--mkac-muted)!important;
  font-size:13px!important;
  line-height:1.6!important;
}
body.mk-account-compact #customer_login form.woocommerce-form a {
  color:#1e5d8e!important;
  text-decoration:underline!important;
  text-underline-offset:2px!important;
}
body.mk-account-compact #customer_login form.woocommerce-form input[type=checkbox] {
  width:19px!important;
  height:19px!important;
  vertical-align:middle;
  accent-color:var(--mkac-green);
}
body.mk-account-compact .mkac-shell {
  box-sizing:border-box;
  width:100%;
  min-width:0;
  margin:0 0 18px;
}
body.mk-account-compact .mkac-tabs {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:4px;
  margin:0 0 16px;
  padding:4px;
  border-radius:12px;
  background:#f1f5f1;
}
body.mk-account-compact .mkac-tab {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-width:0;
  min-height:43px;
  margin:0!important;
  padding:9px 12px!important;
  border:0!important;
  border-radius:9px!important;
  color:#5f7065!important;
  background:transparent!important;
  box-shadow:none!important;
  font-size:15px!important;
  line-height:1.35!important;
  font-weight:750!important;
  text-align:center;
  cursor:pointer;
}
body.mk-account-compact .mkac-tab[aria-selected=true] {
  color:var(--mkac-green)!important;
  background:#fff!important;
  box-shadow:0 1px 4px rgba(38,61,45,.09)!important;
}
body.mk-account-compact .mkac-tab:focus-visible {
  outline:2px solid #1e5d8e!important;
  outline-offset:2px!important;
}
body.mk-account-compact .mkac-social {
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px!important;
  width:100%;
  margin:0 0 11px!important;
}
body.mk-account-compact .mkac-social .mk-native-social {
  display:contents!important;
}
body.mk-account-compact .mkac-social a:is(.mk-native-login,.mk-social-login-zalo) {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:wrap!important;
  gap:5px!important;
  box-sizing:border-box!important;
  min-width:0!important;
  width:100%!important;
  height:auto!important;
  min-height:46px!important;
  padding:9px 6px!important;
  margin:0!important;
  border:1px solid var(--mkac-line)!important;
  border-radius:10px!important;
  background:#fff!important;
  color:var(--mkac-ink)!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.35!important;
  text-align:center!important;
  text-decoration:none!important;
  box-shadow:none!important;
}
body.mk-account-compact .mkac-social a:is(.mk-native-login,.mk-social-login-zalo):hover {
  border-color:#8ca78e!important;
  background:#f8faf7!important;
}
body.mk-account-compact .mkac-social .mk-social-login-icon {
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  flex:0 0 22px!important;
  width:22px!important;
  height:22px!important;
  border-radius:50%;
  background:#1672e8!important;
  color:#fff!important;
  font-weight:700!important;
}
body.mk-account-compact .mkac-social .mk-native-login__icon {
  flex:0 0 22px!important;
  font-size:18px!important;
  font-weight:750!important;
}
body.mk-account-compact .mkac-separator {
  position:relative;
  margin:0 0 14px!important;
  color:#738073!important;
  font-size:12px!important;
  line-height:1.5;
  text-align:center;
}
body.mk-account-compact .mkac-history {
  margin:13px 0 0;
  padding:11px 14px;
  border:1px solid var(--mkac-line);
  border-radius:10px;
  background:#fff;
}
body.mk-account-compact .mkac-history summary {
  cursor:pointer;
  color:#345a31;
  font-size:13px;
  font-weight:650;
  line-height:1.5;
}
body.mk-account-compact .mkac-history p {
  margin:9px 0 0!important;
  color:var(--mkac-muted)!important;
  font-size:13px!important;
  line-height:1.55!important;
}
body.mk-account-compact .mk-ui24-account-links {
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
  margin:18px 0 10px!important;
}
body.mk-account-compact .mk-ui24-account-links a {
  min-width:0;
  min-height:45px!important;
  padding:10px 12px!important;
  border:1px solid var(--mkac-line)!important;
  border-radius:10px!important;
  background:#fff!important;
  color:var(--mkac-ink)!important;
  font-size:13px!important;
  line-height:1.4!important;
}
body.mk-account-compact .mk-ui24-account-links a span {
  font-size:13px!important;
  line-height:1.4!important;
}
body.mk-account-compact .mk-ui24-account-links a:last-child:nth-child(odd) {
  grid-column:1/-1;
}
body.mk-account-compact .mk-floating-chat,
body.mk-account-compact #mkcc-root {
  display:none!important;
}
@media(max-width:767px){
  body.mk-account-compact #content {
    padding:10px 10px 36px!important;
  }
  body.mk-account-compact.mk-ui24-account #main .inside-article {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    margin:0 auto 24px!important;
    padding:17px 15px!important;
    border-radius:12px!important;
  }
  body.mk-account-compact #main .entry-title {
    font-size:27px!important;
  }
  body.mk-account-compact .mkac-intro {
    font-size:14px!important;
    margin-bottom:13px!important;
  }
  body.mk-account-compact .mkac-tabs {
    margin-bottom:12px;
  }
  body.mk-account-compact #customer_login form.woocommerce-form {
    padding:15px 13px!important;
  }
  body.mk-account-compact .mkac-social {
    gap:6px!important;
  }
  body.mk-account-compact .mkac-social a:is(.mk-native-login,.mk-social-login-zalo) {
    min-height:46px!important;
    font-size:12.5px!important;
    gap:4px!important;
    padding:8px 4px!important;
  }
  body.mk-account-compact .mk-ui24-account-links {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
  }
  body.mk-account-compact #customer_login > .u-column1,
  body.mk-account-compact #customer_login > .u-column2 {
    margin-bottom:12px!important;
  }
}
@media(max-width:350px) {
  body.mk-account-compact .mkac-social {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:4px!important;
  }
  body.mk-account-compact .mkac-social a:is(.mk-native-login,.mk-social-login-zalo) {
    font-size:12px!important;
    padding:7px 3px!important;
  }
}
/* Small support choices replace a second large marketing card. */
body.mk-account-compact .mka-help {
  box-sizing:border-box!important;
  margin:14px 0 0!important;
  padding:12px 0 0!important;
  border:0!important;
  border-top:1px solid var(--mkac-line)!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:none!important;
}
body.mk-account-compact .mka-help h2 {
  color:var(--mkac-ink)!important;
  font-size:15px!important;
  line-height:1.4!important;
  margin:0 0 9px!important;
}
body.mk-account-compact .mka-help>p {display:none!important}
body.mk-account-compact .mka-help .mka-link-row {display:flex!important;flex-wrap:wrap;gap:9px!important}
body.mk-account-compact .mka-help .mka-link-row a {
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:8px 11px!important;
  border:1px solid var(--mkac-line)!important;
  border-radius:9px!important;
  background:#fff!important;
  color:var(--mkac-green)!important;
  font-size:13px!important;
  font-weight:650!important;
  text-decoration:none!important;
}
body.mk-account-compact #customer_login input#password {padding-right:46px!important}

/* Three readable icon-over-label shortcuts on narrow phone screens. */
@media(max-width:767px) {
  body.mk-account-compact .mkac-social a:is(.mk-native-login,.mk-social-login-zalo) {
    flex-direction:column!important;
    flex-wrap:nowrap!important;
    gap:3px!important;
    min-height:62px!important;
    font-size:13px!important;
  }
  body.mk-v7.woocommerce-account.mk-account-compact #main .mkac-social a:is(.mk-native-login,.mk-social-login-zalo)>span:last-child {
    font-size:13px!important;
    line-height:1.35!important;
  }
}

/* Hidden tab panels must beat the earlier mobile/desktop display:block !important rules. */
body.mk-v7.mk-account-compact.mkac-enhanced #main #customer_login > .u-column1[hidden],
body.mk-v7.mk-account-compact.mkac-enhanced #main #customer_login > .u-column2[hidden] {
  display:none!important;
}
