.s3-media__overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(28, 43, 58, 0.5);
}

.s3-media__dialog {
  width: min(420px, 90vw);
  background-color: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 20px 44px -14px rgba(28, 43, 58, 0.35);
}

.s3-media__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.s3-media__input {
  width: 100%;
}

.s3-media__status {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: #333;
}

.s3-media__status--error {
  color: #c8470f;
}

.s3-media__actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.s3-media__cancel {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
}

.s3-media__cancel:hover {
  border-color: #e85820;
  color: #e85820;
}
