/**
 * Calculator Section Styles
 * @package HairEvolutionFactory
 */

.calculator-box {
  max-width: 48rem;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
@media (min-width: 768px) { .calculator-box { padding: 2.5rem; } }

.calc-field { margin-bottom: 2rem; }
.calc-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--foreground); margin-bottom: 1rem; }
.calc-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.calc-label-row .value { font-size: 0.875rem; font-weight: 600; color: var(--accent); }

/* Origin / Type Grid */
.origin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; align-items: center;}
/* @media (min-width: 768px) { .origin-grid { grid-template-columns: repeat(5, 1fr); } } */
.origin-btn { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.75rem; border: 1px solid var(--border); background: none; cursor: pointer; text-align: center; transition: all 0.2s; height: 100%; justify-content: center;}
.origin-btn:hover { border-color: rgba(184,149,69,0.4); }
.origin-btn.active { border-color: var(--accent); background: rgba(184,149,69,0.1); box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.origin-btn .flag { font-size: 1.5rem; }
.origin-btn .label { font-size: 0.75rem; font-weight: 500; color: var(--foreground); }

/* Thickness Grid */
.thickness-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.thickness-btn { padding: 0.6rem 1rem; border: 1px solid var(--border); background: none; cursor: pointer; font-size: 0.8rem; font-weight: 500; transition: all 0.2s; color: var(--foreground); }
.thickness-btn:hover { border-color: rgba(184,149,69,0.4); }
.thickness-btn.active { border-color: var(--accent); background: rgba(184,149,69,0.1); }

/* Sliders */
.calc-slider { -webkit-appearance: none; width: 100%; height: 4px; background: var(--border); outline: none; border-radius: 2px; }
.calc-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.15); }
.calc-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.15); }
.slider-labels { display: flex; justify-content: space-between; margin-top: 0.5rem; }
.slider-labels span { font-size: 0.625rem; color: var(--muted-foreground); }

/* Item Preview */
.item-preview { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; background: rgba(230,225,213,0.5); border: 1px solid var(--border); margin-bottom: 1.5rem; flex-wrap: wrap; }
.item-preview-info { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; min-width: 0; }
#itemPreviewText { font-size: 0.85rem; color: var(--foreground); }
.item-preview-price { font-weight: 700; color: var(--accent); font-size: 0.9rem; }
.btn-add-item { padding: 0.6rem 1.2rem; background: var(--accent); color: #fff; border: none; cursor: pointer; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; transition: opacity 0.2s; white-space: nowrap; }
.btn-add-item:hover { opacity: 0.85; }

/* Items List */
.items-list { margin-bottom: 1.5rem; }
.items-list-title { font-size: 0.85rem; font-weight: 600; color: var(--foreground); margin-bottom: 0.75rem; }
.item-row { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem; border: 1px solid var(--border); margin-bottom: 0.5rem; background: var(--card); }
.item-row-info { display: flex; flex-direction: column; gap: 0.15rem; }
.item-row-label { font-size: 0.8rem; font-weight: 600; color: var(--foreground); }
.item-row-detail { font-size: 0.7rem; color: var(--muted-foreground); }
.item-remove { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--muted-foreground); padding: 0.25rem 0.5rem; transition: color 0.2s; }
.item-remove:hover { color: #c00; }

/* Totals */
.totals-box { padding: 1rem; background: rgba(230,225,213,0.7); border: 1px solid var(--border); margin-bottom: 1.5rem; }
.totals-row { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--foreground); padding: 0.3rem 0; }
.totals-row.totals-main { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--border); padding-top: 0.75rem; margin-top: 0.5rem; }

/* Warnings */
.calc-warning { font-size: 0.8rem; text-align: center; padding: 0.75rem; margin-bottom: 1rem; border-radius: 4px; }
#minWeightWarning { background: rgba(255,200,50,0.12); color: #8a6d00; }
#maxWeightWarning { background: rgba(59,130,246,0.1); color: #1d4ed8; }

.price-disclaimer { font-size: 0.75rem; color: var(--muted-foreground); text-align: center;}
.price-disclaimer:last-of-type{ margin-bottom: 1.5rem; }

#addToInquiry:disabled { opacity: 0.4; cursor: not-allowed; }