/* In Ấn Q7 – Giá tem kích thước khác
   Mọi quy tắc đều bọc trong .inq7-temkt để không đụng Flatsome và các plugin In Ấn Q7 khác.
   Đã chặn sẵn những luật theme hay đè: button{text-transform:uppercase;margin-right:1em},
   form{margin-bottom}, li{margin-left}, table{margin-bottom}, .large-12.col{padding-bottom}. */

.inq7-temkt {
  --tk-navy: #23356e;
  --tk-cam: #faa21b;
  --tk-vien: #e2e5ec;
  --tk-chu: #2b3242;
  margin: 14px 0 18px;
  font-size: 14px;
  color: var(--tk-chu);
}

.inq7-temkt *,
.inq7-temkt *::before,
.inq7-temkt *::after { box-sizing: border-box; }

.inq7-temkt button {
  text-transform: none;
  margin: 0;
  min-height: 0;
  line-height: 1.35;
  letter-spacing: 0;
  box-shadow: none;
  border-radius: 8px;
  font-family: inherit;
}

.inq7-temkt table { margin: 0 0 10px; border-collapse: collapse; width: 100%; }
.inq7-temkt th { text-transform: none; letter-spacing: 0; }
.inq7-temkt p { margin: 0 0 8px; text-align: left; }
.inq7-temkt, .inq7-temkt td, .inq7-temkt div { text-align: left; }
.inq7-temkt label { margin: 0; font-weight: 600; }

/* --- nút chuyển --- */
.inq7-temkt-switch {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--tk-vien);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.inq7-temkt-tab {
  appearance: none;
  background: #fff;
  border: 0;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: #5a6378;
  cursor: pointer;
  border-radius: 0;
  transition: .15s;
}

.inq7-temkt-tab + .inq7-temkt-tab { border-left: 1px solid var(--tk-vien); }
.inq7-temkt-tab:hover { color: var(--tk-navy); background: #fffdf7; }
.inq7-temkt-tab.is-active { background: var(--tk-navy); color: #fff; }

/* --- khối nhập --- */
.inq7-temkt-body {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--tk-vien);
  border-radius: 12px;
  background: #fbfbfc;
}

.inq7-temkt-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.inq7-temkt-fields label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--tk-navy);
}

.inq7-temkt-fields input,
.inq7-temkt-fields select {
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--tk-chu);
  background: #fff;
  border: 1px solid var(--tk-vien);
  border-radius: 8px;
  box-shadow: none;
}

.inq7-temkt-fields input:focus,
.inq7-temkt-fields select:focus {
  border-color: var(--tk-cam);
  outline: 0;
}

.inq7-temkt-quy {
  margin: 10px 0 12px;
  font-size: 12px;
  color: #6b7384;
}

.inq7-temkt-btn {
  appearance: none;
  border: 0;
  background: var(--tk-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  cursor: pointer;
}

.inq7-temkt-btn:hover { background: #1b2a59; }
.inq7-temkt-btn[disabled] { opacity: .6; cursor: default; }

.inq7-temkt-loi {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fdecec;
  color: #a22b2b;
  font-size: 13px;
  font-weight: 600;
}

/* --- kết quả --- */
.inq7-temkt-kq { margin-top: 16px; }

.inq7-temkt-layout {
  font-size: 13px;
  font-weight: 700;
  color: var(--tk-navy);
}

.inq7-temkt-bang th,
.inq7-temkt-bang td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--tk-vien);
  font-size: 13.5px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.inq7-temkt-bang th:first-child,
.inq7-temkt-bang td:first-child { text-align: left; font-weight: 600; }
.inq7-temkt-bang th:not(:first-child),
.inq7-temkt-bang td:not(:first-child) { text-align: right; }

.inq7-temkt-bang thead th {
  font-size: 12px;
  text-transform: uppercase;
  text-align: right;
  letter-spacing: .03em;
  color: #6b7384;
  background: #f1f3f7;
  font-weight: 800;
}

.inq7-temkt-bang tr.is-tong td,
.inq7-temkt-bang tr.is-tong th { font-weight: 800; color: var(--tk-navy); }
.inq7-temkt-bang tr.is-cuoi td,
.inq7-temkt-bang tr.is-cuoi th { font-weight: 800; color: var(--tk-cam); font-size: 15px; }

.inq7-temkt-bq {
  font-size: 13px;
  font-weight: 600;
  color: var(--tk-navy);
  font-variant-numeric: tabular-nums;
}

.inq7-temkt-xem { margin: 6px 0 12px; }
.inq7-temkt-xem summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--tk-navy); }
.inq7-temkt-svg svg { display: block; width: 100%; max-width: 260px; height: auto; margin: 12px 0; }

.inq7-temkt-add {
  appearance: none;
  border: 0;
  background: var(--tk-cam);
  color: #231a00;
  font-size: 15px;
  font-weight: 800;
  padding: 13px 26px;
  cursor: pointer;
  width: 100%;
  max-width: 320px;
}

.inq7-temkt-add:hover { background: #e8930d; }
.inq7-temkt-add[disabled] { opacity: .6; cursor: default; }

.inq7-temkt-ghi {
  margin: 12px 0 0;
  font-size: 11.5px;
  font-style: italic;
  color: #6b7384;
}

.inq7-temkt-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #fff3df;
  color: #8a5a00;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
}

@media (max-width: 549px) {
  .inq7-temkt-switch { display: flex; width: 100%; }
  .inq7-temkt-tab { flex: 1 1 50%; padding: 9px 8px; }
  .inq7-temkt-add { max-width: none; }
}
