.rs-widget {
  max-width: 760px;
  margin: 16px auto;
  padding: 18px;
  border: 1px solid #d9dfe7;
  border-radius: 10px;
  background: #f8fafc;
}

.rs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.rs-grid label span {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.rs-grid input {
  width: 100%;
}

.rs-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.rs-upload-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.rs-btn {
  background: #005a8d;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}

.rs-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.rs-submit {
  margin-top: 10px;
  background: #0f766e;
}

.rs-preview-wrap {
  margin-top: 10px;
}

.rs-preview {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  background: #fff;
}

.rs-manual {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed #f59e0b;
  background: #fffbeb;
  border-radius: 8px;
}

.rs-manual h4 {
  margin: 0 0 8px;
}

.rs-manual p {
  margin: 0 0 10px;
  font-size: 13px;
}

.rs-manual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rs-manual-grid label span {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.rs-manual-grid input {
  width: 100%;
}

.rs-status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef2ff;
  color: #1e293b;
}

.rs-status.is-success {
  background: #dcfce7;
  color: #14532d;
}

.rs-status.is-error {
  background: #fee2e2;
  color: #7f1d1d;
}

.rs-form {
  position: relative;
}

.rs-overlay {
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  border-radius: 10px;
}

.rs-overlay[hidden] {
  display: none !important;
}

.rs-overlay-card {
  background: #ffffff;
  border: 1px solid #d9dfe7;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.rs-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #cbd5e1;
  border-top-color: #0f766e;
  animation: rs-spin 1s linear infinite;
}

.rs-overlay-text {
  font-weight: 600;
  color: #0f172a;
}

@keyframes rs-spin {
  to {
    transform: rotate(360deg);
  }
}

.rs-hp {
  position: absolute;
  left: -99999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 860px) {
  .rs-grid {
    grid-template-columns: 1fr;
  }

  .rs-manual-grid {
    grid-template-columns: 1fr;
  }
}
