/**
 * WooCommerce Block Checkout — SEOUL KIMCHI
 */

/* ── Layout 2 cột + khoảng cách ─────────────────────────────── */
@media (min-width: 700px) {
  .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
    gap: 32px;
  }
  .wp-block-woocommerce-checkout .wc-block-components-main {
    flex: 1 1 auto;
    width: calc(56% - 20px) !important;
    min-width: 0;
    padding-right: 0 !important;
  }
  .wp-block-woocommerce-checkout .wc-block-components-sidebar {
    flex: 0 0 auto;
    width: calc(44% - 20px) !important;
    min-width: 0;
    padding-left: 0 !important;
  }
}

.wp-block-woocommerce-checkout {
  padding-top: 8px;
  font-size: 16px;
  line-height: 1.5;
}

/* ── Box phải — theo mockup ─────────────────────────────────── */
.sk-checkout-sidebar-card {
  background: #fff;
  border: none;
  border-radius: 12px;
  padding: 24px 24px 20px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-order-summary-block {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sk-checkout-sidebar-card .wc-block-components-checkout-order-summary__title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
      margin-top: 0;
}

.sk-checkout-sidebar-card .wc-block-components-checkout-order-summary__title-text {
  font-size: 15px;
  font-weight: bold !important;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text, #1A1A1A);
  margin: 0;
}

/* Tóm tắt SP — luôn mở, không cần bấm (coupon vẫn accordion bình thường) */
.sk-checkout-sidebar-card .wc-block-components-checkout-order-summary__title .wc-block-components-panel__button {
  pointer-events: none;
  cursor: default;
  padding: 0 0 16px;
  width: 100%;
  justify-content: flex-start;
}

.sk-checkout-sidebar-card .wc-block-components-checkout-order-summary__title .wc-block-components-panel__button-icon,
.sk-checkout-sidebar-card .wc-block-components-checkout-order-summary__title .wc-block-components-panel__button > svg {
  display: none !important;
}

.wc-block-checkout__contact-fields .wc-block-components-checkout-step__heading-container,
.sk-checkout-rearranged .wc-block-checkout__main .sk-shipping-info-merged .wc-block-components-checkout-step__heading {
	margin-bottom: 0 !important;
}

.sk-checkout-sidebar-card .wc-block-components-order-summary.is-collapsed .wc-block-components-order-summary__content,
.sk-checkout-sidebar-card .wc-block-components-checkout-order-summary__content[hidden],
.sk-checkout-sidebar-card .wc-block-components-order-summary .wc-block-components-panel__content[hidden],
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-order-summary-cart-items-block[hidden] {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.sk-checkout-sidebar-card .wc-block-components-order-summary {
  padding: 0 !important;
}

.sk-checkout-sidebar-card .wc-block-components-order-summary__content,
.sk-checkout-sidebar-card .wc-block-components-order-summary .wc-block-components-panel__content,
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-order-summary-cart-items-block {
  display: block !important;
  width: 100%;
}

.sk-checkout-sidebar-card .wc-block-components-totals-wrapper {
  padding: 0;
  margin: 0;
}

/* ── Dòng sản phẩm (ảnh | tên | giá) ───────────────────────── */
.sk-checkout-sidebar-card .wc-block-components-order-summary-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px;
  width: 100%;
  padding: 16px 0 !important;
  margin: 0;
  border-bottom: 1px solid var(--line, #ECE7DB);
}

.sk-checkout-sidebar-card .wc-block-components-order-summary-item:nth-child(1) {
  padding-top: 0 !important;
}

.sk-checkout-sidebar-card .wc-block-components-order-summary-item::after {
  display: none !important;
}

.sk-checkout-sidebar-card .wc-block-components-order-summary-item__image {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 64px;
  width: 64px !important;
  height: 64px !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  color: var(--text, #1A1A1A);
  align-self: center;
}

.sk-checkout-sidebar-card .wc-block-components-order-summary-item__image .wc-block-components-product-image {
  width: 64px !important;
  height: 64px !important;
  flex-shrink: 0;
}

.sk-checkout-sidebar-card .wc-block-components-order-summary-item__image > img,
.sk-checkout-sidebar-card .wc-block-components-order-summary-item__image .wc-block-components-product-image img {
  width: 64px !important;
  max-width: 64px !important;
  height: 64px !important;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.sk-checkout-sidebar-card .wc-block-components-order-summary-item__quantity {
  display: none !important;
}

.sk-checkout-sidebar-card .sk-order-qty-line {
  margin: 6px 0 0;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: #1A1A1A;
}

.sk-checkout-sidebar-card .wc-block-components-order-summary-item__description {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 64px;
  padding: 0 !important;
  margin: 0;
  word-break: normal;
  align-self: center;
}

.sk-checkout-sidebar-card .wc-block-components-order-summary-item__description .wc-block-components-product-name,
.sk-checkout-sidebar-card .wc-block-components-order-summary-item__description h3,
.sk-checkout-sidebar-card .wc-block-components-order-summary-item__description a {
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  color: var(--text, #1A1A1A) !important;
  text-decoration: none;
  margin: 0;
}

.sk-checkout-sidebar-card .wc-block-components-order-summary-item__individual-prices,
.sk-checkout-sidebar-card .wc-block-components-order-summary-item__description .wc-block-cart-item__prices {
  display: none !important;
}

.sk-checkout-sidebar-card .wc-block-components-order-summary-item__total-price {
  flex: 0 0 auto;
  align-self: center;
  margin-left: auto !important;
  padding: 0 0 0 8px !important;
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #1A1A1A);
  text-align: right;
  white-space: nowrap;
}

.sk-checkout-sidebar-card .wc-block-components-order-summary-item__total-price .wc-block-components-product-price,
.sk-checkout-sidebar-card .wc-block-components-order-summary-item__total-price .wc-block-formatted-money-amount {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--text, #1A1A1A) !important;
}

.sk-checkout-sidebar-card .wc-block-components-order-summary-item__total-price .wc-block-components-sale-badge {
  display: none !important;
}

.sk-checkout-sidebar-card .wc-block-components-product-metadata {
  display: none;
}

/* Tạm tính / Tổng */
.sk-checkout-sidebar-card .wc-block-components-totals-item {
  font-size: 16px;
  line-height: 1.5;
  padding: 12px 0;
  border-bottom: 1px solid var(--line, #ECE7DB);
  margin: 0;
}

.sk-checkout-sidebar-card .wc-block-components-totals-item__label {
  font-weight: 600;
  color: var(--text, #1A1A1A);
  white-space: pre-line;
  line-height: 1.55;
}

.sk-checkout-sidebar-card .wc-block-components-totals-item__description {
  white-space: pre-line;
  line-height: 1.55;
}

.sk-checkout-sidebar-card .wc-block-components-totals-item__value {
  font-weight: 600;
  color: var(--text, #1A1A1A);
}

.sk-checkout-sidebar-card .wc-block-components-totals-item__value > strong {
  text-transform: unset;
  font-weight: 400;
}

.sk-checkout-sidebar-card .wc-block-components-totals-footer-item {
  padding: 14px 0;
  margin: 0;
  border-bottom: 1px solid var(--line, #ECE7DB);
}
.sk-checkout-sidebar-card .wc-block-components-totals-wrapper {
	border-top: 0;
}

.sk-checkout-sidebar-card .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-weight: 800;
  font-size: 16px;
  color: var(--text, #1A1A1A);
}
.wp-block-woocommerce-checkout-order-summary-totals-block {
	padding-bottom: 0;
}
.sk-checkout-sidebar-card .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: var(--accent, #C8102E);
  font-weight: 800;
  font-size: 18px;
}

/* Mã giảm giá — accordion hoạt động bình thường */
.sk-checkout-sidebar-card .wc-block-components-totals-coupon {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line, #ECE7DB);
}

.sk-checkout-sidebar-card .wc-block-components-totals-coupon .wc-block-components-panel__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #1A1A1A);
  gap: 8px;
  cursor: pointer;
  pointer-events: auto;
  background: transparent;
  border: none;
  text-align: left;
  margin-bottom: 0;
}

.sk-checkout-sidebar-card .wc-block-components-totals-coupon .wc-block-components-panel__button > span,
.sk-checkout-sidebar-card .wc-block-components-totals-coupon .wc-block-components-panel__button > div:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sk-checkout-sidebar-card .wc-block-components-totals-coupon .wc-block-components-panel__button svg:first-of-type {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sk-checkout-sidebar-card .wc-block-components-totals-coupon .wc-block-components-panel__button svg:last-of-type {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: auto;
  transition: transform 0.2s ease;
}

.sk-checkout-sidebar-card .wc-block-components-totals-coupon .wc-block-components-panel__button[aria-expanded="true"] svg:last-of-type {
  transform: rotate(180deg);
}

.sk-checkout-sidebar-card .wc-block-components-totals-coupon .wc-block-components-panel__content {
  padding: 0 0 14px !important;
  border: none !important;
  margin: 0 !important;
  background: transparent !important;
}

.sk-checkout-sidebar-card .wc-block-components-totals-coupon .wc-block-components-panel__content[hidden] {
  display: none !important;
}

.sk-checkout-sidebar-card .wc-block-components-totals-coupon__form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0;
}

.sk-checkout-sidebar-card .wc-block-components-totals-coupon__input {
  flex: 1;
  margin: 0 !important;
}

.sk-checkout-sidebar-card .wc-block-components-totals-coupon__input.wc-block-components-text-input {
  margin-top: 0 !important;
  gap: 6px;
}

.sk-checkout-sidebar-card .wc-block-components-totals-coupon__input label {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--text-soft, #4A4A4A) !important;
}

.sk-checkout-sidebar-card .wc-block-components-totals-coupon__input input {
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  box-sizing: border-box;
  border-radius: 8px !important;
  border: 1px solid var(--line, #ECE7DB) !important;
  font-size: 16px !important;
  padding: 0 14px !important;
}

.sk-checkout-sidebar-card .wc-block-components-totals-coupon__button {
  flex: 0 0 auto;
  align-self: flex-end;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  box-sizing: border-box;
  padding: 0 18px !important;
  border-radius: 8px !important;
  background: var(--text, #1A1A1A) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  border: none !important;
  white-space: nowrap;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.sk-checkout-sidebar-card .wc-block-components-totals-coupon__button:hover {
  background: #333 !important;
}

.sk-checkout-sidebar-card .wc-block-components-panel {
  border: none !important;
  margin: 0 !important;
  background: transparent !important;
}

/* Tùy chọn vận chuyển — box phải; Woo tính phí theo zone / đơn hàng */
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-shipping-methods-block {
  background: transparent !important;
  border: none !important;
  border-top: 1px solid var(--line, #ECE7DB) !important;
  margin: 0 !important;
  padding: 20px 0 0 !important;
}

.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-shipping-methods-block .wc-block-components-checkout-step__heading {
  margin-bottom: 12px;
  padding: 0;
  border: none;
}

.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-shipping-methods-block .wc-block-components-checkout-step__title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text, #1A1A1A);
  margin: 0;
}

.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-shipping-methods-block .wc-block-components-checkout-step__content {
  margin: 0;
}

.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-shipping-methods-block .wc-block-components-radio-control {
  gap: 10px;
}

.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-shipping-methods-block .wc-block-components-radio-control__option {
  border: 1px solid var(--line, #ECE7DB) !important;
  border-radius: 8px !important;
  padding: 14px 16px !important;
  margin: 0 !important;
  background: #fff !important;
}

.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-shipping-methods-block .wc-block-components-radio-control__option-layout {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100%;
  gap: 12px;
}

.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-shipping-methods-block .wc-block-components-radio-control__label-group {
  flex: 1;
  min-width: 0;
}

.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-shipping-methods-block .wc-block-components-radio-control__description {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--text, #1A1A1A);
  margin: 0 !important;
}

/* Thanh toán */
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block {
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 20px 0 0 !important;
}

.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-checkout-step__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  padding: 0;
  border: none;
}

/* .sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-checkout-step__heading::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3Ccircle cx='17' cy='14' r='1' fill='%231A1A1A' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
} */

.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-checkout-step__title {
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text, #1A1A1A);
  margin: 0;
  letter-spacing: -0.02em;
}

.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-checkout-step__heading svg,
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-checkout-step__heading-content {
  display: none !important;
}

.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-checkout-step__content {
  margin: 0;
}

.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-checkout-step__description {
  display: none;
}

/* Terms + Actions */
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-terms-block {
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 18px 0 0 !important;
}

.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-actions-block {
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 16px 0 0 !important;
}

.sk-checkout-rearranged .wc-block-checkout__sidebar,
.sk-checkout-rearranged .wp-block-woocommerce-checkout-totals-block {
  display: block;
  align-self: flex-start;
}

/* Ẩn payment/actions còn sót ở cột trái */
.sk-checkout-rearranged .wc-block-checkout__main .wp-block-woocommerce-checkout-payment-block,
.sk-checkout-rearranged .wc-block-checkout__main .wp-block-woocommerce-checkout-shipping-methods-block,
.sk-checkout-rearranged .wc-block-checkout__main .wp-block-woocommerce-checkout-actions-block,
.sk-checkout-rearranged .wc-block-checkout__main .wp-block-woocommerce-checkout-terms-block {
  display: none !important;
}

/* Ẩn tóm tắt đơn trùng — WC mobile render thêm ở cột trái / ngoài sidebar card */
.sk-checkout-rearranged .wc-block-checkout__main .wp-block-woocommerce-checkout-order-summary-block,
.sk-checkout-rearranged .wc-block-checkout__sidebar > .wp-block-woocommerce-checkout-order-summary-block,
.sk-checkout-order-summary-dup,
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-order-summary-block ~ .wp-block-woocommerce-checkout-order-summary-block {
  display: none !important;
}

.sk-checkout-rearranged .wc-block-checkout__main .wp-block-woocommerce-checkout-billing-address-block,
.sk-checkout-rearranged .wc-block-checkout__main .wp-block-woocommerce-checkout-shipping-address-block {
  display: block !important;
}

/* Contact block is merged into shipping — never show its duplicate heading. */
body.sk-checkout-page .wp-block-woocommerce-checkout-contact-information-block .wc-block-components-checkout-step__heading {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* ── Quay lại giỏ hàng — trên cùng bên trái ───────────────── */
.sk-checkout-return-top {
  width: 100%;
  margin-bottom: 16px;
  text-align: left;
}

.sk-checkout-return-top .wc-block-components-checkout-return-to-cart-button {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--text-soft, #4A4A4A) !important;
  text-decoration: none !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.sk-checkout-return-top .wc-block-components-checkout-return-to-cart-button:hover {
  color: var(--accent, #C8102E) !important;
  opacity: 1;
}

/* Ẩn return link trong actions block (đã chuyển lên trên) */
.sk-checkout-sidebar-card .wc-block-components-checkout-return-to-cart-button {
  display: none !important;
}

.wc-block-checkout__sidebar.is-sticky {
  top: 96px;
}

/* ── Thông tin giao hàng = liên lạc + địa chỉ (gộp) ───────── */
.sk-checkout-rearranged .wc-block-checkout__main {
  --sk-label-gap: 4px;
  --sk-field-gap: 12px;
  --sk-block-gap: 16px;
  --sk-box-pad: 20px;
}

.sk-checkout-contact-shipping-merged .wc-block-checkout__main .wp-block-woocommerce-checkout-contact-information-block.sk-contact-merged {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

.sk-checkout-rearranged .wc-block-checkout__main .wp-block-woocommerce-checkout-shipping-address-block.sk-shipping-info-merged,
.sk-checkout-rearranged .wc-block-checkout__main .wp-block-woocommerce-checkout-order-note-block {
  background: #fff;
  border: 1px solid var(--line, #ECE7DB);
  border-radius: 12px;
  padding: var(--sk-box-pad);
  margin-bottom: var(--sk-block-gap);
}

.sk-checkout-rearranged .wc-block-checkout__main .sk-shipping-info-merged .wc-block-components-checkout-step__heading,
.sk-checkout-rearranged .wc-block-checkout__main .wp-block-woocommerce-checkout-order-note-block .wc-block-components-checkout-step__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 var(--sk-block-gap);
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line, #ECE7DB);
}

.sk-checkout-rearranged .wc-block-checkout__main .sk-shipping-info-merged .wc-block-components-checkout-step__title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text, #1A1A1A);
  margin: 0;
}

.sk-checkout-rearranged .wc-block-checkout__main .sk-shipping-info-merged .wc-block-components-checkout-step__heading svg,
.sk-checkout-rearranged .wc-block-checkout__main .sk-shipping-info-merged .wc-block-components-checkout-step__heading-content {
  display: none !important;
}

.sk-checkout-rearranged .wc-block-checkout__main .sk-shipping-info-merged .wc-block-components-checkout-step__heading .wc-block-checkout__login-prompt,
.sk-checkout-rearranged .wc-block-checkout__main .sk-shipping-info-merged .wc-block-components-checkout-step__heading .wc-block-checkout__guest-checkout-notice {
  display: none !important;
}

.sk-checkout-rearranged .wc-block-checkout__main .sk-checkout-contact-fields .wc-block-checkout__login-prompt,
.sk-checkout-rearranged .wc-block-checkout__main .sk-checkout-contact-fields .wc-block-checkout__guest-checkout-notice {
  float: none;
  display: block;
  width: 100%;
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-soft, #4A4A4A);
  text-align: left;
}

.sk-checkout-rearranged .wc-block-checkout__main .sk-shipping-info-merged .wc-block-components-checkout-step__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.sk-checkout-rearranged .wc-block-checkout__main .sk-checkout-contact-fields {
  display: flex;
  flex-direction: column;
  gap: var(--sk-field-gap);
  margin: 0;
  padding: 0;
  border: none;
}

.sk-checkout-rearranged .wc-block-checkout__main .sk-checkout-contact-fields .wc-block-components-checkbox,
.sk-checkout-rearranged .wc-block-checkout__main .sk-checkout-contact-fields .wc-block-components-checkbox-control {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin: 0 !important;
}

.sk-checkout-rearranged .wc-block-checkout__main .sk-shipping-info-merged .wc-block-components-address-form {
  row-gap: var(--sk-field-gap) !important;
  column-gap: 12px !important;
}

/* Grid 2 cột — căn thẳng Tỉnh/Phường với Tên/Họ, Mã bưu điện/SĐT */
@media (min-width: 700px) {
  .sk-checkout-rearranged .wc-block-checkout__main .sk-shipping-info-merged .wc-block-components-address-form {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
  }

  .sk-shipping-info-merged .wc-block-components-address-form .wc-block-components-country-input,
  .sk-shipping-info-merged .wc-block-components-address-form .wc-block-components-address-form__address_1,
  .sk-shipping-info-merged .wc-block-components-address-form .wc-block-components-address-form__address_2,
  .sk-shipping-info-merged .wc-block-components-address-form .wc-block-components-address-form__company {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .sk-shipping-info-merged .wc-block-components-address-form .wc-block-components-state-input,
  .sk-shipping-info-merged .wc-block-components-address-form .wc-block-components-address-form__city,
  .sk-shipping-info-merged .wc-block-components-address-form .wc-block-components-address-form__first_name,
  .sk-shipping-info-merged .wc-block-components-address-form .wc-block-components-address-form__last_name,
  .sk-shipping-info-merged .wc-block-components-address-form .wc-block-components-address-form__postcode,
  .sk-shipping-info-merged .wc-block-components-address-form .wc-block-components-address-form__phone {
    box-sizing: border-box !important;
    flex: 1 0 calc(50% - 6px) !important;
    width: calc(50% - 6px) !important;
    max-width: calc(50% - 6px) !important;
  }
}

/* Field: chỉ gap label→input, không margin-top (container lo khoảng cách) */
.sk-checkout-rearranged .wc-block-checkout__main .wc-block-components-text-input,
.sk-checkout-rearranged .wc-block-checkout__main .wc-blocks-components-select,
.sk-checkout-rearranged .wc-block-checkout__main .wc-block-components-combobox,
.sk-checkout-rearranged .wc-block-checkout__main .wc-block-components-textarea,
.sk-checkout-rearranged .wc-block-checkout__main .sk-vat-field {
  display: flex;
  flex-direction: column;
  gap: var(--sk-label-gap) !important;
  margin-top: 0 !important;
  line-height: normal !important;
  justify-content: flex-end;
}

.sk-shipping-info-merged .wc-block-components-text-input label,
.sk-shipping-info-merged .wc-blocks-components-select label,
.sk-shipping-info-merged .wc-block-components-combobox label,
.sk-shipping-info-merged .sk-vat-field label,
.sk-shipping-info-merged .sk-vat-invoice-toggle .wc-block-components-checkbox__label,
.sk-checkout-rearranged .wc-block-checkout__main .wp-block-woocommerce-checkout-order-note-block .wc-block-components-text-input label,
.sk-checkout-rearranged .wc-block-checkout__main .wp-block-woocommerce-checkout-order-note-block .wc-block-components-textarea label {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--text-soft, #4A4A4A) !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sk-shipping-info-merged .wc-block-components-text-input input,
.sk-shipping-info-merged .wc-blocks-components-select__select,
.sk-shipping-info-merged .wc-block-components-combobox input,
.sk-shipping-info-merged .sk-vat-field input,
.sk-shipping-info-merged .sk-vn-city-select {
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 14px !important;
  font-size: 16px !important;
  border-radius: 8px !important;
  border: 1px solid var(--line, #ECE7DB) !important;
  background: #fff !important;
  box-shadow: none !important;
  outline: none !important;
}

.sk-shipping-info-merged .wc-block-components-text-input.is-active input,
.sk-shipping-info-merged .wc-block-components-text-input:focus-within input,
.sk-shipping-info-merged .wc-block-components-text-input input:focus,
.sk-shipping-info-merged .wc-block-components-text-input input:focus-visible,
.sk-shipping-info-merged .wc-blocks-components-select__select:focus,
.sk-shipping-info-merged .wc-blocks-components-select__select:focus-visible,
.sk-shipping-info-merged .sk-vn-city-select:focus,
.sk-shipping-info-merged .sk-vn-city-select:focus-visible {
  border-color: var(--line, #ECE7DB) !important;
  box-shadow: none !important;
  outline: none !important;
}

.sk-checkout-rearranged .wc-block-checkout__main .sk-checkout-contact-fields .wc-block-components-text-input input {
  border: 1px solid var(--line, #ECE7DB) !important;
  box-shadow: none !important;
}

.sk-checkout-rearranged .wc-block-checkout__main .sk-checkout-contact-fields .wc-block-components-text-input.is-active input,
.sk-checkout-rearranged .wc-block-checkout__main .sk-checkout-contact-fields .wc-block-components-text-input:focus-within input {
  border-color: var(--line, #ECE7DB) !important;
  box-shadow: none !important;
}

.sk-checkout-rearranged .wc-block-checkout__main .wp-block-woocommerce-checkout-order-note-block .wc-block-components-checkout-step__content {
  margin: 0;
  padding: 0;
}
.wc-block-checkout__shipping-option.wp-block-woocommerce-checkout-shipping-methods-block {
	display:none;
}
.wc-block-components-validation-error>p {
  font-size: 15px;	
}
.wp-block-woocommerce-checkout .wc-block-checkout__guest-checkout-notice {
	font-size: 16px;
    margin-top: 0;
}
.wc-block-components-checkbox label .wc-block-components-checkbox__label {
	font-size: 16px;
	margin-top: -3px;
}
.wc-block-components-address-card__edit {
 white-space: nowrap;
}

.sk-checkout-rearranged .wc-block-checkout__main .wp-block-woocommerce-checkout-order-note-block .wc-block-components-textarea {
  min-height: 96px !important;
  height: auto !important;
  padding: 12px 14px !important;
  font-size: 16px !important;
  border-radius: 8px !important;
  resize: vertical;
}

.sk-checkout-rearranged .wc-block-checkout__main .wp-block-woocommerce-checkout-order-note-block .wc-block-components-checkout-step__title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text, #1A1A1A);
  margin: 0;
}

.sk-checkout-rearranged .wc-block-checkout__main .wp-block-woocommerce-checkout-order-note-block .wc-block-components-checkout-step__heading svg,
.sk-checkout-rearranged .wc-block-checkout__main .wp-block-woocommerce-checkout-order-note-block .wc-block-components-checkout-step__heading-content {
  display: none !important;
}

.sk-checkout-rearranged .wc-block-checkout__main .wc-block-components-text-input__optional,
.sk-checkout-rearranged .wc-block-checkout__main .wc-block-components-label__optional {
  display: none !important;
}

.sk-field-required,
.sk-shipping-info-merged .sk-vat-field .sk-vat-required {
  color: var(--accent, #C8102E);
  font-weight: 600;
}

/* ── Xuất hóa đơn GTGT ───────────────────────────────────────── */
.sk-shipping-info-merged .wc-block-checkout__use-address-for-billing,
.sk-native-billing-toggle-hidden {
  display: none !important;
}

/* Fallback khi Woo re-render DOM lúc đặt hàng — không phụ thuộc class merge */
.sk-vat-invoice-form .sk-vat-fields {
  display: flex;
  flex-direction: column;
  gap: var(--sk-field-gap, 12px);
  margin: 0;
  padding: 0;
  width: 100%;
}

.sk-vat-invoice-form .sk-vat-field {
  display: flex;
  flex-direction: column;
  gap: var(--sk-label-gap, 6px);
  width: 100%;
}

.sk-vat-invoice-form .sk-vat-field label {
  display: block;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--text-soft, #4A4A4A) !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sk-vat-invoice-form .sk-vat-field input {
  width: 100%;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0;
  padding: 0 14px !important;
  font-size: 16px !important;
  border: 1px solid var(--line, #ECE7DB);
  border-radius: 8px !important;
  font-family: inherit;
  background: #fff;
  color: var(--text, #1A1A1A);
  box-sizing: border-box;
  box-shadow: none;
  outline: none;
}

.sk-vat-invoice-form .sk-vat-field.has-error label {
  color: var(--accent, #C8102E) !important;
}

.sk-vat-invoice-form .sk-vat-field.has-error input {
  border-color: var(--accent, #C8102E) !important;
}

.sk-vat-invoice-form .sk-vat-field input:focus,
.sk-vat-invoice-form .sk-vat-field input:focus-visible {
  border-color: var(--text, #1A1A1A);
  box-shadow: none;
  outline: none;
}

.sk-vat-invoice-active .sk-vat-invoice-form,
.sk-checkout-is-processing .sk-vat-invoice-form {
  display: block !important;
  width: 100%;
  box-sizing: border-box;
}

.sk-checkout-is-processing .sk-vat-invoice-toggle {
  pointer-events: none;
  opacity: 0.85;
}

.sk-shipping-info-merged .sk-vat-invoice-toggle,
.sk-vat-invoice-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 25px 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  cursor: pointer;
  width: 100%;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  box-sizing: border-box;
}
.wc-block-components-checkout-step__content>* {
  margin-bottom: 0;
}
.sk-vat-invoice-toggle::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1px solid var(--text, #1A1A1A);
  border-radius: 2px;
  background: #fff;
  flex-shrink: 0;
}

.sk-vat-invoice-toggle.sk-vat-is-checked::before {
  background-color: var(--text, #1A1A1A);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.25 7.25a1 1 0 0 1-1.4 0L3.3 9.55a1 1 0 1 1 1.4-1.4l3.15 3.15 6.55-6.55a1 1 0 0 1 1.4 0Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

.sk-vat-invoice-toggle .wc-block-components-checkbox__label {
  flex: 1 1 auto;
  cursor: pointer;
}

.sk-vat-invoice-toggle:hover {
  opacity: 0.92;
}

.sk-vat-invoice-toggle:focus {
  outline: none;
}

.sk-vat-invoice-toggle:focus-visible {
  outline: 2px solid var(--text, #1A1A1A);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Ẩn block địa chỉ thanh toán — dùng chung địa chỉ giao hàng */
.sk-checkout-rearranged .wc-block-checkout__main .wp-block-woocommerce-checkout-billing-address-block {
  display: none !important;
}

.sk-shipping-info-merged .sk-vat-invoice-form {
  display: none;
  width: 100%;
  box-sizing: border-box;
}

.sk-shipping-info-merged.sk-vat-invoice-active .sk-vat-invoice-form {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  animation: sk-vat-form-in 0.15s ease-out;
}

@keyframes sk-vat-form-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sk-shipping-info-merged .sk-vat-fields {
  display: flex;
  flex-direction: column;
  gap: var(--sk-field-gap, 12px);
  margin: 0;
  padding: 0;
  width: 100%;
}

.sk-shipping-info-merged .sk-vat-field {
  width: 100%;
}

.sk-shipping-info-merged .sk-vat-field label {
  display: block;
  order: -1;
}

.sk-shipping-info-merged .sk-vat-field.has-error label {
  color: var(--accent, #C8102E) !important;
}

.sk-shipping-info-merged .sk-vat-field.has-error .sk-field-required,
.sk-shipping-info-merged .sk-vat-field.has-error .sk-vat-required {
  color: var(--accent, #C8102E);
}

.sk-shipping-info-merged .sk-vat-field input {
  width: 100%;
  margin: 0;
  border: 1px solid var(--line, #ECE7DB);
  font-family: inherit;
  background: #fff;
  color: var(--text, #1A1A1A);
  box-sizing: border-box;
  box-shadow: none;
  outline: none;
  transition: border-color 0.15s ease;
}

.sk-shipping-info-merged .sk-vat-field.has-error input {
  border-color: var(--accent, #C8102E) !important;
}

.sk-shipping-info-merged .sk-vat-field input:focus,
.sk-shipping-info-merged .sk-vat-field input:focus-visible {
  border-color: var(--text, #1A1A1A);
  box-shadow: none;
  outline: none;
}

/* ── Form sections (cột trái) ─────────────────────────────── */
.wp-block-woocommerce-checkout .wc-block-components-checkout-step {
  margin-bottom: 16px;
}

.sk-checkout-rearranged .wc-block-checkout__main .wp-block-woocommerce-checkout-shipping-address-block.sk-shipping-info-merged.wc-block-components-checkout-step {
  margin-bottom: 16px;
}

.wp-block-woocommerce-checkout .wc-block-components-checkout-step:last-child {
  margin-bottom: 0;
}

.wp-block-woocommerce-checkout .wc-block-components-checkout-step__heading {
  margin-bottom: 10px;
  padding-bottom: 0;
  border-bottom: none;
}

.wp-block-woocommerce-checkout .wc-block-components-checkout-step__title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text, #1A1A1A);
}

/* ── Label phía trên input ──────────────────────────────────── */
.wp-block-woocommerce-checkout .wc-block-components-text-input,
.wp-block-woocommerce-checkout .wc-blocks-components-select,
.wp-block-woocommerce-checkout .wc-block-components-combobox {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
  line-height: normal !important;
  white-space: normal !important;
  position: relative;
}

.wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-text-input:first-of-type,
.wp-block-woocommerce-checkout .wc-block-components-address-form .wc-blocks-components-select:first-of-type,
.wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-combobox:first-of-type {
  margin-top: 0;
}

.wp-block-woocommerce-checkout .wc-block-components-text-input .wc-block-components-text-input__wrapper,
.wp-block-woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__container {
  display: block;
  position: relative;
}

.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-text {
	margin-left: 0 !important;
}

.wp-block-woocommerce-checkout .wc-block-components-text-input label,
.wp-block-woocommerce-checkout .wc-blocks-components-select label,
.wp-block-woocommerce-checkout .wc-block-components-combobox label {
  position: static !important;
  order: -1;
  display: block;
  margin: 0 !important;
  padding: 0;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--text-soft, #4A4A4A) !important;
  max-width: 100% !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  line-height: 1.4 !important;
  transform: none !important;
  transform-origin: unset !important;
  cursor: default;
  transition: none !important;
  overflow: visible;
  text-overflow: unset;
}
.wp-block-woocommerce-checkout .wc-blocks-components-select label {
  margin-bottom: 6px !important;
  margin-top: 6px !important;
}
.wp-block-woocommerce-checkout .wc-block-components-text-input.is-active label,
.wp-block-woocommerce-checkout .wc-block-components-text-input:focus-within label,
.wp-block-woocommerce-checkout .wc-block-components-text-input.has-error label,
.wp-block-woocommerce-checkout .wc-block-components-text-input.is-active:focus-within label {
  transform: none !important;
  font-size: 16px !important;
  top: auto !important;
  left: auto !important;
}
.wc-blocks-components-select .wc-blocks-components-select__expand {
    top: auto;
    bottom: 0;
}
/* Grid địa chỉ — chỉ áp sidebar / fallback (cột trái dùng --sk-field-gap) */
@media (min-width: 700px) {
  .wp-block-woocommerce-checkout .wc-block-components-address-form {
    row-gap: 12px !important;
    column-gap: 12px !important;
  }

  .sk-checkout-rearranged .wc-block-checkout__main .wc-block-components-address-form {
    row-gap: var(--sk-field-gap) !important;
    column-gap: var(--sk-field-gap) !important;
  }
}

.wp-block-woocommerce-checkout .wc-block-components-address-form__address_2-toggle {
  color: var(--accent, #C8102E);
  font-size: 16px;
  font-weight: 600;
  margin-top: 4px;
  margin-bottom: 0;
}

/* ── Inputs + outline sạch ──────────────────────────────────── */
.wp-block-woocommerce-checkout .wc-block-components-text-input input,
.wp-block-woocommerce-checkout .wc-block-components-textarea,
.wp-block-woocommerce-checkout .wc-blocks-components-select__select {
  border: 1px solid var(--line, #ECE7DB) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--text, #1A1A1A) !important;
  font-family: var(--f, inherit) !important;
  font-size: 16px !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color 0.15s ease;
}

.wp-block-woocommerce-checkout .wc-block-components-text-input input {
  height: 46px !important;
  min-height: 46px;
  padding: 0 14px !important;
}

.wp-block-woocommerce-checkout .wc-blocks-components-select__select {
  height: 46px !important;
  padding: 0 14px !important;
}

.wp-block-woocommerce-checkout input:focus,
.wp-block-woocommerce-checkout input:focus-visible,
.wp-block-woocommerce-checkout select:focus,
.wp-block-woocommerce-checkout select:focus-visible,
.wp-block-woocommerce-checkout textarea:focus,
.wp-block-woocommerce-checkout textarea:focus-visible,
.wp-block-woocommerce-checkout .wc-block-components-text-input.is-active input,
.wp-block-woocommerce-checkout .wc-block-components-text-input:focus-within input {
  outline: none !important;
  box-shadow: none !important;
  border-color: var(--line, #ECE7DB) !important;
}

.sk-checkout-rearranged .wc-block-checkout__main .wc-block-components-text-input.is-active input,
.sk-checkout-rearranged .wc-block-checkout__main .wc-block-components-text-input:focus-within input {
  border-color: var(--line, #ECE7DB) !important;
}

/* ── Tiêu đề section (sidebar) ──────────────────────────────── */
.sk-checkout-sidebar-card .wc-block-components-checkout-step__title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0;
  color: var(--text, #1A1A1A);
}

/* ── Phương thức thanh toán — mỗi option 1 box riêng ─────────── */
.sk-checkout-sidebar-card .wc-block-checkout__payment-method .wc-block-components-radio-control,
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control {
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  gap: 10px !important;
  margin: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative;
}

/* WC vẽ box ngoài bọc cả 2 option — tắt */
.sk-checkout-sidebar-card .wc-block-checkout__payment-method .wc-block-components-radio-control--highlight-checked::after,
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control--highlight-checked::after,
.sk-checkout-sidebar-card .wc-block-checkout__payment-method .wc-block-components-radio-control--highlight-checked.wc-block-components-radio-control--highlight-checked--first-selected::after,
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control--highlight-checked.wc-block-components-radio-control--highlight-checked--first-selected::after,
.sk-checkout-sidebar-card .wc-block-checkout__payment-method .wc-block-components-radio-control--highlight-checked.wc-block-components-radio-control--highlight-checked--last-selected::after,
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control--highlight-checked.wc-block-components-radio-control--highlight-checked--last-selected::after {
  display: none !important;
  content: none !important;
  border: none !important;
}

.sk-checkout-sidebar-card .wc-block-checkout__payment-method .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.sk-checkout-sidebar-card .wc-block-checkout__payment-method .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted,
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
  box-shadow: none !important;
  border-radius: 10px !important;
}

.sk-checkout-sidebar-card .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option,
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control-accordion-option {
  border: 1px solid rgba(26, 26, 26, 0.1) !important;
  border-radius: 10px !important;
  margin: 0 !important;
  background: #fff !important;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.sk-checkout-sidebar-card .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option:last-child,
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control-accordion-option:last-child {
  border-bottom: 1px solid rgba(26, 26, 26, 0.1) !important;
}

.sk-checkout-sidebar-card .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option:not(:last-child),
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control-accordion-option:not(:last-child) {
  margin-bottom: 0 !important;
}

.sk-checkout-sidebar-card .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option:not(:last-child)::after,
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control-accordion-option:not(:last-child)::after,
.sk-checkout-sidebar-card .wc-block-checkout__payment-method .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option:not(:last-child)::after,
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option:not(:last-child)::after {
  display: none !important;
  content: none !important;
}

.sk-checkout-sidebar-card .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option:has(.wc-block-components-radio-control__input:checked),
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control-accordion-option:has(.wc-block-components-radio-control__input:checked) {
  background: #fff !important;
  border: 1px solid rgba(26, 26, 26, 0.16) !important;
  border-radius: 10px !important;
  box-shadow: none;
}

/* Radio trái — icon + label bên cạnh */
.sk-checkout-sidebar-card .wc-block-checkout__payment-method .wc-block-components-radio-control__option,
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option {
  display: block !important;
  padding: 16px 16px 16px 48px !important;
  min-height: 0 !important;
  position: relative !important;
  border: none !important;
}

.sk-checkout-sidebar-card .wc-block-checkout__payment-method .wc-block-components-radio-control__input,
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control__input {
  position: absolute !important;
  left: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  width: 20px !important;
  height: 20px !important;
  appearance: none;
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.22);
  border-radius: 50%;
  flex: none;
}

.sk-checkout-sidebar-card .wc-block-checkout__payment-method .wc-block-components-radio-control__input:checked,
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control__input:checked {
  border-color: var(--text, #1A1A1A);
}

.sk-checkout-sidebar-card .wc-block-checkout__payment-method .wc-block-components-radio-control__input:checked::before,
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control__input:checked::before {
  background: var(--text, #1A1A1A) !important;
  width: 10px !important;
  height: 10px !important;
}

.sk-checkout-sidebar-card .wc-block-checkout__payment-method .wc-block-components-radio-control__option-layout,
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control__option-layout {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  width: 100%;
}

.sk-checkout-sidebar-card .wc-block-checkout__payment-method .wc-block-components-radio-control__label-group,
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control__label-group {
  flex: 1;
  min-width: 0;
}

.sk-checkout-sidebar-card .wc-block-checkout__payment-method .wc-block-components-radio-control__label,
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control__label {
  display: block !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: var(--text, #1A1A1A) !important;
  padding-left: 0 !important;
}
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] {
  height: 20px !important;
}

/* Icon phương thức — bên trái label, to hơn */
.sk-checkout-sidebar-card .sk-payment-method-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.9;
}

.sk-checkout-sidebar-card .sk-payment-method-icon--bacs {
  display:none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M5 10v9M9 10v9M15 10v9M19 10v9'/%3E%3Cpath d='M2 10 12 4l10 6'/%3E%3Cpath d='M4 19h16'/%3E%3C/svg%3E");
}

.sk-checkout-sidebar-card .sk-payment-method-icon--cod {
  display:none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M6 10h.01M18 14h.01'/%3E%3C/svg%3E");
}

.sk-checkout-sidebar-card .sk-payment-method-icon--cheque,
.sk-checkout-sidebar-card .sk-payment-method-icon--default {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E");
}

.sk-checkout-sidebar-card .wc-block-checkout__payment-method .wc-block-components-radio-control__description,
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control__description {
  display: none !important;
}

.sk-checkout-sidebar-card .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content,
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control-accordion-content {
  display: none !important;
}

.sk-checkout-sidebar-card .wc-block-checkout__payment-method .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option::after,
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option::after,
.sk-checkout-sidebar-card .wc-block-checkout__payment-method .wc-block-components-radio-control__option::after,
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control__option::after {
  display: none !important;
  content: none !important;
}

.sk-checkout-sidebar-card .wc-block-checkout__payment-method .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option:last-child::after,
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option:last-child::after {
  display: none !important;
  content: none !important;
}

.sk-checkout-sidebar-card .wc-block-checkout__payment-method .wc-block-components-radio-control__option:focus-within,
.sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control__option:focus-within {
  outline: none !important;
  box-shadow: none !important;
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control {
  gap: 0;
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option {
  border: none !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
  background: transparent !important;
  overflow: visible;
  border-bottom: 1px solid var(--line, #ECE7DB) !important;
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option:last-child {
  border-bottom: none !important;
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option:has(.wc-block-components-radio-control__input:checked) {
  background: transparent !important;
  box-shadow: none;
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control__option,
.wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 12px 0 !important;
  min-height: 0 !important;
  position: relative !important;
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control__option:focus-within {
  outline: none !important;
  box-shadow: none !important;
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control__input {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  margin: 3px 0 0 !important;
  flex: 0 0 18px;
  width: 18px !important;
  height: 18px !important;
  accent-color: var(--accent, #C8102E);
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control__option-layout {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  width: 100%;
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control__label-group {
  flex: 1;
  min-width: 0;
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control__label {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text, #1A1A1A);
  padding-left: 0 !important;
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control__description {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-soft, #4A4A4A);
  margin-top: 4px;
}

/* Ẩn pseudo-border WC gây chồng chữ (cột trái / fallback) */
.wp-block-woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__option:after,
.wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option:after {
  display: none !important;
}

/* ── Nút đặt hàng ───────────────────────────────────────────── */
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button {
  width: 100%;
  background: var(--accent, #C8102E) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 24px !important;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0;
}

.sk-checkout-sidebar-card .wc-block-components-checkout-place-order-button {
  border-radius: 12px !important;
  padding: 18px 24px !important;
  font-size: 16px !important;
}

.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
  background: var(--accent-deep, #9B0F26) !important;
}

.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:focus,
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.wc-block-components-checkout-place-order-button.sk-place-order-is-loading,
.wc-block-components-checkout-place-order-button.sk-place-order-is-loading button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  pointer-events: none !important;
  opacity: 0.92 !important;
  cursor: wait !important;
}

.wc-block-components-checkout-place-order-button.sk-place-order-is-loading > button::before,
button.wc-block-components-checkout-place-order-button.sk-place-order-is-loading::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sk-place-order-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes sk-place-order-spin {
  to {
    transform: rotate(360deg);
  }
}

.sk-checkout-sidebar-card .wc-block-checkout__actions_row {
  flex-direction: column;
  gap: 0;
}

/* ── Terms — checkbox đồng ý trước nút đặt hàng ───────────── */
.sk-checkout-sidebar-card .wc-block-checkout__terms {
  margin: 0;
  padding: 0;
}

.sk-checkout-sidebar-card .wc-block-checkout__terms--with-separator::before {
  display: none !important;
}

.sk-checkout-sidebar-card .wc-block-components-checkbox,
.sk-checkout-sidebar-card .wc-block-components-checkbox-control {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin: 0 0 16px !important;
}

.sk-checkout-sidebar-card .wc-block-components-checkbox__input,
.sk-checkout-sidebar-card .wc-block-components-checkbox-control__input {
  flex: 0 0 18px;
  width: 18px !important;
  height: 18px !important;
  margin: 2px 0 0 !important;
  accent-color: var(--accent, #C8102E);
  cursor: pointer;
}

.sk-checkout-sidebar-card .wc-block-components-checkbox__label,
.sk-checkout-sidebar-card .wc-block-components-checkbox-control__label,
.sk-checkout-sidebar-card .wc-block-components-checkout-terms-block {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-soft, #4A4A4A);
}

.sk-checkout-sidebar-card .wc-block-components-checkbox__label a,
.sk-checkout-sidebar-card .wc-block-components-checkbox-control__label a {
  color: var(--accent, #C8102E);
  font-weight: 600;
  text-decoration: none;
}

.sk-checkout-sidebar-card .wc-block-components-checkbox__label a:hover,
.sk-checkout-sidebar-card .wc-block-components-checkbox-control__label a:hover {
  text-decoration: underline;
}

.sk-checkout-sidebar-card .wc-block-components-checkbox.has-error .wc-block-components-checkbox__input,
.sk-checkout-sidebar-card .wc-block-components-checkbox-control.has-error .wc-block-components-checkbox-control__input {
  outline: 2px solid var(--accent, #C8102E);
  outline-offset: 1px;
}

/* ── Login prompt ───────────────────────────────────────────── */
.wp-block-woocommerce-checkout .wc-block-checkout__login-prompt {
  float: none;
  display: block;
  margin: -8px 0 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-soft, #4A4A4A);
}

.sk-checkout-rearranged .wc-block-checkout__main .wc-block-checkout__login-prompt {
  margin: 0 !important;
}

.wp-block-woocommerce-checkout .wc-block-checkout__login-prompt a {
  color: var(--accent, #C8102E);
  font-weight: 600;
  text-decoration: none;
}

.wp-block-woocommerce-checkout .wc-block-checkout__login-prompt a:hover {
  text-decoration: underline;
}

/* ── Tổng tiền (global fallback) ────────────────────────────── */
.wp-block-woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: var(--accent, #C8102E);
  font-weight: 800;
  font-size: 18px;
}

/* ── Mobile checkout ─────────────────────────────────────────── */
@media (max-width: 699px) {
  body.sk-checkout-page {
    overflow-x: hidden;
    padding-bottom: 88px;
  }

  body.sk-checkout-page main .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.sk-checkout-page .entry-content {
    padding-top: 24px;
    padding-bottom: 32px;
  }

  body.sk-checkout-page .fab-side {
    right: 12px;
    bottom: 12px;
    gap: 8px;
  }

  body.sk-checkout-page .fab-btn {
    width: 46px;
    height: 46px;
  }

  .wp-block-woocommerce-checkout {
    padding-top: 4px;
    font-size: 15px;
  }

  .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  .wp-block-woocommerce-checkout .wc-block-components-main,
  .wp-block-woocommerce-checkout .wc-block-components-sidebar,
  .sk-checkout-rearranged .wc-block-checkout__main,
  .sk-checkout-rearranged .wc-block-checkout__sidebar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    flex: none !important;
  }

  /* Form trước, tóm tắt + thanh toán sau */
  .sk-checkout-rearranged .wc-block-checkout__main {
    order: 1;
  }

  .sk-checkout-rearranged .wc-block-checkout__sidebar {
    order: 2;
  }

  .wc-block-checkout__sidebar.is-sticky {
    position: static !important;
    top: auto !important;
  }

  .sk-checkout-return-top {
    margin-bottom: 12px;
  }

  .sk-checkout-return-top .wc-block-components-checkout-return-to-cart-button {
    font-size: 14px !important;
  }

  .sk-checkout-rearranged .wc-block-checkout__main {
    --sk-box-pad: 16px;
    --sk-block-gap: 12px;
    --sk-field-gap: 10px;
  }

  .sk-checkout-rearranged .wc-block-checkout__main .wp-block-woocommerce-checkout-shipping-address-block.sk-shipping-info-merged,
  .sk-checkout-rearranged .wc-block-checkout__main .wp-block-woocommerce-checkout-order-note-block {
    padding: var(--sk-box-pad);
    border-radius: 10px;
  }

  .sk-checkout-rearranged .wc-block-checkout__main .sk-checkout-contact-fields .wc-block-checkout__login-prompt,
  .sk-checkout-rearranged .wc-block-checkout__main .sk-checkout-contact-fields .wc-block-checkout__guest-checkout-notice {
    font-size: 14px;
  }

  .sk-checkout-rearranged .wc-block-checkout__main .sk-shipping-info-merged .wc-block-components-checkout-step__heading {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .sk-checkout-rearranged .wc-block-checkout__main .sk-shipping-info-merged .wc-block-components-checkout-step__title {
    font-size: 13px;
  }

  .sk-checkout-rearranged .wc-block-checkout__main .wc-block-components-checkout-step {
    margin-bottom: var(--sk-block-gap, 12px);
  }

  /* Địa chỉ — 1 cột trên mobile */
  .wp-block-woocommerce-checkout .wc-block-components-address-form,
  .sk-checkout-rearranged .wc-block-checkout__main .wc-block-components-address-form {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--sk-field-gap, 10px) !important;
  }

  .wp-block-woocommerce-checkout .wc-block-components-address-form > *,
  .sk-checkout-rearranged .wc-block-checkout__main .wc-block-components-address-form > * {
    width: 100% !important;
    max-width: 100% !important;
    grid-column: auto !important;
  }

  .sk-shipping-info-merged .sk-vat-invoice-toggle {
    margin: 18px 0 !important;
  }

  .sk-shipping-info-merged .sk-vat-invoice-toggle .wc-block-components-checkbox__label {
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  .sk-checkout-sidebar-card {
    padding: 18px 16px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  }

  .sk-checkout-sidebar-card .wc-block-components-checkout-order-summary__title-text {
    font-size: 14px;
  }

  .sk-checkout-sidebar-card .wc-block-components-order-summary-item {
    gap: 10px;
    padding: 12px 0 !important;
  }

  .sk-checkout-sidebar-card .wc-block-components-order-summary-item__image {
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
  }

  .sk-checkout-sidebar-card .wc-block-components-order-summary-item__description .wc-block-components-product-name,
  .sk-checkout-sidebar-card .wc-block-components-order-summary-item__description h3,
  .sk-checkout-sidebar-card .wc-block-components-order-summary-item__description a {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  .sk-checkout-sidebar-card .sk-order-qty-line {
    font-size: 12px;
  }

  .sk-checkout-sidebar-card .wc-block-components-order-summary-item__total-price {
    font-size: 14px !important;
    white-space: nowrap;
  }

  .sk-checkout-sidebar-card .wc-block-components-totals-item {
    font-size: 14px;
  }

  .sk-checkout-sidebar-card .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 17px !important;
  }

  .sk-checkout-sidebar-card .wc-block-components-totals-coupon__form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .sk-checkout-sidebar-card .wc-block-components-totals-coupon__button {
    width: 100%;
    align-self: stretch;
  }

  .sk-checkout-sidebar-card .wp-block-woocommerce-checkout-shipping-methods-block {
    padding-top: 16px !important;
  }

  .sk-checkout-sidebar-card .wp-block-woocommerce-checkout-shipping-methods-block .wc-block-components-radio-control__option {
    padding: 12px 14px !important;
  }

  .sk-checkout-sidebar-card .wp-block-woocommerce-checkout-shipping-methods-block .wc-block-components-radio-control__option-layout {
    flex-wrap: wrap;
    gap: 8px;
  }

  .sk-checkout-sidebar-card .wp-block-woocommerce-checkout-shipping-methods-block .wc-block-components-radio-control__description {
    width: 100%;
    text-align: right;
  }

  .sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block {
    padding-top: 16px !important;
  }

  .sk-checkout-sidebar-card .wc-block-checkout__payment-method .wc-block-components-radio-control__option,
  .sk-checkout-sidebar-card .wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option {
    padding: 14px 14px 14px 44px !important;
  }

  .sk-checkout-sidebar-card .wc-block-components-radio-control__label {
    font-size: 14px !important;
    word-break: break-word;
  }

  .sk-checkout-sidebar-card .sk-payment-method-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
  }

  .sk-checkout-sidebar-card .wp-block-woocommerce-checkout-terms-block {
    padding-top: 14px !important;
  }

  .sk-checkout-sidebar-card .wc-block-components-checkbox__label,
  .sk-checkout-sidebar-card .wc-block-components-checkbox-control__label {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  .sk-checkout-sidebar-card .wp-block-woocommerce-checkout-actions-block {
    padding-top: 12px !important;
  }

  .sk-checkout-sidebar-card .wc-block-components-checkout-place-order-button,
  .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button {
    padding: 16px 20px !important;
    font-size: 15px !important;
    border-radius: 10px !important;
    letter-spacing: 0.06em;
  }

  .sk-checkout-rearranged .wc-block-checkout__main .wp-block-woocommerce-checkout-order-note-block .wc-block-components-textarea {
    min-height: 88px !important;
  }

  .wc-block-components-address-card__edit {
    font-size: 13px;
  }
}
