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

body {
  font-family: 'Inter', sans-serif;
  background: #dbdddf;
  min-height: 100vh;
  color: #333;
}

.header-logo {
  text-align: center;
  padding: 0;
  width: 100%;
}

.header-logo .logo {
  width: 100%;
  max-width: 100%;
  display: block;
  height: auto;
  mix-blend-mode: multiply;
}

.checkout-container {
  max-width: 450px;
  margin: 0 auto;
  padding: 10px 20px 40px;
}

.checkout-title {
  color: #1a3c5a;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.payment-method {
  display: flex;
  align-items: center;
  background: #e2e4e6;
  padding: 16px 20px;
  border-radius: 4px;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.1), inset 1px 1px 2px rgba(255, 255, 255, 0.7);
  border: 1px solid #ced1d4;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

.payment-method:hover {
  transform: translateY(-1px);
  box-shadow: 3px 5px 12px rgba(0, 0, 0, 0.12), inset 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.payment-method i,
.payment-method svg {
  font-size: 1.6rem;
  margin-right: 20px;
  width: 30px;
  text-align: center;
}

.payment-method .method-texts {
  display: flex;
  flex-direction: column;
}

.method-name {
  font-weight: 500;
  font-size: 1rem;
  color: #1a3c5a;
}

.method-sub {
  font-size: 0.85rem;
  color: #1a3c5a;
  opacity: 0.8;
  margin-top: 2px;
}

.method-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.method-disabled .method-name {
  color: #666;
}

.method-disabled i {
  color: #666;
}

/* Bolero specific */
.icon-barcode {
  color: #1a3c5a;
}

/* Pix specific */
.icon-pix {
  color: #22a796;
}

/* Botão Voltar */
.back-button {
  background: #00568c;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background 0.2s;
}

.back-button:hover {
  background: #004573;
}

/* Resumo do Pedido */
.order-summary {
  background: #e2e4e6;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 25px;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.1), inset 1px 1px 2px rgba(255, 255, 255, 0.7);
  border: 1px solid #ced1d4;
  color: #333;
}

.summary-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-weight: 700;
  color: #1a3c5a;
  font-size: 0.95rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

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

.summary-row .summary-label {
  color: #555;
}

.summary-row .summary-value {
  color: #333;
}

.summary-divider {
  height: 1px;
  background-color: #aeb4b8;
  margin: 12px 0;
}

.summary-total .summary-label,
.summary-total .summary-value {
  font-weight: 700;
  color: #111;
}

/* MODAL PRESERVADO (Estilo do PIX) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #ffffff;
  margin: 10% auto;
  padding: 0;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: modalSlideIn 0.3s ease;
  color: #333;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  background: #f8f9fa;
  color: #333;
  padding: 20px;
  border-radius: 8px 8px 0 0;
  text-align: center;
  border-bottom: 1px solid #e9ecef;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #22a796;
}

.modal-header p {
  color: #6c757d;
  font-size: 0.9rem;
}

.modal-body {
  padding: 30px;
  text-align: center;
}

.qr-container {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.qr-code {
  max-width: 200px;
  margin: 0 auto 20px;
}

.pix-code {
  background: #fff;
  color: #333;
  border: 1px dashed #adb5bd;
  border-radius: 4px;
  padding: 15px;
  width: 100%;
  font-family: monospace;
  font-size: 0.9rem;
  margin-bottom: 20px;
  word-break: break-all;
}

.copy-button {
  background: #22a796;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}

.copy-button:hover {
  background: #1b8678;
}

.close-button {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #888;
  font-size: 1.5rem;
  cursor: pointer;
}

.close-button:hover {
  color: #333;
}

.status-message {
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  font-weight: 500;
}

.status-success {
  background: #d1e7dd;
  color: #0f5132;
}

.status-error {
  background: #f8d7da;
  color: #842029;
}

.status-loading {
  background: #cfe2ff;
  color: #084298;
}

/* Responsiveness */
@media (max-width: 480px) {
  .checkout-container {
    padding: 10px 15px 30px;
  }
}