/* Modal do passo "Detalhes" (opção A) */
.tbw-modal{position:fixed;inset:0;z-index:99999;display:none}
.tbw-modal.is-open{display:block}
.tbw-modal .tbw-modal__overlay{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.tbw-modal .tbw-modal__dialog{position:relative;max-width:720px;margin:6vh auto;background:#fff;border-radius:18px;box-shadow:0 20px 60px rgba(0,0,0,.25);padding:22px 22px 18px}
.tbw-modal .tbw-modal__header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}
.tbw-modal .tbw-modal__title{font-size:26px;line-height:1.1;margin:0}
.tbw-modal .tbw-modal__subtitle{margin:6px 0 0;color:rgba(0,0,0,.6);font-size:14px}
.tbw-modal .tbw-modal__close{border:0;background:transparent;font-size:26px;line-height:1;padding:6px 10px;cursor:pointer}

.tbw-modal .tbw-details__grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:12px 0 10px}
.tbw-modal .tbw-details__grid .tbw-field{display:flex;flex-direction:column;gap:6px}
.tbw-modal label{font-weight:700;color:rgba(0,0,0,.72)}
.tbw-modal input[type="text"],
.tbw-modal input[type="tel"]{width:100%;padding:14px 14px;border:1px solid rgba(0,0,0,.14);border-radius:14px;outline:none;background:#fff}
.tbw-modal input[type="text"]:focus,
.tbw-modal input[type="tel"]:focus{border-color:rgba(138,111,42,.55);box-shadow:0 0 0 4px rgba(138,111,42,.12)}

.tbw-modal .tbw-person-card{border:1px solid rgba(0,0,0,.08);border-radius:16px;padding:14px 14px;margin:12px 0;background:#fbf4e9}
.tbw-modal .tbw-person-card h4{margin:0 0 10px;font-size:18px}

.tbw-modal .tbw-modal__footer{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}
.tbw-modal .tbw-btn{border-radius:14px;padding:12px 16px;border:1px solid rgba(0,0,0,.08);cursor:pointer;font-weight:800}
.tbw-modal .tbw-btn-primary{background:#8a6f2a;color:#fff;border-color:#8a6f2a}
.tbw-modal .tbw-btn-primary:hover{filter:brightness(1.05)}
.tbw-modal .tbw-btn-secondary{background:#fff;color:#111}

.tbw-modal .tbw-error{display:none;color:#b00020;font-weight:700;margin-top:8px}
.tbw-modal .tbw-error.is-show{display:block}

@media (max-width: 768px){
  .tbw-modal .tbw-modal__dialog{margin:8vh 12px;max-width:none}
  .tbw-modal .tbw-details__grid{grid-template-columns:1fr}
}

/* ==============================
   BOTÃO CHECKOUT – FIX FINAL
   ============================== */

#tbw-details-modal .tbw-details-continue{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  width: auto;
  min-width: 260px;
  height: 52px;
  padding: 0 22px !important;
  border-radius: 12px !important;
  border: none !important;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .3px;
  text-transform: none;
  cursor: pointer;
  background: linear-gradient(
    135deg,
    #E8D8B0 0%,
    #C9A24D 45%,
    #8B6B3E 100%
  ) !important;
  color: #3E2A14 !important;
  box-shadow:
    0 4px 0 #5F4324,
    0 12px 22px rgba(0,0,0,.25);
  transition: transform .1s ease, box-shadow .1s ease;
}
#tbw-details-modal .tbw-details-continue:hover{
  transform: translateY(-1px);
  box-shadow:
    0 5px 0 #5F4324,
    0 16px 28px rgba(0,0,0,.3);
}
#tbw-details-modal .tbw-details-continue:active{
  transform: translateY(1px);
  box-shadow:
    0 3px 0 #5F4324,
    0 10px 18px rgba(0,0,0,.22);
}
#tbw-details-modal .tbw-details-continue svg{
  width: 18px;
  height: 18px;
  stroke: currentColor;
  flex-shrink: 0;
}


/* ==============================
   ADVENTURE CTA OVERRIDE (HIGH SPEC)
   Fix theme SVG/button overrides
   ============================== */
#tbw-details-modal button#tbw-modal-continue.tbw-details-continue{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;

  width: auto !important;
  min-width: 280px !important;
  height: 54px !important;

  padding: 0 22px !important;
  margin: 0 !important;

  border: 0 !important;
  outline: none !important;
  border-radius: 14px !important;

  font-weight: 800 !important;
  font-size: 15px !important;
  letter-spacing: .4px !important;
  text-transform: none !important;

  background: linear-gradient(135deg,#E8D8B0 0%,#C9A24D 45%,#8B6B3E 100%) !important;
  color: #3E2A14 !important;

  box-shadow: 0 4px 0 #5F4324, 0 14px 26px rgba(0,0,0,.22) !important;

  cursor: pointer !important;
  user-select: none !important;
}

/* prevent theme styles from stretching svg */
#tbw-details-modal button#tbw-modal-continue.tbw-details-continue svg{
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  display: block !important;
  flex: 0 0 18px !important;

  stroke: currentColor !important;
  stroke-width: 2 !important;
  fill: none !important;

  margin: 0 !important;
  padding: 0 !important;
  transform: translateY(1px) !important;
}

/* keep text aligned */
#tbw-details-modal button#tbw-modal-continue.tbw-details-continue span{
  display: inline-block !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

/* hover/active */
#tbw-details-modal button#tbw-modal-continue.tbw-details-continue:hover{
  filter: brightness(1.06) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 0 #5F4324, 0 18px 34px rgba(0,0,0,.26) !important;
}
#tbw-details-modal button#tbw-modal-continue.tbw-details-continue:active{
  transform: translateY(1px) !important;
  box-shadow: 0 3px 0 #5F4324, 0 12px 22px rgba(0,0,0,.20) !important;
}

/* place CTA to the right */
#tbw-details-modal .tbw-modal__actions{
  margin-top: 16px !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
}
@media (max-width: 768px){
  #tbw-details-modal .tbw-modal__actions{
    justify-content: stretch !important;
  }
  #tbw-details-modal button#tbw-modal-continue.tbw-details-continue{
    width: 100% !important;
    min-width: 0 !important;
  }
}


/* Pickup field */
#tbw-details-modal .tbw-modal__pickup{
  margin: 12px 0 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(232,216,176,.28);
  border: 1px solid rgba(139,107,62,.25);
}
#tbw-details-modal .tbw-modal__label{
  display:block;
  font-weight: 800;
  margin-bottom: 6px;
  color: #3E2A14;
}
#tbw-details-modal .tbw-modal__input{
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.18);
  outline: none;
}
#tbw-details-modal .tbw-modal__input:focus{
  border-color: rgba(139,107,62,.7);
  box-shadow: 0 0 0 3px rgba(201,162,77,.25);
}
#tbw-details-modal .tbw-modal__hint{
  display:block;
  margin-top: 6px;
  color: rgba(62,42,20,.72);
  font-size: 12px;
}


/* ===== TBW Modal UX fixes (scroll lock + full-screen overlay) ===== */
html.tbw-modal-open,
body.tbw-modal-open{
  overflow: hidden !important;
  height: 100% !important;
}

/* If theme uses scroll containers (Kadence), stop background scrolling */
body.tbw-modal-open #page,
body.tbw-modal-open .site,
body.tbw-modal-open .site-inner,
body.tbw-modal-open .content-wrap,
body.tbw-modal-open .wrap{
  overflow: hidden !important;
  height: 100% !important;
}

/* Make dialog scroll when content is tall */
#tbw-details-modal .tbw-modal__dialog{
  max-height: 85vh !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Keep CTA visible while scrolling */
#tbw-details-modal .tbw-modal__footer{
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 12px;
  z-index: 2;
}

/* Overlay should always cover the viewport */
#tbw-details-modal .tbw-modal__overlay{
  position: fixed !important;
  inset: 0 !important;
}
