/* Estilos gerais */
:root {
  --white: #FFFFFF;
  --light-gray: #F8F8F8;
  --gray-200: #E5E5E5;
  --gray-300: #D0D3D6;
  --gray-500: #888888;
  --gray-700: #4A4A4A;
  --gray-800: #343A42;
  --blue-light: #4285F4;
  --blue-dark: #128ECE;
  --green: #28A745;
  --brand-primary: #128ECE;
  --spacer-1: 0.25rem;
  --spacer-2: 0.5rem;
  --spacer-3: 0.75rem;
  --spacer-4: 1rem;
  --spacer-6: 1.5rem;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--light-gray);
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.5;
}

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

.checkout-container {
  display: flex;
  flex-direction: column;
  margin: 2rem auto;
  max-width: 940px;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-header {
  display: flex;
  padding: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.product-image {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  overflow: hidden;
  margin-right: 15px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info {
  flex: 1;
}

/* Estilos para a logo */
.logo-center {
  display: block;
  text-align: center;
  width: 100%;
  margin: 10px 0;
  padding: 0;
  position: relative;
}

.checkout-logo {
  /* Você pode ajustar facilmente estas propriedades */
  max-width: 160px; /* Largura máxima da logo */
  height: auto; /* Mantém a proporção */
  object-fit: contain; /* Garante que a imagem caiba dentro das dimensões sem distorção */
  margin: 0 auto;
  display: inline-block;
}

.product-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 5px 0;
  color: var(--gray-800);
}

.product-author {
  font-size: 14px;
  color: var(--gray-700);
  margin: 0 0 10px 0;
}

/* Preços - formato vertical simples */
.price-original {
  font-size: 12px;
  font-weight: 400;
  color: #9e9e9e;
  text-decoration: line-through;
  margin-bottom: 5px;
  display: block;
}

.price-current {
  font-size: 24px;
  font-weight: 700;
  color: #0a7caa;
  margin-bottom: 8px;
  display: block;
}

.price-discount {
  display: inline-flex;
  align-items: center;
  background-color: #f04e23;
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 15px;
}

.price-discount i {
  margin-right: 6px;
  font-size: 10px;
}

.product-installments {
  font-size: 14px;
  color: var(--gray-700);
}

.product-description {
  font-size: 14px;
  color: var(--gray-700);
  margin-top: 10px;
}

/* Formulário */
.form-section {
  padding: 20px;
}

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

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--gray-800);
}

.form-control {
  width: 100%;
  height: 45px;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: var(--blue-light);
  outline: none;
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.25);
}

/* Botões de pagamento */
.payment-methods {
  padding: 20px;
  border-top: 1px solid var(--gray-200);
}

.payment-method-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--gray-800);
}

.payment-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 60px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  margin-right: 10px;
  cursor: pointer;
  background-color: #f5f7fa;
}

.payment-option.active {
  border-color: var(--blue-dark);
  background-color: #e6f2ff;
}

.payment-option-icon {
  width: 30px;
  height: 30px;
}

.payment-option-label {
  display: block;
  text-align: center;
  font-size: 14px;
  color: var(--blue-dark);
  margin-top: 5px;
}

/* Detalhes do PIX */
.pix-details {
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 4px;
  margin-top: 20px;
}

.pix-info {
  margin-bottom: 15px;
}

.pix-info-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.pix-info-title svg {
  margin-right: 10px;
  color: var(--blue-dark);
}

.pix-info-text {
  color: var(--gray-700);
  font-size: 14px;
  margin: 0 0 0 25px;
}

.order-details {
  border-top: 1px solid var(--gray-200);
  padding: 20px;
}

.order-details-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--gray-800);
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--gray-700);
}

.order-discount {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: #00A651;
  font-weight: 600;
}

.order-discount span:last-child {
  text-align: right;
  min-width: 90px;
}

.order-total {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
  border-top: 1px solid var(--gray-200);
  margin-top: 10px;
}

.btn-generate-pix {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #00A651;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
}

.btn-generate-pix:hover {
  background-color: #009148;
}

/* Footer */
.checkout-footer {
  padding: 20px;
  border-top: 1px solid var(--gray-200);
  font-size: 13px;
  color: var(--gray-500);
}

.checkout-footer a {
  color: var(--blue-light);
  text-decoration: underline;
}

.checkout-footer p {
  margin: 10px 0;
}

.checkout-id {
  font-weight: 600;
  color: var(--gray-700);
}

/* Seção de benefícios */
.benefits-section {
  margin-top: 20px;
}

.benefit-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid rgba(18,142,206,0.3);
  border-radius: 4px;
}

.benefit-icon {
  margin-right: 15px;
  color: #128ECE;
}

.benefit-content {
  flex: 1;
}

.benefit-title {
  font-weight: 600;
  color: #063545;
  margin: 0 0 3px 0;
}

.benefit-description {
  color: #128ECE;
  font-size: 13px;
  margin: 0;
}

/* Seção de depoimentos */
.testimonials-section {
  margin-top: 20px;
}

.testimonial {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 600;
  margin: 0 0 5px 0;
}

.testimonial-stars {
  color: #FEC600;
  font-size: 16px;
}

.testimonial-text {
  font-style: italic;
  color: var(--gray-700);
  font-size: 14px;
  line-height: 1.4;
}

/* Países e idiomas */
.country-selector {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 12px;
  color: var(--gray-800);
  margin-bottom: 10px;
}

.country-selector svg {
  margin-left: 5px;
  width: 8px;
  height: 8px;
}

/* Responsividade */
@media (max-width: 768px) {
  .checkout-container {
    margin: 0;
    border-radius: 0;
  }
  
  .product-header {
    flex-direction: column;
  }
  
  .product-image {
    margin-bottom: 15px;
  }
}
