/* Checkout Header */
.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4%;
  min-height: 88px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.checkout-brand {
  display: inline-flex;
  align-items: center;
}

.checkout-brand .brand-logo {
  height: 86px;
}

.checkout-brand .brand-fallback {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
}

.back-link {
  color: var(--text-secondary);
  font-size: 0.85rem;
  white-space: nowrap;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--text-primary);
}

/* Checkout Main */
.checkout-main {
  padding-top: 28px;
  padding-bottom: 60px;
  min-height: calc(100vh - 70px);
}

.checkout-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

/* Left Column */
.checkout-left {
  max-width: 600px;
}

.checkout-left h1 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.checkout-left h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.email-step .form-group {
  margin: 16px 0;
}

.email-step .btn-primary {
  width: 100%;
}

.error-msg {
  color: #e87c03;
  font-size: 0.85rem;
  margin-top: 8px;
  min-height: 20px;
}

/* Email confirmed bar */
.email-confirmed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.05);
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.email-confirmed strong {
  color: var(--text-primary);
}

.change-email-btn {
  background: transparent;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font);
}

.change-email-btn:hover {
  text-decoration: underline;
}

/* Payment brick container */
#payment-brick-container {
  min-height: 300px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  overflow: hidden;
}

/* Right Column - Order Summary */
.order-summary {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  position: sticky;
  top: 20px;
}

.order-summary h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.order-item-name {
  color: var(--text-secondary);
}

.order-item-price {
  font-weight: 600;
}

.order-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-total span:first-child {
  font-weight: 600;
  font-size: 1.05rem;
}

.order-total-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-green);
}

.order-features {
  list-style: none;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.order-features li {
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.order-guarantee {
  margin-top: 20px;
  padding: 10px;
  background: rgba(70, 211, 105, 0.08);
  border: 1px solid rgba(70, 211, 105, 0.2);
  border-radius: 8px;
  text-align: center;
  color: var(--accent-green);
  font-size: 0.82rem;
  font-weight: 600;
}

.order-secure {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Status Messages */
.status-message {
  max-width: 500px;
  margin: 80px auto;
  text-align: center;
  padding: 50px 30px;
  border-radius: 12px;
}

.status-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 20px;
}

.status-message h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.status-message p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 1rem;
  line-height: 1.6;
}

.status-success {
  border: 1px solid rgba(70, 211, 105, 0.2);
  background: rgba(70, 211, 105, 0.05);
}

.status-pending {
  border: 1px solid rgba(255, 193, 7, 0.2);
  background: rgba(255, 193, 7, 0.05);
}

.status-failure {
  border: 1px solid rgba(229, 9, 20, 0.2);
  background: rgba(229, 9, 20, 0.05);
}

/* Responsivo */
@media (max-width: 768px) {
  .checkout-header {
    min-height: 72px;
    padding: 10px 4%;
  }

  .checkout-brand .brand-logo {
    height: 64px;
  }

  .checkout-content {
    grid-template-columns: 1fr;
  }

  .checkout-left {
    max-width: 100%;
  }

  .order-summary {
    position: static;
  }

  .checkout-left h1 {
    font-size: 1.5rem;
  }

  .email-confirmed {
    align-items: flex-start;
  }

  .change-email-btn {
    padding: 0;
  }

  .status-message {
    margin: 36px auto;
    padding: 32px 18px;
  }
}
