/**
 * MITN — Trang Giỏ hàng + Thanh toán gộp 1 trang.
 * Port từ flatsome-child (nguyenthaimmo-new), ánh xạ biến màu sang design token
 * của theme (tokens.css): brand đỏ #dd3333, surface/text/border chuẩn AA.
 */
.mitn-unified-checkout-page .shop-page-title,
.mitn-unified-checkout-page .page-title,
.mitn-unified-checkout-page .checkout-page-title {
  display: none !important;
}

.mitn-unified-checkout-page .page-wrapper,
.mitn-unified-checkout-page .shop-container {
  background: transparent;
}

.mitn-unified-checkout {
  margin: 0;
}

.mitn-checkout-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.mitn-unified-checkout-notices:empty {
  display: none;
}

.mitn-unified-checkout-notices {
  margin-bottom: 1rem;
}

.mitn-cart-card.is-loading {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.mitn-cart-item.is-removing {
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mitn-checkout-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.mitn-checkout-head__copy h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: var(--fs-h1) !important;      /* 22px → 30px (§5) */
  line-height: var(--lh-tight) !important;
  letter-spacing: -0.02em !important;
  text-wrap: balance;
}

.mitn-checkout-head__copy p {
  max-width: 62ch;
  margin: 0;
  color: var(--color-text-body);
}

.mitn-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(221, 51, 51, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(254, 241, 241, 0.78);
  color: var(--color-brand-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mitn-stepper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mitn-stepper li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
  color: var(--color-text-body);
}

.mitn-stepper li span {
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 0.85rem;
  font-weight: 700;
}

.mitn-stepper li strong {
  font-size: 0.88rem;
  line-height: 1.2;
}

.mitn-stepper li.is-done {
  color: var(--color-status-success);
}

.mitn-stepper li.is-done span {
  background: var(--color-status-success);
  color: #fff;
  border-color: var(--color-status-success);
}

.mitn-stepper li.is-active {
  border-color: rgba(221, 51, 51, 0.3);
  background: linear-gradient(180deg, rgba(254, 241, 241, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  color: var(--color-brand-primary);
}

.mitn-stepper li.is-active span {
  background: var(--color-brand-primary);
  color: #fff;
  border-color: var(--color-brand-primary);
}

.mitn-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 450px);
  gap: 1.5rem;
  align-items: start;
}

.mitn-checkout-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.mitn-checkout-sidebar {
  position: relative;
}

.mitn-card {
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(10px);
}

.mitn-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem 1rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.mitn-card-head h2 {
  margin: 0.3rem 0 0;
  font-size: 1.02rem !important;
}

.mitn-card-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface-sunken);
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mitn-card-link {
  border: 0;
  background: transparent;
  color: var(--color-brand-primary);
  font-weight: 700;
  font-size: 0.82rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mitn-card-link:hover {
  opacity: 0.72;
  transform: translateY(-1px);
}

.mitn-summary-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--color-brand-surface);
  color: var(--color-brand-primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.mitn-cart-items {
  display: flex;
  flex-direction: column;
}

.mitn-cart-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 1.1rem;
  align-items: center;
  padding: 1.2rem 1.35rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.mitn-cart-item:last-child {
  border-bottom: 0;
}

.mitn-cart-item__thumb {
  width: 70px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, #fffdfb 0%, #f4ede6 100%);
  border: 1px solid rgba(212, 204, 196, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 18px rgba(15, 23, 42, 0.05);
}

.mitn-cart-item__thumb a,
.mitn-cart-item__thumb > img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
}

.mitn-cart-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 15px;
}

.mitn-cart-item__title {
  margin: 0 0 0.45rem;
  font-size: 12.5px !important;
  line-height: 1.3 !important;
}

.mitn-cart-item__title a {
  color: var(--color-text-primary);
}

.mitn-cart-item__meta,
.mitn-summary-item__meta {
  color: var(--color-text-body);
  font-size: 0.83rem;
}

.mitn-cart-item__meta dl,
.mitn-summary-item__meta dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin: 0;
}

.mitn-cart-item__meta dt,
.mitn-summary-item__meta dt {
  margin: 0;
  color: var(--color-text-muted);
}

.mitn-cart-item__meta dd,
.mitn-summary-item__meta dd {
  margin: 0;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--color-surface-sunken);
  color: var(--color-text-body);
}

.mitn-cart-item__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.85rem;
  row-gap: 0.45rem;
}

.mitn-static-qty {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: var(--color-surface-sunken);
  color: var(--color-text-body);
  font-size: 0.78rem;
  font-weight: 600;
}

.mitn-cart-item__actions .mitn-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex: 0 0 auto;
  padding: 0.1rem;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-surface-base);
  box-shadow: var(--shadow-sm);
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  align-self: center;
  box-sizing: border-box;
}

.mitn-cart-item__actions .mitn-qty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  min-width: 1.3rem;
  max-width: 1.3rem;
  height: 1.3rem;
  flex: 0 0 1.3rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-body);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mitn-cart-item__actions .mitn-qty__btn:hover {
  background: var(--color-brand-surface);
  color: var(--color-brand-primary);
  transform: translateY(-1px);
}

.mitn-cart-item__actions .mitn-qty__input {
  -moz-appearance: textfield;
  appearance: textfield;
  display: inline-block;
  flex: 0 0 1.4rem;
  width: 1.4rem !important;
  min-width: 1.4rem;
  max-width: 1.4rem;
  height: 1.3rem;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: var(--radius-sm);
  background: transparent !important;
  text-align: center;
  font-weight: 600;
  font-size: 0.8rem !important;
  line-height: 1.3rem !important;
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
  box-shadow: none;
  vertical-align: middle;
  box-sizing: border-box;
}

.mitn-cart-item__actions .mitn-qty__input::-webkit-outer-spin-button,
.mitn-cart-item__actions .mitn-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.mitn-cart-item__actions .mitn-qty__input:focus {
  outline: none;
  color: var(--color-brand-primary);
}

.mitn-cart-item__actions .mitn-remove-item,
.mitn-cart-item__actions a.mitn-remove-item.remove {
  width: 30px;
  height: 22px;
  position: relative;
  transition: opacity 200ms;
  vertical-align: top;
  display: block;
  -webkit-appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  margin-left: 0.15rem;
  flex: 0 0 auto;
  text-indent: -9999px;
  line-height: 0;
  overflow: visible;
}

.mitn-cart-item__actions .mitn-remove-item::before,
.mitn-cart-item__actions .mitn-remove-item::after {
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAQCAQAAACMnYaxAAAAXUlEQVR4XsWQQQrAQAgD84Pti/JSoaftN1MCdgXxXgYvGfUQyABE4DEIUJmeuKgVlJI5em0RGTesFXXZuLwCzvL2pYbHmfCTNSXxpyyajLGClFy7K1dgaaho7YYovIpO3rju6hYFAAAAAElFTkSuQmCC) 0 0 no-repeat;
  left: 8px;
  position: absolute;
  right: 8px;
  top: 2px;
  display: inline-block;
  content: "";
}

.mitn-cart-item__actions .mitn-remove-item::before {
  height: 6px;
  transform-origin: -7% 100%;
  transition: transform 150ms;
  width: 14px;
}

.mitn-cart-item__actions .mitn-remove-item::after {
  background-position: -1px -4px;
  height: 12px;
  margin-left: 1px;
  margin-right: 2px;
  margin-top: 4px;
  width: 11px;
}

.mitn-cart-item__actions .mitn-remove-item:hover::before {
  transform: rotate(-45deg);
  transition: transform 250ms;
}

.mitn-cart-item__actions .mitn-remove-item:hover,
.mitn-cart-item__actions .mitn-remove-item:focus-visible {
  background: transparent;
  opacity: 0.78;
}

.mitn-cart-item__price {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 110px;
}

.mitn-cart-item__subtotal {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.mitn-coupon-card {
  position: relative;
}

.mitn-coupon-row {
  display: flex;
  gap: 0.75rem;
  padding: 1.1rem 1.35rem 1.25rem;
  align-items: center;
}

.mitn-coupon-input {
  flex: 1;
  min-width: 0;
  height: 3rem;
  padding: 0 1rem;
  border: 1.5px dashed var(--color-border-default);
  border-radius: 16px;
  background: #fff;
}

.mitn-coupon-input:focus {
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 3px rgba(221, 51, 51, 0.1);
}

.mitn-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0 1rem;
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mitn-button:hover {
  transform: translateY(-1px);
}

.mitn-button--ghost {
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface-sunken);
  color: var(--color-text-primary);
}

.mitn-coupon-row .mitn-button--ghost {
  min-height: 3rem;
  height: 3rem;
  padding: 0 1.1rem;
  border-radius: 16px;
  box-sizing: border-box;
  align-self: center;
  white-space: nowrap;
}

.mitn-button--ghost:hover {
  border-color: var(--color-brand-primary);
  background: var(--color-brand-surface);
  color: var(--color-brand-primary);
}

.mitn-coupon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0 1.35rem 1.25rem;
}

.mitn-coupon-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--color-status-success-bg);
  color: var(--color-status-success);
  font-size: 0.8rem;
  font-weight: 700;
}

.mitn-coupon-pill a {
  color: inherit;
  text-decoration: underline;
}

.mitn-customer-details {
  padding: 1.2rem 1.35rem 1.35rem;
}

.mitn-customer-card .woocommerce-billing-fields > h3,
.mitn-customer-card .woocommerce-additional-fields > h3 {
  display: none;
}

.mitn-customer-card .woocommerce-billing-fields__field-wrapper,
.mitn-customer-card .woocommerce-additional-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.mitn-customer-card .woocommerce-billing-fields,
.mitn-customer-card .woocommerce-additional-fields {
  border-top: 0 !important;
  padding-top: 0 !important;
}

.mitn-customer-card .form-row {
  margin-bottom: 0;
  float: none !important;
  width: auto !important;
}

.mitn-customer-card .form-row-wide,
.mitn-customer-card .woocommerce-additional-fields__field-wrapper .form-row {
  grid-column: 1 / -1;
}

.mitn-customer-card #billing_first_name_field,
.mitn-customer-card #billing_phone_field,
.mitn-customer-card #billing_email_field,
.mitn-customer-card #nt_license_domain_field {
  grid-column: span 1;
}

.mitn-customer-card label {
  margin-bottom: 0.45rem;
  color: var(--color-text-body);
  font-size: 0.84rem;
  font-weight: 700;
}

.mitn-customer-card input.input-text,
.mitn-customer-card textarea,
.mitn-customer-card select {
  min-height: 3rem;
  border: 1px solid var(--color-border-subtle);
  border-radius: 16px;
  background: #fff;
  color: var(--color-text-primary);
  box-shadow: none !important;
}

.mitn-customer-card textarea {
  min-height: 7rem;
  padding-top: 0.85rem;
}

.mitn-customer-card input.input-text:focus,
.mitn-customer-card textarea:focus,
.mitn-customer-card select:focus {
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 3px rgba(221, 51, 51, 0.08) !important;
}

.mitn-summary-card {
  position: sticky;
  top: 1rem;
}

.mitn-order-review {
  padding: 0 1.35rem 1rem;
  min-width: 0;
}

.mitn-summary-items {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 0 1.2rem;
}

.mitn-summary-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.mitn-summary-item__content {
  min-width: 0;
}

.mitn-summary-item__thumb {
  width: 42px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--color-border-subtle);
  background: linear-gradient(145deg, #fffdfb 0%, #f4ede6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.mitn-summary-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.mitn-summary-item__name {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-primary);
  min-width: 0;
  overflow-wrap: anywhere;
}

.mitn-summary-item__name span {
  color: var(--color-text-muted);
  font-weight: 500;
}

.mitn-summary-item__total {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-primary);
  white-space: nowrap;
  padding-left: 0.25rem;
}

.mitn-summary-totals {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-subtle);
}

.mitn-summary-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--color-text-body);
  font-size: 0.82rem;
}

.mitn-summary-line > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.mitn-summary-line strong,
.mitn-summary-line bdi {
  color: var(--color-text-primary);
  font-weight: 700;
  flex: 0 1 auto;
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.mitn-summary-line--discount,
.mitn-summary-line--discount span,
.mitn-summary-line--discount strong,
.mitn-summary-line--discount bdi {
  color: var(--color-status-success);
}

.mitn-summary-line--muted strong {
  font-size: 0.78rem;
  color: var(--color-text-body);
  max-width: 11rem;
}

.mitn-summary-shipping table,
.mitn-summary-shipping tbody {
  width: 100%;
}

.mitn-summary-shipping th,
.mitn-summary-shipping td,
.mitn-summary-shipping p,
.mitn-summary-shipping label {
  font-size: 0.8rem;
  color: var(--color-text-body);
}

.mitn-grand-total {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-subtle);
}

.mitn-grand-total span {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.mitn-grand-total strong,
.mitn-grand-total .amount,
.mitn-grand-total bdi {
  flex: 0 1 auto;
  min-width: 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-brand-primary);
  text-align: right;
  overflow-wrap: anywhere;
}

.mitn-checkout-payment {
  padding: 1rem 1.35rem 1.35rem;
  min-width: 0;
}

.mitn-payment-methods__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.mitn-payment-methods h3 {
  margin: 0;
  font-size: 0.86rem !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mitn-checkout-payment .wc_payment_methods {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.mitn-checkout-payment .wc_payment_method {
  margin: 0;
  position: relative;
  border: 1px solid var(--color-border-subtle);
  border-radius: 18px;
  background: rgba(250, 247, 244, 0.7);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mitn-checkout-payment .wc_payment_method.is-selected {
  border-color: rgba(221, 51, 51, 0.3);
  box-shadow: 0 12px 30px rgba(221, 51, 51, 0.12);
  transform: translateY(-1px);
}

.mitn-checkout-payment .wc_payment_method > input {
  position: absolute;
  opacity: 0;
}

.mitn-checkout-payment .wc_payment_method > label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1rem 0.95rem 2.9rem;
  margin: 0;
  cursor: pointer;
  color: var(--color-text-primary);
  font-size: 0.86rem;
  font-weight: 700;
  position: relative;
  line-height: 1.4;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.mitn-checkout-payment .wc_payment_method > label::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid var(--color-border-default);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.mitn-checkout-payment .wc_payment_method.is-selected > label::before {
  border-color: var(--color-brand-primary);
  background: radial-gradient(circle at center, var(--color-brand-primary) 0 45%, transparent 46%);
}

.mitn-checkout-payment .wc_payment_method img {
  max-height: 28px;
  width: auto;
  margin-left: auto;
  flex-shrink: 0;
}

.mitn-checkout-payment .payment_box {
  margin: 0 1rem 1rem !important;
  padding: 0.95rem 1rem !important;
  box-sizing: border-box;
  width: auto;
  max-width: calc(100% - 2rem);
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--color-text-body) !important;
  border: 1px solid var(--color-border-subtle);
  overflow-wrap: anywhere;
}

.mitn-checkout-payment .payment_box::before {
  display: none !important;
}

.mitn-place-order {
  margin-top: 1rem;
}

.mitn-checkout-payment .woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 1rem;
  padding-inline: 0.45rem;
}

.mitn-checkout-payment .woocommerce-privacy-policy-text,
.mitn-checkout-payment .woocommerce-terms-and-conditions-wrapper .form-row {
  padding-inline: 0.45rem;
}

.mitn-checkout-payment .woocommerce-privacy-policy-text,
.mitn-checkout-payment .woocommerce-privacy-policy-text p {
  color: var(--color-text-body);
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.mitn-place-order__button,
.mitn-checkout-payment #place_order {
  width: 100%;
  min-height: 3.3rem;
  border-radius: 18px !important;
  box-shadow: 0 18px 30px rgba(221, 51, 51, 0.18);
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}

.mitn-trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.mitn-trust-item:last-child {
  grid-column: 1 / -1;
}

.mitn-trust-item {
  padding: 0.85rem 0.8rem;
  border-radius: 16px;
  background: var(--color-surface-sunken);
  text-align: center;
}

.mitn-trust-item strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--color-text-primary);
  font-size: 0.82rem;
}

.mitn-trust-item span {
  display: block;
  color: var(--color-text-body);
  font-size: 0.76rem;
  line-height: 1.45;
}

.mitn-after-order-review {
  padding: 0 1.35rem 1.25rem;
}

.mitn-after-order-review > *:last-child {
  margin-bottom: 0;
}

.mitn-after-order-review .woocommerce-privacy-policy-text,
.mitn-after-order-review .woocommerce-privacy-policy-text p,
.mitn-after-order-review .html-checkout-sidebar,
.mitn-after-order-review .html-checkout-sidebar p {
  color: var(--color-text-body);
  font-size: 0.82rem;
  line-height: 1.6;
}

.mitn-after-order-review .woocommerce-privacy-policy-text p,
.mitn-after-order-review .html-checkout-sidebar p {
  margin-bottom: 0.85rem;
}

.mitn-unified-checkout-page .woocommerce-error,
.mitn-unified-checkout-page .woocommerce-info,
.mitn-unified-checkout-page .woocommerce-message {
  margin: 0 0 1rem !important;
  padding: 1.15rem 1.5rem !important;
  border-radius: 8px !important;
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-sm);
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .mitn-checkout-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mitn-summary-card {
    position: static;
  }

  .mitn-trust-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .mitn-checkout-shell {
    padding: 1.4rem 0.85rem 3rem;
  }

  .mitn-checkout-head {
    flex-direction: column;
  }

  .mitn-stepper {
    display: none;
  }

  .mitn-cart-item {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .mitn-cart-item__thumb {
    width: 80px;
  }

  .mitn-cart-item__price {
    grid-column: 2;
    justify-content: flex-start;
  }

  .mitn-customer-card .woocommerce-billing-fields__field-wrapper,
  .mitn-customer-card .woocommerce-additional-fields__field-wrapper {
    grid-template-columns: 1fr;
  }

  .mitn-customer-card #billing_first_name_field,
  .mitn-customer-card #billing_phone_field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .mitn-card {
    border-radius: 18px;
  }

  .mitn-card-head,
  .mitn-cart-item,
  .mitn-coupon-row,
  .mitn-coupon-list,
  .mitn-customer-details,
  .mitn-checkout-payment,
  .mitn-order-review,
  .mitn-after-order-review {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .mitn-cart-item__actions {
    flex-wrap: wrap;
  }

  .mitn-coupon-row {
    flex-direction: column;
  }

  .mitn-summary-item {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
  }

  .mitn-summary-item__thumb {
    width: 48px;
  }

  .mitn-summary-item__total {
    grid-column: auto;
    padding-left: 0.15rem;
    text-align: right;
  }

  .mitn-cart-item__actions .mitn-qty__btn {
    width: 1.2rem;
    min-width: 1.2rem;
    max-width: 1.2rem;
    height: 1.2rem;
    flex-basis: 1.2rem;
  }

  .mitn-cart-item__actions .mitn-qty__input {
    width: 1.3rem !important;
    min-width: 1.3rem;
    max-width: 1.3rem;
    height: 1.2rem;
    line-height: 1.2rem !important;
  }

  .mitn-summary-line,
  .mitn-grand-total {
    flex-direction: row;
    align-items: center;
  }

  .mitn-summary-line strong,
  .mitn-summary-line bdi,
  .mitn-grand-total strong,
  .mitn-grand-total .amount,
  .mitn-grand-total bdi {
    text-align: right;
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .mitn-summary-line--muted strong {
    max-width: none;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .mitn-checkout-payment .wc_payment_method > label {
    padding-right: 0.85rem;
  }

  .mitn-trust-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
}
