.nvtm-wrap {
  max-width: 1180px;
}

.nvtm-settings {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  margin: 18px 0;
  padding: 16px;
}

.nvtm-settings label {
  display: block;
  margin-bottom: 8px;
}

.nvtm-check {
  margin-top: 12px;
}

.nvtm-option-toggle {
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #d7dce2;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.nvtm-option-toggle:hover {
  border-color: #9ca3af;
}

.nvtm-option-toggle.is-active {
  background: #eef7ff;
  border-color: #93c5fd;
}

.nvtm-option-toggle.is-dirty {
  background: #fff7df;
  border-color: #f0d48a;
  box-shadow: inset 4px 0 0 #f0d48a;
}

.nvtm-option-toggle input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 2px;
}

.nvtm-option-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nvtm-option-toggle-copy span {
  color: #64748b;
  line-height: 1.35;
}

.nvtm-filter {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.nvtm-filter select {
  min-width: 240px;
}

.nvtm-table {
  border-color: #d7dce2;
  border-radius: 6px;
  overflow: hidden;
  margin: 10px 0 22px;
}

.nvtm-table th,
.nvtm-table td {
  vertical-align: middle;
}

.nvtm-table th {
  background: #f8fafc;
  color: #1f2937;
  font-weight: 700;
}

.nvtm-table td {
  transition: background-color .16s ease;
}

.nvtm-table input.small-text {
  width: 92px;
}

.nvtm-price-cell {
  min-width: 126px;
  transition: background-color .2s ease, box-shadow .2s ease;
}

.nvtm-price-control {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
}

.nvtm-price-control input.small-text {
  flex: 0 0 92px;
}

.nvtm-currency {
  color: #50575e;
  flex: 0 0 auto;
}

.nvtm-price-cell.is-saving {
  background: #fff8e5 !important;
}

.nvtm-price-cell.is-saved {
  background: #dcfce7 !important;
  box-shadow: inset 3px 0 0 #16a34a;
}

.nvtm-price-cell.is-error {
  background: #fee2e2 !important;
  box-shadow: inset 3px 0 0 #dc2626;
}

.nvtm-save-status {
  color: #50575e;
  display: block;
  font-size: 11px;
  line-height: 1.2;
  margin-top: 4px;
}

.nvtm-price-cell.is-saved .nvtm-save-status {
  color: #166534;
}

.nvtm-price-cell.is-error .nvtm-save-status {
  color: #991b1b;
}

.nvtm-stock-control {
  align-items: center;
  display: flex;
  gap: 6px;
}

.nvtm-table input.nvtm-stock-qty {
  border-radius: 4px;
  width: 74px;
}

.nvtm-stock-select {
  border-radius: 999px;
  font-weight: 700;
  max-width: 140px;
  min-height: 32px;
  padding-left: 12px;
  padding-right: 26px;
}

.nvtm-admin-group-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: space-between;
  margin: 22px 0 8px;
}

.nvtm-admin-group-head h2 {
  margin: 0;
}

.nvtm-stock-legend {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nvtm-stock-filter {
  align-items: center;
  background: #fff;
  border: 1px solid #d7dce2;
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
  padding: 10px;
}

.nvtm-stock-filter-label {
  color: #4b5563;
  font-weight: 700;
  margin-right: 2px;
}

.nvtm-stock-filter-button.is-active {
  background: #1f2937;
  border-color: #1f2937;
  color: #fff;
}

.nvtm-stock-filter-empty {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  color: #64748b;
  margin: 18px 0;
  padding: 14px;
}

.nvtm-stock-badge {
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  padding: 4px 9px;
  white-space: nowrap;
}

.nvtm-stock-badge--instock,
.nvtm-stock-control--instock .nvtm-stock-select,
.nvtm-stock-select--instock {
  background: #e8f7ed;
  border-color: #b9e1c4;
  color: #166534;
}

.nvtm-stock-badge--outofstock,
.nvtm-stock-control--outofstock .nvtm-stock-select,
.nvtm-stock-select--outofstock {
  background: #fdecec;
  border-color: #f4b8b8;
  color: #991b1b;
}

.nvtm-stock-badge--onbackorder,
.nvtm-stock-control--onbackorder .nvtm-stock-select,
.nvtm-stock-select--onbackorder {
  background: #fff7df;
  border-color: #f0d48a;
  color: #92400e;
}

.nvtm-stock-row--outofstock td:first-child {
  box-shadow: inset 4px 0 0 #f4b8b8;
}

.nvtm-stock-row--onbackorder td:first-child {
  box-shadow: inset 4px 0 0 #f0d48a;
}

.nvtm-stock-row--instock td:first-child {
  box-shadow: inset 4px 0 0 #b9e1c4;
}

.nvtm-stock-row--outofstock td {
  background-color: #fffafa;
}

.nvtm-stock-row--onbackorder td {
  background-color: #fffdf5;
}

.nvtm-save-bar {
  align-items: center;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #d7dce2;
  border-radius: 8px;
  bottom: 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .12);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 18px 0 8px;
  padding: 10px 12px;
  position: sticky;
  z-index: 20;
}

.nvtm-save-bar.is-clean {
  background: rgba(248, 250, 252, .96);
}

.nvtm-save-bar.is-dirty {
  background: rgba(255, 251, 235, .97);
  border-color: #f0d48a;
  box-shadow: 0 8px 22px rgba(146, 64, 14, .13);
}

.nvtm-save-bar.is-saved {
  background: rgba(232, 247, 237, .97);
  border-color: #b9e1c4;
  box-shadow: 0 8px 22px rgba(22, 101, 52, .12);
}

.nvtm-save-bar.is-saving {
  background: rgba(255, 248, 229, .97);
  border-color: #f0d48a;
}

.nvtm-save-bar .submit {
  margin: 0;
  padding: 0;
}

.nvtm-save-bar .button[disabled] {
  cursor: not-allowed;
  opacity: .62;
}

.nvtm-save-bar-note {
  color: #4b5563;
  font-size: 13px;
  line-height: 1.35;
}

.nvtm-save-bar.is-dirty .nvtm-save-bar-note,
.nvtm-save-bar.is-saving .nvtm-save-bar-note {
  color: #92400e;
  font-weight: 700;
}

.nvtm-save-bar.is-saved .nvtm-save-bar-note {
  color: #166534;
  font-weight: 700;
}

.nvtm-public {
  margin: 1.5rem 0;
}

.nvtm-summary {
  background: #f7fbf3;
  border: 1px solid #d9e8ce;
  border-radius: 8px;
  margin: 0 0 2rem;
  padding: 1.1rem;
}

.nvtm-summary-title {
  margin: 0 0 .35rem;
}

.nvtm-summary-intro {
  color: #40513a;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.nvtm-summary-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.nvtm-summary-card {
  background: #fff;
  border: 1px solid #d7decf;
  border-radius: 8px;
  color: #1f2933;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-height: 150px;
  padding: .9rem;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.nvtm-summary-card:hover,
.nvtm-summary-card:focus {
  border-color: #6b8f47;
  box-shadow: 0 10px 22px rgba(43, 67, 27, .12);
  color: #1f2933;
  transform: translateY(-1px);
}

.nvtm-summary-name {
  color: #1f3d1a;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.25;
}

.nvtm-summary-height {
  color: #111827;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.nvtm-summary-price {
  color: #4b5563;
  font-size: .95rem;
  line-height: 1.35;
}

.nvtm-summary-link {
  color: #557a35;
  font-size: .9rem;
  font-weight: 700;
  margin-top: auto;
}

.nvtm-public-group {
  margin: 0 0 2rem;
  scroll-margin-top: 90px;
}

.nvtm-public-group h2 {
  margin-bottom: .35rem;
}

.nvtm-public-description {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 .9rem;
}

.nvtm-public-faq {
  margin: 2.25rem 0 0;
}

.nvtm-public-faq-title {
  margin-bottom: .75rem;
}

.nvtm-large-trees {
  border-top: 1px solid #d1d5db;
  margin: 100px 0;
  padding-top: 1.25rem;
}

.nvtm-large-trees p {
  color: #374151;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 .8rem;
}

.nvtm-public-table {
  border-collapse: collapse;
  width: 100%;
}

.nvtm-public-table th,
.nvtm-public-table td {
  border: 1px solid #e5e7eb;
  padding: .75rem;
  text-align: left;
  vertical-align: top;
}

.nvtm-public-table th {
  background: #f8fafc;
  font-weight: 700;
}

.nvtm-public-table tr:nth-child(even) td {
  background: #fcfcfd;
}

.nvtm-product-repeat {
  color: #4b5563;
}

.nvtm-sur-demande-link {
  background: #fff7df;
  border: 1px solid #f0d48a;
  border-radius: 999px;
  color: #92400e;
  display: inline-flex;
  font-weight: 700;
  line-height: 1.2;
  padding: .25rem .6rem;
  text-decoration: none;
}

.nvtm-sur-demande-link:hover,
.nvtm-sur-demande-link:focus {
  color: #78350f;
  text-decoration: underline;
}

.nvtm-sur-demande-product-link {
  font-size: 1rem;
}

.nvtm-variation-sur-demande {
  margin: .85rem 0;
}

.nvtm-variation-sur-demande[hidden] {
  display: none !important;
}

.variations_form.nvtm-sur-demande-active .woocommerce-variation-add-to-cart,
.variations_form.nvtm-sur-demande-active .single_variation_wrap .quantity,
.variations_form.nvtm-sur-demande-active .single_add_to_cart_button {
  display: none !important;
}

.nvtm-table tr.nvtm-height-start td,
.nvtm-public-table tr.nvtm-height-start td {
  border-top: 2px solid #cbd5e1;
}

.nvtm-table tr.nvtm-height-start:first-child td,
.nvtm-public-table tr.nvtm-height-start:first-child td {
  border-top-width: 1px;
}

.nvtm-empty {
  color: #64748b;
}

@media (max-width: 680px) {
  .nvtm-save-bar {
    align-items: stretch;
    bottom: 8px;
    flex-direction: column;
  }

  .nvtm-save-bar .button {
    text-align: center;
    width: 100%;
  }

  .nvtm-summary {
    padding: .85rem;
  }

  .nvtm-summary-grid {
    grid-template-columns: 1fr;
  }

  .nvtm-summary-card {
    min-height: 0;
  }

  .nvtm-public-table {
    font-size: .95rem;
  }

  .nvtm-public-table th,
  .nvtm-public-table td {
    padding: .6rem;
  }
}
