.checkout-steps-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 500px;
  z-index: 1000;
  max-height: 90vh;
  overflow-y: auto;
  color: #333333;
}

.checkout-steps-modal::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

.checkout-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background: #ff3a3a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 24px;
  border: none;
  box-shadow: 0 2px 6px rgba(255, 0, 0, 0.3);
  transition: all 0.2s ease;
  z-index: 10;
  font-weight: bold;
}

.checkout-close-btn:hover {
  background: #e60000;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(255, 0, 0, 0.4);
}

.checkout-steps-header {
  text-align: center;
  margin-bottom: 2rem;
}

.checkout-steps-header h2 {
  color: #9d4edd;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.steps-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto 2rem;
  max-width: 400px;
  position: relative;
  padding: 0 20px;
}

.steps-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 40px;
  right: 40px;
  height: 2px;
  background: #e0e0e0;
  z-index: 1;
}

.step-item {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: 2px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  color: #666;
  font-weight: 500;
}

.step-item.active {
  background: #9d4edd;
  border-color: #9d4edd;
  color: white;
}

.step-item.completed {
  background: #4CAF50;
  border-color: #4CAF50;
  color: white;
}

.step-label {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: #666;
  font-size: 0.85rem;
  font-weight: 500;
}

.checkout-form {
  margin-top: 2rem;
}

.checkout-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.checkout-form input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #dddddd;
  border-radius: 6px;
  margin-bottom: 1.2rem;
  font-size: 1rem;
  background-color: #ffffff;
  color: #333333;
}

.checkout-form input:focus {
  outline: none;
  border-color: #9d4edd;
  box-shadow: 0 0 0 2px rgba(157, 78, 221, 0.2);
}

.checkout-form button {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  margin-top: 1rem;
  cursor: pointer;
  font-weight: 500;
}

.checkout-form button.primary {
  background: #9d4edd;
  color: white;
}

.checkout-form button.secondary {
  background: #f3f3f3;
  color: #555;
  margin-top: 0.5rem;
}

.checkout-form button.primary:hover {
  background: #8a2be2;
}

.checkout-form button.secondary:hover {
  background: #e5e5e5;
}

.checkout-form .form-row {
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.phone-input-container {
  display: flex;
  gap: 8px;
}

.phone-input-container input {
  flex: 1;
}

.phone-input-container button {
  background: #9d4edd;
  color: white;
  border: none;
  border-radius: 6px;
  width: 40px;
  cursor: pointer;
}

.form-group input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  border-color: #9d4edd;
  outline: none;
}

.order-summary, .order-item {
  background-color: #ffffff;
  border: 1px solid #dddddd;
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
  color: #333;
}

.order-totals {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 2px solid #eee;
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  color: #333;
}

.total-row:last-child {
  font-weight: bold;
  color: #9d4edd;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.customer-info {
  margin-top: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: 6px;
  border: 1px solid #eee;
}

.customer-info h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.customer-info p {
  margin: 0.5rem 0;
  color: #666;
}

.success-step {
  background-color: #ffffff;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
}

.success-message {
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  color: #4CAF50;
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.success-message h3 {
  color: #4CAF50;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.success-message p {
  color: #666;
  margin-bottom: 0.5rem;
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.button-group .btn {
  flex: 1;
  min-width: 120px;
  margin: 5px 0;
}

.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-primary {
  background: #9d4edd;
  color: white;
}

.btn-primary:hover {
  background: #8a2be2;
}

.btn-secondary {
  background: #f0f0f0;
  color: #333;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.btn-cancel {
  background: #ffebeb;
  color: #e60000;
  border: 1px solid #e60000;
}

.btn-cancel:hover {
  background: #ffe0e0;
  box-shadow: 0 2px 5px rgba(230, 0, 0, 0.2);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-whatsapp:hover {
  background: #22c35e;
}

/* Para a etapa final, ajustar para 3 botões */
.success-step .button-group {
  flex-direction: column;
  gap: 0.7rem;
}

.success-step .button-group .btn {
  flex: 1;
  width: 100%;
}

/* Notificação de sucesso */
.success-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #4CAF50;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 350px;
  font-size: 14px;
}

.success-notification.show {
  opacity: 1;
  transform: translateY(0);
}

.success-notification-icon {
  margin-right: 12px;
  font-size: 20px;
}

.success-notification-content {
  flex: 1;
}

.success-notification h3 {
  margin: 0 0 5px 0;
  font-size: 16px;
}

.success-notification p {
  margin: 0;
  opacity: 0.9;
}

.success-notification-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.7;
  margin-left: 10px;
  padding: 0;
}

.success-notification-close:hover {
  opacity: 1;
}

/* Animações */
.fade-in {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
