* {
  box-sizing: border-box;
}

:host {
  display: block;
  margin: 0 auto;
  padding: var(--space-12);
  background-color: #f5f5f5;
  font-size: var(--space-14);
  border: 0.05rem solid var(--border-color);
}

p,
h2,
h3,
input {
  margin: 0;
}

.step-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.step-number {
  flex-shrink: 0;
  display: inline-grid;
  place-content: center;
  width: 1.5rem;
  aspect-ratio: 1/1;
  border-radius: 50%;
  font-weight: 600;
  color: var(--primary-blue);
  margin-right: 0.5rem;
  background-color: var(--bg-blue);
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-black);
}

.return-details {
  background-color: white;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.return-details strong {
  font-weight: 600;
  color: var(--text-tertiary-color);
}

.return-details h3 {
  color: var(--primary-black);
  font-size: 16px;
  font-weight: 600;
}

.return-details p {
  color: var(--text-secondary-color);
}
.original-payment {
  color: var(--primary-black);
}

hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 10px 0;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.terms-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary-color);
  margin: 0.5rem;
}

.terms-text {
  line-height: 1.5;
  font-size: var(--space-12);
}

.terms-link {
  color: #1890ff;
  text-decoration: none;
}

.confirm-button {
  font-family: var(--ism-primary-font-family);
  width: 100%;
  padding: 12px;
  background-color: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.confirm-button:disabled {
  opacity: 50%;
  cursor: not-allowed;
}

.error-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fee2e2;
  border: 1px solid #ef4444;
  border-radius: 6px;
  padding: 8px;
  margin: 8px 0;
}

.error-message {
  color: #dc2626;
  font-size: 12px;
}

.error-close-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}

.error-close-btn:hover {
  opacity: 0.8;
}

.spinner {
  display: inline-block;
  width: 16px;
  aspect-ratio: 1/1;
  border: 3px solid #f3f3f3;
  border-top-color: var(--primary-blue); /* Blue color for the spinner */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
