#fp-kalkulator { font-family: inherit; padding: 1rem 0 1.5rem; max-width: 720px; }
.fp-section { margin-bottom: 2rem; }
.fp-section-title {
  font-size: 13px; font-weight: 600; color: #555; margin: 0 0 10px;
  text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 1px solid #eee; padding-bottom: 6px;
}
.fp-multi-hint { font-size: 11px; color: #bbb; font-weight: 400; text-transform: none; letter-spacing: 0; }
.fp-minwert { font-size: 11px; color: #aaa; font-weight: 400; }

/* INPUTS */
#fp-kalkulator label { font-size: 13px; color: #666; display: block; margin-bottom: 5px; }
#fp-kalkulator input[type=number] {
  width: 100%; box-sizing: border-box; padding: 9px 11px;
  border: 1px solid #ddd; border-radius: 6px; font-size: 15px; background: #fff; color: #111;
}
#fp-kalkulator input[type=number]:focus { outline: none; border-color: #555; }
.fp-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }

/* FOLIENART */
.fp-folien-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.fp-folien-item {
  border: 1.5px solid #e0e0e0; border-radius: 8px; padding: 10px 13px;
  cursor: pointer; transition: border-color 0.15s, background 0.15s; background: #fff;
}
.fp-folien-item:hover { border-color: #999; background: #fafafa; }
.fp-folien-item.selected { border-color: #111; background: #f5f5f5; }
.fp-folien-name { font-size: 13px; font-weight: 600; color: #111; margin: 0 0 3px; }
.fp-folien-desc { font-size: 11px; color: #999; margin: 0; }

/* FARBEN */
.fp-farb-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.fp-farb-item {
  display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px;
  border: 1px solid #ddd; border-radius: 6px; cursor: pointer; font-size: 13px;
  color: #111; background: #fff; transition: border-color 0.15s; user-select: none;
}
.fp-farb-item:hover { border-color: #999; }
.fp-farb-item.selected { border: 2px solid #111; background: #f5f5f5; }
.fp-swatch { width: 18px; height: 18px; border-radius: 4px; border: 1px solid rgba(0,0,0,0.12); flex-shrink: 0; }

/* OPTIONEN */
.fp-option-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.fp-option-item {
  border: 1.5px solid #e0e0e0; border-radius: 8px; padding: 11px 14px;
  cursor: pointer; display: flex; align-items: center; gap: 12px;
  transition: border-color 0.15s, background 0.15s; background: #fff;
}
.fp-option-item:hover { border-color: #999; background: #fafafa; }
.fp-option-item.selected { border-color: #111; background: #f5f5f5; }
.fp-option-check {
  width: 18px; height: 18px; border-radius: 4px;
  border: 2px solid #ccc; flex-shrink: 0; transition: all 0.15s;
}
[data-group="prod"] .fp-option-check { border-radius: 50%; }
.fp-option-check.checked { border-color: #111; background: #111; box-shadow: inset 0 0 0 3px #fff; }
.fp-option-body { flex: 1; }
.fp-option-name { font-size: 14px; font-weight: 600; color: #111; margin: 0 0 2px; }
.fp-option-desc { font-size: 12px; color: #888; margin: 0; }
.fp-option-price { font-size: 13px; font-weight: 600; color: #333; white-space: nowrap; margin-left: auto; }

/* UPLOAD */
.fp-upload-label {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 2px dashed #ddd; border-radius: 8px; padding: 1.5rem; cursor: pointer;
  transition: border-color 0.15s, background 0.15s; background: #fafafa; text-align: center;
}
.fp-upload-label:hover { border-color: #999; background: #f5f5f5; }
.fp-upload-label.dragover { border-color: #111; background: #f0f0f0; }
.fp-upload-icon { font-size: 26px; }
#fp-upload-text { font-size: 14px; font-weight: 600; color: #333; }
.fp-upload-hint { font-size: 12px; color: #bbb; }
.fp-upload-info { font-size: 13px; color: #555; margin: 8px 0 0; min-height: 18px; }

/* PREIS */
#fp-result { display: none; }
.fp-divider { border: none; border-top: 1px solid #e0e0e0; margin: 0 0 1.25rem; }
.fp-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 1rem; }
.fp-metric { background: #f5f5f5; border-radius: 6px; padding: 0.85rem 1rem; }
.fp-metric-highlight { background: #111; }
.fp-metric-highlight .fp-metric-label { color: #aaa; }
.fp-metric-highlight .fp-metric-value { color: #fff; }
.fp-metric-label { font-size: 12px; color: #666; margin: 0 0 4px; }
.fp-metric-value { font-size: 20px; font-weight: 600; margin: 0; color: #111; }

/* WARENKORB-ZEILE */
.fp-cart-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.fp-note { font-size: 11px; color: #aaa; margin: 0; }
.fp-cart-btn {
  background: #111; color: #fff; border: none; border-radius: 8px;
  padding: 12px 24px; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background 0.15s, transform 0.1s; white-space: nowrap;
}
.fp-cart-btn:hover { background: #333; }
.fp-cart-btn:active { transform: scale(0.97); }

.fp-hint { font-size: 13px; color: #888; margin-top: 8px; min-height: 18px; }

/* Farbnummer-Badge */
.fp-farb-nr {
  font-size: 10px;
  font-weight: 700;
  color: #999;
  background: #f0f0f0;
  border-radius: 3px;
  padding: 1px 4px;
  flex-shrink: 0;
  font-family: monospace;
  letter-spacing: 0.02em;
}
.fp-farb-name { flex: 1; }

/* Warenkorb Meldung */
.fp-cart-msg {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}
.fp-cart-msg.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.fp-cart-msg.error   { background: #fdecea; color: #c62828; border: 1px solid #ef9a9a; }

/* Pflichtfeld Fehler */
.fp-upload-label.fehler { border-color: #cc0000 !important; background: #fff5f5; }
.fp-farb-item.fehler-rahmen { box-shadow: 0 0 0 2px #cc0000; }


/* FOLIENART ACCORDION */
.fp-folien-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.fp-folien-item {
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s;
}
.fp-folien-item:hover { border-color: #999; }
.fp-folien-item.selected { border-color: #111; }
.fp-folien-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
}
.fp-folien-header-left { flex: 1; }
.fp-folien-name { font-size: 14px; font-weight: 600; color: #111; margin: 0 0 2px; }
.fp-folien-desc { font-size: 11px; color: #999; margin: 0; }
.fp-folien-arrow {
  font-size: 12px;
  color: #999;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 10px;
}
.fp-folien-item.open .fp-folien-arrow { transform: rotate(180deg); }
.fp-folien-item.selected .fp-folien-arrow { color: #111; }
.fp-folien-body {
  display: none;
  padding: 0 14px 14px;
  border-top: 1px solid #f0f0f0;
}
.fp-folien-item.open .fp-folien-body { display: block; }
.fp-folien-beschreibung {
  font-size: 13px;
  color: #555;
  margin: 10px 0 0;
}

/* ---- CHECKOUT LAYOUT FIX ---- */
.woocommerce-checkout #order_review {
  overflow: hidden !important;
  box-sizing: border-box !important;
  padding: 0 !important;
}
.woocommerce-checkout table.woocommerce-checkout-review-order-table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}
.woocommerce-checkout table.woocommerce-checkout-review-order-table th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table td {
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  box-sizing: border-box !important;
  padding: 6px 8px !important;
}
/* Produktname-Spalte */
.woocommerce-checkout table.woocommerce-checkout-review-order-table .product-name {
  width: 65% !important;
}
/* Preisspalte */
.woocommerce-checkout table.woocommerce-checkout-review-order-table .product-total {
  width: 35% !important;
  text-align: right !important;
  white-space: normal !important;
}
/* Versand & Gesamt */
.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.shipping td,
.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total td {
  text-align: right !important;
  white-space: normal !important;
}
/* Versandoptionen */
.woocommerce-checkout table.woocommerce-checkout-review-order-table .shipping ul#shipping_method {
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce-checkout table.woocommerce-checkout-review-order-table .shipping ul#shipping_method li {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 3px 0 !important;
  white-space: normal !important;
}

/* ---- STICKY PREIS-BOX FOLIENPLOT ---- */
#fp-sticky-preis {
  display: none;
  position: relative;
  background: #111;
  color: #fff;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 1rem;
  margin-top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
#fp-sticky-preis.sichtbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fp-sticky-label { font-size: 12px; color: #aaa; margin: 0; }
.fp-sticky-preis-wert { font-size: 24px; font-weight: 700; color: #fff; margin: 0; }
.fp-sticky-hint { font-size: 11px; color: #888; margin: 0; }
