* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Adicionando variáveis CSS para cores personalizáveis do whitelabel */
:root {
  --primary-color: #22c55e;
  --secondary-color: #16a34a;
  --text-color: #1a1a1a;
  --bg-color: #f8f9fa;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-color, #f8f9fa);
  color: var(--text-color, #1a1a1a);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.ssl-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ssl-badge div {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.ssl-badge strong {
  color: var(--primary-color, #22c55e);
  font-size: 14px;
}

.ssl-badge span {
  color: #666;
  font-size: 12px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
}

.contact-info span {
  color: #666;
  font-size: 13px;
}

.contact-info strong {
  color: #1a1a1a;
  font-size: 14px;
}

/* Timer */
.promo-timer {
  background: var(--primary-color, #22c55e);
  color: white;
  padding: 12px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
}

.promo-timer strong {
  font-weight: 600;
}

/* Main Content */
.main-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  padding: 40px 20px;
  align-items: start;
}

/* Step Card */
.step-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: opacity 0.3s;
}

.step-card.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.step-card.completed .step-content {
  display: none;
}

.step-card.completed .step-summary {
  display: block !important;
}

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

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
}

.step-number.active {
  background: #4f46e5;
  color: white;
}

.step-header h2 {
  flex: 1;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}

.step-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-icon {
  display: none;
}

.step-card.completed .check-icon {
  display: block;
}

.edit-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.edit-btn:hover {
  opacity: 1;
}

/* Forms */
.step-content {
  display: block;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
  color: #374151;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #22c55e;
}

.form-row {
  display: flex;
  gap: 12px;
}

.flex-1 {
  flex: 1;
}

.loading-cep {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #22c55e;
}

/* Shipping Options */
.shipping-options {
  margin: 20px 0;
}

.shipping-options h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #374151;
}

.shipping-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.shipping-option:hover {
  border-color: var(--primary-color, #22c55e);
}

.shipping-option input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: #22c55e;
}

.shipping-option > div {
  flex: 1;
}

.shipping-option strong {
  display: block;
  color: #1a1a1a;
}

.shipping-option span {
  font-size: 13px;
  color: #666;
}

.shipping-option .price {
  color: var(--primary-color, #22c55e);
}

/* Payment Tabs */
.payment-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.payment-tab {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  transition: all 0.2s;
}

.payment-tab:hover {
  border-color: #4f46e5;
}

.payment-tab.active {
  border-color: #4f46e5;
  background: #4f46e5;
  color: white;
}

/* Credit Card Preview */
.credit-card-preview {
  margin-bottom: 24px;
}

.card-front {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 24px;
  color: white;
  height: 200px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-chip {
  width: 50px;
  height: 40px;
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  border-radius: 8px;
  margin-bottom: 20px;
}

.card-logo {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 24px;
  font-weight: 700;
  font-style: italic;
}

.card-number {
  font-size: 22px;
  letter-spacing: 2px;
  margin: 30px 0 20px;
  font-family: "Courier New", monospace;
}

.card-info {
  display: flex;
  justify-content: space-between;
}

.card-label {
  font-size: 10px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.card-name {
  font-size: 14px;
  text-transform: uppercase;
}

.card-expiry {
  font-size: 14px;
}

/* PIX */
.pix-instructions {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.pix-instructions p {
  color: #0c4a6e;
  font-size: 14px;
}

.qrcode-container {
  text-align: center;
  margin-bottom: 24px;
}

.qrcode-container img {
  max-width: 200px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  background: white;
}

.qrcode-container p {
  margin-top: 12px;
  color: #666;
  font-size: 14px;
}

.pix-code {
  margin-bottom: 20px;
}

.pix-code label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
}

.code-box {
  display: flex;
  gap: 8px;
}

.code-box input {
  flex: 1;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-family: monospace;
  font-size: 13px;
}

.btn-copy {
  padding: 12px 20px;
  background: #4f46e5;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-copy:hover {
  background: #4338ca;
}

.pix-timer {
  text-align: center;
  padding: 12px;
  background: #fef3c7;
  border-radius: 8px;
  margin-bottom: 20px;
}

.pix-timer strong {
  color: #92400e;
}

.payment-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #666;
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 16px;
  background: var(--primary-color, #22c55e);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--secondary-color, #16a34a);
}

.btn-primary:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.btn-confirm {
  background: #4f46e5;
}

.btn-confirm:hover {
  background: #4338ca;
}

/* Step Summary */
.step-summary {
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
}

.step-summary p {
  margin-bottom: 8px;
  color: #374151;
  font-size: 14px;
}

.step-summary p:last-child {
  margin-bottom: 0;
}

/* Order Summary */
.order-summary {
  position: sticky;
  top: 20px;
}

.summary-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.summary-card h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.product-info {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.product-info img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.product-info h4 {
  font-size: 16px;
  margin-bottom: 4px;
  color: #1a1a1a;
}

.product-info p {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.quantity {
  font-weight: 500;
}

.product-price {
  /* Added from update */
  color: var(--primary-color, #22c55e);
}

.summary-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 16px 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
}

.price-row.total {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-color, #1a1a1a);
}

.free-shipping {
  color: var(--primary-color, #22c55e);
  font-weight: 600;
}

.security-badges {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #374151;
}

.badge:last-child {
  margin-bottom: 0;
}

/* Footer */
.footer {
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 32px 0;
  margin-top: 60px;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #4f46e5;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links span {
  color: #d1d5db;
}

.footer p {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-small {
  font-size: 12px !important;
  color: #9ca3af !important;
}

/* Responsive */
@media (max-width: 968px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
    order: -1;
  }

  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .contact-info {
    align-items: center;
  }
}

@media (max-width: 640px) {
  .form-row {
    flex-direction: column;
  }

  .form-row .form-group {
    width: 100% !important;
  }

  .payment-tabs {
    flex-direction: column;
  }

  .card-number {
    font-size: 18px;
  }
}
