.elementor-2890 .elementor-element.elementor-element-171b941{--display:flex;}/* Start custom CSS */@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* ========== CHECKOUT – LAYOUT GERAL ========== */

.bm-checkout-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 25px;
  font-family: inherit;

  width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
}

/* ✅ min-width:0 em grids/flex evita overflow por texto/inputs */
.bm-checkout-page,
.bm-checkout-layout,
.bm-checkout-main,
.bm-checkout-summary,
.bm-checkout-card,
.bm-checkout-summary-card,
.bm-checkout-section,
.bm-checkout-grid,
.bm-field,
.bm-field input,
.bm-field select {
  min-width: 0;
}

.bm-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}

/* garante sticky (sem matar overflow-x do page) */
.bm-checkout-layout,
.bm-checkout-summary {
  overflow: visible !important;
}

/* Elementor: sem overflow zoando sticky */
.bm-checkout-page .elementor-container,
.bm-checkout-page .elementor-column,
.bm-checkout-page .elementor-widget-wrap,
.bm-checkout-page .elementor-section,
.bm-checkout-page .elementor-section-wrap,
.bm-checkout-page .elementor-widget-container,
.bm-checkout-page .e-con,
.bm-checkout-page .e-con-inner {
  overflow: visible !important;
}

/* Se algum wrapper tiver transform/filter, pode matar sticky */
.bm-checkout-page .elementor-section,
.bm-checkout-page .e-con,
.bm-checkout-page .elementor-widget-wrap {
  transform: none !important;
  filter: none !important;
}

@media (max-width: 960px) {
  .bm-checkout-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bm-checkout-page {
    padding: 18px 12px 28px;
  }
}

/* Ordem visual */
@media (min-width: 961px) {
  .bm-checkout-main {
    order: 1;
  }

  .bm-checkout-summary {
    order: 2;
  }
}

@media (max-width: 960px) {
  .bm-checkout-summary {
    order: 1;
  }

  .bm-checkout-main {
    order: 2;
  }
}

/* ========== COLUNA DIREITA – RESUMO DA BOLSA (STICKY) ========== */

.bm-checkout-summary {
  align-self: flex-start;
  position: sticky;
  top: 24px;
  z-index: 5;
}

@media (max-width: 960px) {
  .bm-checkout-summary {
    position: static;
    top: auto;
  }
}

.bm-checkout-summary-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
  padding: 20px 22px 22px;
  position: relative;
  width: 100%;
}

/* HEADER DO RESUMO */
.bm-checkout-summary-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid #f1f1f1;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.bm-checkout-summary-logo {
  margin-bottom: 2px;
}

.bm-checkout-summary-logo img {
  max-height: 40px;
  width: auto;
  max-width: 100%;
  display: block;
}

.bm-checkout-summary-tag {
  margin: 0 0 4px 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
}

.bm-checkout-summary-title {
  margin: 0 0 4px 0;
  font-size: 20px;
  font-weight: 800;
  word-break: break-word;
}

.bm-checkout-summary-sub {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: #4b5563;
  word-break: break-word;
}

.bm-checkout-summary-meta,
.bm-checkout-summary-location {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  word-break: break-word;
}

.bm-checkout-summary-location {
  margin-top: 4px;
}

/* preços & economia */
.bm-checkout-summary-price-label {
  margin: 4px 0 2px 0;
  font-size: 13px;
  color: #4b5563;
}

.bm-checkout-summary-price-value {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  word-break: break-word;
}

.bm-checkout-summary-price-sufix {
  font-size: 14px;
  font-weight: 500;
  margin-left: 4px;
}

.bm-checkout-summary-price-original {
  margin: 2px 0 10px 0;
  font-size: 13px;
  color: #9ca3af;
  text-decoration: line-through;
}

.bm-checkout-summary-economy {
  border-radius: 16px;
  border: 1px solid rgba(253, 186, 116, 0.9);
  background: #fff7ed;
  padding: 8px 12px;
  margin-bottom: 10px;
}

.bm-checkout-summary-economy-label {
  margin: 0 0 2px 0;
  font-size: 12px;
  color: #6b7280;
}

.bm-checkout-summary-economy-value {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--e-global-color-primary, #f97316);
  word-break: break-word;
}

.bm-checkout-summary-list {
  margin: 8px 0 0 0;
  padding-left: 18px;
  font-size: 13px;
  font-weight: bold;
  color: #4b5563;
  text-transform: uppercase;
}

/* ========== COLUNA ESQUERDA – CARTÃO PRINCIPAL DO CHECKOUT ========== */

.bm-checkout-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

/* STEPS */
.bm-checkout-steps {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.bm-checkout-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f9fafb;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.bm-checkout-step-badge {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: #e5e7eb;
  color: #374151;
}

.bm-checkout-step.is-active {
  background: rgba(249, 115, 22, 0.07);
  color: var(--e-global-color-primary, #f97316);
}

.bm-checkout-step.is-active .bm-checkout-step-badge {
  background: var(--e-global-color-primary, #f97316);
  color: #ffffff;
}

/* SEÇÕES DO FORM */
.bm-checkout-section {
  border-radius: 20px;
  background: #f9fafb;
  padding: 14px 14px 16px;
}

.bm-checkout-section+.bm-checkout-section {
  margin-top: 6px;
}

.bm-checkout-section-title {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
}

.bm-checkout-section-sub {
  margin: 0 0 10px 0;
  font-size: 13px;
  color: #6b7280;
}

/* GRID DE CAMPOS */
.bm-checkout-grid {
  display: grid;
  row-gap: 22px;
  column-gap: 16px;
}

.bm-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bm-grid-3 {
  grid-template-columns: 0.9fr 1.6fr 0.7fr;
}

@media (max-width: 800px) {

  .bm-grid-2,
  .bm-grid-3 {
    grid-template-columns: 1fr;
  }

  .bm-checkout-grid {
    row-gap: 16px;
  }
}

#bm-section-student .bm-grid-address {
  margin-top: 28px !important;
}

/* CAMPOS / LABELS */
.bm-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bm-field label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.bm-field input,
.bm-field select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 12px 16px;
  font-size: 14px;
  background: #ffffff;
  outline: none;
}

.bm-field input:focus,
.bm-field select:focus {
  border-color: var(--e-global-color-primary, #f97316);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.25);
}

.bm-field-inline {
  margin-top: 12px;
}

/* ========== CHECKBOX REDONDO ========== */

.bm-checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  flex-wrap: wrap;
  white-space: normal;
}

.bm-checkbox input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  border-radius: 999px;
  border: 2px solid #d1d5db;
  background: #ffffff;
  margin: 0;
  padding: 0 !important;
  box-sizing: border-box;
  display: inline-block;
  position: relative;
  cursor: pointer;
  vertical-align: middle;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
}

.bm-checkbox input[type="checkbox"]::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.bm-checkbox input[type="checkbox"]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: transparent;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background 0.15s ease;
}

.bm-checkbox input[type="checkbox"]:checked {
  border-color: var(--e-global-color-primary, #f97316);
  background: var(--e-global-color-primary, #f97316);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
  transform: translateY(-1px);
}

.bm-checkbox input[type="checkbox"]:checked::before {
  background: #ffffff;
}

.bm-checkbox input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.bm-checkbox span {
  line-height: 1.3;
  display: block;
}

/* PAYMENT METHODS – tiles */
.bm-checkout-payment-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 12px;
}

@media (max-width: 800px) {
  .bm-checkout-payment-methods {
    grid-template-columns: 1fr;
  }
}

.bm-radio-tile {
  position: relative;
  display: block;
  cursor: pointer;
}

.bm-radio-tile input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bm-radio-tile-body {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.bm-radio-title {
  font-size: 14px;
  font-weight: 600;
}

.bm-radio-sub {
  font-size: 12px;
  color: #6b7280;
}

.bm-radio-tile input[type="radio"]:checked+.bm-radio-tile-body {
  border-color: var(--e-global-color-primary, #f97316);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.25);
  background: rgba(249, 115, 22, 0.03);
}

/* BLOCO CARTÃO / PIX / BOLETO */
.bm-checkout-method-card,
.bm-checkout-method-generic {
  margin-top: 8px;
}

#bm-card-wrapper {
  margin-top: 12px;
}

.bm-checkout-helper {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: #6b7280;
}

/* grupo de dados do titular */
#bm-card-holder-extra {
  margin-top: 18px;
  padding: 16px 18px 14px;
  border-radius: 18px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  column-gap: 16px;
  row-gap: 12px;
}

@media (max-width: 800px) {
  #bm-card-holder-extra {
    padding: 14px 14px 12px;
  }
}

#bm-card-holder-extra+.bm-field {
  margin-top: 20px;
}

/* RESUMO FINAL */
.bm-checkout-section-review {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
}

.bm-checkout-review-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  gap: 12px;
}

.bm-checkout-review-row span:last-child {
  font-weight: 600;
  text-align: right;
}

@media (max-width: 600px) {
  .bm-checkout-review-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .bm-checkout-review-row span:last-child {
    text-align: left;
  }
}

.bm-checkbox-terms {
  margin-top: 10px;
}

/* BOTÃO PRINCIPAL */
.bm-checkout-btn-primary {
  width: 100%;
  margin-top: 14px;
  border-radius: 999px;
  border: none;
  padding: 14px 20px;
  background: var(--e-global-color-primary, #f97316) !important;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.bm-checkout-btn-primary:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.bm-checkout-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* texto de segurança */
.bm-checkout-safe-text {
  margin: 8px 0 0 0;
  font-size: 12px;
  color: #6b7280;
}

.bm-checkout-support-help-text {
  margin: 8px 0 0 0;
  font-size: 12px;
  color: #6b7280;
}

/* ========== DATEPICKER (custom) ========== */

.bm-date-wrapper {
  position: relative;
}

.bm-date-input {
  cursor: pointer;
}

.bm-date-popup {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  min-width: 280px;
  max-width: 92vw;
  width: min(340px, 100vw);
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  padding: 12px 14px 14px;
  z-index: 9999;
  font-family: inherit;
  transform: translateY(2px);
  animation: bm-date-fade-in 0.16s ease-out;
}

@keyframes bm-date-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(2px);
  }
}

/* mata datepicker antigo se aparecer */
.bm-checkout-page .flatpickr-calendar,
.bm-checkout-page #ui-datepicker-div,
.bm-checkout-page .ui-datepicker,
.bm-checkout-page .datepicker,
.bm-checkout-page .elementor-date-field .flatpickr-calendar {
  display: none !important;
  visibility: hidden !important;
}

/* ========== TERMOS (ajuste da bolinha) ========== */

.bm-checkbox-terms a {
  color: var(--e-global-color-primary, #f97316);
  text-decoration: underline;
}

.bm-checkbox-terms a:hover {
  text-decoration: none;
}

.bm-checkbox-terms {
  display: flex !important;
  align-items: flex-start;
  flex-wrap: nowrap !important;
  gap: 10px;
  width: 100%;
}

.bm-checkbox-terms input[type="checkbox"] {
  flex: 0 0 18px;
  margin-top: 2px;
}

.bm-checkbox-terms span {
  flex: 1 1 auto;
  min-width: 0;
}

.bm-checkbox-receive-news {
  display: flex !important;
  align-items: flex-start;
  flex-wrap: nowrap !important;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.bm-checkout-alert-text {
  border-radius: 16px;
  border: 1px solid rgba(253, 186, 116, 0.9);
  background: #FFFEED;
  padding: 8px 12px;
  margin-top: 24px;
}

/* ========== BMB PAY RESULT (PIX / BOLETO / CC) ========== */
/* 
   Mantidos estilos antigos para fallback, mas o novo sistema 
   usa classes prefixadas com .bmb- (Premium Styles abaixo).
*/

#bm-payment-feedback .bmb-payment-result {
  margin-top: 12px;
  padding: 16px 16px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
}

#bm-payment-feedback .bmb-payment-result h3 {
  margin: 8px 0 10px 0;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
  color: #111827;
}

#bm-payment-feedback .bmb-payment-result h4,
#bm-payment-feedback .bmb-payment-result h5 {
  margin: 10px 0 10px 0;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
  color: #111827;
}

#bm-payment-feedback .bmb-payment-result>p {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #111827;
}

/* PIX: bloco QR + copia/cola */
#bm-payment-feedback .bmb-payment-block {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

#bm-payment-feedback .bmb-payment-block p {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: #374151;
}

#bm-payment-feedback .bmb-payment-block img {
  width: 100% !important;
  max-width: 260px;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 20px;
  background: #fff;
}

#bm-payment-feedback textarea#bmb-pix-copy {
  width: 100% !important;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 12px 12px;
  font-size: 13px;
  line-height: 1.35;
  color: #111827;
  resize: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#bm-payment-feedback button[data-bmb-copy-pix="1"] {
  width: 100%;
  margin-top: 10px;
  border-radius: 999px;
  border: none;
  padding: 13px 16px;
  background: var(--e-global-color-primary, #f97316);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

#bm-payment-feedback button[data-bmb-copy-pix="1"]:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
}

#bm-payment-feedback button[data-bmb-copy-pix="1"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#bm-payment-feedback #bmb-pix-copy-msg {
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
}

/* details "Ver retorno técnico" */
#bm-payment-feedback details {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
}

#bm-payment-feedback summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  color: #374151;
}

#bm-payment-feedback details pre {
  margin: 10px 0 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #0b1020;
  color: #e5e7eb;
  font-size: 12px;
  overflow: auto;
}

@media (max-width: 700px) {
  #bm-payment-feedback .bmb-payment-block {
    grid-template-columns: 1fr;
  }

  #bm-payment-feedback .bmb-payment-block img {
    max-width: 100%;
  }
}

/* ========== BOLETO — AJUSTES PEDIDOS ========== */
/* 1) Linha digitável centralizada (texto e aparência) */
#bm-payment-feedback .bmb-payment-result textarea:not(#bmb-pix-copy),
#bm-payment-feedback .bmb-payment-result input[type="text"] {
  text-align: center;
}

/* dá cara de “código” sem ficar feio */
#bm-payment-feedback .bmb-payment-result textarea:not(#bmb-pix-copy) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: 0.02em;
}

/* 2) Garante estilo do botão COPIAR quando for boleto (1º botão após textarea) */
#bm-payment-feedback .bmb-payment-result textarea:not(#bmb-pix-copy)+button {
  width: 100%;
  margin-top: 12px;
  border-radius: 999px;
  border: none;
  padding: 13px 16px;
  background: var(--e-global-color-primary, #f97316);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

#bm-payment-feedback .bmb-payment-result textarea:not(#bmb-pix-copy)+button:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
}

/* 3) Botão “Pagar por outro método” (2º botão após textarea) */
#bm-payment-feedback .bmb-payment-result textarea:not(#bmb-pix-copy)+button+button {
  width: 100%;
  margin-top: 12px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 13px 16px;
  background: #ffffff;
  color: #374151;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

#bm-payment-feedback .bmb-payment-result textarea:not(#bmb-pix-copy)+button+button:hover {
  background: #f9fafb;
}

/* 4) Estilo base do link do boleto como BOTÃO secundário (cor diferente) */
/* (aplica em qualquer link dentro do bloco de resultado, sem depender do href conter “boleto”) */
#bm-payment-feedback .bmb-payment-result a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: 100%;
  margin-top: 10px;
  padding: 13px 16px;

  border-radius: 999px;
  border: none;
  background: #2563eb;
  /* azul: visível e diferente do laranja */
  color: #ffffff;

  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;

  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

#bm-payment-feedback .bmb-payment-result a:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
}


/* 5) Troca o texto “Abrir boleto” por “Baixar boleto” (sem mexer no HTML) */
/* Só ativa onde houver cara de boleto: div que tem textarea + link */
@supports(body.elementor-page-2890(:has(*))) {

  /* container do boleto vira coluna e permite reordenar */
  #bm-payment-feedback .bmb-payment-result>div:has(textarea):has(a) {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* “quebra” os parágrafos pra link virar item do flex (sem gambi de position) */
  #bm-payment-feedback .bmb-payment-result>div:has(textarea):has(a) p {
    display: contents;
  }

  /* labels em bloco (pra não virar bagunça com display:contents) */
  #bm-payment-feedback .bmb-payment-result>div:has(textarea):has(a) strong,
  #bm-payment-feedback .bmb-payment-result>div:has(textarea):has(a) b {
    display: block;
    margin: 0 0 6px 0;
    font-weight: 800;
    color: #111827;
  }

  /* ORDENS: textarea -> copiar -> baixar boleto -> outro método */
  #bm-payment-feedback .bmb-payment-result>div:has(textarea):has(a) textarea:not(#bmb-pix-copy) {
    order: 10;
  }

  #bm-payment-feedback .bmb-payment-result>div:has(textarea):has(a) textarea:not(#bmb-pix-copy)+button {
    order: 20;
  }

  #bm-payment-feedback .bmb-payment-result>div:has(textarea):has(a) a {
    order: 30;
    /* aqui: abaixo do copiar */
    margin-top: 0;
    /* como já tem gap do flex */
  }

  #bm-payment-feedback .bmb-payment-result>div:has(textarea):has(a) textarea:not(#bmb-pix-copy)+button+button {
    order: 40;
  }

  /* troca texto via pseudo */
  #bm-payment-feedback .bmb-payment-result>div:has(textarea):has(a) a {
    font-size: 0;
    /* esconde “Abrir boleto” */
  }

  #bm-payment-feedback .bmb-payment-result>div:has(textarea):has(a) a::after {
    content: "Baixar boleto";
    font-size: 13px;
  }
}

/* ========== PATCH: MOBILE MAIS LARGO (FINAL) ========== */
@media (max-width: 600px) {
  .bm-checkout-page {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: 0 !important;
    padding-left: 2vw !important;
    padding-right: 2vw !important;
  }

  .bm-checkout-layout,
  .bm-checkout-main,
  .bm-checkout-summary,
  .bm-checkout-card,
  .bm-checkout-summary-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .bm-checkout-card,
  .bm-checkout-summary-card {
    padding: 15px !important;
    border-radius: 18px !important;
  }

  .bm-checkout-section {
    padding: 12px 12px 14px;
    border-radius: 18px;
  }

  .bm-checkout-summary-title {
    font-size: 18px;
  }

  .bm-checkout-summary-price-value {
    font-size: 20px;
  }
}


/* ===== STICKY RESUMO (restaura comportamento original) ===== */

/* 1) Desktop: resumo sticky na direita */
@media (min-width: 961px) {
  .bm-checkout-summary {
    position: sticky !important;
    top: 24px !important;
    align-self: flex-start;
    z-index: 5;
  }

  .bm-checkout-main {
    order: 1;
  }

  .bm-checkout-summary {
    order: 2;
  }
}

/* 2) Mobile: resumo no topo (não sticky) */
@media (max-width: 960px) {
  .bm-checkout-summary {
    position: static !important;
    top: auto !important;
  }

  .bm-checkout-summary {
    order: 1;
  }

  .bm-checkout-main {
    order: 2;
  }
}

/* 3) Sticky só funciona se os pais não tiverem overflow/transform sabotando */
.bm-checkout-page,
.bm-checkout-layout,
.bm-checkout-summary {
  overflow: visible !important;
}

/* Elementor (inclui containers novos e antigos) */
.bm-checkout-page .elementor-container,
.bm-checkout-page .elementor-column,
.bm-checkout-page .elementor-widget-wrap,
.bm-checkout-page .elementor-section,
.bm-checkout-page .elementor-section-wrap,
.bm-checkout-page .elementor-widget-container,
.bm-checkout-page .e-con,
.bm-checkout-page .e-con-inner {
  overflow: visible !important;
}

/* 4) Se algum wrapper tiver transform/filter, pode matar sticky em alguns browsers.
   Restringi ao checkout pra não quebrar o site inteiro. */
.bm-checkout-page .elementor-section,
.bm-checkout-page .e-con,
.bm-checkout-page .elementor-widget-wrap {
  transform: none !important;
  filter: none !important;
}

/* 
   ==========================================================================
   CHECKOUT PREMIUM STYLES (NEW RETURN LAYOUTS)
   Includes: PIX/Boleto Cards, Credit Card Modals (No Stepper)
   Prefix: .bmb-
   ==========================================================================
*/

/* --- Variables & Reset --- */
.bmb-checkout-wrapper {
    --bmb-col-primary: #0f172a;
    /* Slate 900 */
    --bmb-col-secondary: var(--bmb-color-primary);
    /* Orange 500 */
    --bmb-col-success: #10b981;
    /* Emerald 500 */
    --bmb-col-error: #ef4444;
    /* Red 500 */
    --bmb-col-bg: var(--bmb-color-bg);
    /* Slate 50 */
    --bmb-col-border: var(--bmb-color-border);
    /* Slate 200 */
    --bmb-col-text: var(--bmb-color-text);
    /* Slate 700 */
    --bmb-col-text-light: var(--bmb-color-text-muted);
    /* Slate 500 */

    font-family: 'Manrope', sans-serif !important;
    color: var(--bmb-col-text);
    line-height: 1.5;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.bmb-checkout-wrapper *,
.bmb-checkout-wrapper *::before,
.bmb-checkout-wrapper *::after {
    box-sizing: border-box;
}

/* --- Utilities --- */
.bmb-hidden {
    display: none !important;
}

.bmb-flex {
    display: flex;
}

.bmb-flex-col {
    flex-direction: column;
}

.bmb-items-center {
    align-items: center;
}

.bmb-justify-center {
    justify-content: center;
}

.bmb-justify-between {
    justify-content: space-between;
}

.bmb-gap-2 {
    gap: 0.5rem;
}

.bmb-gap-4 {
    gap: 1rem;
}

.bmb-gap-6 {
    gap: 1.5rem;
}

.bmb-text-center {
    text-align: center;
}

.bmb-w-full {
    width: 100%;
}

.bmb-font-bold {
    font-weight: 700;
}

.bmb-font-extrabold {
    font-weight: 800;
}

.bmb-text-sm {
    font-size: 0.875rem;
}

.bmb-text-lg {
    font-size: 1.125rem;
}

.bmb-text-xl {
    font-size: 1.25rem;
}

.bmb-text-2xl {
    font-size: 1.5rem;
}

/* --- Components --- */

/* 1. Status Steps (Stepper) - REMOVED/HIDDEN */
.bmb-steps {
    display: none !important;
    /* Hidden as requested */
}

/* 2. Main Card Container */
.bmb-result-card {
    background: #fff;
    border: 1px solid var(--bmb-col-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    /* Center align everything by default for cleaner look */
}

/* 3. Payment Method Section */
.bmb-payment-details {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 2.5rem;
    text-align: left;
    justify-content: center;
}

@media (max-width: 768px) {
    .bmb-payment-details {
        flex-direction: column;
        gap: 2rem;
    }
}

/* QR Code Box */
.bmb-qr-box {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px dashed var(--bmb-col-border);
    border-radius: 1.25rem;
    padding: 1rem;
    width: 280px;
    height: 280px;
    margin: 0 auto;
}

.bmb-qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.75rem;
}

/* Right Column (Actions) */
.bmb-details-col {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

/* Copy Paste Area */
.bmb-copy-label {
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    color: var(--bmb-col-text);
    display: block;
}

.bmb-copy-area {
    display: flex;
    align-items: center;
    gap: 0;
    /* Connected buttons */
    background: #fff;
    border: 1px solid var(--bmb-col-border);
    padding: 4px;
    /* padding for the border */
    border-radius: 99px;
    /* Pill shape */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    width: 100%;
}

.bmb-copy-input {
    flex: 1;
    background: transparent;
    border: none;
    font-family: monospace;
    color: var(--bmb-col-text);
    font-size: 0.9375rem;
    padding: 0 1.25rem;
    height: 48px !important;
    line-height: normal;
    outline: none;
    width: 100%;
}

.bmb-btn-copy {
    background: var(--bmb-col-secondary);
    border: none;
    border-radius: 99px;
    padding: 0 1.5rem;
    height: 44px;
    /* Slightly smaller than container */
    margin-right: 2px;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.bmb-btn-copy:hover {
    background: var(--bmb-color-primary-dark);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.bmb-btn-copy svg,
.bmb-btn svg {
    /* CONSTRAIN SVG SIZES */
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
}

/* Action Buttons */
.bmb-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.bmb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 99px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    border: none;
    gap: 0.75rem;
    width: 100%;
    /* Full width buttons looks better in this layout */
}

/* 4. Modal (Credit Card) */
.bmb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    /* Slate 900 / 60% */
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: bmbFadeIn 0.3s ease-out;
}

.bmb-modal-card {
    background: #fff;
    width: 100%;
    max-width: 480px;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: bmbScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

/* Success State */
.bmb-icon-circle {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.bmb-icon-circle.success {
    background: #ecfdf5;
    /* Emerald 50 */
    color: var(--bmb-col-success);
}

.bmb-icon-circle.error {
    background: #fef2f2;
    /* Red 50 */
    color: var(--bmb-col-error);
}

.bmb-icon-circle svg {
    width: 2.5rem !important;
    height: 2.5rem !important;
    stroke-width: 2.5;
}

/* Action Styles */
.bmb-btn-primary {
    background: var(--bmb-col-secondary);
    color: #fff;
    box-shadow: 0 10px 20px -5px rgba(249, 115, 22, 0.4);
}

.bmb-btn-primary:hover {
    background: var(--bmb-color-primary-dark);
    /* Orange 600 */
    box-shadow: 0 15px 25px -5px rgba(249, 115, 22, 0.5);
    transform: translateY(-2px);
}

.bmb-btn-outline {
    background: transparent;
    border: 2px solid var(--bmb-col-border);
    color: var(--bmb-col-text);
}

.bmb-btn-outline:hover {
    border-color: var(--bmb-col-text);
    background: transparent;
    color: #0f172a;
}

/* Animations */
@keyframes bmbFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bmbScaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Typography Helpers */
.bmb-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bmb-badge-success {
    background: #d1fae5;
    color: var(--bmb-color-success);
}

.bmb-badge-warning {
    background: #ffedd5;
    color: #9a3412;
}

/* CSS Patch for PIX Input Visibility */

/* Ensure the copy area has a background to be visible against the white card */
.bmb-copy-area {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    /* Slate 100 - Visible background */
    border: 1px solid var(--bmb-color-border);
    /* Slate 300 */
    border-radius: 99px;
    padding: 2px;
    width: 100%;
    margin-top: 5px;
}

/* Input needs to grow and have text visible */
.bmb-copy-input {
    flex: 1 1 auto;
    width: 100%;
    /* Fallback */
    min-width: 0;
    /* Crucial for flex containers */
    background: transparent;
    border: none;
    font-family: monospace;
    font-size: 13px;
    color: var(--bmb-color-text);
    /* Dark slate */
    padding: 0 12px;
    height: 40px !important;
    line-height: normal;
    outline: none;
    box-shadow: none !important;
}

/* Button styling adjustment */
.bmb-btn-copy {
    flex: 0 0 auto;
    background: var(--bmb-color-primary);
    /* Orange */
    color: white;
    font-weight: 700;
    font-size: 12px;
    padding: 0 20px;
    height: 40px;
    border-radius: 99px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.bmb-btn-copy svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

/* Modal styling for the 72h confirmation */
.bmb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: all;
}

.bmb-modal-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Helper to ensure text colors are correct in the new description area */
.bmb-text-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* CSS Patch for PIX Input Visibility and Layout Fixes */

/* 1. Ensure the copy area container is a flex row */
.bmb-copy-area {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    background: #f8fafc !important;
    /* bg-slate-50 */
    border: 1px solid #cbd5e1 !important;
    /* border-slate-300 */
    border-radius: 9999px !important;
    padding: 4px 6px 4px 16px !important;
    /* Right padding smaller for button */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 8px !important;
    height: 54px !important;
    /* Fixed height to prevent collapse */
    gap: 12px !important;
}

/* 2. FORCE Input to take remaining space */
.bmb-copy-input {
    display: block !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 50% !important;
    /* Force it to take at least 50% */
    max-width: 100% !important;

    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;

    font-family: monospace !important;
    font-size: 13px !important;
    color: #334155 !important;

    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    line-height: normal !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* 3. Button inside the input area */
.bmb-btn-copy {
    flex: 0 0 auto !important;
    width: auto !important;

    background: var(--bmb-color-primary) !important;
    /* amber-600 to distinguish */
    color: #ffffff !important;

    font-weight: 800 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;

    margin-top: 0 !important;
    padding: 0 20px !important;
    height: 42px !important;
    border-radius: 9999px !important;
    border: none !important;
    cursor: pointer !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.bmb-btn-copy svg {
    width: 16px !important;
    height: 16px !important;
    stroke-width: 3 !important;
}

/* 4. Fix Action Buttons (Already paid vs Back) */
.bmb-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 24px !important;
    width: 100% !important;
}

.bmb-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px 24px !important;
    border-radius: 9999px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: transform 0.1s !important;
}

.bmb-btn:active {
    transform: scale(0.98);
}

/* Primary Button (Already Paid) */
.bmb-btn-primary {
    background: var(--bmb-color-primary) !important;
    /* Orange */
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3) !important;
}

.bmb-btn-primary:hover {
    background: var(--bmb-color-primary-dark) !important;
    /* Darker Orange */
}

/* Styles specifically for the "Already Paid" button if it was showing green before */
button[data-bmb-action="show-72h-modal"] {
    background: var(--bmb-color-primary) !important;
    /* Force Orange */
}

/* Outline Button (Back) */
.bmb-btn-outline {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    /* Slate 600 */
    box-shadow: none !important;
}

.bmb-btn-outline:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

/* Force icons in buttons */
.bmb-btn svg {
    width: 20px !important;
    height: 20px !important;
    margin-right: 8px !important;
}

/* QR Code Box Sizing */
.bmb-qr-box {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 0 !important;
}

.bmb-qr-img {
    max-width: 200px !important;
    height: auto !important;
}/* End custom CSS */