.url-cleaner {
  border: 1px solid #d7d1c8;
  border-radius: 18px;
  background: #fffdf8;
  color: #1d1a17;
  padding: clamp(20px, 4vw, 32px);
}

.url-cleaner form {
  display: grid;
  gap: 12px;
  margin-block: 18px;
}

.url-cleaner label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.url-cleaner input,
.url-cleaner__output {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #958c80;
  border-radius: 10px;
  background: #fff;
  color: #1d1a17;
  font: inherit;
  padding: 12px 14px;
}

.url-cleaner__output {
  min-height: 84px;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92rem;
  background: #f2eee7;
  resize: vertical;
}

.url-cleaner button {
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid #6d2d22;
  background: #7e3528;
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0 18px;
  cursor: pointer;
}

.url-cleaner button[type="submit"] {
  justify-self: start;
}

.url-cleaner [data-url-cleaner-copy] {
  margin-top: 12px;
  background: #fffdf8;
  color: #1d1a17;
  border-color: #958c80;
}

.url-cleaner [data-url-cleaner-copy]:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.url-cleaner input:focus-visible,
.url-cleaner__output:focus-visible,
.url-cleaner button:focus-visible {
  outline: 3px solid #d27555;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .url-cleaner button {
    width: 100%;
  }
}
