.spt-delete {
  box-sizing: border-box;
  max-width: 860px;
  margin: 2rem auto;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid #d9dde3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
  color: #172033;
}

.spt-delete *,
.spt-delete *::before,
.spt-delete *::after { box-sizing: inherit; }

.spt-delete__header { margin-bottom: 1.25rem; text-align: center; }
.spt-delete__title { margin: 0 0 0.5rem; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; }
.spt-delete__intro { max-width: 680px; margin: 0 auto; color: #526076; line-height: 1.65; }

.spt-delete__dropzone {
  display: flex;
  min-height: 250px;
  padding: 2rem 1rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.65rem;
  border: 2px dashed #8b98aa;
  border-radius: 16px;
  background: #f8fafc;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.spt-delete__dropzone:hover,
.spt-delete__dropzone:focus,
.spt-delete__dropzone.is-drag-over { border-color: #3157d5; background: #eef3ff; outline: none; }
.spt-delete__dropzone.is-drag-over { transform: scale(1.01); }
.spt-delete__drop-title { font-size: 1.25rem; font-weight: 700; }

.spt-delete__drop-subtitle,
.spt-delete__limits,
.spt-delete__file-meta,
.spt-delete__help,
.spt-delete__result-meta { color: #667085; }

.spt-delete__limits { margin: 0.75rem 0 0; text-align: center; font-size: 0.9rem; }
.spt-delete__workspace { margin-top: 1.5rem; }

/* Keep conditional interface sections truly hidden until JavaScript reveals them. */
.spt-delete [hidden] { display: none !important; }

.spt-delete__file-card,
.spt-delete__result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #d9dde3;
  border-radius: 12px;
  background: #f8fafc;
}

.spt-delete__file-details,
.spt-delete__result-details { min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.spt-delete__file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spt-delete__file-meta,
.spt-delete__result-meta { font-size: 0.88rem; }

.spt-delete__pages-field { margin-top: 1.25rem; }
.spt-delete__pages-field label { display: block; margin-bottom: 0.4rem; font-weight: 700; }
.spt-delete__pages {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.8rem;
  border: 1px solid #aeb7c5;
  border-radius: 10px;
  background: #fff;
  color: #172033;
  font: inherit;
}
.spt-delete__pages:focus { border-color: #3157d5; outline: 3px solid rgba(49, 87, 213, 0.18); outline-offset: 1px; }
.spt-delete__help { margin: 0.45rem 0 0; font-size: 0.88rem; }
.spt-delete__help code { padding: 0.1rem 0.3rem; border-radius: 4px; background: #eef1f5; color: #172033; }

.spt-delete__notice {
  max-width: 680px;
  margin: 1rem auto 0;
  padding: 0.8rem 0.95rem;
  border: 1px solid #d9dde3;
  border-radius: 10px;
  background: #f8fafc;
  color: #526076;
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
}

.spt-delete-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}
.spt-delete-button:hover:not(:disabled) { transform: translateY(-1px); }
.spt-delete-button:focus-visible { outline: 3px solid rgba(49, 87, 213, 0.28); outline-offset: 2px; }
.spt-delete-button:disabled { cursor: not-allowed; opacity: 0.48; }
.spt-delete-button--primary { min-width: 200px; padding: 0.85rem 1.25rem; background: #3157d5; color: #fff; }
.spt-delete-button--secondary { margin-top: 0.35rem; padding: 0.75rem 1.1rem; background: #172033; color: #fff; }
.spt-delete-button--text { padding: 0.5rem; background: transparent; color: #3157d5; }
.spt-delete-button--download { flex: 0 0 auto; padding: 0.65rem 0.9rem; background: #3157d5; color: #fff; }
.spt-delete__actions { display: flex; justify-content: center; margin-top: 1.35rem; }
.spt-delete__result { margin-top: 1.5rem; background: #fff; }
.spt-delete__status { min-height: 1.5em; margin-top: 1rem; text-align: center; line-height: 1.5; }
.spt-delete__status--success { color: #176b3a; }
.spt-delete__status--error,
.spt-delete__error { color: #a61b1b; }

@media (max-width: 600px) {
  .spt-delete { margin: 1rem auto; border-radius: 14px; }
  .spt-delete__dropzone { min-height: 210px; }
  .spt-delete__file-card,
  .spt-delete__result { align-items: stretch; flex-direction: column; }
  .spt-delete-button--download { width: 100%; }
}
