.cover-input [hidden] {
  display: none;
}

.cover-input-help,
.cover-input-status {
  font-size: 0.9rem;
  margin: 0.4rem 0 0.65rem;
}

.cover-input-status:empty {
  margin: 0;
}

.cover-input-current {
  display: block;
  margin-top: 0.5rem;
  max-height: 7rem;
  max-width: 9rem;
  object-fit: contain;
}

.cover-input-actions {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cover-input input[type="file"] {
  max-width: 100%;
}

.cover-input-button {
  appearance: none;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 0.35rem;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
}

.cover-input-button:hover {
  background: color-mix(in srgb, currentColor 7%, transparent);
}

.cover-input-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.cover-input-editor {
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 0.5rem;
  margin-top: 0.75rem;
  padding: 1rem;
}

.cover-input-editor summary {
  cursor: pointer;
  font-weight: 600;
  padding-block: 0.4rem;
}

.cover-input-photo {
  margin: 1.25rem 0 1.5rem;
  max-width: 100%;
  position: relative;
}

.cover-input-photo canvas {
  display: block;
  height: auto;
  width: 100%;
}

.cover-input-corner {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: grab;
  height: 2.75rem;
  padding: 0;
  position: absolute;
  touch-action: none;
  transform: translate(-50%, -50%);
  width: 2.75rem;
  z-index: 1;
}

.cover-input-corner::after {
  background: #fff;
  border: 2px solid #0c222d;
  border-radius: 50%;
  content: "";
  display: block;
  height: 1.1rem;
  margin: auto;
  width: 1.1rem;
}

.cover-input-corner:active {
  cursor: grabbing;
}

.cover-input-corner:focus-visible::after {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.cover-input-shape select {
  display: block;
  margin-top: 0.2rem;
  min-height: 2.75rem;
}

.cover-input-result {
  align-items: start;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.cover-input-result img {
  max-height: 18rem;
  max-width: 100%;
  object-fit: contain;
}

.cover-input-result-selected img {
  max-height: 8rem;
}

.cover-input-original {
  margin-top: 0.5rem;
}
