/*
 * ARQUIVO: melhor-presente/templates/convite.css
 *
 * 2.3.1 — correcao do botao no celular.
 *
 * O `align-self: stretch` no mobile devolvia o problema: dentro de uma
 * coluna flex do Elementor o botao era esticado na vertical e virava um
 * quadradao. Agora e `flex-start` em toda largura de tela, com a largura
 * indo a 100% por conta propria.
 */

.mp-b, .mp-b *,
.mp-botoes, .mp-botoes *,
.mp-pop, .mp-pop *,
.mp-aviso, .mp-aviso * { box-sizing: border-box; }

/* ------------------------------------------------------------ BOTOES */

.mp-botoes {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0;
  box-shadow: none !important;
}
.mp-botoes > .mp-b { flex: 1 1 300px; }

button.mp-b.mp-b {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start;

  /* Nunca estica: e isto que impede o botao de virar bloco quadrado
     dentro de uma coluna flex do Elementor. */
  align-self: flex-start !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  max-width: 100% !important;

  gap: 20px;
  padding: 26px 32px !important;
  border: 0 !important;
  border-radius: 14px !important;
  cursor: pointer;
  text-align: left !important;
  text-transform: none !important;
  text-decoration: none !important;
  color: #fff !important;
  font-family: var(--mp-font-body, inherit) !important;
  letter-spacing: normal !important;
  line-height: 1.2 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22) !important;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  -webkit-appearance: none !important;
  appearance: none !important;
}

button.mp-b.mp-b:hover  { filter: brightness(1.06); color: #fff !important; }
button.mp-b.mp-b:focus  { color: #fff !important; }
button.mp-b.mp-b:active {
  transform: translateY(2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .2) !important;
}
button.mp-b.mp-b:focus-visible { outline: 3px solid #fff !important; outline-offset: 3px; }

button.mp-b.mp-b--sim,
button.mp-b.mp-b--sim:hover,
button.mp-b.mp-b--sim:focus { background: #2E7D32 !important; background-image: none !important; }

button.mp-b.mp-b--nao,
button.mp-b.mp-b--nao:hover,
button.mp-b.mp-b--nao:focus { background: #D32F2F !important; background-image: none !important; }

.mp-b .mp-b__ico {
  flex: 0 0 auto;
  display: grid !important;
  place-items: center;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: #fff !important;
  margin: 0 !important;
  padding: 0 !important;
}
.mp-b--sim .mp-b__ico { color: #2E7D32 !important; }
.mp-b--nao .mp-b__ico { color: #D32F2F !important; }
.mp-b .mp-b__ico svg {
  width: 26px !important;
  height: 26px !important;
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 3.4 !important;
}

.mp-b .mp-b__txt {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}
.mp-b .mp-b__txt b {
  display: block;
  margin: 0 !important;
  color: #fff !important;
  font-family: var(--mp-font-title, inherit) !important;
  font-size: 27px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: .2px !important;
  text-transform: uppercase !important;
  white-space: nowrap;
}
.mp-b .mp-b__txt small {
  display: block;
  margin: 0 !important;
  color: #fff !important;
  font-family: var(--mp-font-body, inherit) !important;
  font-size: 19px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  letter-spacing: normal !important;
  opacity: .96;
  text-transform: none !important;
}

button.mp-b.largura-total { width: 100% !important; }
button.mp-b.centralizado  { justify-content: center !important; }
button.mp-b.centralizado .mp-b__txt { align-items: center; text-align: center; }
button.mp-b.compacto      { padding: 16px 22px !important; gap: 14px; }
button.mp-b.compacto .mp-b__ico { width: 38px !important; height: 38px !important; }
button.mp-b.compacto .mp-b__ico svg { width: 21px !important; height: 21px !important; }
button.mp-b.compacto .mp-b__txt b { font-size: 20px !important; }
button.mp-b.compacto .mp-b__txt small { font-size: 15px !important; }

@media (max-width: 1024px) { .mp-b .mp-b__txt b { white-space: normal; } }

@media (max-width: 767px) {
  .mp-botoes { flex-direction: column; gap: 16px; }
  .mp-botoes > .mp-b { flex: 0 0 auto; }

  button.mp-b.mp-b {
    width: 100% !important;
    align-self: flex-start !important;   /* nunca stretch */
    height: auto !important;
    padding: 22px 26px !important;
    gap: 18px;
  }
  .mp-b .mp-b__ico { width: 46px !important; height: 46px !important; }
  .mp-b .mp-b__ico svg { width: 25px !important; height: 25px !important; }
  .mp-b .mp-b__txt b { font-size: 24px !important; }
  .mp-b .mp-b__txt small { font-size: 17px !important; }
}

@media (max-width: 400px) {
  button.mp-b.mp-b { padding: 18px 20px !important; gap: 14px; }
  .mp-b .mp-b__ico { width: 42px !important; height: 42px !important; }
  .mp-b .mp-b__txt b { font-size: 21px !important; }
  .mp-b .mp-b__txt small { font-size: 15px !important; }
}

/* ------------------------------------------------------------- POPUP */

.mp-dados { display: none !important; }

.mp-pop.mp-pop {
  position: fixed !important;
  inset: 0;
  z-index: 999990 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin: 0 !important;
}
.mp-pop.mp-pop[hidden] { display: none !important; }

.mp-pop__bg {
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 40, .62);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.mp-pop .mp-pop__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 470px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 30px 24px 24px !important;
  border: 0 !important;
  border-radius: var(--mp-radius, 18px) !important;
  background: #fff !important;
  color: var(--mp-text, #1B1240) !important;
  font-family: var(--mp-font-body, system-ui, sans-serif) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3) !important;
  animation: mp-sobe .22s ease-out;
  text-align: left !important;
}

@keyframes mp-sobe {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .mp-pop .mp-pop__box { animation: none; } }

.mp-pop .mp-pop__x {
  position: absolute;
  top: 8px; right: 10px;
  width: 36px !important; height: 36px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  font-size: 28px !important;
  line-height: 1 !important;
  color: #98929F !important;
  cursor: pointer;
  box-shadow: none !important;
}
.mp-pop .mp-pop__x:hover { color: var(--mp-text, #1B1240) !important; }

.mp-pop .mp-pop__h {
  margin: 0 0 6px !important;
  padding: 0 !important;
  color: var(--mp-text, #1B1240) !important;
  font-family: var(--mp-font-title, inherit) !important;
  font-size: 23px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
}
.mp-pop .mp-pop__sub {
  margin: 0 0 16px !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  opacity: .75;
}

/* -------------------------------------------------- LISTA DE PESSOAS */

.mp-lugares {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .05);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
}
.mp-lugares span { font-size: 15px; }

.mp-lista { display: flex; flex-direction: column; gap: 10px; }

.mp-p {
  padding: 12px;
  border: 2px solid rgba(0, 0, 0, .09);
  border-radius: 14px;
  background: #fff;
}
.mp-p[data-mp-kind="child"] { border-color: rgba(46, 125, 50, .35); background: rgba(46, 125, 50, .04); }

.mp-p__topo { display: flex; align-items: center; gap: 8px; }

.mp-pop .mp-p__nome {
  flex: 1 1 auto;
  min-width: 0;
  width: 100% !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-bottom: 2px solid rgba(0, 0, 0, .1) !important;
  border-radius: 0 !important;
  background: none !important;
  font-family: inherit !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--mp-text, #1B1240) !important;
  box-shadow: none !important;
}
.mp-pop .mp-p__nome:focus { outline: 0; border-bottom-color: #2E7D32 !important; }

.mp-pop .mp-p__x {
  flex: 0 0 auto;
  width: 34px !important; height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, .06) !important;
  color: #7A7488 !important;
  font-size: 22px !important;
  line-height: 1 !important;
  cursor: pointer;
  box-shadow: none !important;
}
.mp-pop .mp-p__x:hover { background: rgba(211, 47, 47, .12) !important; color: #D32F2F !important; }

.mp-p__baixo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Adulto / Criança */
.mp-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .06);
}
.mp-pop .mp-seg button {
  padding: 7px 16px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: none !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #6B6579 !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: background .12s ease, color .12s ease;
}
.mp-pop .mp-seg button.is-on {
  background: #fff !important;
  color: var(--mp-text, #1B1240) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .16) !important;
}

/* Interruptor de responsável */
.mp-resp { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.mp-resp[hidden] { display: none; }
.mp-resp input { position: absolute; opacity: 0; width: 0; height: 0; }
.mp-resp__t {
  position: relative;
  width: 44px; height: 25px;
  border-radius: 999px;
  background: #D6D2E0;
  transition: background .15s ease;
  flex: 0 0 auto;
}
.mp-resp__t::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .15s ease;
}
.mp-resp input:checked + .mp-resp__t { background: #16A46B; }
.mp-resp input:checked + .mp-resp__t::after { transform: translateX(19px); }
.mp-resp input:focus-visible + .mp-resp__t { outline: 2px solid #2E7D32; outline-offset: 2px; }
.mp-resp__l { font-size: 13px; font-weight: 700; opacity: .8; }

/* Adicionar pessoa */
.mp-pop .mp-add {
  display: block !important;
  width: 100% !important;
  margin: 12px 0 0 !important;
  padding: 13px !important;
  border: 2px dashed rgba(0, 0, 0, .18) !important;
  border-radius: 12px !important;
  background: none !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--mp-text, #1B1240) !important;
  cursor: pointer;
  box-shadow: none !important;
}
.mp-pop .mp-add:hover { border-color: #2E7D32 !important; color: #2E7D32 !important; }
.mp-pop .mp-add.is-off, .mp-pop .mp-add[disabled] {
  opacity: .4;
  cursor: not-allowed;
  border-color: rgba(0, 0, 0, .12) !important;
  color: inherit !important;
}
.mp-add span { font-size: 18px; }

.mp-limite {
  margin: 10px 0 0 !important;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 176, 32, .16);
  font-size: 13px !important;
  line-height: 1.35;
}
.mp-limite[hidden] { display: none; }

/* Lista de quem já confirmou */
.mp-quem { list-style: none; margin: 0 0 14px; padding: 0; }
.mp-quem li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .07);
  font-size: 15px;
}
.mp-quem li:last-child { border-bottom: 0; }
.mp-quem span { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; opacity: .55; }

/* ------------------------------------------------------------ CAMPOS */

.mp-campo { margin: 16px 0; }
.mp-campo__l {
  display: block;
  margin-bottom: 6px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--mp-text, #1B1240) !important;
}
.mp-campo__l em { font-weight: 400; opacity: .6; font-style: normal; }
.mp-pop .mp-campo__i {
  width: 100% !important;
  padding: 12px 14px !important;
  border: 2px solid rgba(0, 0, 0, .1) !important;
  border-radius: 12px !important;
  font-family: inherit !important;
  font-size: 16px !important;
  background: #fff !important;
  color: var(--mp-text, #1B1240) !important;
  box-shadow: none !important;
  resize: vertical;
}
.mp-pop .mp-campo__i:focus { outline: 0; border-color: #2E7D32 !important; }

.mp-erro { margin: 0 0 10px !important; font-size: 14px !important; color: #D32F2F !important; font-weight: 700 !important; }
.mp-erro:empty { display: none; }

/* --------------------------------------------------------------- CTA */

.mp-pop .mp-cta {
  display: block !important;
  width: 100% !important;
  padding: 15px 18px !important;
  margin: 10px 0 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  font-family: var(--mp-font-title, inherit) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: none !important;
  cursor: pointer;
  color: #fff !important;
  box-shadow: none !important;
}
.mp-pop .mp-cta[disabled] { opacity: .6; cursor: wait; }
.mp-pop .mp-cta--sim, .mp-pop .mp-cta--sim:hover { background: #2E7D32 !important; color: #fff !important; }
.mp-pop .mp-cta--nao, .mp-pop .mp-cta--nao:hover { background: #D32F2F !important; color: #fff !important; }
.mp-pop .mp-cta--ghost, .mp-pop .mp-cta--ghost:hover {
  background: none !important;
  color: var(--mp-text, #1B1240) !important;
  border: 2px solid rgba(0, 0, 0, .12) !important;
  font-size: 15px !important;
}

/* -------------------------------------------------------- PASSAPORTE */

.mp-tiquete {
  border: 2px dashed rgba(0, 0, 0, .16);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.mp-tiquete__topo { padding: 20px; text-align: center; }
.mp-tiquete__eyebrow {
  margin: 0 0 4px !important;
  font-size: 12px !important; letter-spacing: 1.4px; text-transform: uppercase;
  color: #16A46B !important; font-weight: 700 !important;
}
.mp-tiquete__nome {
  margin: 0 0 14px !important;
  font-family: var(--mp-font-title, inherit) !important;
  font-size: 24px !important; font-weight: 800 !important; line-height: 1.15 !important;
  color: var(--mp-text, #1B1240) !important;
}
.mp-tiquete__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 !important; }
.mp-tiquete__meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; opacity: .55; }
.mp-tiquete__meta dd { margin: 2px 0 0 !important; font-size: 17px; font-weight: 700; }
.mp-tiquete__quem { margin: 12px 0 0 !important; font-size: 13px; opacity: .75; line-height: 1.4; }
.mp-tiquete__local { margin: 8px 0 0 !important; font-size: 14px; opacity: .8; }

.mp-tiquete__picote { height: 0; border-top: 2px dashed rgba(0, 0, 0, .16); position: relative; }
.mp-tiquete__picote::before,
.mp-tiquete__picote::after {
  content: '';
  position: absolute; top: -13px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .1);
}
.mp-tiquete__picote::before { left: -14px; }
.mp-tiquete__picote::after  { right: -14px; }

.mp-tiquete__qr { padding: 20px; text-align: center; }
.mp-tiquete__qr .mp-qr { max-width: 100%; height: auto; display: inline-block; }
.mp-tiquete__code {
  margin: 10px 0 2px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: 24px !important; font-weight: 700 !important; letter-spacing: 4px;
}
.mp-tiquete__hint { margin: 0 !important; font-size: 12px !important; opacity: .6; }

.mp-tiquete__acoes { display: flex; gap: 10px; }
.mp-tiquete__acoes .mp-cta { margin-top: 14px !important; }

/* ------------------------------------------------------------ AVISOS */

.mp-aviso {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  padding: 20px;
  border-radius: var(--mp-radius, 18px);
  background: rgba(255, 255, 255, .92);
  color: var(--mp-text, #1B1240);
  text-align: center;
}
.mp-aviso b { font-family: var(--mp-font-title, inherit); font-size: 20px; font-weight: 800; }
.mp-aviso--erro { box-shadow: inset 0 0 0 2px #D32F2F; }

.mp-link {
  border: 0 !important;
  background: none !important;
  padding: 0 !important;
  color: #2E7D32 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  cursor: pointer;
  font-size: 15px !important;
  box-shadow: none !important;
}

.mp-contagem { font-weight: 700; }
.mp-contagem.is-hoje { color: #D32F2F; }

/* ----------------------------------------------------------- CONFETE */

.mp-confete { position: fixed; inset: 0; pointer-events: none; z-index: 999999; overflow: hidden; }
.mp-confete i {
  position: absolute; top: -12px;
  width: 9px; height: 14px;
  opacity: .9;
  animation: mp-cai linear forwards;
}
@keyframes mp-cai { to { transform: translateY(104vh) rotate(680deg); opacity: 0; } }

/* ------------------------------------------------------------- MOBILE */

@media (max-width: 480px) {
  .mp-pop.mp-pop { padding: 0; align-items: flex-end; }
  .mp-pop .mp-pop__box {
    max-width: none;
    max-height: 94vh;
    border-radius: 20px 20px 0 0 !important;
    padding: 26px 18px 20px !important;
  }
  .mp-p__baixo { gap: 8px; }
  .mp-resp__l { font-size: 12px; }
}

/* --------------------------------------------------------- IMPRESSAO */

@media print {
  body > *:not(.mp-pop) { display: none !important; }
  .mp-pop.mp-pop { position: static !important; padding: 0; }
  .mp-pop__bg, .mp-pop__x, .mp-pop__h, .mp-pop__sub,
  .mp-pop .mp-cta, .mp-tiquete__acoes { display: none !important; }
  .mp-pop .mp-pop__box { box-shadow: none !important; max-width: none; max-height: none; overflow: visible; }
}