/* Honeypot chống bot: ẩn khỏi người thật, bot vẫn "thấy" và điền. */
.dimi-qb-form .dimi-qb-hp {
  height: 0 !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important;
}

.dimi-qb-trigger {
  align-items: center;
  background: var(--dimi-qb-accent, #0f766e);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  font: inherit;
  font-weight: 700;
  gap: 2px;
  justify-content: center;
  line-height: 1.25;
  margin: 12px 0 0;
  min-height: 48px;
  padding: 10px 18px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

body .dimi-qb-modal,
body .dimi-qb-inline {
  color: #16202a;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
}

body .dimi-qb-modal *,
body .dimi-qb-modal *::before,
body .dimi-qb-modal *::after,
body .dimi-qb-inline *,
body .dimi-qb-inline *::before,
body .dimi-qb-inline *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

body .dimi-qb-modal button,
body .dimi-qb-inline button,
body .dimi-qb-modal input,
body .dimi-qb-inline input,
body .dimi-qb-modal textarea,
body .dimi-qb-inline textarea,
body .dimi-qb-modal select,
body .dimi-qb-inline select {
  font-family: inherit;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0;
  max-width: 100%;
  text-transform: none;
}

body .dimi-qb-modal button,
body .dimi-qb-inline button {
  -webkit-appearance: none;
  appearance: none;
}

body .dimi-qb-modal input:not([type="radio"]):not([type="checkbox"]),
body .dimi-qb-inline input:not([type="radio"]):not([type="checkbox"]),
body .dimi-qb-modal textarea,
body .dimi-qb-inline textarea,
body .dimi-qb-modal select,
body .dimi-qb-inline select {
  -webkit-appearance: none;
  appearance: none;
}

.dimi-qb-trigger:hover,
.dimi-qb-trigger:focus {
  color: #fff;
  opacity: 0.94;
  transform: translateY(-1px);
}

.dimi-qb-trigger small {
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 500;
}

.dimi-qb-trigger.is-compact {
  box-shadow: none;
  font-size: 14px;
  min-height: 40px;
  padding: 8px 14px;
}

.dimi-qb-trigger.is-link {
  background: transparent;
  box-shadow: none;
  color: var(--dimi-qb-accent, #0f766e);
  display: inline;
  min-height: 0;
  padding: 0;
}

.dimi-qb-single-button {
  clear: both;
  margin-top: 10px;
}

.dimi-qb-single-button .dimi-qb-trigger {
  width: 100%;
}

html.dimi-qb-open,
body.dimi-qb-open {
  overflow: hidden;
  overscroll-behavior: none;
  /* Không dùng touch-action:none ở đây — nó chặn cả cử chỉ cuộn bắt đầu
     từ bên trong dialog trên mobile. */
}

.dimi-qb-modal[hidden] {
  display: none;
}

.dimi-qb-modal {
  inset: 0;
  overflow: hidden;
  position: fixed;
  /* Tắt double-tap zoom trong modal, vẫn cho cuộn/chạm bình thường. */
  touch-action: manipulation;
  z-index: 999999;
}

.dimi-qb-modal button,
.dimi-qb-modal input,
.dimi-qb-modal select,
.dimi-qb-modal textarea,
.dimi-qb-modal label {
  touch-action: manipulation;
}

.dimi-qb-backdrop {
  background: rgba(12, 18, 22, 0.58);
  inset: 0;
  position: absolute;
}

.dimi-qb-dialog {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.24);
  left: 50%;
  max-height: min(780px, calc(100vh - 28px));
  max-height: min(780px, calc(100dvh - 28px));
  max-width: 1080px;
  overflow-x: hidden;
  overflow-y: auto;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100vw - 32px);
}

.dimi-qb-close {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  color: #111827;
  cursor: pointer;
  display: flex;
  font-size: 22px;
  height: 42px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  min-height: 42px;
  padding: 0;
  right: 16px;
  top: 16px;
  width: 42px;
  z-index: 2;
}

.dimi-qb-form {
  color: #16202a;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  /* Theme (Flatsome...) đặt margin-bottom cho thẻ form — tạo dải trắng dưới đáy dialog. */
  margin: 0;
  max-width: 100%;
  min-width: 0;
  padding: 0;
}

.dimi-qb-inline .dimi-qb-form {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin: 18px 0;
}

.dimi-qb-head {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 68px 1fr;
}

.dimi-qb-thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  height: 68px;
  object-fit: cover;
  width: 68px;
}

.dimi-qb-head h2 {
  color: #111827;
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 4px;
}

.dimi-qb-price {
  align-items: baseline;
  color: var(--dimi-qb-accent, #0f766e);
  display: flex;
  flex-wrap: wrap;
  font-size: 17px;
  font-weight: 800;
  gap: 8px;
}

.dimi-qb-price del {
  color: #98a2ad;
  font-size: 14px;
  font-weight: 600;
  opacity: 1;
}

.dimi-qb-price ins {
  background: transparent;
  color: var(--dimi-qb-accent, #0f766e);
  text-decoration: none;
}

/* Tiêu đề khu vực có icon (Thông tin giao hàng, Địa chỉ, Thanh toán). */
.dimi-qb-heading {
  align-items: center;
  color: #1f2933;
  display: flex;
  font-size: 12.5px;
  font-weight: 800;
  gap: 8px;
  letter-spacing: 0.05em;
  margin: 2px 0;
  text-transform: uppercase;
}

.dimi-qb-heading svg {
  color: var(--dimi-qb-accent, #0f766e);
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.dimi-qb-grid,
.dimi-qb-orderbar {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dimi-qb-aside,
.dimi-qb-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* Khối đặt hàng: nền phủ kín nguyên section, không viền/thẻ nổi. */
.dimi-qb-aside {
  background: #f2f7f4;
  background: color-mix(in srgb, var(--dimi-qb-accent, #0f766e) 6%, #fff);
  padding: 20px 18px;
}

/* Cột thông tin khách: nền trắng của dialog, chỉ có padding. */
.dimi-qb-fields {
  padding: 20px 64px 20px 20px;
}

/* Đảo vị trí 2 cột (setting): thông tin khách trái, khối đặt hàng phải. */
.dimi-qb-form.dimi-qb-swap {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
}

.dimi-qb-form.dimi-qb-swap .dimi-qb-fields {
  order: -1;
  padding: 20px;
}

.dimi-qb-form.dimi-qb-swap .dimi-qb-aside {
  padding-right: 56px; /* chừa chỗ nút đóng ở góc phải */
}

.dimi-qb-orderbar {
  grid-template-columns: 1fr;
}

.dimi-qb-qty {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

/* Field kiểu "notched outline": nhãn nằm lồng trên viền input. */
.dimi-qb-field {
  display: block;
  margin: 0;
  padding-top: 7px;
  position: relative;
}

/* Chỉ áp style chip nhãn cho span nhãn — KHÔNG áp cho span icon. */
.dimi-qb-field > span:not(.dimi-qb-input-icon) {
  background: #fff;
  border-radius: 4px;
  left: 12px;
  line-height: 14px;
  padding: 0 5px;
  position: absolute;
  top: 0;
  white-space: nowrap;
  z-index: 1;
}

.dimi-qb-field:focus-within > span:not(.dimi-qb-input-icon) {
  color: var(--dimi-qb-accent, #0f766e);
}

/* Icon nằm trong ô nhập (bên trái). */
.dimi-qb-field .dimi-qb-input-icon,
.dimi-qb-coupon .dimi-qb-input-icon {
  align-items: center;
  background: transparent;
  bottom: 0;
  color: #98a2ad;
  display: flex;
  left: 12px;
  padding: 0;
  pointer-events: none;
  position: absolute;
  top: 7px;
  z-index: 1;
}

.dimi-qb-input-icon svg {
  flex: 0 0 auto;
  height: 16px;
  width: 16px;
}

.dimi-qb-field:focus-within .dimi-qb-input-icon {
  color: var(--dimi-qb-accent, #0f766e);
}

.dimi-qb-coupon {
  position: relative;
}

/* Trong ô coupon, icon chỉ cao bằng ô nhập (container còn chứa chip/feedback). */
.dimi-qb-coupon .dimi-qb-input-icon {
  bottom: auto;
  height: 38px;
  top: 0;
}

.dimi-qb-field span,
.dimi-qb-qty span,
.dimi-qb-section-title {
  color: #344252;
  font-size: 12px;
  font-weight: 700;
}

.dimi-qb-input,
.dimi-qb-form select {
  background: #f9fbfb;
  border: 1px solid #d6e0e5;
  border-radius: 8px;
  box-shadow: none;
  color: #111827;
  font: inherit;
  min-height: 38px;
  padding: 8px 11px;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.dimi-qb-input::placeholder {
  color: #98a2ad;
}

.dimi-qb-input:focus,
.dimi-qb-form select:focus {
  background: #fff;
  border-color: var(--dimi-qb-accent, #0f766e);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
  outline: none;
}

.dimi-qb-section {
  background: transparent;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}

.dimi-qb-shipping,
.dimi-qb-payment {
  border-top: 1px solid #e8eef1;
  margin-top: 2px;
  padding-top: 10px;
}

/* Bảng biến thể theo cấu trúc chuẩn WooCommerce, hiển thị dạng xếp dọc. */
.dimi-qb-form table.variations,
.dimi-qb-form table.variations tbody,
.dimi-qb-form table.variations tr,
.dimi-qb-form table.variations th,
.dimi-qb-form table.variations td {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none;
  display: block;
  margin: 0;
  padding: 0;
  text-align: left;
  width: 100%;
}

.dimi-qb-form table.variations {
  border-collapse: collapse;
}

.dimi-qb-form table.variations tr + tr {
  margin-top: 10px;
}

.dimi-qb-form table.variations th.label,
.dimi-qb-form table.variations th.label label {
  color: #344252;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px;
}

.dimi-qb-form .reset_variations {
  color: var(--dimi-qb-accent, #0f766e);
  cursor: pointer;
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
  text-decoration: none;
}

/* WC render giá/tồn kho của biến thể vào đây và slideDown — form đã tự hiển
   thị giá nên ẩn hẳn; sự kiện show_variation vẫn được bắn bình thường. */
.dimi-qb-form .single_variation_wrap {
  display: none !important;
}

/* Swatches trong form dùng màu nhấn của plugin thay vì màu theme/custom CSS
   của site, và tắt span ": giá trị" (Flatsome stacked layout) gây nhảy layout
   khi hover. Chỉ đè nền của swatch dạng chữ (--label); swatch màu/ảnh giữ
   nguyên nền vì đó là màu của sản phẩm. */
body .dimi-qb-form .ux-swatch-selected-value {
  display: none !important;
}

body .dimi-qb-form .ux-swatch {
  box-shadow: 0 0 0 1px #d6e0e5 !important;
}

body .dimi-qb-form .ux-swatch--label {
  background: #f9fbfb !important;
  color: #111827 !important;
}

body .dimi-qb-form .ux-swatch:hover:not(.selected):not(.disabled) {
  box-shadow: 0 0 0 1px var(--dimi-qb-accent, #0f766e) !important;
}

body .dimi-qb-form .ux-swatch--label:hover:not(.selected):not(.disabled) {
  background: var(--dimi-qb-accent, #0f766e) !important;
  color: #fff !important;
}

body .dimi-qb-form .ux-swatch.selected {
  box-shadow: 0 0 0 2px var(--dimi-qb-accent, #0f766e) !important;
}

body .dimi-qb-form .ux-swatch--label.selected {
  background: var(--dimi-qb-accent, #0f766e) !important;
  border-color: var(--dimi-qb-accent, #0f766e) !important;
  color: #fff !important;
}

/* Tương tự cho plugin "Variation Swatches for WooCommerce" (.variable-item). */
body .dimi-qb-form .variable-items-wrapper .variable-item:hover,
body .dimi-qb-form .variable-items-wrapper .variable-item.selected {
  border-color: var(--dimi-qb-accent, #0f766e) !important;
  box-shadow: 0 0 0 1px var(--dimi-qb-accent, #0f766e) !important;
}

body .dimi-qb-form .variable-items-wrapper .button-variable-item.selected {
  background: var(--dimi-qb-accent, #0f766e) !important;
  color: #fff !important;
}

.dimi-qb-coupon {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.dimi-qb-coupon-feedback {
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  grid-column: 1 / -1;
  line-height: 1.35;
  min-height: 0;
  padding: 0;
}

.dimi-qb-coupon-feedback:not(:empty) {
  margin-top: -2px;
  padding: 8px 10px;
}

.dimi-qb-coupon-feedback.is-success {
  background: #ecfdf5;
  color: #047857;
}

.dimi-qb-coupon-feedback.is-error {
  background: #fff1f2;
  color: #be123c;
}

.dimi-qb-coupon-feedback.is-info {
  background: #f0f9ff;
  color: #0369a1;
}

/* Chip gợi ý mã giảm giá dưới ô nhập. */
.dimi-qb-coupon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 1 / -1;
}

.dimi-qb-coupon-chip {
  align-items: center;
  background: #fff;
  border: 1px dashed var(--dimi-qb-accent, #0f766e);
  border-radius: 999px;
  color: var(--dimi-qb-accent, #0f766e);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  line-height: 1.25;
  min-height: 30px;
  padding: 5px 11px;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Tooltip "Nhấn để áp dụng" — chỉ hiện trên thiết bị có hover thật (desktop). */
@media (hover: hover) {
  /* Tooltip neo theo mép trái chip (không căn giữa) để chip sát mép
     không bị overflow-x: hidden của dialog cắt mất chữ. */
  .dimi-qb-coupon-chip::after {
    background: #111827;
    border-radius: 6px;
    bottom: calc(100% + 7px);
    color: #fff;
    content: attr(data-dimi-qb-tip);
    font-size: 11px;
    font-weight: 600;
    left: 0;
    max-width: min(240px, 70vw);
    opacity: 0;
    padding: 5px 9px;
    pointer-events: none;
    position: absolute;
    text-align: left;
    transform: translateY(3px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    visibility: hidden;
    white-space: normal;
    width: max-content;
    z-index: 3;
  }

  .dimi-qb-coupon-chip::before {
    border: 5px solid transparent;
    border-top-color: #111827;
    bottom: calc(100% - 3px);
    content: "";
    left: 18px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transform: translateY(3px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    visibility: hidden;
    z-index: 3;
  }

  .dimi-qb-coupon-chip:hover::after,
  .dimi-qb-coupon-chip:focus-visible::after,
  .dimi-qb-coupon-chip:hover::before,
  .dimi-qb-coupon-chip:focus-visible::before {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
}

.dimi-qb-coupon-chip span {
  color: #52606d;
  font-weight: 600;
}

.dimi-qb-coupon-chip:hover,
.dimi-qb-coupon-chip.is-active {
  background: var(--dimi-qb-accent, #0f766e);
  border-style: solid;
  color: #fff;
}

.dimi-qb-coupon-chip:hover span,
.dimi-qb-coupon-chip.is-active span {
  color: rgba(255, 255, 255, 0.85);
}

.dimi-qb-qty > .dimi-qb-stepper {
  align-items: center;
  background: #fff;
  border: 1px solid #d6e0e5;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  display: grid;
  gap: 0;
  grid-template-columns: 38px minmax(56px, 1fr) 38px;
  height: 38px;
  min-height: 38px;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.dimi-qb-qty > .dimi-qb-stepper button {
  align-items: center;
  appearance: none;
  background: #f5faf8;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--dimi-qb-accent, #0f766e);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  height: 100%;
  justify-content: center;
  line-height: 1;
  max-height: 100%;
  min-height: 0;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  width: 38px;
}

.dimi-qb-qty > .dimi-qb-stepper button:hover,
.dimi-qb-qty > .dimi-qb-stepper button:focus {
  background: var(--dimi-qb-accent, #0f766e);
  color: #fff;
  outline: none;
}

.dimi-qb-qty > .dimi-qb-stepper button:active {
  transform: scale(0.96);
}

.dimi-qb-qty > .dimi-qb-stepper input.dimi-qb-input {
  background: #fff;
  border: 0;
  border-left: 1px solid #e4ecef;
  border-radius: 0;
  border-right: 1px solid #e4ecef;
  box-shadow: none;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  height: 100%;
  line-height: normal;
  max-height: 100%;
  min-height: 0;
  padding: 0 10px;
  text-align: center;
}

.dimi-qb-qty > .dimi-qb-stepper input.dimi-qb-input:focus {
  background: #fff;
  box-shadow: none;
}

.dimi-qb-stepper input::-webkit-outer-spin-button,
.dimi-qb-stepper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.dimi-qb-stepper input[type="number"] {
  -moz-appearance: textfield;
}

.dimi-qb-secondary,
.dimi-qb-submit {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 13px;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.dimi-qb-secondary {
  background: #e8f3f1;
  color: var(--dimi-qb-accent, #0f766e);
  align-items: center;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  white-space: nowrap;
}

.dimi-qb-secondary:hover,
.dimi-qb-secondary:focus {
  background: #d9eee9;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.12);
}

.dimi-qb-secondary.is-loading {
  cursor: wait;
  opacity: 0.82;
}

.dimi-qb-secondary.is-loading::before {
  animation: dimi-qb-spin 0.75s linear infinite;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  content: "";
  flex: 0 0 auto;
  height: 14px;
  width: 14px;
}

.dimi-qb-submit {
  background: var(--dimi-qb-accent, #0f766e);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.18);
  color: #fff;
  align-items: center;
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  min-height: 46px;
  position: relative;
  white-space: nowrap;
  width: 100%;
}

.dimi-qb-submit svg {
  flex: 0 0 auto;
  height: 16px;
  width: 16px;
}

.dimi-qb-submit:hover,
.dimi-qb-submit:focus {
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.24);
  color: #fff;
  transform: translateY(-1px);
}

.dimi-qb-submit.is-loading {
  cursor: wait;
  opacity: 0.88;
  transform: none;
}

.dimi-qb-submit.is-loading::before {
  animation: dimi-qb-spin 0.75s linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-right-color: transparent;
  border-radius: 999px;
  content: "";
  flex: 0 0 auto;
  height: 16px;
  width: 16px;
}

.dimi-qb-submit:disabled,
.dimi-qb-trigger:disabled {
  cursor: wait;
  opacity: 0.72;
}

.dimi-qb-payments {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dimi-qb-payments label,
.dimi-qb-check {
  align-items: center;
  background: #fff;
  border: 1px solid #e1e8ec;
  border-radius: 10px;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 11px 12px;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.dimi-qb-payments label:hover,
.dimi-qb-payments label:has(input:checked) {
  background: #f2f9f5;
  background: color-mix(in srgb, var(--dimi-qb-accent, #0f766e) 6%, #fff);
  border-color: var(--dimi-qb-accent, #0f766e);
  box-shadow: 0 0 0 1px var(--dimi-qb-accent, #0f766e);
}

.dimi-qb-payments input[type="radio"],
.dimi-qb-check input[type="checkbox"] {
  accent-color: var(--dimi-qb-accent, #0f766e);
  flex: 0 0 auto;
}

.dimi-qb-payment-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dimi-qb-payment-text strong {
  color: #1f2933;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.dimi-qb-payment-text small,
.dimi-qb-check-text small {
  color: #6b7786;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.dimi-qb-check-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dimi-qb-check-text strong {
  color: #1f2933;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.dimi-qb-summary {
  background: #fff;
  border: 1px solid #e0eae3;
  border-radius: 10px;
  color: #1f2933;
  padding: 12px 14px;
}

.dimi-qb-summary-title {
  color: #1f2933;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.dimi-qb-summary strong,
.dimi-qb-summary .amount,
.dimi-qb-summary .woocommerce-Price-currencySymbol {
  color: #1f2933;
}

.dimi-qb-total-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 6px;
}

.dimi-qb-total-row:last-child {
  margin-bottom: 0;
}

.dimi-qb-total-row.is-discount,
.dimi-qb-total-row.is-discount strong,
.dimi-qb-total-row.is-discount .amount,
.dimi-qb-total-row.is-discount .woocommerce-Price-currencySymbol {
  color: #0a7d55;
}

.dimi-qb-total-row.is-final {
  border-top: 1px solid #dce8e1;
  font-size: 15px;
  margin-top: 6px;
  padding-top: 8px;
}

.dimi-qb-total-row.is-final strong,
.dimi-qb-total-row.is-final .amount,
.dimi-qb-total-row.is-final .woocommerce-Price-currencySymbol {
  color: var(--dimi-qb-accent, #0f766e);
  font-size: 17px;
}

.dimi-qb-shipping-note {
  color: #6b7786;
  font-size: 12px;
  margin: 6px 0 0;
}

/* Dòng điều khoản dưới nút đặt hàng. */
.dimi-qb-terms-note {
  color: #6b7786;
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  text-align: center;
}

.dimi-qb-terms-note a,
.dimi-qb-check-text small a {
  color: var(--dimi-qb-accent, #0f766e);
  font-weight: 700;
  text-decoration: underline;
}

/* Đếm ký tự ghi chú. */
.dimi-qb-note-count {
  bottom: 7px;
  color: #98a2ad;
  font-size: 11px;
  font-style: normal;
  pointer-events: none;
  position: absolute;
  right: 11px;
}

.dimi-qb-message {
  border-radius: 8px;
  font-weight: 700;
  padding: 0;
}

.dimi-qb-message.is-error,
.dimi-qb-error {
  background: #fff1f2;
  color: #be123c;
  padding: 12px;
}

.dimi-qb-message.is-success {
  background: #ecfdf5;
  color: #047857;
  padding: 12px;
}

.dimi-qb-loading {
  padding: 40px;
  text-align: center;
}

@keyframes dimi-qb-spin {
  to {
    transform: rotate(360deg);
  }
}

body .dimi-qb-modal .dimi-qb-form .dimi-qb-input,
body .dimi-qb-inline .dimi-qb-form .dimi-qb-input,
body .dimi-qb-modal .dimi-qb-form select,
body .dimi-qb-inline .dimi-qb-form select {
  background-color: #f9fbfb !important;
  border: 1px solid #d6e0e5 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  color: #111827 !important;
  font-size: 14px !important;
  min-height: 38px !important;
  padding: 8px 11px !important;
}

body .dimi-qb-modal .dimi-qb-form .dimi-qb-input:focus,
body .dimi-qb-inline .dimi-qb-form .dimi-qb-input:focus,
body .dimi-qb-modal .dimi-qb-form select:focus,
body .dimi-qb-inline .dimi-qb-form select:focus {
  background-color: #fff !important;
  border-color: var(--dimi-qb-accent, #0f766e) !important;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14) !important;
}

/* Input trong field notched: nền trắng để chip nhãn liền mạch với viền. */
body .dimi-qb-modal .dimi-qb-form .dimi-qb-field .dimi-qb-input,
body .dimi-qb-inline .dimi-qb-form .dimi-qb-field .dimi-qb-input,
body .dimi-qb-modal .dimi-qb-form .dimi-qb-field select,
body .dimi-qb-inline .dimi-qb-form .dimi-qb-field select {
  background-color: #fff !important;
}

/* Chừa chỗ cho icon bên trái trong input. */
body .dimi-qb-modal .dimi-qb-form .dimi-qb-field.has-icon .dimi-qb-input,
body .dimi-qb-inline .dimi-qb-form .dimi-qb-field.has-icon .dimi-qb-input,
body .dimi-qb-modal .dimi-qb-form .dimi-qb-field.has-icon select,
body .dimi-qb-inline .dimi-qb-form .dimi-qb-field.has-icon select,
body .dimi-qb-modal .dimi-qb-form .dimi-qb-coupon .dimi-qb-input,
body .dimi-qb-inline .dimi-qb-form .dimi-qb-coupon .dimi-qb-input {
  padding-left: 37px !important;
}

body .dimi-qb-modal .dimi-qb-form .dimi-qb-secondary,
body .dimi-qb-inline .dimi-qb-form .dimi-qb-secondary,
body .dimi-qb-modal .dimi-qb-form .dimi-qb-submit,
body .dimi-qb-inline .dimi-qb-form .dimi-qb-submit {
  border: 0 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1.25 !important;
  text-transform: none !important;
}

body .dimi-qb-modal .dimi-qb-form .dimi-qb-secondary.is-loading,
body .dimi-qb-inline .dimi-qb-form .dimi-qb-secondary.is-loading {
  align-items: center !important;
  cursor: wait !important;
  display: inline-flex !important;
  justify-content: center !important;
  opacity: 0.82 !important;
}

body .dimi-qb-modal .dimi-qb-form .dimi-qb-submit,
body .dimi-qb-inline .dimi-qb-form .dimi-qb-submit {
  background: var(--dimi-qb-accent, #0f766e) !important;
  color: #fff !important;
}

body .dimi-qb-modal .dimi-qb-form .dimi-qb-submit.is-loading,
body .dimi-qb-inline .dimi-qb-form .dimi-qb-submit.is-loading {
  align-items: center !important;
  cursor: wait !important;
  display: inline-flex !important;
  justify-content: center !important;
  opacity: 0.88 !important;
}

body .dimi-qb-modal .dimi-qb-qty > .dimi-qb-stepper,
body .dimi-qb-inline .dimi-qb-qty > .dimi-qb-stepper {
  background: #fff !important;
  border: 1px solid #d6e0e5 !important;
  border-radius: 8px !important;
  height: 38px !important;
  min-height: 38px !important;
  overflow: hidden !important;
}

body .dimi-qb-modal .dimi-qb-qty > .dimi-qb-stepper button,
body .dimi-qb-inline .dimi-qb-qty > .dimi-qb-stepper button {
  background: #f5faf8 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--dimi-qb-accent, #0f766e) !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  width: 38px !important;
}

body .dimi-qb-modal .dimi-qb-qty > .dimi-qb-stepper button:hover,
body .dimi-qb-inline .dimi-qb-qty > .dimi-qb-stepper button:hover,
body .dimi-qb-modal .dimi-qb-qty > .dimi-qb-stepper button:focus,
body .dimi-qb-inline .dimi-qb-qty > .dimi-qb-stepper button:focus {
  background: var(--dimi-qb-accent, #0f766e) !important;
  color: #fff !important;
}

body .dimi-qb-modal .dimi-qb-qty > .dimi-qb-stepper input.dimi-qb-input,
body .dimi-qb-inline .dimi-qb-qty > .dimi-qb-stepper input.dimi-qb-input {
  background: #fff !important;
  border: 0 !important;
  border-left: 1px solid #e4ecef !important;
  border-radius: 0 !important;
  border-right: 1px solid #e4ecef !important;
  box-shadow: none !important;
  height: 100% !important;
  line-height: normal !important;
  max-height: 100% !important;
  min-height: 0 !important;
  padding: 0 10px !important;
}

body .dimi-qb-modal .dimi-qb-qty > .dimi-qb-stepper input.dimi-qb-input:focus,
body .dimi-qb-inline .dimi-qb-qty > .dimi-qb-stepper input.dimi-qb-input:focus {
  border-color: #e4ecef !important;
  box-shadow: none !important;
}

body .dimi-qb-modal .dimi-qb-payments label,
body .dimi-qb-inline .dimi-qb-payments label {
  margin: 0 !important;
}

@media (max-width: 820px) {
  /* Mobile: modal full màn hình. */
  .dimi-qb-dialog {
    border: 0;
    border-radius: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    left: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: env(safe-area-inset-top, 0px);
    top: 0;
    transform: none;
    width: 100%;
  }

  .dimi-qb-close {
    height: 44px;
    min-height: 44px;
    right: 10px;
    top: calc(10px + env(safe-area-inset-top, 0px));
    width: 44px;
  }

  /* Mobile: bỏ kiểu "thẻ nổi", nội dung tràn sát mép như bottom sheet chuẩn. */
  .dimi-qb-dialog {
    background: #fff;
    border: 0;
  }

  .dimi-qb-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 0 calc(82px + env(safe-area-inset-bottom, 0px));
  }

  .dimi-qb-aside,
  .dimi-qb-fields {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 14px 16px;
    width: 100%;
  }

  .dimi-qb-aside {
    position: static;
  }

  /* Mobile: cột thông tin khách lên TRÊN, khối đặt hàng (tổng tiền + nút) xuống dưới. */
  .dimi-qb-fields {
    order: -1;
    padding-right: 16px;
  }

  .dimi-qb-head,
  .dimi-qb-grid,
  .dimi-qb-orderbar {
    grid-template-columns: 1fr;
  }

  .dimi-qb-coupon {
    grid-template-columns: 1fr;
  }

  .dimi-qb-head {
    padding-right: 42px;
    grid-template-columns: 56px 1fr;
  }

  .dimi-qb-thumb {
    display: block;
    height: 56px;
    width: 56px;
  }

  /* Nút Đặt hàng LUÔN nổi cố định ở đáy màn hình (chỉ trong modal). */
  .dimi-qb-modal .dimi-qb-form .dimi-qb-submit {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 6px 18px rgba(15, 118, 110, 0.28);
    left: 16px;
    position: fixed;
    right: 16px;
    width: auto;
    z-index: 6;
  }

  /* Dải nền trắng cố định phía sau nút. KHÔNG dùng ::after của nút:
     position:fixed tạo stacking context nên con z-index âm sẽ vẽ ĐÈ lên
     nền nút (nút trắng trơn, chữ trắng tàng hình). */
  .dimi-qb-modal .dimi-qb-form::after {
    background: #f2f7f4;
    background: color-mix(in srgb, var(--dimi-qb-accent, #0f766e) 6%, #fff);
    border-top: 1px solid #e4ede7;
    bottom: 0;
    content: "";
    height: calc(66px + env(safe-area-inset-bottom, 0px));
    left: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    z-index: 5;
  }

  /* Form inline (shortcode) giữ sticky trong khối của nó. */
  .dimi-qb-inline .dimi-qb-form .dimi-qb-submit {
    bottom: 0;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.14), 0 10px 24px rgba(15, 118, 110, 0.18);
    position: sticky;
    z-index: 5;
  }

  body .dimi-qb-modal .dimi-qb-form .dimi-qb-submit {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    position: fixed !important;
    z-index: 6 !important;
  }

  body .dimi-qb-inline .dimi-qb-form .dimi-qb-submit {
    bottom: 0 !important;
    position: sticky !important;
    z-index: 5 !important;
  }

  /* Mobile: font-size 16px chặn iOS Safari tự zoom khi focus input;
     min-height 46px đạt chuẩn touch target 44px+. */
  body .dimi-qb-modal .dimi-qb-form .dimi-qb-input,
  body .dimi-qb-inline .dimi-qb-form .dimi-qb-input,
  body .dimi-qb-modal .dimi-qb-form select,
  body .dimi-qb-inline .dimi-qb-form select {
    font-size: 16px !important;
    min-height: 46px !important;
  }

  body .dimi-qb-modal .dimi-qb-form .dimi-qb-secondary,
  body .dimi-qb-inline .dimi-qb-form .dimi-qb-secondary {
    min-height: 46px !important;
  }

  body .dimi-qb-modal .dimi-qb-qty > .dimi-qb-stepper,
  body .dimi-qb-inline .dimi-qb-qty > .dimi-qb-stepper {
    height: 46px !important;
    min-height: 46px !important;
  }

  body .dimi-qb-modal .dimi-qb-qty > .dimi-qb-stepper button,
  body .dimi-qb-inline .dimi-qb-qty > .dimi-qb-stepper button {
    width: 44px !important;
  }

  .dimi-qb-payments {
    grid-template-columns: 1fr;
  }

  .dimi-qb-payments label,
  .dimi-qb-check {
    padding: 12px;
  }


  /* Input mobile cao 46px — icon coupon theo cùng chiều cao. */
  .dimi-qb-coupon .dimi-qb-input-icon {
    height: 46px;
  }
}

/* ===================================================================
   Giao diện TỐI GIẢN (setting form_style = minimal): đen trắng,
   nhãn uppercase, input gạch chân, nút đen vuông. Cùng markup với
   giao diện mặc định — chỉ phủ style qua class dimi-qb-style-minimal.
   =================================================================== */

.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-aside {
  background: #f7f7f7;
}

.dimi-qb-modal .dimi-qb-form.dimi-qb-style-minimal::after {
  background: #f7f7f7;
  border-top-color: #e5e5e5;
}

.dimi-qb-dialog:has(.dimi-qb-style-minimal) .dimi-qb-close {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 50%;
  box-shadow: none;
  color: #111;
}

/* Tiêu đề khu vực: chữ nhỏ giãn rộng, bỏ icon. */
.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-heading {
  color: #8c8c8c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-heading svg,
.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-input-icon,
.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-submit svg {
  display: none;
}

/* Field: nhãn uppercase nằm TRÊN input (bỏ kiểu notched). */
.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 0;
}

.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-field > span:not(.dimi-qb-input-icon) {
  background: transparent;
  border-radius: 0;
  color: #6f6f6f;
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.4;
  padding: 0;
  position: static;
  text-transform: uppercase;
  white-space: normal;
}

/* Input/select/textarea: chỉ gạch chân. */
body .dimi-qb-modal .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-input,
body .dimi-qb-inline .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-input,
body .dimi-qb-modal .dimi-qb-form.dimi-qb-style-minimal select,
body .dimi-qb-inline .dimi-qb-form.dimi-qb-style-minimal select {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid #d8d8d8 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #111 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body .dimi-qb-modal .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-input:focus,
body .dimi-qb-inline .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-input:focus,
body .dimi-qb-modal .dimi-qb-form.dimi-qb-style-minimal select:focus,
body .dimi-qb-inline .dimi-qb-form.dimi-qb-style-minimal select:focus {
  background: transparent !important;
  border-bottom-color: #111 !important;
  box-shadow: none !important;
}

/* Đầu khối đặt hàng: tên nhỏ lại, giá to đen (giá sale đứng trước). */
.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-head h2 {
  font-size: 15px;
}

.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-price {
  color: #111;
  flex-direction: row-reverse;
  font-size: 24px;
  justify-content: flex-end;
}

.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-price ins {
  color: #111;
}

/* Số lượng: nhãn trái, nút tròn +/− bên phải. */
.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-qty {
  align-items: center;
  border-bottom: 1px solid #ececec;
  flex-direction: row;
  justify-content: space-between;
  padding-bottom: 14px;
}

.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-qty > span:first-child {
  color: #6f6f6f;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body .dimi-qb-modal .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-qty > .dimi-qb-stepper,
body .dimi-qb-inline .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-qty > .dimi-qb-stepper {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  grid-template-columns: 36px 44px 36px;
  height: 36px !important;
  min-height: 36px !important;
  overflow: visible !important;
  width: auto;
}

body .dimi-qb-modal .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-qty > .dimi-qb-stepper button,
body .dimi-qb-inline .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-qty > .dimi-qb-stepper button {
  background: #fff !important;
  border: 1px solid #dcdcdc !important;
  border-radius: 50% !important;
  color: #111 !important;
  font-size: 16px;
  width: 36px !important;
}

body .dimi-qb-modal .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-qty > .dimi-qb-stepper button:hover,
body .dimi-qb-inline .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-qty > .dimi-qb-stepper button:hover,
body .dimi-qb-modal .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-qty > .dimi-qb-stepper button:focus,
body .dimi-qb-inline .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-qty > .dimi-qb-stepper button:focus {
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
}

body .dimi-qb-modal .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-qty > .dimi-qb-stepper input.dimi-qb-input,
body .dimi-qb-inline .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-qty > .dimi-qb-stepper input.dimi-qb-input {
  background: transparent !important;
  border: 0 !important;
  font-size: 15px;
}

/* Mã giảm giá: nút Áp dụng thành chữ gạch chân. */
.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-secondary {
  background: transparent;
  box-shadow: none;
  color: #111;
  text-decoration: underline;
}

.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-secondary:hover,
.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-secondary:focus {
  background: transparent;
  box-shadow: none;
}

.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-coupon-chip {
  border-color: #bdbdbd;
  color: #111;
}

.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-coupon-chip span {
  color: #6f6f6f;
}

.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-coupon-chip:hover,
.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-coupon-chip.is-active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-coupon-chip:hover span,
.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-coupon-chip.is-active span {
  color: rgba(255, 255, 255, 0.8);
}

/* Tóm tắt đơn: bỏ khung thẻ, tổng cuối kẻ đậm. */
.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-summary {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-summary-title {
  display: none;
}

.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-total-row.is-final {
  border-top: 2px solid #111;
  margin-top: 14px;
  padding-top: 14px;
}

.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-total-row.is-final strong,
.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-total-row.is-final .amount,
.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-total-row.is-final .woocommerce-Price-currencySymbol {
  color: #111;
  font-size: 22px;
}

.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-total-row.is-discount,
.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-total-row.is-discount strong,
.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-total-row.is-discount .amount,
.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-total-row.is-discount .woocommerce-Price-currencySymbol {
  color: #111;
}

/* Thanh toán: radio hàng ngang, kẻ mảnh, ẩn mô tả. */
.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-payments {
  gap: 0;
  grid-template-columns: 1fr;
}

.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-payments label {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ececec;
  border-radius: 0;
  box-shadow: none;
  padding: 13px 0;
}

.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-payments label:hover,
.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-payments label:has(input:checked) {
  background: transparent;
  border-color: #ececec;
  box-shadow: none;
}

.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-payment-text small {
  display: none;
}

.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-payments input[type="radio"],
.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-check input[type="checkbox"] {
  accent-color: #111;
}

/* Điều khoản: bỏ khung thẻ. */
.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-check {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 4px 0 0;
}

.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-check-text strong {
  color: #333;
  font-size: 13px;
  font-weight: 500;
}

.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-check-text small a,
.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-terms-note a {
  color: #111;
}

/* Nút đặt hàng: đen, vuông, uppercase. */
body .dimi-qb-modal .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-submit,
body .dimi-qb-inline .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-submit {
  background: #111 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}

.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-submit:hover,
.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-submit:focus {
  transform: none;
}

/* Mobile: nút tròn stepper đủ chuẩn touch. */
@media (max-width: 820px) {
  body .dimi-qb-modal .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-qty > .dimi-qb-stepper,
  body .dimi-qb-inline .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-qty > .dimi-qb-stepper {
    grid-template-columns: 44px 48px 44px;
    height: 44px !important;
    min-height: 44px !important;
  }

  body .dimi-qb-modal .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-qty > .dimi-qb-stepper button,
  body .dimi-qb-inline .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-qty > .dimi-qb-stepper button {
    width: 44px !important;
  }
}

/* Minimal: bỏ padding chừa icon (icon đã ẩn) — thắng rule has-icon 37px. */
body .dimi-qb-modal .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-field.has-icon .dimi-qb-input,
body .dimi-qb-inline .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-field.has-icon .dimi-qb-input,
body .dimi-qb-modal .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-field.has-icon select,
body .dimi-qb-inline .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-field.has-icon select,
body .dimi-qb-modal .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-coupon .dimi-qb-input,
body .dimi-qb-inline .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-coupon .dimi-qb-input {
  padding-left: 0 !important;
}

/* Minimal: phương thức thanh toán — mục đang chọn đậm lên, mục khác nhạt. */
.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-payment-text strong {
  color: #444;
  font-weight: 500;
}

.dimi-qb-form.dimi-qb-style-minimal .dimi-qb-payments label:has(input:checked) .dimi-qb-payment-text strong {
  color: #111;
  font-weight: 800;
}

/* Tắt outline focus của theme (Flatsome: outline 2px currentColor offset 2px
   — hiện thành vạch đen lệch, trông như nhảy layout). Form đã có chỉ báo
   focus riêng (ring màu nhấn / gạch chân đậm). */
body .dimi-qb-modal .dimi-qb-form input:focus-visible,
body .dimi-qb-inline .dimi-qb-form input:focus-visible,
body .dimi-qb-modal .dimi-qb-form select:focus-visible,
body .dimi-qb-inline .dimi-qb-form select:focus-visible,
body .dimi-qb-modal .dimi-qb-form textarea:focus-visible,
body .dimi-qb-inline .dimi-qb-form textarea:focus-visible,
body .dimi-qb-modal .dimi-qb-form button:focus-visible,
body .dimi-qb-inline .dimi-qb-form button:focus-visible {
  outline: none !important;
}

/* Minimal: focus = gạch chân đậm 2px (1px border + 1px box-shadow),
   không làm xê dịch layout. */
body .dimi-qb-modal .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-input:focus,
body .dimi-qb-inline .dimi-qb-form.dimi-qb-style-minimal .dimi-qb-input:focus,
body .dimi-qb-modal .dimi-qb-form.dimi-qb-style-minimal select:focus,
body .dimi-qb-inline .dimi-qb-form.dimi-qb-style-minimal select:focus {
  box-shadow: 0 1px 0 0 #111 !important;
}
