/*
 * Thông tin hóa đơn VAT: trang M9c/D9c và khối "Xuất hóa đơn VAT" ở thanh toán (bảng trượt mobile, ô tick desktop).
 * Phụ thuộc: shop.css, shop-forms.css
 */
.tg-vat {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.tg-vat__card,
.tg-checkout-vat__fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Mobile: tên màn đã ở appbar */
.tg-vat__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.tg-vat__card > .tg-muted {
  font-size: var(--text-meta);
}

.tg-vat__type .woocommerce-input-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tg-vat__type .tg-field__label {
  display: block;
  margin-bottom: var(--space-1-5);
}

.tg-vat__note {
  gap: var(--space-2);
  font-size: var(--text-14);
}

.tg-vat__bar .tg-btn {
  flex: 1;
  min-height: 46px;
}

.tg-checkout-vat__toggle {
  margin-bottom: var(--space-2);
}

@media (min-width: 1024px) {
  .tg-vat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: var(--section-gap);
  }

  .tg-vat > .tg-error-summary {
    grid-column: 1 / -1;
  }

  .tg-vat__card {
    padding: var(--space-6) var(--space-8);
  }

  .tg-vat__title {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
    font-size: var(--text-18);
    font-weight: var(--weight-medium);
  }

  .tg-vat__bar {
    position: static;
    grid-column: 1;
    justify-content: flex-start;
    padding: 0;
    border: 0;
    background: none;
  }

  .tg-vat__bar .tg-btn {
    flex: none;
    min-width: 160px;
  }

  .tg-checkout-vat__toggle {
    margin-bottom: 0;
    font-size: var(--text-14);
  }

  .tg-checkout-vat__fields {
    margin-top: var(--space-3);
  }
}
