/* Instagram UTM builder — builds on tools-csv-split.css */

.tools-utm-input {
  width: 100%;
  height: calc(1.5em + 0.95rem + 2px);
  padding: 0.475rem 0.9rem;
  border-radius: 8px;
  border: 1.5px solid #cfd6e2;
  background: #fafbfc;
  box-shadow: none;
  font-size: 0.95rem;
}

.tools-utm-input:focus {
  border-color: #060663;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(6, 6, 99, 0.1);
}

.tools-utm-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tools-utm-preset {
  appearance: none;
  border: 1px solid #d7dde8;
  background: #fff;
  color: #374151;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.tools-utm-preset:hover {
  border-color: #060663;
  color: #060663;
}

.tools-utm-preset.is-active {
  border-color: #060663;
  background: #060663;
  color: #fff;
}

.tools-utm-preset:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(6, 6, 99, 0.12);
}

.tools-utm-fields .form-control {
  height: calc(1.5em + 0.85rem + 2px);
  padding: 0.425rem 0.85rem;
  border-radius: 8px;
  border-color: #d7dde8;
  background: #fff;
  box-shadow: none;
}

.tools-utm-fields .form-control:focus {
  border-color: #060663;
  box-shadow: 0 0 0 3px rgba(6, 6, 99, 0.1);
}

@media (min-width: 700px) {
  .tools-utm-page .tools-utm-fields {
    grid-template-columns: 1fr 1fr;
  }

  .tools-utm-page .tools-utm-field-wide {
    grid-column: 1 / -1;
    max-width: 22rem;
  }
}

.tools-utm-result-wrap {
  margin-top: 0.35rem;
}

.tools-utm-result {
  width: 100%;
  min-height: 5.25rem;
  resize: vertical;
  border-radius: 10px;
  border: 1.5px solid #cfd6e2;
  background: #fafbfc;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #1a1a2e;
  word-break: break-all;
  box-shadow: none;
}

.tools-utm-result:focus {
  border-color: #060663;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(6, 6, 99, 0.1);
}

.tools-utm-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tools-utm-result-actions .btn.disabled,
.tools-utm-result-actions .btn[aria-disabled='true'] {
  pointer-events: none;
  opacity: 0.55;
}

.tools-utm-page .tools-follower-lead code,
.tools-utm-page .tools-csv-split-reasons code,
.tools-utm-page .tools-csv-split-steps code {
  font-size: 0.9em;
  padding: 0.08em 0.3em;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.05);
  color: #2d3748;
}
