/* Budgetdruk cart/model/VAT and configurator-offer refinements - 2026-09-19 */

/* Mini-cart: make the full model/article specification readable. */
.bd-cart-preview {
  width: min(560px, calc(100vw - 24px));
}
.bd-cart-preview-item {
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: start;
}
.bd-cart-preview-copy {
  min-width: 0;
}
.bd-cart-preview-item .bd-cart-preview-model {
  display: block;
  overflow: visible;
  margin-top: 4px;
  color: #5f566b;
  font-size: 11.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}
.bd-cart-preview-item .bd-cart-preview-quantity,
.bd-cart-preview-item .bd-cart-preview-unit-price {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.35;
}
.bd-cart-preview-line-total {
  padding-top: 2px;
}

/* Full cart and checkout: separate product name from full model/specification. */
.bd-cart-product-name {
  display: block;
}
.bd-cart-product-model {
  display: block;
  margin-top: 5px;
  color: #6d6575;
  font-size: .88rem;
  font-weight: 400;
  line-height: 1.45;
  text-transform: none;
  overflow-wrap: anywhere;
}
.bd-cart-product-model-label {
  color: #54208f;
  font-weight: 800;
}
.bd-vat-label {
  display: block;
  margin-top: 2px;
  color: #756d7d;
  font-size: .68em;
  font-weight: 600;
  line-height: 1.1;
  text-transform: lowercase;
}

/* Offer directly after the calculator/article list. */
.bd-configurator-discount {
  display: flex;
  gap: 15px;
  align-items: center;
  margin: 18px 0 0;
  padding: 18px 20px;
  border: 1px solid #eadcf6;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbf8ff 0%, #fff7ec 100%);
  box-shadow: 0 8px 22px rgba(55, 25, 78, .07);
}
.bd-configurator-discount[hidden] {
  display: none !important;
}
.bd-configurator-discount-icon {
  display: flex;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #5a2391;
  color: #fff;
  font-size: 20px;
}
.bd-configurator-discount-copy {
  min-width: 0;
}
.bd-configurator-discount-copy > span {
  display: block;
  margin-bottom: 2px;
  color: #5a2391;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.bd-configurator-discount-copy strong {
  display: block;
  color: #21132e;
  font-size: 18px;
  line-height: 1.25;
}
.bd-configurator-discount-copy p {
  margin: 4px 0 0;
  color: #675e70;
  font-size: 14px;
}
.bd-configurator-discount-copy b {
  display: inline-block;
  padding: 2px 7px;
  border: 1px dashed #f29113;
  border-radius: 5px;
  background: #fff;
  color: #54208f;
  letter-spacing: .03em;
}

@media (max-width: 767px) {
  .bd-cart-preview {
    width: calc(100vw - 24px);
  }
  .bd-cart-preview-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .bd-cart-preview-item img {
    width: 44px;
    height: 42px;
  }
  .bd-cart-preview-line-total {
    grid-column: 2;
    justify-self: start;
    padding-top: 0;
  }
  .bd-configurator-discount {
    align-items: flex-start;
    padding: 15px;
  }
  .bd-configurator-discount-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }
  .bd-configurator-discount-copy strong {
    font-size: 16px;
  }
}

/* Invoice-style VAT totals in full cart and mini-cart. */
.bd-cart-invoice-totals {
  width: min(390px, 100%);
  margin-left: auto;
  padding: 8px 0;
  text-align: left;
  font-weight: 500;
}
.bd-cart-invoice-row,
.bd-cart-preview-total-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  padding: 5px 0;
}
.bd-cart-invoice-row strong,
.bd-cart-preview-total-row strong {
  white-space: nowrap;
  color: #21132e;
}
.bd-cart-invoice-grand,
.bd-cart-preview-total-row-grand {
  margin-top: 5px;
  padding-top: 10px;
  border-top: 1px solid #e5dbea;
  font-size: 1.12em;
  font-weight: 800;
}
.bd-cart-preview-invoice {
  display: block;
}
.bd-cart-preview-invoice .bd-cart-preview-total-row {
  width: 100%;
}
.bd-cart-preview-invoice .bd-cart-preview-total-row-grand strong {
  font-size: 1.08em;
}
