:root{--mxc-cube-thumb:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2218%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%3E%3Cpath%20d%3D%22M9%201%2016%205%209%209%202%205Z%22%20fill%3D%22%238BD1FF%22%20stroke%3D%22%23061829%22%20stroke-width%3D%221%22%2F%3E%3Cpath%20d%3D%22M2%205%209%209%209%2017%202%2012Z%22%20fill%3D%22%231974D8%22%20stroke%3D%22%23061829%22%20stroke-width%3D%221%22%2F%3E%3Cpath%20d%3D%22M16%205%209%209%209%2017%2016%2012Z%22%20fill%3D%22%230A3D9F%22%20stroke%3D%22%23061829%22%20stroke-width%3D%221%22%2F%3E%3Cpath%20d%3D%22M9%201%2016%205%209%209%202%205Z%22%20fill%3D%22none%22%20stroke%3D%22%23CCEFFF%22%20stroke-width%3D%22.6%22%2F%3E%3C%2Fsvg%3E")}
/* THE MAPPP — V434 | Correções de interação e interface (modal de reclamação) */

/* O separador ativo é identificado pelo texto azul, mantendo o número neutro. */
.mxc .mxc-dlg .mxc-shellhead .mxc-progress-step.on .mxc-step-word,
.mxc.mxc-type-step .mxc-dlg .mxc-shellhead .mxc-progress-step.on .mxc-step-word{color:#4d9dff!important}

/* Passo 1: painel explicativo contextual com mensagens de controlo destacadas. */
.mxc .mxc-v399 .mxc-how-panel{
  height:327px!important;min-height:327px!important;max-height:327px!important;
  box-sizing:border-box!important;overflow-y:auto!important;scrollbar-width:thin;
  display:flex!important;flex-direction:column!important;gap:8px!important;
  padding:17px 14px!important
}
.mxc .mxc-v399 .mxc-how-panel .mxc-how-number{font-size:21px!important;line-height:1.2!important;flex:0 0 auto}
.mxc .mxc-v399 .mxc-how-panel .mxc-how-copy{flex:0 0 auto;min-height:0!important}
.mxc .mxc-v399 .mxc-how-copy h3{font-size:14px!important;margin:0 0 9px!important}
.mxc .mxc-v399 .mxc-how-copy h4{font-size:11px!important;line-height:1.42!important;margin:0 0 6px!important}
.mxc .mxc-v399 .mxc-how-copy p{font-size:10.5px!important;line-height:1.46!important;margin:0!important}
.mxc .mxc-v399 .mxc-how-control-note{
  margin-top:auto!important;flex:0 0 auto!important;padding:9px 9px 9px 10px!important;
  background:rgba(49,107,185,.13)!important;border-left:3px solid #4c94f7!important;
  color:#a8c7e8!important
}
.mxc .mxc-v399 .mxc-how-control-note.is-event{border-left-color:#65c8ff!important;background:rgba(52,144,215,.17)!important}
.mxc .mxc-v399 .mxc-how-control-note span{display:block!important;font:800 8px/1.2 Manrope,Arial,sans-serif!important;letter-spacing:.12em!important;color:#71b7ff!important;margin:0 0 5px!important}
.mxc .mxc-v399 .mxc-how-control-note p{margin:0!important;color:#d5e6f5!important;font:550 10px/1.42 Manrope,Arial,sans-serif!important}
.mxc .mxc-v399 .mxc-type-map-name,
.mxc .mxc-v399 .mxc-map-pick-hint,
.mxc .mxc-v399 .mxc-map-pick-hover,
.mxc .mxc-v399 .mxc-card-register{display:none!important}

/* Cores sempre alinhadas horizontalmente ao canto inferior direito do PREVIEW. */
.mxc .mxc-v399 .mxc-type-choice .mxc-type-thumb{position:relative!important}
.mxc .mxc-v399 .mxc-type-choice .mxc-type-thumb .mxc-type-swatches,
.mxc .mxc-v399 .mxc-type-choice.selected .mxc-type-thumb .mxc-type-swatches,
.mxc .mxc-v399 .mxc-type-choice.collapsed .mxc-type-thumb .mxc-type-swatches,
.mxc .mxc-v399 .mxc-type-choice:not(.selected):not(.collapsed) .mxc-type-thumb .mxc-type-swatches{
  position:absolute!important;left:auto!important;right:10px!important;top:auto!important;bottom:9px!important;
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
  align-items:center!important;gap:6px!important;transform:none!important;z-index:8!important;
  width:auto!important;max-width:calc(100% - 14px)!important;height:auto!important
}
.mxc .mxc-v399 .mxc-type-choice .mxc-type-thumb .mxc-type-swatches .mxc-initial-swatch,
.mxc .mxc-v399 .mxc-type-choice.collapsed .mxc-type-thumb .mxc-type-swatches .mxc-initial-swatch,
.mxc .mxc-v399 .mxc-type-choice.selected .mxc-type-thumb .mxc-type-swatches .mxc-initial-swatch,
.mxc .mxc-v399 .mxc-type-choice:not(.selected):not(.collapsed) .mxc-type-thumb .mxc-type-swatches .mxc-initial-swatch{
  box-sizing:border-box!important;display:block!important;width:15px!important;height:15px!important;
  min-width:15px!important;min-height:15px!important;max-width:15px!important;max-height:15px!important;
  flex:0 0 15px!important;margin:0!important;padding:0!important;border-radius:0!important
}
.mxc .mxc-v399 .mxc-type-choice .mxc-type-thumb .mxc-type-swatches .mxc-initial-swatch.on{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(97,164,249,.32)!important}

/* Thumb de zoom e sliders de valor: pequeno cubo azul, em vez de círculo oval. */
.mxc .mxc-v399 .mxc-reference-zoom input[type=range]::-webkit-slider-thumb,
.mxc .mxc-v399 .mxc-new-range input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none!important;appearance:none!important;width:18px!important;height:18px!important;
  min-width:18px!important;min-height:18px!important;margin-top:-8px!important;
  border:0!important;border-radius:0!important;background-color:transparent!important;
  background-image:var(--mxc-cube-thumb)!important;background-repeat:no-repeat!important;
  background-position:center!important;background-size:18px 18px!important;
  box-shadow:0 1px 4px rgba(0,0,0,.4)!important
}
.mxc .mxc-v399 .mxc-reference-zoom input[type=range]::-moz-range-thumb,
.mxc .mxc-v399 .mxc-new-range input[type=range]::-moz-range-thumb{
  width:18px!important;height:18px!important;border:0!important;border-radius:0!important;
  background:var(--mxc-cube-thumb) center/18px 18px no-repeat!important;box-shadow:none!important
}
.mxc .mxc-v399 .mxc-pv{touch-action:none!important;cursor:grab!important}
.mxc .mxc-v399 .mxc-pv.mxc-grab{cursor:grabbing!important}
.mxc .mxc-v399 .mxc-type-choice[data-type-choice="flag"].selected .mxc-pv .nb path[data-n]{touch-action:none!important;cursor:pointer!important;pointer-events:all!important}
.mxc .mxc-v399 .mxc-type-choice[data-type-choice="flag"].selected .mxc-pv .mxc-map-marker[data-n]{touch-action:none!important;cursor:pointer!important;pointer-events:all!important}

/* Passo 2: alinhamento da pré-visualização com o primeiro campo, sem centralizar na coluna. */
.mxc .mxc-v408-step2.mxc-world-personalize{
  display:grid!important;grid-template-columns:minmax(0,1fr) 300px!important;
  gap:23px!important;align-items:start!important;height:auto!important;
  min-height:0!important;overflow:visible!important;padding:10px 4px!important
}
.mxc .mxc-v408-step2 .mxc-logo-upload-wrap{align-self:start!important;margin-top:17px!important;min-width:0!important}
.mxc .mxc-v408-step2 .mxc-world-upload,
.mxc .mxc-v408-step2 .mxc-world-upload:not(.has-logo){
  box-sizing:border-box!important;height:425px!important;min-height:425px!important;
  max-height:425px!important;position:relative!important;overflow:hidden!important
}
.mxc .mxc-v408-step2 .mxc-world-upload.has-logo{cursor:default!important;animation:none!important}
.mxc .mxc-v408-step2 .mxc-world-upload.has-logo .mxc-upload-preview{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  display:block!important;pointer-events:none!important;cursor:default!important
}
/* Não apresentar o nome de nenhum concelho dentro do preview de imagem. */
.mxc .mxc-v408-step2 .mxc-v408-map-name{display:none!important}
.mxc .mxc-v408-step2 .mxc-upload-title{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  cursor:pointer!important;user-select:none!important
}
.mxc .mxc-v408-step2 .mxc-world-upload.has-logo .mxc-upload-title{
  top:12px!important;right:12px!important;left:auto!important;z-index:9!important
}
.mxc .mxc-v408-step2 .mxc-world-upload.has-logo .mxc-upload-meta{display:none!important}
/* O canvas 3D do estandarte desenha-se acima do ponto âncora: bottom-align calculado.
   Preserva a forma original e aumenta até ao maior tamanho que cabe na área útil. */
.mxc .mxc-v408-flag{
  position:absolute!important;left:calc(50% - var(--mxc-flag-center,85px))!important;top:var(--mxc-flag-top,355px)!important;
  transform:scale(var(--mxc-flag-k,5))!important;transform-origin:0 0!important;
  animation:none!important;pointer-events:none!important
}
.mxc .mxc-v408-flag .mxc-official-standard{
  transform:none!important;transform-origin:0 0!important;
  filter:drop-shadow(3px 9px 6px rgba(0,0,0,.43))!important
}
/* O layer da escala ocupa toda a base, com 30% de transparência. */
.mxc .mxc-v408-step2 .mxc-world-upload.has-logo .mxc-logo-scale{
  position:absolute!important;left:0!important;right:0!important;bottom:0!important;
  height:50px!important;box-sizing:border-box!important;z-index:10!important;
  display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;
  align-items:center!important;gap:12px!important;padding:8px 12px!important;
  border:0!important;border-top:1px solid rgba(149,188,227,.22)!important;
  background:rgba(7,18,30,.70)!important;backdrop-filter:none!important;cursor:default!important
}

/* Redes sociais: cada ícone expande o seu campo para a direita, na MESMA linha.
   Não existem molduras aninhadas nem alteração da altura do formulário. */
.mxc .mxc-v408-step2 .mxc-social-field{min-width:0!important}
.mxc .mxc-v408-step2 .mxc-social-inline{
  display:flex!important;flex-flow:row nowrap!important;align-items:stretch!important;
  gap:7px!important;margin-top:8px!important;height:46px!important;min-height:46px!important;
  width:100%!important;min-width:0!important;overflow:visible!important
}
.mxc .mxc-v408-step2 .mxc-social-slot{box-sizing:border-box!important;display:flex!important;flex:0 0 44px!important;width:44px!important;min-width:44px!important;height:46px!important;min-height:46px!important;gap:0!important}
.mxc .mxc-v408-step2 .mxc-social-slot.expanded{flex:1 1 174px!important;width:auto!important;min-width:146px!important}
.mxc .mxc-v408-step2 .mxc-social-tab{
  box-sizing:border-box!important;display:grid!important;place-items:center!important;
  flex:0 0 44px!important;width:44px!important;min-width:44px!important;max-width:44px!important;
  height:46px!important;min-height:46px!important;padding:0!important;margin:0!important;
  border:0!important;border-radius:0!important;background:rgba(255,255,255,.1)!important
}
.mxc .mxc-v408-step2 .mxc-social-tab.on{box-shadow:none!important;background:#1d4774!important}
.mxc .mxc-v408-step2 .mxc-social-tab svg{width:20px!important;height:20px!important}
.mxc .mxc-v408-step2 .mxc-social-entry[hidden]{display:none!important}
.mxc .mxc-v408-step2 .mxc-social-entry{
  box-sizing:border-box!important;display:flex!important;align-items:stretch!important;
  flex:1 1 auto!important;min-width:0!important;width:auto!important;height:46px!important;
  margin:0!important;padding:0!important;border:0!important;outline:0!important;
  border-radius:0!important;box-shadow:none!important;background:#21384e!important
}
.mxc .mxc-v408-step2 .mxc-social-entry input[data-social-input]{
  box-sizing:border-box!important;flex:1 1 auto!important;min-width:0!important;width:100%!important;
  height:46px!important;min-height:46px!important;margin:0!important;padding:0 8px!important;
  border:0!important;border-radius:0!important;outline:none!important;
  background:transparent!important;color:#eff6ff!important;font-size:11px!important
}
.mxc .mxc-v408-step2 .mxc-social-entry button[data-social-ok]{
  box-sizing:border-box!important;flex:0 0 30px!important;width:30px!important;
  height:46px!important;padding:0!important;margin:0!important;
  border:0!important;border-radius:0!important;background:#244d73!important;
  color:#f0f6ff!important;font:700 10px Manrope,Arial,sans-serif!important;cursor:pointer!important
}

/* Passo 3: retirado o aviso de pagamento; Turnstile abaixo da pré-visualização,
   encostado à direita da coluna esquerda, sem ocupar a largura total. */
.mxc .mxc-world-step3 .mxc-world-confirm-preview{min-width:0!important;display:flex!important;flex-direction:column!important;align-items:stretch!important}
.mxc .mxc-world-step3 .mxc-confirm-turnstile{
  margin-top:18px!important;display:flex!important;flex-direction:column!important;
  align-items:flex-end!important;justify-content:flex-start!important;min-width:0!important
}
.mxc .mxc-world-step3 .mxc-confirm-turnstile .cm-turnstile-wrap,
.mxc .mxc-world-step3 .mxc-confirm-turnstile .mxc-turnstile-error{max-width:100%!important;align-self:flex-end!important}
.mxc .mxc-world-step3 .mxc-note{display:none!important}

@media(max-width:800px){
 .mxc .mxc-v408-step2.mxc-world-personalize{grid-template-columns:minmax(0,1fr)!important;gap:14px!important;overflow:auto!important}
 .mxc .mxc-v408-step2 .mxc-logo-upload-wrap{margin-top:0!important}
 .mxc .mxc-v408-step2 .mxc-world-upload,.mxc .mxc-v408-step2 .mxc-world-upload:not(.has-logo){height:350px!important;min-height:350px!important;max-height:350px!important}
 .mxc .mxc-v408-step2 .mxc-social-inline{flex-direction:row!important;flex-wrap:nowrap!important}
}
@media(max-width:730px){
 .mxc .mxc-v399 .mxc-how-panel{height:auto!important;min-height:160px!important;max-height:300px!important}
 .mxc .mxc-v399 .mxc-type-choice .mxc-type-thumb .mxc-type-swatches{right:6px!important;bottom:6px!important;gap:4px!important}
 .mxc .mxc-v399 .mxc-type-choice .mxc-type-thumb .mxc-type-swatches .mxc-initial-swatch{width:13px!important;height:13px!important;min-width:13px!important;min-height:13px!important;flex-basis:13px!important}
}

@media(max-width:520px){
 .mxc .mxc-v408-step2 .mxc-social-inline{gap:5px!important}
 .mxc .mxc-v408-step2 .mxc-social-slot{flex-basis:36px!important;width:36px!important;min-width:36px!important}
 .mxc .mxc-v408-step2 .mxc-social-slot.expanded{flex:1 1 auto!important;width:auto!important;min-width:105px!important}
 .mxc .mxc-v408-step2 .mxc-social-tab{flex-basis:36px!important;width:36px!important;min-width:36px!important;max-width:36px!important}
 .mxc .mxc-v408-step2 .mxc-social-entry input[data-social-input]{font-size:10px!important;padding:0 5px!important}
}
