/* V1.27.57 — confirmação de participação compacta no mobile, sem rolagem interna. */
@media (max-width:700px){
  body #checkoutModal.modal.open:has(#confirmCheckoutBtn:not(.hidden)){
    overflow-x:hidden!important;
    overflow-y:hidden!important;
  }

  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)){
    box-sizing:border-box!important;
    padding:10px 12px 11px!important;
    border-radius:16px!important;
    overflow-x:hidden!important;
    overflow-y:hidden!important;
  }

  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) > .modal-head{
    display:block!important;
    min-height:34px!important;
    margin:0 0 4px!important;
    padding:0 40px 4px 0!important;
  }

  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) > .modal-head h3{
    margin:0!important;
    font-size:1rem!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) > .modal-head .icon-btn{
    top:0!important;
    right:0!important;
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    min-height:34px!important;
    border-radius:10px!important;
  }

  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails{
    display:block!important;
    margin:0!important;
    padding:0!important;
  }

  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .sum-line,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .checkout-campaign-line,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .checkout-quantity-line{
    display:grid!important;
    grid-template-columns:minmax(0,44%) minmax(0,56%)!important;
    align-items:center!important;
    gap:6px!important;
    min-height:27px!important;
    margin:0!important;
    padding:5px 0!important;
    border:0!important;
    border-bottom:1px solid #e2e8f0!important;
    background:transparent!important;
    font-size:.76rem!important;
    line-height:1.1!important;
  }

  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .sum-line > span,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .sum-line > strong,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .checkout-campaign-line > span,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .checkout-campaign-line > strong{
    display:block!important;
    width:auto!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    font-size:.76rem!important;
    line-height:1.1!important;
    white-space:nowrap!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .sum-line > span,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .checkout-campaign-line > span{
    color:#64748b!important;
    font-weight:650!important;
    text-transform:none!important;
    letter-spacing:0!important;
    text-align:left!important;
  }

  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .sum-line > strong,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .checkout-campaign-line > strong{
    color:#0f172a!important;
    font-weight:800!important;
    text-align:right!important;
  }

  /* Benefícios continuam destacados, mas sem criar altura extra. */
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .checkout-benefit-row,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .double-chance-summary,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .order-promotion-highlight{
    min-height:27px!important;
    margin:1px 0!important;
    padding:5px 7px!important;
    border:0!important;
    border-left:2px solid rgba(18,110,56,.5)!important;
    border-radius:6px!important;
    background:rgba(18,110,56,.05)!important;
  }

  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .checkout-benefit-row > span,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .checkout-benefit-row > strong,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .double-chance-summary > span,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .double-chance-summary > strong,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .order-promotion-highlight > span,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .order-promotion-highlight > strong{
    color:#126e38!important;
  }

  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .sum-total{
    display:grid!important;
    grid-template-columns:minmax(0,44%) minmax(0,56%)!important;
    align-items:center!important;
    gap:6px!important;
    min-height:34px!important;
    margin:0!important;
    padding:7px 0 5px!important;
    border:0!important;
    border-bottom:1px solid #e2e8f0!important;
    background:transparent!important;
  }

  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .sum-total > span{
    min-width:0!important;
    color:#334155!important;
    font-size:.8rem!important;
    line-height:1!important;
    font-weight:800!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .sum-total > strong{
    min-width:0!important;
    color:#126e38!important;
    font-size:1.08rem!important;
    line-height:1!important;
    font-weight:900!important;
    text-align:right!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) .wheel-checkout-tip,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) .wheel-checkout-tip.achieved{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:6px!important;
    min-height:28px!important;
    margin:0!important;
    padding:5px 0 1px!important;
    color:#475569!important;
    font-size:.68rem!important;
    line-height:1.1!important;
  }

  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) .wheel-checkout-tip > span{
    min-width:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) .wheel-checkout-add{
    min-height:29px!important;
    padding:5px 8px!important;
    border-radius:8px!important;
    font-size:.67rem!important;
    line-height:1!important;
    white-space:nowrap!important;
  }

  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) .check{
    display:grid!important;
    grid-template-columns:18px minmax(0,1fr)!important;
    align-items:center!important;
    gap:6px!important;
    min-height:22px!important;
    margin:7px 0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    font-size:.68rem!important;
    line-height:1.05!important;
  }

  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) .check input[type="checkbox"]{
    width:18px!important;
    height:18px!important;
    min-width:18px!important;
    min-height:18px!important;
    margin:0!important;
  }

  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) .check span{
    min-width:0!important;
    color:#475569!important;
    font-size:.68rem!important;
    line-height:1.05!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #confirmCheckoutBtn{
    min-height:42px!important;
    height:42px!important;
    margin-top:1px!important;
    padding:7px 12px!important;
    border-radius:12px!important;
    font-size:.84rem!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
}

/* Telefones mais estreitos: preserva uma linha sem reduzir a área de toque principal. */
@media (max-width:360px){
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)){
    padding:9px 10px 10px!important;
  }
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .sum-line,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .checkout-campaign-line,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .checkout-quantity-line{
    grid-template-columns:minmax(0,46%) minmax(0,54%)!important;
    gap:4px!important;
  }
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .sum-line > span,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .sum-line > strong,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .checkout-campaign-line > span,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .checkout-campaign-line > strong{
    font-size:.72rem!important;
  }
}

/* Alturas reduzidas (ex.: navegador com muitas barras): comprime verticalmente sem criar scroll. */
@media (max-width:700px) and (max-height:620px){
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)){
    padding:8px 10px 9px!important;
  }
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) > .modal-head{
    min-height:30px!important;
    margin-bottom:2px!important;
    padding-bottom:2px!important;
  }
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) > .modal-head .icon-btn{
    width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;
  }
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .sum-line,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .checkout-campaign-line,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .checkout-quantity-line,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .checkout-benefit-row,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .double-chance-summary,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .order-promotion-highlight{
    min-height:23px!important;
    padding-top:3px!important;
    padding-bottom:3px!important;
  }
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .sum-total{
    min-height:30px!important;
    padding:5px 0 4px!important;
  }
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) .wheel-checkout-tip,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) .wheel-checkout-tip.achieved{
    min-height:24px!important;
    padding-top:3px!important;
  }
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) .check{
    min-height:20px!important;
    margin:5px 0!important;
    font-size:.65rem!important;
  }
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) .check span{font-size:.65rem!important}
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #confirmCheckoutBtn{
    min-height:38px!important;height:38px!important;
  }
}

/* Landscape/viewport muito baixo: mantém toda a confirmação visível sem scroll. */
@media (max-width:700px) and (max-height:500px){
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)){
    padding:6px 9px 6px!important;
  }
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) > .modal-head{
    min-height:27px!important;
    margin-bottom:1px!important;
    padding-bottom:1px!important;
  }
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) > .modal-head h3{font-size:.9rem!important}
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) > .modal-head .icon-btn{
    width:27px!important;height:27px!important;min-width:27px!important;min-height:27px!important;
  }
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .sum-line,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .checkout-campaign-line,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .checkout-quantity-line,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .checkout-benefit-row,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .double-chance-summary,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .order-promotion-highlight{
    min-height:20px!important;
    padding-top:2px!important;
    padding-bottom:2px!important;
  }
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .sum-line > span,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .sum-line > strong,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .checkout-campaign-line > span,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .checkout-campaign-line > strong{
    font-size:.66rem!important;
  }
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .sum-total{
    min-height:27px!important;
    padding:4px 0 3px!important;
  }
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #checkoutDetails .sum-total > strong{font-size:.95rem!important}
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) .wheel-checkout-tip,
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) .wheel-checkout-tip.achieved{
    min-height:22px!important;
    padding:2px 0 0!important;
    font-size:.62rem!important;
  }
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) .wheel-checkout-add{
    min-height:24px!important;padding:3px 6px!important;font-size:.62rem!important;
  }
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) .check{
    min-height:18px!important;
    margin:3px 0!important;
  }
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) .check span{font-size:.61rem!important}
  body #checkoutModal.modal.open > .modal-card:has(#confirmCheckoutBtn:not(.hidden)) #confirmCheckoutBtn{
    min-height:34px!important;height:34px!important;font-size:.78rem!important;
  }
}
