.twpc-price-per-m2 {
  margin-top: .25rem;
  font-size: .9rem;
  line-height: 1.3;
}

.twpc-calculator {
  width: 100%;
  margin: 0rem 0 1rem;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: .35rem;
  background: #fff;
}

.twpc-actions-with-calculator {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0;
}

.twpc-actions-with-calculator .twpc-calculator {
  order: 1;
}

.twpc-actions-with-calculator .product__add-to-cart,
.twpc-actions-with-calculator > .add {
  order: 2;
  width: 100%;
}

.twpc-actions-with-calculator .product__add-to-cart-button {
  width: 100%;
}

.twpc-field {
  margin-bottom: .75rem;
}

.twpc-label {
  display: block;
  margin-bottom: .35rem;
  font-weight: 600;
}

.twpc-input-wrap {
  display: flex;
  align-items: stretch;
  max-width: 260px;
}

.twpc-area-input {
  min-width: 0;
}

.twpc-unit {
  display: flex;
  align-items: center;
  padding: 0 .75rem;
  border: 1px solid #ced4da;
  border-left: 0;
  border-radius: 0 .25rem .25rem 0;
  background: #f8f9fa;
  white-space: nowrap;
}

.twpc-package-info {
  display: grid;
  gap: .2rem;
  margin-bottom: .65rem;
  font-size: .95rem;
}

.twpc-result {
  display: grid;
  gap: .3rem;
  padding-top: .65rem;
  border-top: 1px solid rgba(0, 0, 0, .08);
}

.twpc-cost-row {
  margin-top: .2rem;
  font-size: 1.05rem;
}

.twpc-message {
  margin-top: .5rem;
  font-size: .875rem;
  opacity: .75;
}

.twpc-native-qty-hidden {
  display: none !important;
}
