@charset "UTF-8";
/* MK Quick Cart + Checkout Contact v1.0 (2026-11-05)
   Only presentation changes; no Woo cart, account, shipping, tax, checkout hooks. */

/* Woo AJAX appends an extra 'View cart' anchor immediately after the 44px cart icon.
   That anchor is squeezed inside the fixed-width action wrapper and clipped on mobile.
   Use the existing accessible add-to-cart toast + header cart link instead. */
body.mk-v7 :is(.mkh-product,.mkx-card,.mk2-product,.mkc-card)
  :is(.mkh-product-action,.mkc-footer,.mkx-card-bottom,.mk2-product-action) a.added_to_cart.wc-forward,
body.mk-v7 :is(.mkh-product,.mkx-card,.mk2-product,.mkc-card)
  > a.added_to_cart.wc-forward {
  display:none!important;
}

/* Cover dynamically enhanced cards even when Woo inserts its link outside the action wrapper. */
body.mk-v7 .mkc-card a.added_to_cart.wc-forward {display:none!important;}

/* The floating success toast remains the single visible 'Xem giỏ hàng' CTA.
   It must never be cropped by the in-app browser viewport. */
body.mk-v7 #mk-cart-added-toast {
  box-sizing:border-box!important;
  max-width:calc(100vw - 24px)!important;
}
body.mk-v7 #mk-cart-added-toast a {
  box-sizing:border-box!important;
  min-width:118px!important;
  flex:0 0 auto!important;
  white-space:nowrap!important;
  font-size:14px!important;
  text-align:center!important;
}
body.mk-v7 #mk-cart-added-toast .mk-cart-toast-message {
  min-width:0!important;
  overflow-wrap:anywhere!important;
}
@media(max-width:600px) {
  body.mk-v7 #mk-cart-added-toast {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:8px!important;
    padding:10px 11px!important;
    bottom:calc(16px + env(safe-area-inset-bottom,0px))!important;
    font-size:13px!important;
    line-height:1.45!important;
  }
  body.mk-v7 #mk-cart-added-toast a {
    min-height:44px!important;
    min-width:116px!important;
    padding:9px 10px!important;
    font-size:13px!important;
  }
}

/* Compact the optional account/contact section without hiding the email field.
   Guest checkout remains possible; 'Tạo tài khoản' is still an explicit choice. */
body.mk-v7.woocommerce-checkout.mk-checkout-compact #contact-fields {
  box-sizing:border-box!important;
  min-width:0!important;
  margin:0 0 9px!important;
  padding:11px 13px!important;
  border-radius:12px!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  #contact-fields .wc-block-components-checkout-step__heading {
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-wrap:wrap!important;
  gap:5px 10px!important;
  min-width:0!important;
  margin:0 0 7px!important;
  padding:0!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  #contact-fields .wc-block-components-checkout-step__title {
  font-size:17px!important;
  line-height:1.35!important;
  margin:0!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  #contact-fields .wc-block-checkout__login-prompt {
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:auto!important;
  max-width:100%!important;
  min-height:30px!important;
  margin:0!important;
  padding:2px 0!important;
  font-size:0!important;
  color:#3d6b23!important;
  text-decoration:underline!important;
  text-underline-offset:3px!important;
  white-space:normal!important;
  text-align:left!important;
  line-height:1.45!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  #contact-fields .wc-block-checkout__login-prompt::after {
  content:"Đăng nhập / Tạo tài khoản để theo dõi đơn hàng";
  display:inline!important;
  font-size:14px!important;
  line-height:1.45!important;
  font-weight:700!important;
  color:#3d6b23!important;
  white-space:normal!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  #contact-fields .wc-block-components-checkout-step__description,
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  #contact-fields #wc-guest-checkout-notice {
  display:none!important; /* Redundant with 'Đặt hàng không cần đăng nhập' above */
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  #contact-fields :is(.wc-block-components-checkout-step__content,.wc-block-checkout__contact-fields) {
  box-sizing:border-box!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  #contact-fields .wc-block-components-text-input {
  min-width:0!important;
  margin:0 0 5px!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  #contact-fields .wc-block-components-text-input input {
  box-sizing:border-box!important;
  width:100%!important;
  min-height:48px!important;
  height:48px!important;
  margin:0!important;
  padding-inline:12px!important;
  border-radius:9px!important;
  font-size:16px!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  #contact-fields .wc-block-components-text-input label {
  font-size:14px!important;
  line-height:1.4!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  #contact-fields .wc-block-checkout__create-account {
  min-width:0!important;
  margin:5px 0 0!important;
  padding:7px 9px!important;
  border-radius:9px!important;
  background:#f7f9f7!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  #contact-fields .wc-block-checkout__create-account :is(.wc-block-components-checkbox,.wc-block-components-checkbox__label) {
  min-width:0!important;
  margin:0!important;
  font-size:14px!important;
  line-height:1.45!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  #contact-fields .wc-block-components-checkbox__input {
  width:19px!important;
  height:19px!important;
  min-width:19px!important;
  margin:0 8px 0 0!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  #contact-fields .wc-block-components-checkout-step__container {
  margin:0!important;
  padding:0!important;
}
@media(max-width:767px){
  body.mk-v7.woocommerce-checkout.mk-checkout-compact #contact-fields {
    padding:10px 12px!important;
    margin-bottom:9px!important;
  }
  body.mk-v7.woocommerce-checkout.mk-checkout-compact
    #contact-fields .wc-block-components-checkout-step__heading {
    display:block!important;
    margin-bottom:7px!important;
  }
  body.mk-v7.woocommerce-checkout.mk-checkout-compact:not(.logged-in)
    #contact-fields .wc-block-components-checkout-step__title {
    /* Visually hidden, but kept available to assistive technologies. */
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    clip-path:inset(50%)!important;
    white-space:nowrap!important;
    border:0!important;
  }
  body.mk-v7.woocommerce-checkout.mk-checkout-compact
    #contact-fields .wc-block-checkout__login-prompt {
    display:flex!important;
    min-height:34px!important;
    margin:0!important;
    padding:0!important;
  }
  body.mk-v7.woocommerce-checkout.mk-checkout-compact
    #contact-fields .wc-block-checkout__login-prompt::after {
    font-size:14px!important;
  }
  body.mk-v7.woocommerce-checkout.mk-checkout-compact
    #contact-fields .wc-block-checkout__create-account {
    margin-top:6px!important;
    padding:6px 9px!important;
  }
}
/* END MK quick-cart and compact checkout contact v1.0 */

/* MK Checkout checkbox repair v1.1, 2026-11-05.
   Woo Blocks validated checkbox uses a grid; create-account row was squeezed
   into a narrow grid track on mobile. Restore natural horizontal flow. */
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  #contact-fields .wc-block-checkout__create-account {
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  padding:10px 12px!important;
  margin:7px 0 0!important;
  overflow:visible!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  #contact-fields .wc-block-checkout__create-account .wc-block-components-checkbox {
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:auto!important;
  line-height:1.5!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  #contact-fields .wc-block-checkout__create-account .wc-block-components-checkbox label {
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  grid-template-columns:none!important;
  gap:10px!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:auto!important;
  min-height:36px!important;
  padding:0!important;
  margin:0!important;
  line-height:1.45!important;
  text-align:left!important;
  writing-mode:horizontal-tb!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  #contact-fields .wc-block-checkout__create-account .wc-block-components-checkbox label
  > input[type=checkbox] {
  flex:0 0 21px!important;
  box-sizing:border-box!important;
  width:21px!important;
  min-width:21px!important;
  height:21px!important;
  margin:0!important;
  padding:0!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  #contact-fields .wc-block-checkout__create-account .wc-block-components-checkbox label
  > .wc-block-components-checkbox__mark {
  flex:none!important;
  position:absolute!important;
  pointer-events:none!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  #contact-fields .wc-block-checkout__create-account .wc-block-components-checkbox label
  > .wc-block-components-checkbox__label,
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  #contact-fields .wc-block-checkout__create-account .wc-block-components-checkbox label
  > span:not(.wc-block-components-checkbox__mark) {
  box-sizing:border-box!important;
  display:block!important;
  flex:1 1 auto!important;
  align-self:center!important;
  grid-column:auto!important;
  width:auto!important;
  inline-size:auto!important;
  min-width:0!important;
  min-inline-size:0!important;
  max-width:none!important;
  max-inline-size:none!important;
  padding:0!important;
  margin:0!important;
  color:#263c2e!important;
  font-size:15px!important;
  line-height:1.5!important;
  font-weight:550!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  writing-mode:horizontal-tb!important;
}
@media(max-width:767px) {
  body.mk-v7.woocommerce-checkout.mk-checkout-compact
    #contact-fields .wc-block-checkout__create-account {
    padding:8px 10px!important;
  }
  body.mk-v7.woocommerce-checkout.mk-checkout-compact
    #contact-fields .wc-block-checkout__create-account .wc-block-components-checkbox label {
    min-height:40px!important;
  }
}
/* END MK checkout checkbox repair v1.1 */

/* MK Checkout checkbox v1.2: direct Woo Blocks validated checkbox case.
   The "wc-block-checkout__create-account" AND "wc-block-components-checkbox"
   classes may be ON THE SAME element; target its label directly. */
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  #contact-fields .wc-block-checkout__create-account label {
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  grid-template-columns:none!important;
  grid-auto-columns:auto!important;
  box-sizing:border-box!important;
  position:relative!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:40px!important;
  height:auto!important;
  padding:0!important;
  margin:0!important;
  gap:10px!important;
  text-align:left!important;
  line-height:1.5!important;
  writing-mode:horizontal-tb!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  #contact-fields .wc-block-checkout__create-account label > input[type="checkbox"] {
  flex:0 0 21px!important;
  width:21px!important;
  min-width:21px!important;
  max-width:21px!important;
  height:21px!important;
  padding:0!important;
  margin:0!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  #contact-fields .wc-block-checkout__create-account label
    > :is(.wc-block-components-checkbox__label,span:last-child) {
  display:block!important;
  box-sizing:border-box!important;
  flex:1 1 auto!important;
  grid-column:auto!important;
  width:auto!important;
  inline-size:auto!important;
  min-width:0!important;
  max-width:none!important;
  min-inline-size:0!important;
  max-inline-size:none!important;
  margin:0!important;
  padding:0!important;
  font-size:15px!important;
  font-weight:600!important;
  line-height:1.5!important;
  text-align:left!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  writing-mode:horizontal-tb!important;
}
/* END MK checkout checkbox v1.2 */

/* MK Checkout legacy address notice/action UI v1.3 — visual only */
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  .wc-block-components-address-card__edit {
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  min-width:74px!important;
  min-height:38px!important;
  padding:7px 11px!important;
  margin:0 0 0 10px!important;
  border:1px solid #d7e3d1!important;
  border-radius:9px!important;
  background:#f7faf5!important;
  color:#315e28!important;
  font-size:14px!important;
  font-weight:700!important;
  line-height:1.4!important;
  white-space:nowrap!important;
  text-decoration:none!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  .wc-block-components-address-card__edit:hover,
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  .wc-block-components-address-card__edit:focus-visible {
  border-color:#608648!important;
  outline:2px solid #608648!important;
  outline-offset:2px!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  .wc-block-components-notice-banner.is-error {
  box-sizing:border-box!important;
  position:relative!important;
  width:100%!important;
  min-width:0!important;
  padding:12px 46px 12px 13px!important;
  border-radius:10px!important;
  font-size:14px!important;
  line-height:1.55!important;
  overflow-wrap:break-word!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
  .wc-block-components-notice-banner.is-error .wc-block-components-notice-banner__dismiss {
  box-sizing:border-box!important;
  position:absolute!important;
  right:8px!important;
  top:8px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:34px!important;
  width:34px!important;
  min-height:34px!important;
  height:34px!important;
  padding:4px!important;
  margin:0!important;
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  color:#8a3d39!important;
  box-shadow:none!important;
}
/* END MK checkout legacy address UI v1.3 */
/* MK Pancake commune select: keep label OUTSIDE native select (2026-11-05).
 * Scope to the Woo checkout field that has the real MKPC native select.
 * Presentation only. No address IDs, zone matching, or calculation changes. */
body.mk-v7.woocommerce-checkout
  .wc-block-components-address-form .wc-block-components-text-input.mkpc-geo-control:has(select.mkpc-commune-native-select) {
  display:flex!important;
  flex-flow:column nowrap!important;
  align-items:stretch!important;
  box-sizing:border-box!important;
  gap:5px!important;
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  overflow:visible!important;
  padding:0!important;
  margin:0!important;
}
body.mk-v7.woocommerce-checkout
  .wc-block-components-text-input.mkpc-geo-control:has(select.mkpc-commune-native-select) label,
body.mk-v7.woocommerce-checkout
  .wc-block-components-text-input.mkpc-geo-control:has(select.mkpc-commune-native-select) .wc-block-components-text-input__label {
  box-sizing:border-box!important;
  display:block!important;
  position:static!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  order:0!important;
  flex:0 0 auto!important;
  transform:none!important;
  transition:none!important;
  float:none!important;
  clear:both!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  min-height:20px!important;
  padding:0 0 1px!important;
  margin:0!important;
  color:#52645a!important;
  font-family:inherit!important;
  font-size:14px!important;
  font-weight:600!important;
  line-height:1.5!important;
  text-align:left!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  pointer-events:auto!important;
}
body.mk-v7.woocommerce-checkout
  .wc-block-components-text-input.mkpc-geo-control:has(select.mkpc-commune-native-select) select.mkpc-commune-native-select {
  display:block!important;
  position:relative!important;
  order:1!important;
  flex:0 0 auto!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:52px!important;
  height:52px!important;
  padding:11px 40px 11px 13px!important;
  margin:0!important;
  border:1px solid #cbd8cd!important;
  border-radius:10px!important;
  background-color:#fff!important;
  color:#263c2d!important;
  font-size:16px!important;
  font-weight:500!important;
  line-height:1.45!important;
  text-align:left!important;
  text-indent:0!important;
  white-space:nowrap!important;
  appearance:auto!important;
  -webkit-appearance:menulist!important;
}
body.mk-v7.woocommerce-checkout
  .wc-block-components-text-input.mkpc-geo-control:has(select.mkpc-commune-native-select) input[data-mkpc-geo="commune"] {
  display:none!important;
}
body.mk-v7.woocommerce-checkout
  .wc-block-components-text-input.mkpc-geo-control:has(select.mkpc-commune-native-select) .mkpc-geo-retry:not([hidden]) {
  display:inline-flex!important;
  order:2!important;
  align-self:flex-start!important;
  min-height:44px!important;
  margin-top:5px!important;
}
body.mk-v7.woocommerce-checkout
  .wc-block-components-text-input.mkpc-geo-control:has(select.mkpc-commune-native-select) select.mkpc-commune-native-select:focus-visible {
  outline:2px solid #3d6b23!important;
  outline-offset:2px!important;
}
@media(max-width:767px) {
  body.mk-v7.woocommerce-checkout
    .wc-block-components-text-input.mkpc-geo-control:has(select.mkpc-commune-native-select) select.mkpc-commune-native-select {
    min-height:52px!important;
    height:52px!important;
  }
}
/* END MK Pancake commune label layout 2026-11-05 */
/* MK Checkout Unified Fields v1 — 2026-11-05.
   Display-only. Do not replace Woo inputs, select controls, React state,
   Pancake province/commune IDs, validations, shipping rates or tax calculations. */
body.mk-v7.woocommerce-checkout.mk-checkout-compact {
  --mkuf-border:#cfd8c8;
  --mkuf-border-focus:#4d7c34;
  --mkuf-ink:#24352b;
  --mkuf-label:#566457;
  --mkuf-height:56px;
  --mkuf-radius:12px;
  --mkuf-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23364639' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* All Woo standard address inputs: label is a normal line ABOVE the control.
   Input is before label in DOM, hence flex order fixes visual order only. */
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-address-form .wc-block-components-text-input:not(.mkpc-geo-control),
body.mk-v7.woocommerce-checkout.mk-checkout-compact
#contact-fields .wc-block-components-text-input {
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
  height:auto!important;
  gap:6px!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  position:relative!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-address-form .wc-block-components-text-input:not(.mkpc-geo-control) > label,
body.mk-v7.woocommerce-checkout.mk-checkout-compact
#contact-fields .wc-block-components-text-input > label {
  box-sizing:border-box!important;
  display:block!important;
  position:static!important;
  inset:auto!important;
  top:auto!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  order:0!important;
  flex:0 0 auto!important;
  width:auto!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:20px!important;
  height:auto!important;
  padding:0!important;
  margin:0!important;
  color:var(--mkuf-label)!important;
  font-size:14px!important;
  font-weight:600!important;
  line-height:1.5!important;
  letter-spacing:0!important;
  transform:none!important;
  translate:none!important;
  text-align:left!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  pointer-events:auto!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-address-form .wc-block-components-text-input:not(.mkpc-geo-control) > input:not([type=checkbox]),
body.mk-v7.woocommerce-checkout.mk-checkout-compact
#contact-fields .wc-block-components-text-input > input:not([type=checkbox]) {
  box-sizing:border-box!important;
  display:block!important;
  position:relative!important;
  order:1!important;
  flex:0 0 auto!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:var(--mkuf-height)!important;
  height:var(--mkuf-height)!important;
  padding:12px 15px!important;
  margin:0!important;
  border:1px solid var(--mkuf-border)!important;
  border-radius:var(--mkuf-radius)!important;
  background-color:#fff!important;
  color:var(--mkuf-ink)!important;
  font-size:16px!important;
  font-weight:500!important;
  line-height:1.4!important;
  text-align:left!important;
  box-shadow:none!important;
}
/* WC may reapply floating labels through .is-active or iOS autofill. */
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-address-form .wc-block-components-text-input:not(.mkpc-geo-control).is-active > label,
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-address-form .wc-block-components-text-input:not(.mkpc-geo-control) input:-webkit-autofill + label,
body.mk-v7.woocommerce-checkout.mk-checkout-compact
#contact-fields .wc-block-components-text-input.is-active > label,
body.mk-v7.woocommerce-checkout.mk-checkout-compact
#contact-fields .wc-block-components-text-input input:-webkit-autofill + label {
  position:static!important;
  inset:auto!important;
  transform:none!important;
  font-size:14px!important;
}
/* Native Woo select (province, country): same external label, input height and arrow. */
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-address-form .wc-blocks-components-select,
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-address-form .wc-block-components-select-input {
  box-sizing:border-box!important;
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-address-form .wc-blocks-components-select {
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:6px!important;
  position:relative!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-address-form .wc-blocks-components-select .wc-blocks-components-select__label {
  box-sizing:border-box!important;
  display:block!important;
  position:static!important;
  inset:auto!important;
  order:0!important;
  flex:0 0 auto!important;
  width:auto!important;
  max-width:100%!important;
  min-height:20px!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  color:var(--mkuf-label)!important;
  font-size:14px!important;
  font-weight:600!important;
  line-height:1.5!important;
  letter-spacing:0!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-address-form .wc-blocks-components-select select.wc-blocks-components-select__select {
  box-sizing:border-box!important;
  order:1!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:var(--mkuf-height)!important;
  height:var(--mkuf-height)!important;
  margin:0!important;
  padding:12px 44px 12px 15px!important;
  border:1px solid var(--mkuf-border)!important;
  border-radius:var(--mkuf-radius)!important;
  background-color:#fff!important;
  background-image:var(--mkuf-chevron)!important;
  background-position:right 14px center!important;
  background-size:20px 20px!important;
  background-repeat:no-repeat!important;
  -webkit-appearance:none!important;
  appearance:none!important;
  color:var(--mkuf-ink)!important;
  font-size:16px!important;
  font-weight:500!important;
  line-height:1.4!important;
  box-shadow:none!important;
}
/* Avoid double chevrons: WC draws a separate SVG inside its select. */
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-address-form .wc-blocks-components-select .wc-blocks-components-select__expand {
  display:none!important;
}
/* Pancake's real commune select is an HTML native select. Preserve its control
   and the adjacent hidden React-owned text input (never mutate their values). */
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-address-form .wc-block-components-text-input.mkpc-geo-control:has(select.mkpc-commune-native-select) {
  gap:6px!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-address-form .wc-block-components-text-input.mkpc-geo-control:has(select.mkpc-commune-native-select) > label {
  min-height:20px!important;
  font-size:14px!important;
  font-weight:600!important;
  line-height:1.5!important;
  color:var(--mkuf-label)!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-address-form select.mkpc-commune-native-select {
  box-sizing:border-box!important;
  min-height:var(--mkuf-height)!important;
  height:var(--mkuf-height)!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:12px 44px 12px 15px!important;
  border:1px solid var(--mkuf-border)!important;
  border-radius:var(--mkuf-radius)!important;
  background-color:#fff!important;
  background-image:var(--mkuf-chevron)!important;
  background-repeat:no-repeat!important;
  background-size:20px 20px!important;
  background-position:right 14px center!important;
  -webkit-appearance:none!important;
  appearance:none!important;
  color:var(--mkuf-ink)!important;
  font-size:16px!important;
  font-weight:500!important;
  line-height:1.4!important;
  box-shadow:none!important;
}
/* Woo additional "apartment, floor, room" toggle stays optional and accessible. */
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-address-form .wc-block-components-address-form__address_2-toggle {
  min-height:42px!important;
  padding:8px 0!important;
  margin:0!important;
  color:#315f82!important;
  font-size:15px!important;
  line-height:1.45!important;
  text-align:left!important;
}
/* Unified focus/error states. Don't erase WooCommerce validation. */
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-address-form :is(input:not([type=checkbox]),select):focus,
body.mk-v7.woocommerce-checkout.mk-checkout-compact
#contact-fields .wc-block-components-text-input > input:focus {
  border-color:var(--mkuf-border-focus)!important;
  outline:2px solid rgba(77,124,52,.22)!important;
  outline-offset:0!important;
  box-shadow:none!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-address-form .has-error :is(input:not([type=checkbox]),select),
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-address-form :is(input:not([type=checkbox]),select)[aria-invalid=true] {
  border-color:#c93632!important;
}
/* Checkout address checkbox only, not the independently validated account checkbox. */
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-address-form .wc-block-components-checkbox label {
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:10px!important;
  min-width:0!important;
  width:100%!important;
  font-size:16px!important;
  line-height:1.5!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-address-form .wc-block-components-checkbox input[type=checkbox] {
  box-sizing:border-box!important;
  flex:0 0 24px!important;
  width:24px!important;
  min-width:24px!important;
  height:24px!important;
  margin:0!important;
  border:1.5px solid #93a38e!important;
  border-radius:6px!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-address-form .wc-block-components-checkbox label > .wc-block-components-checkbox__label {
  flex:1 1 auto!important;
  min-width:0!important;
  white-space:normal!important;
  word-break:normal!important;
  font-size:16px!important;
  line-height:1.5!important;
}
/* Shipping choices: neutral border by default, pale brand green when selected. */
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-shipping-rates-control .wc-block-components-radio-control {
  box-sizing:border-box!important;
  border-radius:13px!important;
  overflow:hidden!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__option {
  box-sizing:border-box!important;
  min-height:54px!important;
  border:1px solid #d7dfd3!important;
  background-color:#fff!important;
  color:var(--mkuf-ink)!important;
  border-radius:10px!important;
  box-shadow:none!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__option--checked,
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__option-checked {
  border:1.5px solid #4d7c34!important;
  background-color:#f7fbf5!important;
  box-shadow:none!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-shipping-rates-control .wc-block-components-radio-control--highlight-checked::after {
  border:1px solid #d7dfd3!important;
  border-radius:13px!important;
  pointer-events:none!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__label {
  font-size:16px!important;
  line-height:1.5!important;
}
/* Checkout headings/sections keep familiar proportions. */
body.mk-v7.woocommerce-checkout.mk-checkout-compact .wc-block-components-checkout-step {
  margin-bottom:14px!important;
}
@media(max-width:767px){
  body.mk-v7.woocommerce-checkout.mk-checkout-compact .wc-block-components-checkout-step {
    margin-bottom:14px!important;
  }
  body.mk-v7.woocommerce-checkout.mk-checkout-compact
  .wc-block-components-address-form .wc-block-components-text-input:not(.mkpc-geo-control) > input:not([type=checkbox]),
  body.mk-v7.woocommerce-checkout.mk-checkout-compact
  .wc-block-components-address-form .wc-blocks-components-select select.wc-blocks-components-select__select,
  body.mk-v7.woocommerce-checkout.mk-checkout-compact
  .wc-block-components-address-form select.mkpc-commune-native-select {
    min-height:56px!important;
    height:56px!important;
  }
}

/* Higher specificity than the prior geo-label hotfix: one chevron only. */
body.mk-v7.woocommerce-checkout.mk-checkout-compact .wc-block-components-address-form
.wc-block-components-text-input.mkpc-geo-control:has(select.mkpc-commune-native-select)
select.mkpc-commune-native-select {
  -webkit-appearance:none!important;
  appearance:none!important;
  background-color:#fff!important;
  background-image:var(--mkuf-chevron)!important;
  background-position:right 14px center!important;
  background-repeat:no-repeat!important;
  background-size:20px 20px!important;
  border:1px solid var(--mkuf-border)!important;
  border-radius:var(--mkuf-radius)!important;
  min-height:var(--mkuf-height)!important;
  height:var(--mkuf-height)!important;
  padding:12px 44px 12px 15px!important;
}

/* END MK checkout unified fields v1 */

/* MK checkout shared billing-address checkbox v1.1
   This checkbox is outside .wc-block-components-address-form in Woo 11. */
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-checkbox.wc-block-checkout__use-address-for-billing label {
  box-sizing:border-box!important;
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  grid-template-columns:none!important;
  gap:11px!important;
  width:100%!important;
  min-width:0!important;
  min-height:40px!important;
  padding:0!important;
  margin:0!important;
  font-size:16px!important;
  line-height:1.5!important;
  white-space:normal!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-checkbox.wc-block-checkout__use-address-for-billing label input[type=checkbox] {
  box-sizing:border-box!important;
  flex:0 0 24px!important;
  width:24px!important;
  min-width:24px!important;
  height:24px!important;
  margin:0!important;
  border:1.5px solid #93a38e!important;
  border-radius:6px!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-checkbox.wc-block-checkout__use-address-for-billing label > .wc-block-components-checkbox__label {
  flex:1 1 auto!important;
  min-width:0!important;
  font-size:16px!important;
  line-height:1.5!important;
  white-space:normal!important;
  word-break:normal!important;
}
/* END MK checkout shared billing-address checkbox v1.1 */

/* MK Pancake geo internal-ID leak hotfix — 2026-11-05.
 * This text input is owned by Woo React and stores a Pancake commune ID.
 * The JS-created native <select> is the ONLY visible customer control.
 * Do not remove the hidden input: it receives the value and is validated on checkout.
 */

/* Hide raw id inputs when the corresponding native selector is present.
   Match even if Woo re-render puts the input in a DIFFERENT wrapper. */
body.mk-v7.woocommerce-checkout.mk-checkout-compact:has(select.mkpc-commune-native-select)
.wc-block-components-address-form input[data-mkpc-geo="commune"] {
  display:none!important;
  visibility:hidden!important;
  position:absolute!important;
  width:0!important;
  height:0!important;
  min-width:0!important;
  min-height:0!important;
  max-width:0!important;
  max-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
  pointer-events:none!important;
}

/* A React refresh can produce a second field wrapper with the raw ID.
   Hide that DUPLICATE wrapper, never the one containing the real native select.
   This also removes the duplicated "Phường/Xã" label and its excess whitespace. */
body.mk-v7.woocommerce-checkout.mk-checkout-compact:has(select.mkpc-commune-native-select)
.wc-block-components-address-form
.wc-block-components-text-input:has(> input[data-mkpc-geo="commune"]):not(:has(select.mkpc-commune-native-select)) {
  display:none!important;
  visibility:hidden!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
}

/* Ensure valid native dropdown + its label remain visible and operable. */
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-address-form
.wc-block-components-text-input:has(> select.mkpc-commune-native-select) {
  display:flex!important;
  flex-direction:column!important;
  height:auto!important;
  min-height:0!important;
  visibility:visible!important;
}
body.mk-v7.woocommerce-checkout.mk-checkout-compact
.wc-block-components-address-form select.mkpc-commune-native-select {
  display:block!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
/* END MK Pancake raw commune id leak hotfix 2026-11-05 */
