html, body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  margin: 0;
  height: 100%;
  width: 100%;
  background-color: #fff;
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  position: relative;
  z-index: 0;
}


/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== FONTES MERCADO LIVRE ===== */
@font-face {
  font-family: 'Proxima Nova';
  src: url('https://cdn.jsdelivr.net/gh/AllanRocha/fontes-proximanova/proximanova-regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Proxima Nova';
  src: url('https://cdn.jsdelivr.net/gh/AllanRocha/fontes-proximanova/proximanova-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}

/* Aplicação global */
body, html, * {
  font-family: 'Proxima Nova', 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}






/* CONTAINER PRINCIPAL */
.app-container {
  animation: fadeIn 0.3s ease;
}








/*------------------------------------------------------------------------------------------------------------------------ */







/* LOADER PRINCIPAL */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader.hidden {
  display: none;
}

/* Spinner inspirado no estilo Mercado Livre */
.spinner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  /* Cria o efeito de anel com a parte colorida em amarelo */
  background: conic-gradient(from 0deg, #ffe600 0%, #ffe600 30%, #f3f3f3 30%, #f3f3f3 100%);
  /* Usa máscara para “recortar” o centro e deixar apenas o anel */
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), black 100%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), black 100%);
  animation: spin 1.2s linear infinite;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

@keyframes spin {
  100% { 
    transform: rotate(360deg); 
  }
}

/* Loader para métodos de pagamento */
.method-loader {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

/* ANIMAÇÕES */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}



/* Loader Inicial - Contêiner Amarelo */
:root {
  --radius: 35;
  --PI: 3.14159265358979;
  --circumference: calc(var(--PI) * var(--radius) * 2px);
}
.YZCVAcontainer {
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}
.YZCVAcircle-svg {
  /* Comportamento padrão */
}
.YZCVAcircle-svg circle {
  stroke: #ffe600;
  stroke-width: 4;
  fill: transparent;
  transform-origin: center;
  stroke-dasharray: var(--circumference);
  animation: YZCVAspinner 2s ease-out infinite;
}
@keyframes YZCVAspinner {
  from {
    stroke-dashoffset: var(--circumference);
    stroke: #3483fa;
    transform: rotateZ(0deg);
  }
  to {
    stroke-dashoffset: calc(var(--circumference) * -1);
    stroke: #3483fa;
    transform: rotateZ(720deg);
  }
}
.YZCVAloader-container33a {
  display: none; /* Será exibido via JS */
  background-color: #ffe600;
  width: 100%;
  height: 100dvh;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}












/*------------------------------------------------------------------------------------------------------------------------ */






/* HEADER */
.top-bar {
  background-color: #ffe600;
  color: #333;
  padding: 16px;
  text-align: center;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.top-bar-logo {
  width: 50px;
  height: auto;
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.top-bar-title {
  font-size: 16px;
  font-weight: 600;
  display: inline-block;
  width: 100%;
  text-align: center;
}

/* CONTEÚDO GERAL */
.page-content {
  padding-top: 69px;
  padding-bottom: 20px;
}













/*------------------------------------------------------------------------------------------------------------------------ */














/* FORMULÁRIO DE ENDEREÇO */
.page-content.address-page {
  background-color: #fff;
}
.form-group {
  margin-bottom: 15px;
  width: 100%;
  padding: 0 16px;
}
.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #000000;
}
.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  border-color: #3483fa;
  outline: none;
  box-shadow: 0 0 0 2px rgba(52,131,250,0.2);
}
.form-group small1 {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}
.shadow-field {
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.number-row {
  display: flex;
  gap: 10px;
  width: 100%;
}
.sem-numero {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #333;
}
.radio-row {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}
.radio-row label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 14px;
}
.textarea-control {
  width: 100%;
  min-height: 60px;
  resize: vertical;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea-control:focus {
  border-color: #3483fa;
  outline: none;
  box-shadow: 0 0 0 2px rgba(52,131,250,0.2);
}
.textarea-control::placeholder {
  color: #999;
  font-size: 14px;
}
.cep-link {
  display: block;
  text-align: left;
  font-size: 12px;
  color: #3483fa;
  margin: 5px 0;
  text-decoration: none;
}

/* BOTÃO AZUL (ENDEREÇO) */
.btn-blue {
  display: block;
  width: 90%;
  margin: 20px auto;
  text-align: center;
  padding: 14px 0;
  background-color: #3483fa;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.btn-blue:hover {
  background-color: #2968c8;
}



/* HEADER FIXO pagina de endereco (Somente Mobile) */
.ml1-header-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background-color: #ffe600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  z-index: 999;
}
.ml-header-logo-container {
  position: absolute;
  left: 1rem;
  display: flex;
  align-items: center;
  height: 56px;
}
.ml1-header-logo {
  width: 50px;
  height: auto;
  margin-left: -125px;
}
.ml1-header-title {
  font-size: 1rem;
  color: #000;
  font-weight: 500;
}
.ml-content {
  margin-top: 56px;
  padding: 1rem;
}













/*------------------------------------------------------------------------------------------------------------------------ */











/* PÁGINA DE ESCOLHA DE PAGAMENTO */
.payment-forma-page {
  background-color: #f0f0f0;
  min-height: 100vh;
  position: relative;
  padding: 30px 16px 100px;
}
.payment-arrow {
  position: absolute;
  top: 20px;
  left: 16px;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  text-decoration: none;
}
.payment-title {
  font-size: 23px;
  font-weight: normal;
  color: #333;
  margin-top: 30px;
  margin-bottom: 20px;
  text-align: left;
}
.payment-methods-container {
  margin-top: 30px;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.toggle-row span {
  font-size: 16px;
  color: #333;
}
.toggle-switch {
  position: relative;
  width: 50px;
  height: 28px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 34px;
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: .4s;
}
.toggle-switch input:checked + .slider {
  background-color: #3483fa;
}
.toggle-switch input:checked + .slider:before {
  transform: translateX(22px);
}
/* Payment Methods */
.payment-method {
  background: #fff;
  border-radius: 4px;
  margin-bottom: 10px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.payment-method:hover {
  background-color: #f8f8f8;
}
.method-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.icon-circle {
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
}
.method-logo {
  width: 45px;
  height: 58px;
  object-fit: contain;
}
.method-info {
  display: flex;
  flex-direction: column;
}
.method-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  color: #333;
  margin-bottom: 4px;
  padding-right: 60px;
}
.method-subtitle {
  font-size: 14px;
  color: #999;
}
.recommended-badge {
  position: absolute;
  top: 4px;
  right: 0px;
  background-color: #3483fa;
  color: #fff;
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 4px;
  font-weight: normal;
  text-transform: uppercase;
}
.arrow-right {
  font-size: 18px;
  color: #999;
}













/*------------------------------------------------------------------------------------------------------------------------ */















/* RESUMO DA COMPRA – Página de Resumo */
.summary-footer-box {
  position: fixed;
  bottom: -25px;
  left: 0;
  right: 0;
  background-color: #fff;
  padding: 20px 16px;
  border-top: 1px solid #ddd;
  box-shadow: 0 -1px 8px rgba(0,0,0,0.1);
  z-index: 997;
}
.footer-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.footer-line-title {
  font-size: 16px;
  color: #000;
  font-weight: 500;
}
.footer-line-value {
  font-size: 16px;
  font-weight: bold;
  color: #00a650;
}
.pay-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.pay-line-left {
  font-size: 16px;
  color: #000;
  font-weight: 500;
}
.pay-line-right {
  font-size: 18px;
  font-weight: bold;
  color: #000000;
}
.extra-space {
  height: 10px;
}
.divider {
  width: 100%;
  height: 1px;
  background-color: #ddd;
  margin: 15px 0;
}

/* CONTÊINER DO RESUMO DA COMPRA */
.summary-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 16px;
}
.summary-title {
  font-size: 19px;
  font-weight: 500;
  color: #333;
  margin-top: 8px;
  margin-bottom: 4px;
  font-family: "Proxima Nova", -apple-system, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif
}
.summary-subtitle {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}
.address-icon {
  width: 18px;
  height: 18px;
  margin-right: 5px;
  vertical-align: middle;
}
.shipping-box {
  background-color: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.shipping-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 5px;
}
.shipping-left {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}
.full-icon {
  width: 60px;
  height: 26px;
  vertical-align: middle;
  margin-top: 4px;
}
.product-thumb {
  width: 48px;
  height: 40px;
  border-radius: 100%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #ddd;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shipping-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}
.shipping-option label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 500;
}
.shipping-option .price {
  color: #00a650;
  font-weight: 500;
}
.ml-link {
  font-size: 14px;
  color: #3483fa;
  text-decoration: none;
  font-weight: 600;
  margin-top: 10px;
}
.address-box {
  background-color: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: #000;
  font-weight: 500;
}
.address-box-title {
  font-size: 16px;
  color: #000;
  font-weight: 600;
  margin-bottom: 8px;
}
.address-line {
  font-size: 14px;
  color: #000;
  margin-bottom: 4px;
}









/*------------------------------------------------------------------------------------------------------------------------ */







/* PÁGINA DE PAGAMENTO RECUSADO */
.declined-page {
  text-align: center;
  padding: 40px 20px;
  min-height: 100vh;
  background: #fff;
}

.declined-icon {
  font-size: 80px;
  color: #ff3b30;
  margin-bottom: 20px;
}

.declined-title {
  font-size: 24px;
  color: #333;
  margin-bottom: 15px;
}

.declined-message {
  color: #666;
  margin-bottom: 30px;
  line-height: 1.5;
}

.btn-gray {
  background: #eee;
  color: #333;
}

.btn-gray:hover {
  background: #ddd;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(5px); }
  50% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.4s ease-in-out;
}














/*------------------------------------------------------------------------------------------------------------------------ */












/* PAGINA DO CARTAO DE CREDITO*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'proxima nova', -apple-system, Roboto, Arial, sans-serif;
}

body {
  background: linear-gradient(180deg, #f5f5f5, #ffffff);
  color: #333;
  overflow-x: hidden;
}

/* HEADER FIXO */
header {
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 10px 20px;
}
header img {
  height: 40px;
}

/* CONTAINER PRINCIPAL */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 10px 20px; /* espaço extra no topo p/ não ficar atrás do header */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
}

/* CARTÃO DE CRÉDITO */
.credit-card {
  width: 360px;
  height: 220px;
  background: linear-gradient(135deg, #3483fa, #2968c8);
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative; 
  transform-style: preserve-3d;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}
.credit-card:hover {
  transform: scale(1.05) rotateX(5deg) rotateY(-5deg);
  box-shadow: 0 15px 25px rgba(0,0,0,0.3);
}

/* CHIP EM CSS (dourado) */
.card-chip {
  width: 60px;
  height: 40px;
  position: absolute;
  top: 20px;
  left: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f8e1a1, #d0b479);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 
    inset 0 2px 4px rgba(0,0,0,0.3), 
    0 4px 8px rgba(0,0,0,0.4);
  overflow: hidden;
}
.card-chip::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 85%; height: 80%;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg,
    rgba(0,0,0,0.15) 20%, 
    transparent 20%, 
    transparent 40%, 
    rgba(0,0,0,0.15) 40%, 
    rgba(0,0,0,0.15) 60%, 
    transparent 60%, 
    transparent 80%, 
    rgba(0,0,0,0.15) 80%
  );
  background-size: 10px 100%;
  mix-blend-mode: overlay;
}

/* LOGO DA BANDEIRA */
.brand-logo {
  width: 70px;
  display: none; 
  position: absolute;
  top: 20px;
  right: 20px;
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.4));
  transition: transform 0.3s;
}
.brand-logo:hover {
  transform: scale(1.1);
}

/* NÚMERO DO CARTÃO */
.cc-number {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-top: 10px;
}

/* RODAPÉ DO CARTÃO (NOME + VALIDADE) */
.cc-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 10px;
  width: 100%;
}
.cc-name, .cc-expiration {
  font-size: 1rem;
  font-weight: 400;
}

/* FORMULÁRIO (CARTÃO BRANCO, SUTIS SOMBRAS) */
.form-container {
  background: #fff;
  width: 400px;
  min-height: 100px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  animation: fadeIn 0.8s ease both;
}
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.form-container h2 {
  font-size: 1.4rem; 
  margin-bottom: 20px;
  text-align: center;
  font-weight: 700;
  color: #333;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
}
.form-group input, 
.form-group select {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus, 
.form-group select:focus {
  border-color: #3483fa;
  box-shadow: 0 0 5px rgba(52,131,250,0.3);
}

/* MENSAGEM DE ERRO (CPF INVÁLIDO) */
.error-message {
  color: red;
  font-size: 0.85rem;
  margin-top: 4px;
  position: absolute;
  bottom: -20px; 
  left: 0;
}

/* BOTÃO DE ENVIO (AZUL MERCADO LIVRE) */
.form-button {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  background-color: #3483fa;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s, transform 0.3s;
}
.form-button:hover {
  background-color: #2968c8;
  transform: scale(1.02);
}

/* RODAPÉ DO FORMULÁRIO */
.form-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #666;
}
.form-footer a {
  color: #3483fa;
  text-decoration: none;
}
.form-footer a:hover {
  text-decoration: underline;
}

/* LOADER (OVERLAY) */
.loader-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; 
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: none; 
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.loader-container {
  text-align: center;
  color: #fff;
  animation: fadeInLoader 0.6s ease both;
}
@keyframes fadeInLoader {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}
.loader-spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ccc;
  border-top: 6px solid #fff159; /* amarelo ML */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

/* RESPONSIVIDADE */
@media (max-width: 992px) {
  .container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .credit-card {
    margin: 0 auto;
  }
}
@media (max-width: 768px) {
  .form-container {
    width: 100%;
    max-width: 400px;
  }
}










   







