/* =========================================================
   MakerMyths – Filament Cost Tool (Light Input Style)
   Matches visual style of pricing tool inputs
   ========================================================= */

/* Tool wrapper */
.mm-tool.mm-filament-cost {
  max-width: 720px;
  margin: 32px auto;
  padding: 24px 22px 26px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
  color: #1a1a1a;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Header */
.mm-tool-header h2 {
  margin: 0 0 4px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #222;
}

.mm-tool-header p {
  margin: 0 0 18px;
  font-size: 0.95rem;
  color: #555;
}

/* Grid layout */
.mm-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px 18px;
  margin-bottom: 16px;
}

/* Field labels */
.mm-tool-field label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #555;
  margin-bottom: 4px;
}

/* Light input fields (same as pricing tool) */
.mm-tool-field input[type="number"],
.mm-tool-field input[type="text"] {
  width: 100%;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  color: #222;
  font-size: 0.95rem;
  outline: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Focus state */
.mm-tool-field input[type="number"]:focus,
.mm-tool-field input[type="text"]:focus {
  background: #ffffff;
  border-color: #4f8bff;
  box-shadow: 0 0 0 2px rgba(79, 139, 255, 0.35);
  color: #111;
}

/* Description text */
.mm-tool-field small {
  display: block;
  margin-top: 3px;
  font-size: 0.75rem;
  color: #777;
}

/* Suffix wrapper */
.mm-tool-input-with-suffix {
  display: flex;
  align-items: stretch;
}

/* Input (left side) */
.mm-tool-input-with-suffix input {
  border-radius: 8px 0 0 8px;
  border-right: none;
}

/* Suffix (right side) */
.mm-tool-input-with-suffix .mm-suffix {
  padding: 0 12px;
  border-radius: 0 8px 8px 0;
  border: 1px solid #ccc;
  border-left: none;
  background: #eaeaea;
  font-size: 0.85rem;
  color: #444;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* Button */
.mm-tool-actions {
  margin: 12px 0;
}

.mm-tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #4f8bff;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.mm-tool-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.mm-tool-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Results box */
.mm-filament-results {
  margin-top: 20px;
  padding: 16px 0;
  border-top: 1px solid #ddd;
}

.mm-filament-results h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
}

.mm-filament-results-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.95rem;
  color: #333;
}

.mm-filament-results-total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed #ccc;
  font-weight: 700;
  font-size: 1rem;
}

.mm-filament-results-small {
  font-size: 0.85rem;
  color: #666;
}

.mm-filament-footnote {
  margin-top: 12px;
  font-size: 0.75rem;
  color: #777;
}

/* Mobile */
@media (max-width: 600px) {
  .mm-tool.mm-filament-cost {
    margin: 20px auto;
    padding: 16px;
    border-radius: 12px;
  }

  .mm-tool-header h2 {
    font-size: 1.4rem;
  }
}
