@font-face {
  font-display: swap;
  font-family: 'Inter18pt';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/Inter_18pt-Regular.ttf') format('truetype');
}

@font-face {
  font-display: swap;
  font-family: 'Inter18pt';
  font-style: normal;
  font-weight: 500;
  src: url('./fonts/Inter_18pt-Medium.ttf') format('truetype');
}

@font-face {
  font-display: swap;
  font-family: 'Inter18pt';
  font-style: normal;
  font-weight: 600;
  src: url('./fonts/Inter_18pt-SemiBold.ttf') format('truetype');
}

@font-face {
  font-display: swap;
  font-family: 'Inter18pt';
  font-style: normal;
  font-weight: 700;
  src: url('./fonts/Inter_18pt-Bold.ttf') format('truetype');
}

@font-face {
  font-display: swap;
  font-family: 'Inter18pt';
  font-style: normal;
  font-weight: 800;
  src: url('./fonts/Inter_18pt-ExtraBold.ttf') format('truetype');
}

@font-face {
  font-display: swap;
  font-family: 'Inter18pt';
  font-style: normal;
  font-weight: 900;
  src: url('./fonts/Inter_18pt-Black.ttf') format('truetype');
}

.runtime-button {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #ffffff !important;
  cursor: pointer;
  display: block;
  font-family: 'Inter18pt', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.runtime-button-image-mask {
  pointer-events: none !important;
}

/* cuento/form palette measured directly from the supplied PSD. */
.page-form .form-runtime .runtime-field {
  background: #fbfcfd !important;
  border: 1px solid #dce4e8 !important;
  color: #344b59 !important;
}

.page-form .form-runtime .runtime-field::placeholder {
  color: #9aa7b3 !important;
  opacity: 1 !important;
}

/* Compact environment marker without a warning strip. */
.demo-badge {
  background: rgba(8, 75, 132, .9);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  bottom: 12px;
  box-shadow: 0 4px 14px rgba(7, 43, 70, .16);
  color: #fff;
  font: 700 10px/1 Arial, sans-serif;
  letter-spacing: .12em;
  padding: 7px 9px 6px 10px;
  position: fixed;
  right: 12px;
  z-index: 100000;
}

.desktop-panama-header {
  display: none;
}

@media (min-width: 701px) {
  body.scenario-cuento,
  body.scenario-seguro,
  body.scenario-verificar,
  body.scenario-documenti,
  body.scenario-firma {
    position: relative;
  }

  body .desktop-panama-header {
    background: #084b84 url('../form/images/shapka.png') center / 100% 90px no-repeat;
    display: block;
    height: 90px;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 900;
  }

  body.scenario-cuento .global_container_ .shapka,
  body.scenario-seguro .global_container_ .shapka,
  body.scenario-verificar .global_container_ .shapka,
  body.scenario-documenti .global_container_ .shapka,
  body.scenario-firma .global_container_ .shapka,
  body.scenario-cuento .global_container_ .header,
  body.scenario-seguro .global_container_ .header,
  body.scenario-verificar .global_container_ .header,
  body.scenario-documenti .global_container_ .header,
  body.scenario-firma .global_container_ .header {
    display: none !important;
  }

}

@media (max-width: 700px) {
  body.scenario-seguro.page-anim4 .global_container_ {
    background: #eef3f5 !important;
  }

  body.scenario-seguro.page-anim4 button.text-4.runtime-button {
    background: #205b79 !important;
    border-radius: 999px !important;
    height: 52px !important;
    margin: 8px 0 0 !important;
    min-height: 52px !important;
    position: static !important;
    width: 100% !important;
  }

  body.scenario-seguro.page-anim4 .runtime-button-image-mask {
    display: none !important;
  }
}

/* Keep the 600px desktop-form card centred on tablet/landscape widths.
   The PSD export hard-codes left:420px against a 1440px canvas. */
@media (min-width: 601px) and (max-width: 1000px) {
  body.page-form .global_container_,
  body.page-form .scheda-modulo-richiesta-form {
    width: 100% !important;
  }

  body.page-form .scheda-modulo-richiesta-form .col.form-runtime {
    left: 50% !important;
    margin-left: 0 !important;
    transform: translateX(-50%) !important;
  }
}

/* Standalone progress pages: keep every control inside one centered card. */
.scenario-cuento.page-anim1 .global_container_,
.scenario-cuento.page-anim2 .global_container_ {
  align-items: center !important;
  background-position: center !important;
  background-size: cover !important;
  box-sizing: border-box !important;
  display: flex !important;
  height: auto !important;
  justify-content: center !important;
  min-height: 100vh !important;
  padding: 130px 16px 48px !important;
  width: 100% !important;
}

.scenario-cuento.page-anim1 .global_container_ > .col,
.scenario-cuento.page-anim2 .finestra-modale-avanzamento-dialog {
  background: #fff !important;
  border: 1px solid #d8e3e9 !important;
  border-radius: 22px !important;
  box-shadow: 0 22px 60px rgba(8, 35, 54, .2) !important;
  box-sizing: border-box !important;
  height: auto !important;
  left: auto !important;
  margin: 0 !important;
  min-height: 400px !important;
  padding: 64px 40px 32px !important;
  position: relative !important;
  top: auto !important;
  transform: none !important;
  width: min(540px, 100%) !important;
}

.scenario-cuento.page-anim1 .global_container_ > .col > :not(.modal-close),
.scenario-cuento.page-anim2 .finestra-modale-avanzamento-dialog > * {
  box-sizing: border-box !important;
  height: auto !important;
  left: auto !important;
  margin-left: 0 !important;
  position: static !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  width: auto !important;
}

.scenario-cuento.page-anim1 .modal-close {
  align-items: center !important;
  background: #f3f7f9 !important;
  border: 1px solid #d9e3e8 !important;
  border-radius: 50% !important;
  color: #526b79 !important;
  display: flex !important;
  font-size: 22px !important;
  height: 38px !important;
  justify-content: center !important;
  left: auto !important;
  position: absolute !important;
  right: 16px !important;
  top: 16px !important;
  width: 38px !important;
}

.scenario-cuento.page-anim1 .titolo-invio-di-fondi-al-conto,
.scenario-cuento.page-anim2 .titolo-invio-di-fondi-al-conto {
  color: #173d56 !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin: 0 0 8px !important;
  text-align: center !important;
}

.scenario-cuento.page-anim1 .sottotitolo-verifica-dei-dati-inseriti,
.scenario-cuento.page-anim2 .sottotitolo-verifica-dei-dati-inseriti {
  color: #637985 !important;
  font-size: 16px !important;
  margin: 0 0 34px !important;
  text-align: center !important;
}

.scenario-cuento.page-anim1 .row,
.scenario-cuento.page-anim2 .row {
  align-items: end !important;
  display: flex !important;
  gap: 16px !important;
  justify-content: space-between !important;
  margin: 0 0 16px !important;
}

.scenario-cuento.page-anim1 .col-3,
.scenario-cuento.page-anim2 .col-3,
.scenario-cuento.page-anim1 .col-3 > *,
.scenario-cuento.page-anim2 .col-3 > *,
.scenario-cuento.page-anim1 .percentuale-96,
.scenario-cuento.page-anim2 .percentuale-96 {
  height: auto !important;
  left: auto !important;
  margin: 0 !important;
  position: static !important;
  right: auto !important;
  top: auto !important;
  width: auto !important;
}

.scenario-cuento.page-anim1 .stato-errore-di-trasferimento,
.scenario-cuento.page-anim2 .stato-errore-di-trasferimento {
  color: #173d56 !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin-bottom: 4px !important;
}

.scenario-cuento.page-anim1 .dettaglio-errore-operativo,
.scenario-cuento.page-anim2 .dettaglio-errore-operativo {
  color: #637985 !important;
  font-size: 14px !important;
}

.scenario-cuento.page-anim1 .percentuale-96,
.scenario-cuento.page-anim2 .percentuale-96 {
  color: #174b68 !important;
  flex: none !important;
  font-size: 34px !important;
  font-weight: 700 !important;
}

.scenario-cuento.page-anim1 .progress-track {
  background: #e6eef2 !important;
  border-radius: 999px !important;
  height: 14px !important;
  margin: 0 0 28px !important;
  overflow: hidden !important;
  position: static !important;
  width: 100% !important;
}

.scenario-cuento.page-anim1 .progress-fill {
  background: #1f7197 !important;
  border-radius: inherit !important;
  height: 100% !important;
}

.scenario-cuento.page-anim1 button.testo-pulsante-dettagliato,
.scenario-cuento.page-anim2 button.testo-pulsante-dettagliato {
  background: #205b79 !important;
  border-radius: 999px !important;
  color: #fff !important;
  min-height: 52px !important;
  position: static !important;
  width: 100% !important;
}

body.scenario-cuento.page-anim1 .global_container_ > .col > .progress-track {
  height: 14px !important;
  min-height: 14px !important;
  width: 100% !important;
}

body.scenario-cuento.page-anim1 .global_container_ > .col > button.testo-pulsante-dettagliato,
body.scenario-cuento.page-anim2 .finestra-modale-avanzamento-dialog > button.testo-pulsante-dettagliato {
  width: 100% !important;
}

/* Payment confirmation is one modal card on every viewport. */
.scenario-verificar.page-rd3 .rd3-payment-overlay {
  align-items: center !important;
  background: rgba(26, 49, 64, .62) !important;
  display: flex !important;
  inset: 0 !important;
  justify-content: center !important;
  padding: 16px !important;
  position: fixed !important;
  z-index: 20000 !important;
}

.scenario-verificar.page-rd3 .rd3-payment-overlay[hidden] {
  display: none !important;
}

.scenario-verificar.page-rd3 .rd3-payment-dialog {
  align-items: center !important;
  background: #fff !important;
  border: 1px solid #d8e3e9 !important;
  border-radius: 22px !important;
  box-shadow: 0 22px 60px rgba(8, 35, 54, .24) !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  height: auto !important;
  left: auto !important;
  margin: 0 !important;
  max-height: calc(100vh - 32px) !important;
  overflow: auto !important;
  padding: 54px 28px 26px !important;
  position: relative !important;
  top: auto !important;
  transform: none !important;
  width: min(430px, 100%) !important;
}

.scenario-verificar.page-rd3 .rd3-payment-close {
  align-items: center !important;
  background: #f5f8fa !important;
  border: 1px solid #dce5ea !important;
  border-radius: 50% !important;
  color: #637985 !important;
  display: flex !important;
  font-size: 22px !important;
  height: 38px !important;
  justify-content: center !important;
  left: auto !important;
  position: absolute !important;
  right: 14px !important;
  top: 14px !important;
  width: 38px !important;
}

.scenario-verificar.page-rd3 .rd3-payment-icon {
  background: #eef6f8 !important;
  border: 1px solid #d8e8ed !important;
  border-radius: 50% !important;
  flex: 0 0 58px !important;
  height: 58px !important;
  margin: 0 !important;
  position: relative !important;
  width: 58px !important;
}

.scenario-verificar.page-rd3 .rd3-payment-icon::before {
  border: 3px solid #174b68;
  border-radius: 4px;
  box-sizing: border-box;
  content: '';
  height: 20px;
  left: 16px;
  position: absolute;
  top: 19px;
  width: 26px;
}

.scenario-verificar.page-rd3 .rd3-payment-icon::after {
  background: #174b68;
  content: '';
  height: 3px;
  left: 18px;
  position: absolute;
  top: 26px;
  width: 22px;
}

.scenario-verificar.page-rd3 .rd3-payment-title {
  color: #173d56 !important;
  font-size: 23px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  position: static !important;
  text-align: center !important;
  width: auto !important;
}

.scenario-verificar.page-rd3 .rd3-payment-copy {
  background: #f4f8fa !important;
  border: 1px solid #dce6ea !important;
  border-radius: 14px !important;
  box-sizing: border-box !important;
  color: #174b68 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  padding: 24px 18px !important;
  position: static !important;
  text-align: center !important;
  width: 100% !important;
}

.scenario-verificar.page-rd3 .rd3-payment-confirm {
  background: #205b79 !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  height: 54px !important;
  margin: 0 !important;
  min-height: 54px !important;
  position: static !important;
  width: 100% !important;
}

@media (min-width: 701px) {
  body.scenario-documenti.page-rd4_2 .global_container_ {
    align-items: center !important;
    background: url('../rd4_2/images/rd4panama.png') center / cover no-repeat !important;
    box-sizing: border-box !important;
    display: flex !important;
    height: auto !important;
    justify-content: center !important;
    min-height: 100vh !important;
    padding: 120px 16px 40px !important;
    width: 100% !important;
  }

  body.scenario-documenti.page-rd4_2 .rd4turciya-holder {
    align-items: center !important;
    display: flex !important;
    height: auto !important;
    justify-content: center !important;
    left: auto !important;
    position: static !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
  }

  body.scenario-documenti.page-rd4_2 .col {
    background: url('../rd4_2/images/sloi_5.png') center / 100% 100% no-repeat !important;
    border: 0 !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 48px rgba(9, 47, 75, .18) !important;
    box-sizing: border-box !important;
    height: 607px !important;
    left: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    top: auto !important;
    transform: none !important;
    width: 462px !important;
  }

  body.scenario-documenti.page-rd4_2 .col > .gentile-cliente {
    left: 35px !important;
    margin: 0 !important;
    position: absolute !important;
    right: 35px !important;
    top: 127px !important;
    width: auto !important;
  }

  body.scenario-documenti.page-rd4_2 .col > .gentile-cliente-2 {
    left: 45px !important;
    margin: 0 !important;
    position: absolute !important;
    right: 45px !important;
    top: 229px !important;
    width: auto !important;
  }

  body.scenario-documenti.page-rd4_2 .col > .gentile-cliente-3 {
    left: 35px !important;
    margin: 0 !important;
    position: absolute !important;
    right: 35px !important;
    top: 391px !important;
    width: auto !important;
  }

  body.scenario-documenti.page-rd4_2 .col > button.pagare.runtime-button {
    align-items: center !important;
    background: transparent !important;
    bottom: 33px !important;
    display: flex !important;
    height: 54px !important;
    justify-content: center !important;
    left: 32px !important;
    margin: 0 !important;
    position: absolute !important;
    right: 32px !important;
    top: auto !important;
    width: auto !important;
  }
}

@media (max-width: 700px) {
  .scenario-cuento.page-anim1 .global_container_,
  .scenario-cuento.page-anim2 .global_container_ {
    padding: 118px 12px 36px !important;
  }

  .scenario-cuento.page-anim1 .global_container_ > .col,
  .scenario-cuento.page-anim2 .finestra-modale-avanzamento-dialog {
    min-height: 0 !important;
    padding: 56px 24px 24px !important;
  }

  .scenario-cuento.page-anim1 .titolo-invio-di-fondi-al-conto,
  .scenario-cuento.page-anim2 .titolo-invio-di-fondi-al-conto {
    font-size: 22px !important;
  }

  body.scenario-verificar.page-anim6 .global_container_ {
    background: #eef3f5 !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 100vh !important;
    padding: 114px 12px 48px !important;
    width: 100% !important;
  }

  body.scenario-verificar.page-anim6 .scheda-caricamento-e-errore-transfer-card {
    height: auto !important;
    position: static !important;
    width: 100% !important;
  }

  body.scenario-verificar.page-anim6 .scheda-caricamento-e-errore-transfer-card > .row {
    align-items: center !important;
    background: #fff !important;
    border: 1px solid #dfe8ec !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: minmax(0, 1fr) 120px minmax(0, .8fr) !important;
    margin: 0 0 24px !important;
    min-height: 88px !important;
    padding: 17px 20px !important;
    position: static !important;
    width: 100% !important;
  }

  body.scenario-verificar.page-anim6 .scheda-caricamento-e-errore-transfer-card > .row > * {
    height: auto !important;
    left: auto !important;
    margin: 0 !important;
    position: static !important;
    right: auto !important;
    text-align: left !important;
    top: auto !important;
    width: auto !important;
  }

  body.scenario-verificar.page-anim6 .col-2 {
    background: #fff !important;
    border: 1px solid #dfe8ec !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 40px rgba(9, 47, 75, .12) !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
    height: auto !important;
    left: auto !important;
    min-height: 390px !important;
    padding: 30px 24px !important;
    position: static !important;
    top: auto !important;
    width: 100% !important;
  }

  body.scenario-verificar.page-anim6 .col-2 > *,
  body.scenario-verificar.page-anim6 .titolo-elaborazione-e-conferma > *,
  body.scenario-verificar.page-anim6 .row-2 > *,
  body.scenario-verificar.page-anim6 .testo-avviso-di-errore > * {
    height: auto !important;
    left: auto !important;
    margin: 0 !important;
    position: static !important;
    right: auto !important;
    text-align: center !important;
    top: auto !important;
    width: auto !important;
  }

  body.scenario-verificar.page-anim6 .riga-1-elaborazione-e-conferma-d {
    color: #092f4b !important;
    font-size: 28px !important;
    line-height: 1.2 !important;
  }

  body.scenario-verificar.page-anim6 .row-2 {
    align-items: center !important;
    display: flex !important;
    justify-content: space-between !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  body.scenario-verificar.page-anim6 .testo-avviso-di-errore {
    background: #fff3f3 !important;
    border: 1px solid #efcccc !important;
    border-radius: 12px !important;
    color: #a33b3b !important;
    padding: 16px !important;
    width: 100% !important;
  }

  body.scenario-verificar.page-anim6 button.pagare.runtime-button {
    background: #205b79 !important;
    border-radius: 999px !important;
    min-height: 54px !important;
    position: static !important;
    width: 100% !important;
  }

  .scenario-verificar.page-rd3 .rd3-payment-dialog {
    gap: 16px !important;
    padding: 50px 20px 22px !important;
  }

  .scenario-verificar.page-rd3 .rd3-payment-copy {
    font-size: 19px !important;
    padding: 22px 14px !important;
  }
}

.page-form.scenario-cuento .combined-progress-overlay {
  align-items: center !important;
  background: rgba(13, 42, 61, .62) !important;
  display: flex !important;
  inset: 0 !important;
  justify-content: center !important;
  padding: 44px 16px 16px !important;
  position: fixed !important;
  z-index: 90000 !important;
}

.page-form.scenario-cuento .combined-progress-overlay[hidden] {
  display: none !important;
}

.page-form.scenario-cuento .combined-progress-card {
  background: #fff !important;
  border: 1px solid #d8e3e9 !important;
  border-radius: 22px !important;
  box-shadow: 0 22px 60px rgba(8, 35, 54, .26) !important;
  box-sizing: border-box !important;
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 56px 34px 32px !important;
  position: relative !important;
  transform: none !important;
  width: min(560px, 100%) !important;
}

.page-form.scenario-cuento .combined-progress-card > * {
  box-sizing: border-box;
}

.page-form.scenario-cuento .combined-progress-card .modal-close {
  align-items: center !important;
  background: #f3f7f9 !important;
  border: 1px solid #d9e3e8 !important;
  border-radius: 50% !important;
  color: #526b79 !important;
  display: flex !important;
  font-size: 22px !important;
  height: 38px !important;
  justify-content: center !important;
  left: auto !important;
  position: absolute !important;
  right: 16px !important;
  top: 16px !important;
  width: 38px !important;
}

.page-form.scenario-cuento .combined-progress-card .titolo-invio-di-fondi-al-conto,
.page-form.scenario-cuento .combined-progress-card .sottotitolo-verifica-dei-dati-inseriti,
.page-form.scenario-cuento .combined-progress-card .row,
.page-form.scenario-cuento .combined-progress-card .col-3,
.page-form.scenario-cuento .combined-progress-card .stato-errore-di-trasferimento,
.page-form.scenario-cuento .combined-progress-card .dettaglio-errore-operativo,
.page-form.scenario-cuento .combined-progress-card .percentuale-96,
.page-form.scenario-cuento .combined-progress-card .testo-pulsante-dettagliato {
  height: auto !important;
  left: auto !important;
  margin-left: 0 !important;
  position: static !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  width: auto !important;
}

.page-form.scenario-cuento .combined-progress-card .titolo-invio-di-fondi-al-conto {
  color: #173d56 !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin: 0 0 8px !important;
  text-align: center !important;
}

.page-form.scenario-cuento .combined-progress-card .sottotitolo-verifica-dei-dati-inseriti {
  color: #637985 !important;
  font-size: 16px !important;
  margin: 0 0 30px !important;
  text-align: center !important;
}

.page-form.scenario-cuento .combined-progress-card .row {
  align-items: end !important;
  display: flex !important;
  justify-content: space-between !important;
  margin: 0 0 12px !important;
}

.page-form.scenario-cuento .combined-progress-card .stato-errore-di-trasferimento {
  color: #173d56 !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  margin: 0 0 4px !important;
}

.page-form.scenario-cuento .combined-progress-card .dettaglio-errore-operativo {
  color: #637985 !important;
  font-size: 14px !important;
  margin: 0 !important;
}

.page-form.scenario-cuento .combined-progress-card .percentuale-96 {
  color: #174b68 !important;
  font-size: 34px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

.page-form.scenario-cuento .combined-progress-card .progress-track {
  background: #e6eef2 !important;
  border-radius: 999px !important;
  height: 14px !important;
  margin: 0 0 26px !important;
  overflow: hidden !important;
  position: static !important;
  width: 100% !important;
}

.page-form.scenario-cuento .combined-progress-card .progress-fill {
  background: #1f7197 !important;
  border-radius: inherit !important;
  height: 100% !important;
}

.page-form.scenario-cuento .combined-progress-card .testo-pulsante-dettagliato {
  background: #205b79 !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-size: 16px !important;
  min-height: 52px !important;
  text-align: center !important;
  width: 100% !important;
}

.page-form.scenario-cuento .combined-progress-card .testo-pulsante-dettagliato:disabled {
  cursor: wait !important;
  opacity: .55 !important;
}

@media (max-width: 600px) {
  .page-form.scenario-cuento .combined-progress-card {
    padding: 54px 22px 24px !important;
  }

  .page-form.scenario-cuento .combined-progress-card .titolo-invio-di-fondi-al-conto {
    font-size: 22px !important;
  }
}

@media (max-width: 700px) {
  body.page-rd1 .global_container_,
  body.page-rd2 .global_container_,
  body.page-rd3 .global_container_,
  body.page-rd4 .global_container_,
  body.page-rd5 .global_container_,
  body.page-rek .global_container_ {
    background-position: center top !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 100vh !important;
    padding: 132px 16px 42px !important;
    width: 100% !important;
  }

  body.page-rd1 .main-content-wrapper,
  body.page-rd1 .scheda-principale-main-card,
  body.page-rd2 .scheda-principale-main-card,
  body.page-rd3 .scheda-principale-main-card,
  body.page-rd4 .scheda-principale-main-card,
  body.page-rd5 .scheda-principale-main-card,
  body.page-rek .scheda-coordinate-pagamento-advisor-card {
    box-sizing: border-box !important;
    height: auto !important;
    left: auto !important;
    margin: 0 !important;
    position: static !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
  }

  body.page-rd1 .riepilogo-prestito-loan-summary,
  body.page-rd2 .riepilogo-prestito-loan-summary,
  body.page-rd3 .riepilogo-prestito-loan-summary,
  body.page-rd4 .riepilogo-prestito-loan-summary,
  body.page-rd5 .riepilogo-prestito-loan-summary {
    background: #fff !important;
    border: 1px solid #dbe5ea !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    display: grid !important;
    gap: 4px !important;
    height: auto !important;
    left: auto !important;
    margin: 0 0 14px !important;
    padding: 18px !important;
    position: static !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
  }

  body.page-rd1 .riepilogo-prestito-loan-summary > *,
  body.page-rd2 .riepilogo-prestito-loan-summary > *,
  body.page-rd3 .riepilogo-prestito-loan-summary > *,
  body.page-rd4 .riepilogo-prestito-loan-summary > *,
  body.page-rd5 .riepilogo-prestito-loan-summary > * {
    height: auto !important;
    left: auto !important;
    margin: 0 !important;
    position: static !important;
    right: auto !important;
    text-align: left !important;
    top: auto !important;
    transform: none !important;
    width: auto !important;
  }

  body.page-rd1 .scheda-principale-main-card > .col,
  body.page-rd2 .scheda-principale-main-card > .col,
  body.page-rd3 .scheda-principale-main-card > .col,
  body.page-rd4 .scheda-principale-main-card > .col,
  body.page-rd5 .scheda-principale-main-card > .col,
  body.page-rd1 .main-content-wrapper > .scheda-principale-main-card,
  body.page-rek .scheda-coordinate-pagamento-advisor-card > .col {
    background: #fff !important;
    border: 1px solid #dbe5ea !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 32px rgba(9, 47, 75, .12) !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    height: auto !important;
    left: auto !important;
    margin: 0 !important;
    min-height: 0 !important;
    padding: 24px 20px !important;
    position: static !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
  }

  body.page-rd1 .scheda-principale-main-card > .col *,
  body.page-rd2 .scheda-principale-main-card > .col *,
  body.page-rd3 .scheda-principale-main-card > .col *,
  body.page-rd4 .scheda-principale-main-card > .col *,
  body.page-rd5 .scheda-principale-main-card > .col *,
  body.page-rd1 .main-content-wrapper > .scheda-principale-main-card *,
  body.page-rek .scheda-coordinate-pagamento-advisor-card > .col * {
    box-sizing: border-box !important;
    height: auto !important;
    left: auto !important;
    margin: 0 !important;
    max-width: 100% !important;
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: auto !important;
  }

  body.page-rd1 .runtime-button,
  body.page-rd2 .runtime-button,
  body.page-rd3 .runtime-button,
  body.page-rd4 .runtime-button,
  body.page-rd5 .runtime-button {
    background: #205b79 !important;
    border-radius: 999px !important;
    min-height: 54px !important;
    padding: 14px 20px !important;
    position: static !important;
    width: 100% !important;
  }

  body.page-rd1 .shapka,
  body.page-rd2 .shapka,
  body.page-rd3 .shapka,
  body.page-rd4 .shapka,
  body.page-rd5 .shapka,
  body.page-rek .shapka,
  body.page-rd1 .layer,
  body.page-rd2 .layer,
  body.page-rd3 .layer,
  body.page-rd4 .layer,
  body.page-rd5 .layer,
  body.page-rek .layer,
  body.page-rd1 .badge-pagamento-sicuro-con-lucchetto-holder {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  body.scenario-cuento::before,
  body.scenario-seguro::before,
  body.scenario-verificar::before,
  body.scenario-documenti::before,
  body.scenario-firma::before,
  body.scenario-cuento::after,
  body.scenario-seguro::after,
  body.scenario-verificar::after,
  body.scenario-documenti::after,
  body.scenario-firma::after {
    display: none !important;
  }

  body.scenario-cuento.page-form .shapka,
  body.scenario-seguro.page-form .shapka,
  body.scenario-verificar.page-form .shapka,
  body.scenario-documenti.page-form .shapka,
  body.scenario-firma.page-form .shapka,
  body.scenario-cuento .header,
  body.scenario-seguro .header,
  body.scenario-verificar .header,
  body.scenario-documenti .header,
  body.scenario-firma .header {
    opacity: 1 !important;
  }
}

@media (min-width: 701px) {
  body.page-form.scenario-cuento.progress-open .combined-progress-card {
    background: #fff url('../anim1/images/sloi_0.png') left top / 100% 100% no-repeat !important;
    border: 0 !important;
    border-radius: 21px !important;
    box-shadow: 0 12px 30px rgba(9, 47, 75, .12) !important;
    height: 339px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: relative !important;
    width: 540px !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card {
    background-image: url('../anim2/images/base_finestra_con_barra_p.png') !important;
    height: 417px !important;
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card::before {
    align-items: center;
    background: #eef7fa;
    border: 1px solid #dcebf1;
    border-radius: 15px;
    color: #287895;
    content: '↗';
    display: flex;
    font-size: 23px;
    font-weight: 700;
    height: 46px;
    justify-content: center;
    left: 41px;
    line-height: 1;
    position: absolute;
    top: 30px;
    width: 46px;
    z-index: 2;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card::before {
    background: #fff0ef;
    border-color: #f1dada;
    color: #bd4545;
    content: '!';
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card .modal-close {
    background: #f7fafb !important;
    border: 3px solid #8bb0c2 !important;
    border-radius: 15px !important;
    box-shadow: inset 0 0 0 2px #ffffff !important;
    color: #637985 !important;
    height: 48px !important;
    right: 36px !important;
    top: 30px !important;
    width: 48px !important;
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card .titolo-invio-di-fondi-al-conto {
    font-size: 27.8535px !important;
    left: 41px !important;
    line-height: 1 !important;
    margin: 0 !important;
    position: absolute !important;
    text-align: left !important;
    top: 106px !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .titolo-invio-di-fondi-al-conto {
    top: 111px !important;
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card .sottotitolo-verifica-dei-dati-inseriti {
    font-size: 14px !important;
    left: 41px !important;
    line-height: 18px !important;
    margin: 0 !important;
    position: absolute !important;
    text-align: left !important;
    top: 149px !important;
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card .row {
    background: #f7fafb !important;
    border: 1px solid #e1e9ec !important;
    border-radius: 16px !important;
    display: block !important;
    height: 80px !important;
    left: 41px !important;
    margin: 0 !important;
    position: absolute !important;
    top: 199px !important;
    width: 458px !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .row {
    background: linear-gradient(90deg, #fffafa 0%, #fcf6f5 100%) !important;
    border-color: #f1e4e3 !important;
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card .col-3 {
    height: 38px !important;
    left: 18px !important;
    position: absolute !important;
    top: 17px !important;
    width: 340px !important;
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card .stato-errore-di-trasferimento,
  body.page-form.scenario-cuento.progress-open .combined-progress-card .dettaglio-errore-operativo {
    left: 0 !important;
    margin: 0 !important;
    position: absolute !important;
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card .stato-errore-di-trasferimento {
    font-size: 15px !important;
    top: 0 !important;
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card .dettaglio-errore-operativo {
    font-size: 13px !important;
    top: 22px !important;
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card .percentuale-96 {
    color: #1e5877 !important;
    font-size: 36px !important;
    line-height: 1 !important;
    margin: 0 !important;
    position: absolute !important;
    right: 18px !important;
    top: 17px !important;
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card .progress-track {
    background: #e5ecef !important;
    height: 8px !important;
    left: 42px !important;
    margin: 0 !important;
    position: absolute !important;
    top: 293px !important;
    width: 457px !important;
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card .progress-fill {
    background: linear-gradient(90deg, #2d8ba5 0%, #3159a3 100%) !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .percentuale-96 {
    color: #b53e3e !important;
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card .testo-pulsante-dettagliato {
    background: linear-gradient(90deg, #1b4b66 0%, #173e57 100%) !important;
    border-radius: 13px !important;
    height: 55px !important;
    left: 41px !important;
    margin: 0 !important;
    min-height: 0 !important;
    position: absolute !important;
    top: 324px !important;
    width: 458px !important;
  }

  body.page-form.scenario-cuento.progress-open:not(.is-complete) .combined-progress-card .testo-pulsante-dettagliato {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .testo-pulsante-dettagliato {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .progress-fill {
    background: linear-gradient(90deg, #ce6565 0%, #ba4247 100%) !important;
  }
}

@media (max-width: 600px) {
  body .mobile-tcmb-header {
    background: #084b84;
    height: 62px;
    justify-content: center;
    top: 28px;
  }

  body .mobile-tcmb-logo {
    background: url('../form/images/shapka.png') center 28% / auto 62px no-repeat;
    display: block;
    height: 62px;
    width: 100%;
  }
}

.mobile-tcmb-header {
  display: none;
}

/* Shared desktop header: TCMB information strip above the red navigation. */
@media (min-width: 1024px) {
  body.scenario-cuento,
  body.scenario-seguro,
  body.scenario-verificar,
  body.scenario-documenti,
  body.scenario-firma {
    position: relative;
  }

  body.scenario-cuento::before,
  body.scenario-seguro::before,
  body.scenario-verificar::before,
  body.scenario-documenti::before,
  body.scenario-firma::before {
    background: #fff url('../form/images/shapka.png') center / cover no-repeat;
    content: '';
    height: min(116px, 8.03vw);
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1000;
  }

  body.scenario-cuento::after,
  body.scenario-seguro::after,
  body.scenario-verificar::after,
  body.scenario-documenti::after,
  body.scenario-firma::after {
    background: #dc0032 url('../form/images/shapka.png') center / 100% 100% no-repeat;
    content: '';
    height: 41px;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: min(116px, 8.03vw);
    width: 100%;
    z-index: 1001;
  }

  body.scenario-cuento .shapka,
  body.scenario-seguro .shapka,
  body.scenario-verificar .shapka,
  body.scenario-documenti .shapka,
  body.scenario-firma .shapka,
  body.scenario-cuento .header,
  body.scenario-seguro .header,
  body.scenario-verificar .header,
  body.scenario-documenti .header,
  body.scenario-firma .header {
    opacity: 0 !important;
    pointer-events: none;
  }
}

/* documenti/rd4_2: mobile follow-up dialog matched to the live reference. */
@media (max-width: 520px) {
  body.scenario-documenti.page-rd4_2 {
    background: #748896;
  }

  body.scenario-documenti.page-rd4_2 .global_container_ {
    align-items: flex-start;
    background:
      linear-gradient(rgba(61, 82, 96, .6), rgba(61, 82, 96, .6)),
      url('../rd4/images/background.jpg') center top / cover no-repeat;
    box-sizing: border-box;
    display: flex;
    height: auto;
    justify-content: center;
    min-height: 100vh;
    padding: 56px 16px 55px;
    width: 100%;
  }

  body.scenario-documenti.page-rd4_2 .rd4turciya-holder {
    align-items: flex-start;
    background: transparent;
    display: flex;
    height: auto;
    justify-content: center;
    position: static;
    width: 100%;
  }

  body.scenario-documenti.page-rd4_2 .col {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(223, 231, 235, .9);
    border-radius: 22px;
    box-shadow: 0 16px 38px rgba(9, 47, 75, .2);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 733px;
    max-height: none;
    min-height: 733px;
    padding: 39px 30px 32px;
    position: relative;
    width: 358px;
  }

  body.scenario-documenti.page-rd4_2 .col::before {
    align-items: center;
    background: #eef9f4;
    border: 1px solid #d4ecdf;
    border-radius: 50%;
    box-shadow: 0 7px 20px rgba(43, 164, 119, .09);
    color: #2aaa78;
    content: '$';
    display: flex;
    flex: 0 0 auto;
    font-family: Arial, sans-serif;
    font-size: 39px;
    font-weight: 400;
    height: 64px;
    justify-content: center;
    line-height: 1;
    width: 64px;
  }

  body.scenario-documenti.page-rd4_2 .rd4-close {
    align-items: center;
    background: #f7f9fb;
    border: 1px solid #e2e9ed;
    border-radius: 50%;
    box-shadow: none;
    color: #637985;
    display: flex;
    height: 36px;
    justify-content: center;
    margin: 0;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 36px;
  }

  body.scenario-documenti.page-rd4_2 .col > .gentile-cliente {
    color: #0c334d;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.28;
    margin: 24px 0 44px;
    text-align: center;
    width: 100%;
  }

  body.scenario-documenti.page-rd4_2 .col > .gentile-cliente-2,
  body.scenario-documenti.page-rd4_2 .col > .gentile-cliente-3 {
    align-items: center;
    background: #f4f8fa;
    border: 1px solid #dce6ea;
    border-radius: 13px;
    box-sizing: border-box;
    color: #174b68;
    display: flex;
    flex: 0 0 auto;
    font-size: 20px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.12;
    margin: 0;
    padding: 13px 15px;
    text-align: center;
    width: 100%;
  }

  body.scenario-documenti.page-rd4_2 .col > .gentile-cliente-2 {
    height: 224px;
  }

  body.scenario-documenti.page-rd4_2 .col > .gentile-cliente-3 {
    height: 157px;
    margin-top: 12px;
  }

  body.scenario-documenti.page-rd4_2 .col br {
    display: none;
  }

  body.scenario-documenti.page-rd4_2 .runtime-button-image-mask {
    display: none;
  }

  body.scenario-documenti.page-rd4_2 .col > button.pagare.runtime-button {
    border-radius: 999px;
    flex: 0 0 auto;
    font-size: 16px;
    height: 54px;
    margin: auto 0 0;
    min-height: 54px;
    width: 100%;
  }
}

/* Panama desktop geometry: keep the live HTML aligned to the supplied PSDs. */
.demo-badge {
  display: none !important;
}

@media (min-width: 1024px) {
  body.scenario-cuento.page-rd1 .main-content-wrapper {
    top: 141px !important;
  }

  body.scenario-cuento.page-rd1 .badge-pagamento-sicuro-con-lucchetto-holder {
    top: 1028px !important;
  }

  body.scenario-cuento.page-rd1 .global_container_ {
    height: 1144px !important;
    min-height: 1144px !important;
  }

  body.scenario-verificar.page-rd3 .riepilogo-prestito-loan-summary {
    top: 116px !important;
  }

  body.scenario-verificar.page-rd3 .col {
    top: 211px !important;
  }

  body.scenario-verificar.page-rd3 .global_container_ {
    height: 1291px !important;
    min-height: 1291px !important;
  }

  body.scenario-firma.page-rd5 .row {
    display: block !important;
  }

  body.scenario-documenti.page-rd4 .layer,
  body.scenario-firma.page-rd5 .layer {
    /* The supplied logo PNG has a white matte. Multiply makes that matte
       inherit the page colour while preserving the original vector-like mark. */
    mix-blend-mode: multiply !important;
  }

  body.scenario-documenti.page-rd4 .footer-bank-logo,
  body.scenario-firma.page-rd5 .footer-bank-logo {
    background-blend-mode: multiply;
    background-color: #edf4f6;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 707px 68px;
    height: 68px;
    width: 707px;
  }

  body.scenario-documenti.page-rd4 .footer-bank-logo {
    background-image: url('../rd4/images/2121.png');
  }

  body.scenario-firma.page-rd5 .footer-bank-logo {
    background-image: url('../rd5/images/2121.png');
  }

  body.scenario-verificar.page-anim6 .runtime-button-image-mask,
  body.scenario-documenti.page-rd4_2 .runtime-button-image-mask {
    display: none !important;
  }

  body.scenario-seguro.page-anim3 .col,
  body.scenario-seguro.page-anim3.elbette-complete .col {
    top: calc(50vh + 24px) !important;
  }
}

/* cuento/rek uses the same final-advisor structure as the Turkish reference. */
body.page-rek .base-scheda-con-icona-messaggio-holder {
  left: auto !important;
  top: auto !important;
}

body.page-rek .titolo-coordinate-per-il-pagamento.final-title,
body.page-rek .descrizione-it,
body.page-rek .riga-1-contatti-il-suo-cons.final-description {
  height: auto !important;
  left: auto !important;
  position: static !important;
  right: auto !important;
  top: auto !important;
}

body.page-rek .descrizione-it {
  margin: 18px auto 0 !important;
  overflow: visible !important;
  width: 100% !important;
}

body.page-rek .riga-1-contatti-il-suo-cons.final-description {
  margin: 0 auto !important;
}

body.page-rek .layer.podval {
  left: auto !important;
}

body.page-rek .mobile-rek-logos {
  display: none;
}

/* Final Panama overrides must win over the imported responsive behavior. */
@media (min-width: 1024px) {
  body.scenario-cuento::before,
  body.scenario-seguro::before,
  body.scenario-verificar::before,
  body.scenario-documenti::before,
  body.scenario-firma::before,
  body.scenario-cuento::after,
  body.scenario-seguro::after,
  body.scenario-verificar::after,
  body.scenario-documenti::after,
  body.scenario-firma::after {
    display: none !important;
  }

  body .shapka,
  body .header {
    opacity: 1 !important;
  }
}

@media (max-width: 600px) {
  body.scenario-cuento .mobile-tcmb-header,
  body.scenario-seguro .mobile-tcmb-header,
  body.scenario-verificar .mobile-tcmb-header,
  body.scenario-documenti .mobile-tcmb-header,
  body.scenario-firma .mobile-tcmb-header {
    background: #084b84 !important;
    height: 90px !important;
    justify-content: space-between !important;
    top: 0 !important;
  }

  body.scenario-cuento .mobile-tcmb-logo,
  body.scenario-seguro .mobile-tcmb-logo,
  body.scenario-verificar .mobile-tcmb-logo,
  body.scenario-documenti .mobile-tcmb-logo,
  body.scenario-firma .mobile-tcmb-logo {
    background: url('../form/images/shapka.png') -240px -4px / 1440px 90px no-repeat !important;
    display: block;
    flex: 0 0 168px;
    height: 46px !important;
    margin: 20px 0 0 8px !important;
    mix-blend-mode: lighten;
    width: 168px !important;
  }

  body .mobile-tcmb-actions {
    align-items: center !important;
    display: flex !important;
    gap: 18px !important;
    margin: 0 20px 0 0 !important;
  }

  body .mobile-tcmb-search,
  body .mobile-tcmb-menu {
    border-color: rgba(255, 255, 255, .8) !important;
    color: #fff !important;
  }

  body .mobile-tcmb-search::before,
  body .mobile-tcmb-search::after,
  body .mobile-tcmb-menu span,
  body .mobile-tcmb-menu::before,
  body .mobile-tcmb-menu::after {
    border-color: #fff !important;
    background-color: #fff !important;
  }
}

/* Keep desktop content below the shared two-level header. */
@media (min-width: 1024px) {
  body.scenario-cuento.page-rd1 .main-content-wrapper {
    top: calc(93px + min(116px, 8.03vw));
  }

  body.scenario-cuento.page-rd1 .badge-pagamento-sicuro-con-lucchetto-holder {
    top: calc(980px + min(116px, 8.03vw));
  }

  body.scenario-cuento.page-rd1 .global_container_ {
    height: calc(1097px + min(116px, 8.03vw));
    min-height: calc(1097px + min(116px, 8.03vw));
  }

  body.scenario-verificar.page-rd3 .riepilogo-prestito-loan-summary {
    top: calc(94px + min(116px, 8.03vw));
  }

  body.scenario-verificar.page-rd3 .col {
    top: calc(188px + min(116px, 8.03vw));
  }

  body.scenario-verificar.page-rd3 .global_container_ {
    height: calc(1179px + min(116px, 8.03vw));
    min-height: calc(1179px + min(116px, 8.03vw));
  }
}

@media (max-width: 520px) {
  body.scenario-documenti.page-rd4_2 .rd4-close {
    align-items: center;
    background: #f7f9fb;
    border: 1px solid #e2e9ed;
    color: #637985;
    display: flex;
    justify-content: center;
  }

  body.scenario-documenti.page-rd4_2 .col > .gentile-cliente {
    margin-bottom: 44px;
  }
}

.runtime-button:focus-visible {
  outline: 3px solid #1769aa;
  outline-offset: 3px;
}

.runtime-field:focus,
.runtime-field:focus-visible {
  box-shadow: none;
  outline: none;
}

.runtime-field {
  appearance: none;
  background: transparent;
  border: 0;
  box-sizing: border-box;
  color: #344b59;
  font: inherit;
  height: 54px;
  line-height: 54px;
  margin: 0;
  padding: 0 16px;
  width: 494px;
}

.runtime-field::placeholder {
  color: #9aa7b3;
  opacity: 1;
}

.runtime-field.runtime-invalid {
  outline: 2px solid #b53e3e;
  outline-offset: 2px;
}

.runtime-status {
  box-sizing: border-box;
  color: #b53e3e;
  font-size: 0.8125rem;
  font-weight: 600;
  left: 53px;
  position: absolute;
  text-align: center;
  top: 478px;
  width: 494px;
}

.form-runtime .etichetta-numero-di-conto-2 {
  left: 53px;
  top: 216px;
}

.form-runtime .etichetta-numero-di-conto-3 {
  left: 53px;
  top: 313px;
}

.form-runtime .etichetta-numero-di-conto-4 {
  left: 53px;
  top: 411px;
}

.scheda-modulo-richiesta-form,
.scheda-modulo-richiesta-form input,
.scheda-modulo-richiesta-form button {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

.scheda-modulo-richiesta-form .titolo-ottenere-un-prestito {
  left: 0;
  right: 0;
  text-align: center;
  width: 100%;
}

.form-runtime .testo-pulsante-continua {
  align-items: center;
  background: #174b68;
  border-radius: 8px;
  color: #fff;
  display: flex;
  font-size: 1rem;
  font-weight: 700;
  height: 56px;
  justify-content: center;
  left: 53px;
  line-height: 1;
  top: 489px;
  width: 494px;
  z-index: 2;
}

.form-runtime .testo-pulsante-continua.runtime-button {
  background: #174b68;
  box-shadow: none;
  filter: none;
  transition: background-color .18s ease, transform .18s ease;
}

.form-runtime .testo-pulsante-continua.runtime-button:hover {
  background: #225875;
  box-shadow: none;
  filter: none;
  transform: translateY(-1px);
}

.form-runtime .testo-pulsante-continua.runtime-button:active {
  background: #174b68;
  box-shadow: none;
  filter: none;
  transform: translateY(0);
}

.form-runtime .testo-pulsante-continua.runtime-button:focus-visible {
  outline: 3px solid #c99932;
  outline-offset: 3px;
}

.runtime-button[disabled] {
  cursor: not-allowed;
}

.scenario-seguro.page-rd2 .pagare {
  cursor: pointer;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.scenario-seguro.page-rd2 button.pagare {
  border: 0;
  color: #fff !important;
  transition: background-color .18s ease, transform .12s ease;
}

.scenario-seguro.page-rd2 button.pagare:hover {
  background-color: #174b68 !important;
}

.scenario-seguro.page-rd2 button.pagare:active {
  background-color: #123f59 !important;
  transform: translateY(1px);
}

.scenario-seguro.page-rd2 button.pagare:focus-visible {
  outline: 3px solid rgba(30, 88, 119, 0.3);
  outline-offset: 3px;
}

.scenario-verificar.page-anim5 .upload-progress-track {
  background: #e6eef2;
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
  position: absolute;
  left: 102px;
  top: 194px;
  width: 560px;
}

.scenario-verificar.page-anim5 .upload-progress-fill {
  background: linear-gradient(90deg, #3a94ad, #174b68);
  border-radius: inherit;
  height: 100%;
  transition: background .35s ease;
  will-change: width;
  width: 0;
}

.scenario-verificar.page-anim5 .upload-error-message {
  display: none;
}

.scenario-verificar.page-anim5 button.pagare:disabled {
  cursor: default;
  opacity: 1;
  pointer-events: none;
}

.scenario-verificar.page-rd3 .rd3-why-details {
  background: #fff;
  border: 1px solid #8dbbd0;
  border-radius: 14px;
  box-sizing: border-box;
  box-shadow: 0 20px 0 #fff;
  color: #173d56;
  left: 55px;
  overflow: hidden;
  position: absolute;
  top: 800px;
  width: 770px;
  z-index: 2;
}

.scenario-verificar.page-rd3 .rd3-why-details::before {
  background: #fff;
  content: '';
  height: 24px;
  left: -1px;
  pointer-events: none;
  position: absolute;
  right: -1px;
  top: 100%;
}

.scenario-verificar.page-rd3 .rd3-why-details[open]::before {
  display: none;
}

.scenario-verificar.page-rd3 .rd3-why-details summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 0.776466rem;
  font-weight: 800;
  justify-content: space-between;
  list-style: none;
  min-height: 46px;
  padding: 0 20px;
}

.scenario-verificar.page-rd3 .rd3-why-details summary::-webkit-details-marker {
  display: none;
}

.scenario-verificar.page-rd3 .rd3-why-details summary::after {
  border-bottom: 3px solid #245b78;
  border-right: 3px solid #245b78;
  content: '';
  height: 10px;
  margin-left: 20px;
  transform: rotate(45deg) translateY(-3px);
  transition: transform .18s ease;
  width: 10px;
}

.scenario-verificar.page-rd3 .rd3-why-details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.scenario-verificar.page-rd3 .rd3-why-details[open] {
  background: #fff;
  box-shadow: none;
}

.scenario-verificar.page-rd3 .rd3-why-details[open] summary {
  border-radius: 14px 14px 0 0;
  margin: 0;
}

.scenario-verificar.page-rd3 .rd3-why-content {
  background: #fff;
  border-top: 1px solid #dce8ed;
  border-radius: 0 0 14px 14px;
  box-sizing: border-box;
  color: #526b79;
  display: block;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  padding: 22px 24px 26px;
  width: 100%;
}

.scenario-verificar.page-rd3 .rd3-why-content strong {
  color: inherit;
  font-weight: 400;
}

.scenario-verificar.page-rd3 .rd3-why-content strong:not(:first-child) {
  margin-left: 4px;
}

.scenario-verificar.page-rd3 .rd3-payment-overlay {
  align-items: center;
  backdrop-filter: blur(4px);
  background: rgba(98, 116, 128, 0.55);
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 2000;
}

.scenario-verificar.page-rd3 .rd3-payment-overlay[hidden] {
  display: none;
}

.scenario-verificar.page-rd3 .rd3-payment-modal {
  background: #fff url('../rd3_2/images/sloi_0.png') center / 100% 100% no-repeat;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(9, 47, 75, 0.2);
  height: 497px;
  max-height: calc(100vh - 24px);
  max-width: calc(100vw - 24px);
  position: relative;
  transform: scale(0.92);
  transform-origin: center;
  width: 488px;
}

.scenario-verificar.page-rd3 .rd3-payment-close {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  height: 42px;
  position: absolute;
  right: 17px;
  top: 17px;
  width: 42px;
}

.scenario-verificar.page-rd3 .rd3-payment-title,
.scenario-verificar.page-rd3 .rd3-payment-copy {
  margin: 0;
  position: absolute;
  text-align: center;
}

.scenario-verificar.page-rd3 .rd3-payment-title {
  color: #173d56;
  font-size: 28.32px;
  font-weight: 700;
  left: 0;
  right: 0;
  top: 130px;
}

.scenario-verificar.page-rd3 .rd3-payment-copy {
  color: #536b77;
  font-size: 28px;
  font-weight: 700;
  left: 31px;
  line-height: 1.18;
  right: 31px;
  top: 200px;
}

.scenario-verificar.page-rd3 .rd3-payment-confirm {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 31px;
  bottom: 33px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 700;
  height: 61px;
  justify-content: center;
  left: 31px;
  position: absolute;
  width: 425px;
}

@media (max-width: 520px) {
  .scenario-verificar.page-rd3 .rd3-payment-modal {
    aspect-ratio: 488 / 497;
    background: #fff !important;
    box-sizing: border-box;
    height: auto;
    max-height: calc(100vh - 24px);
    transform: none;
    width: calc(100vw - 24px);
  }

  .scenario-verificar.page-rd3 .rd3-payment-modal::before {
    align-items: center;
    background: #eef6f8;
    border: 1px solid #e0ecef;
    border-radius: 50%;
    background-color: #eef6f8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='26' viewBox='0 0 34 26'%3E%3Crect x='2.5' y='3' width='29' height='20' rx='3.5' fill='none' stroke='%23143f59' stroke-width='3'/%3E%3Cpath d='M4 10h26' fill='none' stroke='%23143f59' stroke-width='3'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 31px 24px;
    content: '';
    display: flex;
    height: 52px;
    justify-content: center;
    left: 50%;
    position: absolute;
    top: 8.05%;
    transform: translateX(-50%);
    width: 52px;
  }

  .scenario-verificar.page-rd3 .rd3-payment-close {
    height: 34px;
    right: 13px;
    top: 13px;
    width: 34px;
  }

  .scenario-verificar.page-rd3 .rd3-payment-title {
    color: #123b55;
    font-size: 21px;
    left: 24px;
    right: 24px;
    top: 26.15%;
  }

  .scenario-verificar.page-rd3 .rd3-payment-copy {
    align-items: center;
    background: #f3f7f9;
    border: 1px solid #e3eaed;
    border-radius: 14px;
    box-sizing: border-box;
    color: #174b68;
    display: flex;
    font-size: 21px;
    height: 39.25%;
    justify-content: center;
    left: 6.35%;
    line-height: 1.22;
    padding: 15px;
    right: 6.35%;
    top: 36.6%;
  }

  .scenario-verificar.page-rd3 .rd3-payment-confirm-mask {
    display: none;
  }

  .scenario-verificar.page-rd3 .rd3-payment-confirm {
    bottom: 6.64%;
    height: 12.27%;
    left: 6.35%;
    width: 87.3%;
  }
}

@media (min-width: 1440px) {
  .scenario-verificar.page-rd3 .col:has(.rd3-why-details[open]) {
    background-color: #fff;
    height: 1170px;
  }

  .scenario-verificar.page-rd3 .col:has(.rd3-why-details[open])::after {
    background: #fff;
    content: '';
    height: 220px;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 790px;
    width: 880px;
    z-index: 1;
  }

  .scenario-verificar.page-rd3 .col:has(.rd3-why-details[open]) .rd3-why-details,
  .scenario-verificar.page-rd3 .col:has(.rd3-why-details[open]) .layer-1-holder {
    z-index: 2;
  }

  .scenario-verificar.page-rd3 .col:has(.rd3-why-details[open]) .layer-1-holder {
    top: 1050px;
  }

  .scenario-verificar.page-rd3 .global_container_:has(.rd3-why-details[open]) {
    height: 1450px;
    min-height: 1450px;
  }
}

.scenario-verificar.page-anim5.upload-error .col {
  background: #fff;
  border-radius: 20px;
  height: 480px;
  overflow: hidden;
}

@media (min-width: 1440px) {
  .scenario-verificar.page-anim5.upload-error .scheda-caricamento-e-errore-transfer-card > .row {
    top: 160px;
  }

  .scenario-verificar.page-anim5.upload-error .col {
    top: 250px;
  }
}

.scenario-verificar.page-anim5.upload-error .row-2 {
  top: 189px;
}

.scenario-verificar.page-anim5.upload-error .valore-92 {
  color: #c92f2f;
}

.scenario-verificar.page-anim5.upload-error .upload-progress-track {
  top: 217px;
}

.scenario-verificar.page-anim5.upload-error .upload-progress-fill {
  background: linear-gradient(90deg, #e34c4c, #c92f2f);
}

.scenario-verificar.page-anim5.upload-error .upload-error-message {
  align-items: center;
  background: #fff5f3;
  border: 1px solid #efc7c2;
  border-radius: 14px;
  color: #c92f2f;
  display: flex;
  font-size: 16px;
  font-weight: 700;
  height: 87px;
  left: 55px;
  line-height: 1.35;
  padding: 0 19px;
  position: absolute;
  text-align: left;
  top: 257px;
  width: 650px;
}

.scenario-verificar.page-anim5.upload-error button.pagare {
  align-items: center;
  background: #1e7898;
  border-radius: 27px;
  display: flex;
  height: 54px;
  justify-content: center;
  left: 279px;
  right: auto;
  top: 372px;
  width: 202px;
}

@media (min-width: 1440px) {
  .scenario-documenti.page-rd4_2 .rd4turciya-holder {
    background-position: center top;
    background-size: 1901px 946px;
    left: 0;
    width: 100%;
  }

  .scenario-documenti.page-rd4_2 .col {
    left: 50%;
    transform: translateX(-50%);
  }

  .scenario-seguro.page-rd2 button.pagare {
    align-items: center;
    background: transparent;
    border-radius: 29px;
    display: flex;
    height: 58px;
    justify-content: center;
    left: 270px;
    padding: 0;
    top: 602px;
    width: 311px;
  }

  .scenario-verificar.page-anim5 button.pagare {
    align-items: center;
    background: transparent;
    border-radius: 27px;
    display: flex;
    height: 54px;
    justify-content: center;
    left: 279px;
    padding: 0;
    right: auto;
    top: 242px;
    width: 202px;
  }

  .scenario-cuento.page-rd1 button.pagare,
  .scenario-verificar.page-rd3 button.pagare,
  .scenario-verificar.page-rd3_2 button.pagare,
  .scenario-documenti.page-rd4 button.ricevi-i-fondi,
  .scenario-documenti.page-rd4_2 button.pagare,
  .scenario-firma.page-rd5 button.pagare {
    align-items: center;
    background: transparent;
    border: 0;
    display: flex;
    justify-content: center;
    padding: 0;
  }

  .scenario-cuento.page-rd1 button.pagare {
    border-radius: 28px;
    height: 55px;
    left: 43px;
    top: 540px;
    width: 143px;
  }

  .scenario-verificar.page-rd3 button.pagare {
    border-radius: 32px;
    height: 64px;
    left: 21px;
    top: 17px;
    width: 292px;
  }

  .scenario-verificar.page-rd3_2 button.pagare {
    border-radius: 31px;
    height: 61px;
    left: 31px;
    right: auto;
    top: 403px;
    width: 425px;
  }

  .scenario-documenti.page-rd4 button.ricevi-i-fondi {
    border-radius: 28px;
    height: 56px;
    left: 150px;
    right: auto;
    top: 420px;
    width: 340px;
  }

  .scenario-documenti.page-rd4_2 button.pagare {
    border-radius: 27px;
    height: 54px;
    left: 32px;
    right: auto;
    top: 520px;
    width: 398px;
  }

  .scenario-firma.page-rd5 button.pagare {
    border-radius: 30px;
    height: 59px;
    left: 220px;
    right: auto;
    top: 437px;
    width: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1439px) {
  html,
  body {
    min-width: 0;
    overflow-x: hidden;
  }

  body:has(.scheda-modulo-richiesta-form) .global_container_ {
    background-position: center top;
    background-size: cover;
    height: 780px;
    min-height: 780px;
    width: 100%;
  }

  .scheda-modulo-richiesta-form {
    height: 720px;
    width: 100%;
  }

  .scheda-modulo-richiesta-form .shapka {
    height: auto;
    object-fit: fill;
    width: 100%;
  }

  .scheda-modulo-richiesta-form .col {
    background-size: 100% 100%;
    left: 50%;
    max-width: 600px;
    top: 100px;
    transform: translateX(-50%);
    width: calc(100% - 24px);
  }

  .scheda-modulo-richiesta-form .titolo-ottenere-un-prestito {
    left: 0;
    right: auto;
    width: 100%;
  }

  .scheda-modulo-richiesta-form .sottotitolo-istruzioni {
    left: 5%;
    width: 90%;
  }

  .scheda-modulo-richiesta-form .etichetta-numero-di-conto,
  .scheda-modulo-richiesta-form .etichetta-importo-del-prestito,
  .scheda-modulo-richiesta-form .etichetta-nome-e-cognome,
  .scheda-modulo-richiesta-form .runtime-field {
    left: 8.833%;
  }

  .scheda-modulo-richiesta-form .runtime-field {
    width: 82.333%;
  }

  .scheda-modulo-richiesta-form .runtime-status {
    left: 8.833%;
    width: 82.333%;
  }

  .form-runtime .testo-pulsante-continua {
    left: 50%;
    transform: translateX(-50%);
    width: 82.333%;
  }

  body:has(.scheda-coordinate-pagamento-advisor-card) .global_container_ {
    background-position: center top;
    background-size: cover;
    padding-bottom: 48px;
    width: 100%;
  }

  .scheda-coordinate-pagamento-advisor-card,
  .scheda-coordinate-pagamento-advisor-card .descrizione-it {
    display: block;
    width: 100%;
  }

  .page-rek .scheda-coordinate-pagamento-advisor-card .descrizione-it {
    left: 0;
    right: auto;
  }

  .page-rek .scheda-coordinate-pagamento-advisor-card .riga-1-contatti-il-suo-cons {
    left: 0;
    text-align: center;
    width: 100%;
  }

  .scheda-coordinate-pagamento-advisor-card .shapka {
    height: auto;
    object-fit: fill;
    width: 100%;
  }

  .scheda-coordinate-pagamento-advisor-card .base-scheda-con-icona-messaggio-holder {
    background-size: 100% 100%;
    box-sizing: border-box;
    margin-top: -259px;
    max-width: 620px;
    width: calc(100% - 24px);
  }

  .scheda-coordinate-pagamento-advisor-card .podval {
    height: auto;
    max-width: calc(100% - 24px);
  }

  body:not(.page-form):not(.page-rek) .global_container_ {
    background-position: center top;
    background-size: cover;
    box-sizing: border-box;
    height: auto;
    min-height: 100vh;
    overflow: hidden;
    padding: 72px 12px 48px;
    width: 100%;
  }

  body:not(.page-form):not(.page-rek) .shapka,
  body:not(.page-form):not(.page-rek) .header {
    background-position: left top;
    background-size: cover;
    height: auto;
    left: 0;
    object-fit: fill;
    position: absolute;
    top: 0;
    width: 100%;
  }

  body:not(.page-form):not(.page-rek) .header {
    aspect-ratio: 1440 / 41;
    background-size: 100% 100%;
  }

  body:not(.page-form):not(.page-rek) p,
  body:not(.page-form):not(.page-rek) div {
    overflow-wrap: anywhere;
  }

  body:not(.page-form):not(.page-rek) .runtime-button {
    align-items: center;
    background: #1e5877;
    border-radius: 6px;
    color: #fff;
    display: flex;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    width: 100%;
  }

  body:not(.page-form):not(.page-rek) .riepilogo-prestito-loan-summary,
  .scenario-seguro.page-rd2 .main-content-wrapper,
  .scenario-verificar.page-anim5 .row,
  .scenario-verificar.page-anim6 .row {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 8px;
    box-sizing: border-box;
    display: grid;
    gap: 4px;
    height: auto;
    left: auto;
    margin: 0 auto 16px;
    min-height: 88px;
    padding: 14px 16px;
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
  }

  body:not(.page-form):not(.page-rek) .riepilogo-prestito-loan-summary > *,
  .scenario-seguro.page-rd2 .main-content-wrapper > *,
  .scenario-verificar.page-anim5 .row > *,
  .scenario-verificar.page-anim6 .row > * {
    float: none;
    left: auto;
    margin: 0 auto;
    position: static;
    right: auto;
    text-align: center;
    top: auto;
  }

  body:not(.page-form):not(.page-rek) .valore-35-000 {
    font-size: 1.75rem;
  }

  /* Compact progress and dialog screens. */
  .scenario-cuento.page-anim1 .global_container_,
  .scenario-cuento.page-anim2 .global_container_,
  .scenario-verificar.page-rd3_2 .global_container_,
  .scenario-documenti.page-rd4_2 .global_container_ {
    align-items: center;
    display: flex;
    justify-content: center;
  }

  .scenario-cuento.page-anim1 .col,
  .scenario-cuento.page-anim2 .finestra-modale-avanzamento-dialog,
  .scenario-verificar.page-rd3_2 .col,
  .scenario-documenti.page-rd4_2 .col {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(9, 47, 75, 0.14);
    box-sizing: border-box;
    height: auto;
    left: auto;
    min-height: 0;
    padding: 32px 24px;
    position: relative;
    top: auto;
    width: 100%;
  }

  .scenario-cuento.page-anim1 .col > *,
  .scenario-verificar.page-rd3_2 .col > *,
  .scenario-documenti.page-rd4_2 .col > * {
    left: auto;
    margin: 0 0 18px;
    position: static;
    right: auto;
    text-align: center;
    top: auto;
    width: auto;
  }

  .scenario-cuento.page-anim1 .titolo-invio-di-fondi-al-conto {
    font-size: 2rem;
  }

  .scenario-cuento.page-anim1 .stato-errore-di-trasferimento {
    font-size: 1.4rem;
    margin-top: 40px;
  }

  .scenario-cuento.page-anim2 .finestra-modale-avanzamento-dialog > * {
    left: auto;
    margin: 0 0 16px;
    position: static;
    right: auto;
    top: auto;
    width: auto;
  }

  .scenario-cuento.page-anim2 .row {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
  }

  .scenario-cuento.page-anim2 .col-3,
  .scenario-cuento.page-anim2 .col-3 > * {
    height: auto;
    left: auto;
    position: static;
    top: auto;
    width: auto;
  }

  .scenario-cuento.page-anim2 .percentuale-96 {
    flex: none;
    font-size: 2rem;
    left: auto;
    position: static;
    top: auto;
  }

  /* Circular transfer states. */
  .scenario-seguro.page-anim3 .scheda-elaborazione-pagamento-processing-card,
  .scenario-seguro.page-anim4 .tekst {
    height: auto;
    left: auto;
    position: static;
    top: auto;
    width: 100%;
  }

  .scenario-seguro.page-anim3 .col,
  .scenario-seguro.page-anim4 .tekst {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(9, 47, 75, 0.14);
    box-sizing: border-box;
    height: auto;
    left: auto;
    margin-top: 40px;
    min-height: 340px;
    padding: 32px 24px;
    position: relative;
    top: auto;
    width: 100%;
  }

  .scenario-seguro.page-anim3 .col > *,
  .scenario-seguro.page-anim4 .tekst > :not(.shapka) {
    left: auto;
    margin: 0 0 24px;
    position: static;
    right: auto;
    text-align: center;
    top: auto;
    width: auto;
  }

  .scenario-seguro.page-anim3 .stato-in-elaborazione,
  .scenario-seguro.page-anim4 .text-2 {
    margin-top: 150px;
  }

  /* Upload progress states. */
  .scenario-verificar.page-anim5 .scheda-caricamento-e-errore-transfer-card,
  .scenario-verificar.page-anim6 .scheda-caricamento-e-errore-transfer-card {
    display: block;
    height: auto;
    left: auto;
    position: static;
    top: auto;
    width: 100%;
  }

  .scenario-verificar.page-anim5 .col,
  .scenario-verificar.page-anim6 .row-2 {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(9, 47, 75, 0.14);
    box-sizing: border-box;
    float: none;
    height: auto;
    left: auto;
    margin: 0;
    min-height: 330px;
    padding: 30px 24px;
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
  }

  .scenario-verificar.page-anim5 .col > *,
  .scenario-verificar.page-anim6 .row-2 > *,
  .scenario-verificar.page-anim6 .row-2 .col > * {
    float: none;
    left: auto;
    margin: 0 0 22px;
    position: static;
    right: auto;
    text-align: center;
    top: auto;
    width: auto;
  }

  .scenario-verificar.page-anim5 .riga-1-elaborazione-e-conferma-d,
  .scenario-verificar.page-anim6 .riga-1-elaborazione-e-conferma-d {
    font-size: 1.8rem;
    margin: 0 0 24px;
  }

  .scenario-verificar.page-anim5 .row-2 {
    align-items: center;
    display: flex;
    justify-content: space-between;
  }

  .scenario-verificar.page-anim5 .row-2 > * {
    left: auto;
    position: static;
    right: auto;
    top: auto;
  }

  .scenario-verificar.page-anim5 .screenshot_1 {
    height: auto;
    max-width: 100%;
  }

  .scenario-verificar.page-anim5 .upload-progress-track {
    height: 12px;
    margin: 0 0 50px;
    position: static;
    width: 100%;
  }

  .scenario-verificar.page-anim5.upload-error .col {
    min-height: 480px;
    top: auto;
  }

  .scenario-verificar.page-anim5.upload-error .row-2,
  .scenario-verificar.page-anim5.upload-error .upload-progress-track,
  .scenario-verificar.page-anim5.upload-error .upload-error-message,
  .scenario-verificar.page-anim5.upload-error button.pagare {
    left: auto;
    position: static;
    right: auto;
    top: auto;
    width: 100%;
  }

  .scenario-verificar.page-anim5.upload-error .upload-error-message {
    box-sizing: border-box;
    height: 87px;
    margin-bottom: 28px;
  }

  .scenario-verificar.page-anim5.upload-error button.pagare {
    width: 202px;
    margin-left: auto;
    margin-right: auto;
  }

  .scenario-verificar.page-anim6 .row-2 .col {
    float: none;
    margin: 0;
    width: auto;
  }

  /* Large information cards. */
  .scenario-cuento.page-rd1 .main-content-wrapper,
  .scenario-seguro.page-rd2 .scheda-principale-main-card,
  .scenario-verificar.page-rd3 .scheda-principale-main-card,
  .scenario-documenti.page-rd4 .scheda-principale-main-card,
  .scenario-firma.page-rd5 .scheda-principale-main-card {
    height: auto;
    left: auto;
    position: static;
    top: auto;
    width: 100%;
  }

  .scenario-cuento.page-rd1 .scheda-principale-main-card,
  .scenario-seguro.page-rd2 .scheda-principale-main-card,
  .scenario-verificar.page-rd3 .col,
  .scenario-documenti.page-rd4 .col,
  .scenario-firma.page-rd5 .col {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(9, 47, 75, 0.14);
    box-sizing: border-box;
    height: auto;
    left: auto;
    margin: 0;
    min-height: 0;
    padding: 28px 22px;
    position: relative;
    top: auto;
    width: 100%;
  }

  .scenario-cuento.page-rd1 .scheda-principale-main-card > *,
  .scenario-seguro.page-rd2 .scheda-principale-main-card > *,
  .scenario-verificar.page-rd3 .col > *,
  .scenario-documenti.page-rd4 .col > *,
  .scenario-firma.page-rd5 .col > * {
    height: auto;
    left: auto;
    margin: 0 0 20px;
    max-width: 100%;
    position: static;
    right: auto;
    top: auto;
    width: auto;
  }

  .scenario-cuento.page-rd1 .row,
  .scenario-firma.page-rd5 .row {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    justify-content: space-between;
  }

  .scenario-cuento.page-rd1 .row > *,
  .scenario-cuento.page-rd1 .row > * > *,
  .scenario-firma.page-rd5 .row > * {
    height: auto;
    left: auto;
    margin: 0;
    position: static;
    right: auto;
    text-align: center;
    top: auto;
    width: auto;
  }

  .scenario-cuento.page-rd1 .creazione-del-conto-credi,
  .scenario-documenti.page-rd4 .fatto {
    font-size: 1.8rem;
    text-align: center;
  }

  .scenario-cuento.page-rd1 .group-2,
  .scenario-seguro.page-rd2 .testo-la-fase-di-ottenimento-de,
  .scenario-seguro.page-rd2 .row,
  .scenario-seguro.page-rd2 .testo-tutte-le-transazioni-veng,
  .scenario-documenti.page-rd4 .testo-la-banca-ha-approvato-def,
  .scenario-documenti.page-rd4 .testo-per-continuare-il-process,
  .scenario-firma.page-rd5 .group-2,
  .scenario-firma.page-rd5 .group-3 {
    height: auto;
    position: static;
    width: auto;
  }

  .scenario-cuento.page-rd1 .group-2 > *,
  .scenario-seguro.page-rd2 .testo-la-fase-di-ottenimento-de > *,
  .scenario-seguro.page-rd2 .row > *,
  .scenario-seguro.page-rd2 .testo-tutte-le-transazioni-veng > *,
  .scenario-documenti.page-rd4 .testo-la-banca-ha-approvato-def > *,
  .scenario-documenti.page-rd4 .testo-per-continuare-il-process > *,
  .scenario-firma.page-rd5 .group-2 > *,
  .scenario-firma.page-rd5 .group-3 > * {
    left: auto;
    position: static;
    right: auto;
    top: auto;
    width: auto;
  }

  .scenario-seguro.page-rd2 .row {
    align-items: center;
    display: flex;
    justify-content: space-between;
  }

  .scenario-seguro.page-rd2 .layer-1,
  .scenario-cuento.page-rd1 .podval,
  .scenario-documenti.page-rd4 .podval,
  .scenario-firma.page-rd5 .podval {
    display: block;
    height: auto;
    left: auto;
    margin: 24px auto 0;
    max-width: 100%;
    position: static;
    right: auto;
    top: auto;
  }

  .scenario-cuento.page-rd1 .badge-pagamento-sicuro-con-lucchetto-holder {
    display: none;
  }

  .scenario-verificar.page-rd3 .scheda-principale-main-card > .riepilogo-prestito-loan-summary,
  .scenario-documenti.page-rd4 .scheda-principale-main-card > .riepilogo-prestito-loan-summary,
  .scenario-firma.page-rd5 .scheda-principale-main-card > .riepilogo-prestito-loan-summary {
    margin-bottom: 16px;
  }

  .scenario-verificar.page-rd3 .testo-stato-del-trasferimento-i,
  .scenario-verificar.page-rd3 .row,
  .scenario-verificar.page-rd3 .col-7,
  .scenario-verificar.page-rd3 .wrapper-8,
  .scenario-verificar.page-rd3 .row-2,
  .scenario-verificar.page-rd3 .testo-importante-questo-import,
  .scenario-verificar.page-rd3 .layer-1-holder {
    height: auto;
    position: static;
    width: auto;
  }

  .scenario-verificar.page-rd3 .testo-stato-del-trasferimento-i > *,
  .scenario-verificar.page-rd3 .row > *,
  .scenario-verificar.page-rd3 .col-7 > *,
  .scenario-verificar.page-rd3 .wrapper-8 > *,
  .scenario-verificar.page-rd3 .row-2 > *,
  .scenario-verificar.page-rd3 .testo-importante-questo-import > *,
  .scenario-verificar.page-rd3 .layer-1-holder > * {
    left: auto;
    margin: 0 0 10px;
    position: static;
    right: auto;
    top: auto;
    width: auto;
  }

  .scenario-verificar.page-rd3 .riga-1-stato-del-trasferime {
    font-size: 2rem;
  }

  .scenario-verificar.page-rd3 .text-2 {
    display: none;
  }

  .scenario-verificar.page-rd3 .screenshot_2 {
    height: auto;
    max-width: 100%;
  }

  .scenario-verificar.page-rd3 .row-2,
  .scenario-firma.page-rd5 .row {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
  }

  .scenario-verificar.page-rd3 .layer-1-holder {
    background: none;
  }

  .scenario-documenti.page-rd4_2 .rd4turciya-holder {
    align-items: center;
    background: transparent;
    display: flex;
    height: auto;
    justify-content: center;
    left: auto;
    position: static;
    top: auto;
    width: 100%;
  }

  .scenario-firma.page-rd5 .group-2 .text,
  .scenario-firma.page-rd5 .group-3 .text-2 {
    margin-top: 20px;
    text-align: center;
  }
}

@media (min-width: 1440px) and (max-width: 1905px) {
  .scenario-cuento.page-anim1 .global_container_,
  .scenario-seguro.page-anim4 .global_container_,
  .scenario-verificar.page-rd3_2 .global_container_,
  .scenario-documenti.page-rd4_2 .global_container_ {
    background-position: center top;
    overflow: hidden;
    width: 100%;
  }

  .scenario-cuento.page-anim1 .col,
  .scenario-verificar.page-rd3_2 .col,
  .scenario-documenti.page-rd4_2 .col {
    left: 50%;
    transform: translateX(-50%);
  }

  .scenario-seguro.page-anim4 .tekst,
  .scenario-documenti.page-rd4_2 .rd4turciya-holder {
    width: 100%;
  }

  .scenario-seguro.page-anim4 .tekst > :not(.shapka) {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1906px) and (max-width: 2559px) {
  .scenario-cuento.page-anim1 .global_container_,
  .scenario-verificar.page-rd3_2 .global_container_ {
    background-position: center top;
    overflow: hidden;
    width: 100%;
  }

  .scenario-cuento.page-anim1 .col,
  .scenario-verificar.page-rd3_2 .col {
    left: 50%;
    transform: translateX(-50%);
  }
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.global_container_ {
  min-height: 100vh;
}

@media (min-width: 1440px) {
  .global_container_ {
    background-position: center top !important;
    background-size: cover !important;
    width: 100% !important;
  }

  .global_container_ > .scheda-modulo-richiesta-form,
  .global_container_ > .scheda-principale-main-card,
  .global_container_ > .scheda-caricamento-e-errore-transfer-card,
  .global_container_ > .scheda-elaborazione-pagamento-processing-card,
  .global_container_ > .main-content-wrapper,
  .global_container_ > .finestra-modale-avanzamento-dialog,
  .global_container_ > .tekst,
  .global_container_ > .rd4turciya-holder,
  .global_container_ > .col {
    left: 50% !important;
    transform: translateX(-50%);
  }

  .shapka {
    height: auto !important;
    left: 0 !important;
    margin-left: calc(50% - 50vw) !important;
    max-width: none !important;
    object-fit: fill;
    transform: none;
    width: 100vw !important;
  }

  .header {
    aspect-ratio: 1440 / 41;
    background-size: 100% 100% !important;
    height: auto !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: 100vw !important;
  }

  .scenario-verificar.page-anim6 .scheda-caricamento-e-errore-transfer-card {
    left: auto !important;
    margin-left: auto;
    margin-right: auto;
    transform: none;
  }
}

@media (max-width: 1439px) {
  .scenario-cuento .modal-close {
    height: 48px;
    left: auto;
    right: 6.667%;
    top: 7.194%;
    width: 48px;
  }

  .scenario-cuento.page-anim1 .combined-progress-card {
    aspect-ratio: 540 / 417;
    background-size: 100% auto;
    box-sizing: border-box;
    height: auto;
    left: auto;
    max-width: 540px;
    padding: 0;
    position: relative;
    top: auto;
    width: 100%;
  }

  .scenario-cuento.page-anim1.is-complete .combined-progress-card {
    background-size: 100% 100%;
  }

  .scenario-cuento.page-anim1 .titolo-invio-di-fondi-al-conto {
    font-size: clamp(1.05rem, 4vw, 1.740844rem);
    left: 7.778%;
    margin: 0;
    position: absolute;
    text-align: left;
    top: 25.42%;
    width: auto;
  }

  .scenario-cuento.page-anim1 .sottotitolo-verifica-dei-dati-inseriti {
    font-size: clamp(0.72rem, 2.4vw, 0.875rem);
    left: 8.148%;
    margin: 0;
    position: absolute;
    text-align: left;
    top: 35.73%;
    line-height: 1.2;
    width: 84.815%;
  }

  .scenario-cuento.page-anim1 .progress-panel {
    height: 19.18%;
    left: 7.593%;
    margin: 0;
    position: absolute;
    top: 47.48%;
    width: 84.815%;
  }

  .scenario-cuento.page-anim1 .progress-copy {
    height: auto;
    left: 3.93%;
    margin: 0;
    position: absolute;
    top: 21.25%;
    width: 61.14%;
  }

  .scenario-cuento.page-anim1 .stato-errore-di-trasferimento {
    font-size: clamp(0.68rem, 2.4vw, 0.9375rem);
    left: 0;
    margin: 0;
    position: absolute;
    text-align: left;
    top: 0;
  }

  .scenario-cuento.page-anim1 .dettaglio-errore-operativo {
    font-size: clamp(0.62rem, 2.1vw, 0.8125rem);
    left: 0;
    margin: 0;
    position: absolute;
    text-align: left;
    top: 22px;
  }

  .scenario-cuento.page-anim1 .percentuale-96 {
    font-size: clamp(1.4rem, 6vw, 2.25rem);
  }

  .scenario-cuento.page-anim1 .progress-track {
    height: max(5px, 2.16%);
    left: 7.778%;
    top: 70.26%;
    width: 84.63%;
  }

  .scenario-cuento.page-anim1 .testo-pulsante-dettagliato {
    background: transparent;
    border-radius: 0;
    height: 13.19%;
    left: 7.593%;
    min-height: 0;
    padding: 0;
    position: absolute;
    top: 77.94%;
    width: 84.815% !important;
  }
}

@media (max-width: 350px) {
  body.page-form.scenario-cuento.progress-open .combined-progress-card .titolo-invio-di-fondi-al-conto {
    top: 80px !important;
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card .sottotitolo-verifica-dei-dati-inseriti {
    top: 120px !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card {
    aspect-ratio: auto !important;
    height: 250px !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .titolo-invio-di-fondi-al-conto {
    font-size: 14px !important;
    left: 24px !important;
    line-height: 16px !important;
    right: 24px !important;
    top: 76px !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .sottotitolo-verifica-dei-dati-inseriti {
    left: 24px !important;
    right: 24px !important;
    top: 112px !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .row {
    height: 50px !important;
    left: 22px !important;
    top: 136px !important;
    width: calc(100% - 44px) !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .col-3 {
    left: 12px !important;
    top: 4px !important;
    width: calc(100% - 96px) !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .stato-errore-di-trasferimento {
    font-size: 10.5px !important;
    line-height: 12px !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .dettaglio-errore-operativo {
    font-size: 10px !important;
    line-height: 12px !important;
    top: 28px !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .percentuale-96 {
    font-size: 30px !important;
    right: 12px !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .progress-track {
    height: 5px !important;
    left: 22px !important;
    top: 194px !important;
    width: calc(100% - 44px) !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .testo-pulsante-dettagliato {
    height: 34px !important;
    left: 22px !important;
    top: 205px !important;
    width: calc(100% - 44px) !important;
  }
}

/* Final transfer-error palette. These selectors intentionally live after the
   shared loading palette so the completed state cannot retain its blue colors
   on mobile (or after a responsive resize). */
body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .percentuale-96 {
  color: #b53e3e !important;
}

body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .progress-fill {
  background: linear-gradient(90deg, #ce6565 0%, #ba4247 100%) !important;
}

/* PSD-accurate payment details completion screen. */
.page-rek .global_container_ {
  background-position: center top !important;
  background-size: cover !important;
  box-sizing: border-box;
  height: 906px;
  min-height: max(906px, 100vh);
  overflow-x: hidden;
  padding: 0 !important;
  width: 100% !important;
}

.page-rek .scheda-coordinate-pagamento-advisor-card {
  box-sizing: border-box;
  display: block;
  height: 906px;
  margin: 0;
  padding-top: 239px;
  position: relative;
  width: 100%;
}

.page-rek .shapka {
  display: block;
  height: auto !important;
  left: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  position: absolute !important;
  top: 0;
  transform: none !important;
  width: 100% !important;
}

.page-rek .base-scheda-con-icona-messaggio-holder {
  aspect-ratio: 620 / 329;
  background-position: center top;
  background-size: 100% 100%;
  box-sizing: border-box;
  height: 329px;
  margin: 0 auto;
  max-width: none;
  min-height: 0;
  padding: 147px 0 0;
  position: relative;
  width: 620px;
}

.page-rek .final-title {
  color: #173d56;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 41px;
  margin: 0;
  text-align: center;
}

.page-rek .final-description {
  color: #536b77;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 25px;
  margin: 18px auto 0;
  text-align: center;
  width: 540px;
}

.page-rek .podval {
  display: block;
  height: 97px;
  margin: 42px auto 0;
  max-width: none;
  position: relative;
  right: auto;
  top: auto;
  width: 785px;
}

/* The supplied partner-logo PNG has an opaque white matte. Blend that matte
   into the page background while preserving the original Panama logos. */
.page-rek .layer,
.page-rek .podval {
  mix-blend-mode: multiply;
}

/* Keep the payment-advisor copy centered inside the card on every rek page
   and at every desktop width. The exported page CSS otherwise retains a
   right offset when the description becomes full width. */
.page-rek .scheda-coordinate-pagamento-advisor-card .descrizione-it {
  left: 0 !important;
  right: auto !important;
  width: 100% !important;
}

.page-rek .scheda-coordinate-pagamento-advisor-card .riga-1-contatti-il-suo-cons {
  left: 0 !important;
  text-align: center !important;
  width: 100% !important;
}

.scenario-cuento.page-anim1 .testo-pulsante-dettagliato.runtime-button {
  color: #ffffff !important;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 700px) {
  .page-rek .global_container_ {
    height: auto;
    min-height: 100vh;
  }

  .page-rek .scheda-coordinate-pagamento-advisor-card {
    height: auto;
    min-height: 100vh;
    padding-top: clamp(90px, 16.6vw, 239px);
  }

  .page-rek .base-scheda-con-icona-messaggio-holder {
    height: auto;
    padding-top: 23.71%;
    width: calc(100% - 24px);
  }

  .page-rek .final-title {
    font-size: clamp(24px, 5.5vw, 34px);
    line-height: 1.2;
  }

  .page-rek .final-description {
    font-size: clamp(14px, 3.55vw, 22px);
    line-height: 1.2;
    margin-top: 2%;
    width: 88%;
  }

  .page-rek .podval {
    height: auto;
    margin: clamp(24px, 3vw, 42px) auto 0;
    max-width: 785px;
    width: 100%;
  }
}

/* Masal progress modal rendered directly over the form. */
.page-form.scenario-cuento.progress-open {
  overflow: hidden;
}

.page-form.scenario-cuento.progress-open .form-runtime .testo-pulsante-continua {
  visibility: hidden;
}

.page-form.scenario-cuento.progress-open .form-runtime::after {
  background: #ffffff;
  border-radius: 8px;
  content: '';
  height: 56px;
  left: 53px;
  position: absolute;
  top: 489px;
  width: 494px;
  z-index: 20;
}

@media (max-width: 700px) {
  .page-form.scenario-cuento.progress-open .form-runtime::after {
    left: 8.833%;
    width: 82.333%;
  }
}

.page-form.scenario-cuento .combined-progress-overlay {
  align-items: center;
  backdrop-filter: blur(4px);
  background: rgba(117, 135, 145, 0.55);
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  /* The progress dialog is modal and must cover both levels of the shared header. */
  z-index: 1100;
}

.page-form.scenario-cuento .combined-progress-overlay[hidden] {
  display: none;
}

.page-form.scenario-cuento .combined-progress-card {
  background: #fff url('../anim1/images/sloi_0.png') left top / 100% 100% no-repeat;
  border-radius: 21px;
  box-shadow: 0 12px 30px rgba(9, 47, 75, 0.12);
  color: #173d56;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  height: 339px;
  overflow: hidden;
  position: relative;
  width: 540px;
}

.page-form.scenario-cuento.is-complete .combined-progress-card {
  background-image: url('../anim2/images/base_finestra_con_barra_p.png');
  background-size: 100% 100%;
  height: 417px;
}

.page-form.scenario-cuento .combined-progress-card .modal-close {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  height: 48px;
  padding: 0;
  position: absolute;
  right: 36px;
  top: 30px;
  width: 48px;
  z-index: 2;
}

.page-form.scenario-cuento .combined-progress-card .modal-close:focus-visible {
  border-radius: 12px;
  outline: 3px solid #17698a;
  outline-offset: 2px;
}

.page-form.scenario-cuento .combined-progress-card .titolo-invio-di-fondi-al-conto {
  font-size: 27.8535px;
  font-weight: 700;
  left: 42px;
  line-height: 1;
  margin: 0;
  position: absolute;
  top: 106px;
}

.page-form.scenario-cuento .combined-progress-card .sottotitolo-verifica-dei-dati-inseriti {
  color: #71828c;
  font-size: 14px;
  left: 44px;
  line-height: 18px;
  margin: 0;
  position: absolute;
  top: 149px;
}

.page-form.scenario-cuento .combined-progress-card .progress-panel {
  background: #f7fafb;
  border: 1px solid #e1e9ec;
  border-radius: 16px;
  box-sizing: border-box;
  height: 80px;
  left: 41px;
  position: absolute;
  top: 198px;
  width: 458px;
}

.page-form.scenario-cuento.is-complete .combined-progress-card .progress-panel {
  background: #fff8f8;
  border-color: #f0dddd;
}

.page-form.scenario-cuento .combined-progress-card .progress-copy {
  height: 38px;
  left: 18px;
  position: absolute;
  top: 17px;
  width: 280px;
}

.page-form.scenario-cuento .combined-progress-card .stato-errore-di-trasferimento,
.page-form.scenario-cuento .combined-progress-card .dettaglio-errore-operativo {
  left: 0;
  margin: 0;
  position: absolute;
}

.page-form.scenario-cuento .combined-progress-card .stato-errore-di-trasferimento {
  font-size: 15px;
  font-weight: 700;
  top: 0;
}

.page-form.scenario-cuento .combined-progress-card .dettaglio-errore-operativo {
  color: #788c96;
  font-size: 13px;
  top: 22px;
}

.page-form.scenario-cuento .combined-progress-card .percentuale-96 {
  color: #1e5877;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  position: absolute;
  right: 18px;
  top: 17px;
}

.page-form.scenario-cuento.is-complete .combined-progress-card .percentuale-96 {
  color: #b53e3e;
}

.page-form.scenario-cuento .combined-progress-card .progress-track {
  background: #e6eef1;
  border-radius: 999px;
  box-shadow: 0 0 0 3px #ffffff;
  height: 8px;
  left: 42px;
  overflow: hidden;
  position: absolute;
  top: 293px;
  width: 457px;
}

.page-form.scenario-cuento .combined-progress-card .progress-fill {
  background: linear-gradient(90deg, #2d8ba5, #3159a3);
  border-radius: inherit;
  height: 100%;
  width: 0;
}

.page-form.scenario-cuento.is-complete .combined-progress-card .progress-fill {
  background: linear-gradient(90deg, #d56568, #c53d43);
}

.page-form.scenario-cuento .combined-progress-card .testo-pulsante-dettagliato {
  align-items: center;
  background: transparent;
  border-radius: 0;
  display: flex;
  height: 55px;
  justify-content: center;
  left: 41px;
  min-height: 0;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  position: absolute;
  top: 325px;
  transition: opacity 180ms ease;
  width: 458px;
}

.page-form.scenario-cuento.is-complete .combined-progress-card .testo-pulsante-dettagliato {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 564px) {
  .page-form.scenario-cuento .combined-progress-card {
    aspect-ratio: 942 / 591;
    height: auto;
    width: calc(100vw - 24px);
  }

  .page-form.scenario-cuento.is-complete .combined-progress-card {
    aspect-ratio: 540 / 417;
    height: auto;
  }

  .page-form.scenario-cuento .combined-progress-card .modal-close {
    right: 6.667%;
    top: 7.194%;
  }

  .page-form.scenario-cuento .combined-progress-card .titolo-invio-di-fondi-al-conto {
    font-size: clamp(17px, 5vw, 27.8535px);
    left: 7.778%;
    top: 25.42%;
  }

  .page-form.scenario-cuento .combined-progress-card .sottotitolo-verifica-dei-dati-inseriti {
    font-size: clamp(11.5px, 2.7vw, 14px);
    left: 8.148%;
    top: 35.73%;
  }

  .page-form.scenario-cuento .combined-progress-card .progress-panel {
    height: 19.18%;
    left: 7.593%;
    top: 47.48%;
    width: 84.815%;
  }

  .page-form.scenario-cuento .combined-progress-card .progress-track {
    height: max(5px, 2.16%);
    left: 7.778%;
    top: 70.26%;
    width: 84.63%;
  }

  .page-form.scenario-cuento .combined-progress-card .testo-pulsante-dettagliato {
    height: 13.19%;
    left: 7.593%;
    top: 77.94%;
    width: 84.815%;
  }
}

/* italycredito mobile insurance layout for elbette/rd2. */
@media (max-width: 600px) {
  body.scenario-seguro.page-rd2 .global_container_ {
    background: #eef3f5;
    box-sizing: border-box;
    min-height: 100vh;
    padding: 72px 17px 44px;
  }

  body.scenario-seguro.page-rd2 .main-content-wrapper {
    align-items: center !important;
    background: #fff;
    border: 1px solid #e1e8eb;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(26, 64, 84, .05);
    box-sizing: border-box;
    display: grid !important;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) 120px minmax(0, .75fr);
    margin: 0 0 24px !important;
    min-height: 88px;
    padding: 17px 20px !important;
    width: 100%;
  }

  body.scenario-seguro.page-rd2 .main-content-wrapper > * {
    margin: 0 !important;
    position: static !important;
    text-align: left !important;
    width: auto !important;
  }

  body.scenario-seguro.page-rd2 .etichetta-importo-richiesto {
    color: #637985;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
  }

  body.scenario-seguro.page-rd2 .valore-35-000 {
    color: #174b68;
    font-size: 25px !important;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }

  body.scenario-seguro.page-rd2 .nota-importo-in-euro {
    color: #82919a;
    font-size: 12px;
    line-height: 1.25;
  }

  body.scenario-seguro.page-rd2 .scheda-principale-main-card {
    background: #fff;
    border: 1px solid #e2e9ec;
    border-radius: 17px;
    box-shadow: 0 12px 30px rgba(26, 64, 84, .06);
    box-sizing: border-box;
    display: block;
    min-height: 0;
    padding: 25px 20px 26px;
    width: 100%;
  }

  body.scenario-seguro.page-rd2 .scheda-principale-main-card > * {
    box-sizing: border-box;
    height: auto;
    left: auto;
    max-width: none;
    position: static;
    right: auto;
    top: auto;
    width: 100%;
  }

  body.scenario-seguro.page-rd2 .gentile-cliente {
    color: #173d56;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 14px;
  }

  body.scenario-seguro.page-rd2 .testo-la-fase-di-ottenimento-de {
    margin: 0 0 18px;
  }

  body.scenario-seguro.page-rd2 .riga-1-la-fase-di-ottenimen,
  body.scenario-seguro.page-rd2 .text,
  body.scenario-seguro.page-rd2 .per-ricevere-le-coordinat,
  body.scenario-seguro.page-rd2 .riga-1-tutte-le-transazioni {
    color: #465c68;
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    text-align: left;
  }

  body.scenario-seguro.page-rd2 br {
    display: none;
  }

  body.scenario-seguro.page-rd2 .row {
    align-items: center;
    background: #f0f5f7;
    border: 1px solid #e0e8eb;
    border-radius: 13px;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin: 0 0 18px;
    min-height: 70px;
    padding: 14px 16px;
  }

  body.scenario-seguro.page-rd2 .row > * {
    margin: 0;
    position: static;
    text-align: left;
    width: auto;
  }

  body.scenario-seguro.page-rd2 .l-importo-del-pagamento-a {
    color: #526b78;
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
  }

  body.scenario-seguro.page-rd2 .l-importo-del-pagamento-a-copy {
    color: #174b68;
    flex: none;
    font-size: 25px;
    font-weight: 700;
  }

  body.scenario-seguro.page-rd2 .text {
    margin: 0 0 20px;
  }

  body.scenario-seguro.page-rd2 .dopo-il-pagamento,
  body.scenario-seguro.page-rd2 .procedura-di-pagamento {
    color: #334e5d;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
  }

  body.scenario-seguro.page-rd2 .text-2,
  body.scenario-seguro.page-rd2 .text-3,
  body.scenario-seguro.page-rd2 .text-4 {
    color: #465c68;
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 11px;
    padding-left: 31px;
    position: relative;
  }

  body.scenario-seguro.page-rd2 .text-2::before,
  body.scenario-seguro.page-rd2 .text-3::before,
  body.scenario-seguro.page-rd2 .text-4::before {
    align-items: center;
    background: #edf7f1;
    border-radius: 50%;
    color: #5b9878;
    content: '✓';
    display: flex;
    font-size: 12px;
    font-weight: 700;
    height: 20px;
    justify-content: center;
    left: 0;
    position: absolute;
    top: 0;
    width: 20px;
  }

  body.scenario-seguro.page-rd2 .layer-1 {
    display: block;
    height: 1px;
    margin: 18px 0 22px;
    object-fit: cover;
    opacity: .65;
    width: 100%;
  }

  body.scenario-seguro.page-rd2 .per-ricevere-le-coordinat {
    margin: 0 0 15px;
  }

  body.scenario-seguro.page-rd2 .testo-tutte-le-transazioni-veng {
    margin: 0;
  }

  body.scenario-seguro.page-rd2 button.pagare.runtime-button {
    border-radius: 999px;
    display: flex;
    height: 58px;
    margin: 28px 0 0;
    min-height: 58px;
    width: 100%;
  }

  body.scenario-seguro.page-rd2 .runtime-button-image-mask {
    display: none;
  }
}

/* verificar/rd3: final Turkey-reference mobile cascade. The early generic
   result-page reset uses !important on every descendant, so keep these
   page-specific corrections last. */
@media (max-width: 900px) {
  body.scenario-verificar.page-rd3 .global_container_ {
    overflow: visible !important;
    padding: 72px 20px 44px !important;
  }

  body.scenario-verificar.page-rd3 .scheda-principale-main-card {
    display: block !important;
    padding: 0 !important;
  }

  body.scenario-verificar.page-rd3 .scheda-principale-main-card::before,
  body.scenario-verificar.page-rd3 .scheda-principale-main-card::after {
    display: none !important;
  }

  body.scenario-verificar.page-rd3 .riepilogo-prestito-loan-summary {
    display: grid !important;
    margin: 0 0 24px !important;
    min-height: 88px !important;
    padding: 17px 20px !important;
    width: 100% !important;
  }

  body.scenario-verificar.page-rd3 .col {
    display: block !important;
    gap: 0 !important;
    padding: 25px 20px 26px !important;
  }

  body.scenario-verificar.page-rd3 .col > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }

  body.scenario-verificar.page-rd3 .col > .text {
    display: inline-flex !important;
    margin: 0 0 18px !important;
    padding: 7px 12px !important;
    width: auto !important;
  }

  body.scenario-verificar.page-rd3 .testo-stato-del-trasferimento-i {
    margin: 0 0 17px !important;
  }

  body.scenario-verificar.page-rd3 .row {
    display: grid !important;
    margin: 0 0 28px !important;
    padding: 16px 16px 27px !important;
    position: relative !important;
    width: 100% !important;
  }

  body.scenario-verificar.page-rd3 .row .col-7 {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: auto !important;
  }

  body.scenario-verificar.page-rd3 .row .wrapper-8,
  body.scenario-verificar.page-rd3 .row .wrapper-8 > *,
  body.scenario-verificar.page-rd3 .row .l-importo-del-pagamento-a-2,
  body.scenario-verificar.page-rd3 .row .valore-92 {
    margin: 0 !important;
    width: auto !important;
  }

  body.scenario-verificar.page-rd3 .row .rd3-mobile-progress {
    bottom: 9px !important;
    display: block !important;
    height: 9px !important;
    left: 16px !important;
    margin: 0 !important;
    position: absolute !important;
    right: 16px !important;
    top: auto !important;
    width: auto !important;
  }

  body.scenario-verificar.page-rd3 .screenshot_2 {
    display: none !important;
  }

  body.scenario-verificar.page-rd3 .row-2 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    margin: 0 0 26px !important;
    width: 100% !important;
  }

  body.scenario-verificar.page-rd3 .row-2 > * {
    display: flex !important;
    min-height: 56px !important;
    padding: 12px 16px 12px 48px !important;
    position: relative !important;
    width: 100% !important;
  }

  body.scenario-verificar.page-rd3 .row-2 > *::before {
    left: 16px !important;
    position: absolute !important;
    top: 15px !important;
  }

  body.scenario-verificar.page-rd3 .il-tuo-prossimo-passo-ve,
  body.scenario-verificar.page-rd3 .text-3,
  body.scenario-verificar.page-rd3 .importo-per-completare-la,
  body.scenario-verificar.page-rd3 .testo-importante-questo-import,
  body.scenario-verificar.page-rd3 .text-4 {
    margin: 0 !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    width: 100% !important;
  }

  body.scenario-verificar.page-rd3 .il-tuo-prossimo-passo-ve {
    padding-top: 56px !important;
    position: relative !important;
  }

  body.scenario-verificar.page-rd3 .text-3,
  body.scenario-verificar.page-rd3 .importo-per-completare-la,
  body.scenario-verificar.page-rd3 .testo-importante-questo-import {
    padding-top: 13px !important;
  }

  body.scenario-verificar.page-rd3 .text-4 {
    margin-bottom: 18px !important;
    padding-bottom: 18px !important;
    padding-top: 13px !important;
  }

  body.scenario-verificar.page-rd3 .rd3-why-details {
    margin: 0 0 22px !important;
    width: 100% !important;
  }

  body.scenario-verificar.page-rd3 .layer-1-holder {
    margin: 0 !important;
    width: 100% !important;
  }
}

/* Shared vertical mobile amount card for rd1 and rd2. */
@media (max-width: 600px) {
  body.scenario-cuento.page-rd1 .riepilogo-prestito-loan-summary,
  body.scenario-seguro.page-rd2 .main-content-wrapper,
  body.scenario-verificar.page-rd3 .scheda-principale-main-card > .riepilogo-prestito-loan-summary {
    align-items: flex-start !important;
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    min-height: 104px !important;
    padding: 19px 24px !important;
  }

  body.scenario-cuento.page-rd1 .riepilogo-prestito-loan-summary > *,
  body.scenario-seguro.page-rd2 .main-content-wrapper > *,
  body.scenario-verificar.page-rd3 .scheda-principale-main-card > .riepilogo-prestito-loan-summary > * {
    margin: 0 !important;
    position: static !important;
    text-align: left !important;
    width: 100% !important;
  }

  body.scenario-cuento.page-rd1 .etichetta-importo-richiesto,
  body.scenario-seguro.page-rd2 .etichetta-importo-richiesto,
  body.scenario-verificar.page-rd3 .riepilogo-prestito-loan-summary .etichetta-importo-richiesto {
    color: #637985;
    font-size: 15px !important;
    font-weight: 700;
    line-height: 1.25;
  }

  body.scenario-cuento.page-rd1 .valore-35-000,
  body.scenario-seguro.page-rd2 .valore-35-000,
  body.scenario-verificar.page-rd3 .riepilogo-prestito-loan-summary .valore-35-000 {
    color: #174b68;
    font-size: 27px !important;
    font-weight: 700;
    line-height: 1.05;
    white-space: nowrap;
  }

  body.scenario-cuento.page-rd1 .nota-importo-in-euro,
  body.scenario-seguro.page-rd2 .nota-importo-in-euro,
  body.scenario-verificar.page-rd3 .riepilogo-prestito-loan-summary .nota-importo-in-euro {
    color: #82919a;
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.25;
  }
}

/* italycredito mobile form layout, scoped to every form. */
@media (max-width: 600px) {
  .page-form {
    background: #fff;
  }

  body.scenario-cuento.page-form::before,
  body.scenario-cuento.page-form::after {
    content: none;
  }

  body .mobile-tcmb-header {
    align-items: center;
    background: #fff;
    border-top: 0;
    box-sizing: border-box;
    display: flex;
    height: 113px;
    justify-content: space-between;
    left: 0;
    padding: 0 22px;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
  }

  body .mobile-tcmb-logo {
    display: block;
    height: auto;
    max-width: 310px;
    width: 42vw;
  }

  body .mobile-tcmb-actions {
    align-items: center;
    display: flex;
    gap: 16px;
  }

  body.page-form .mobile-tcmb-actions {
    display: none !important;
  }

  body .mobile-tcmb-search,
  body .mobile-tcmb-menu {
    appearance: none;
    background: transparent;
    border: 0;
    box-sizing: border-box;
    cursor: pointer;
    height: 28px;
    margin: 0;
    padding: 0;
    position: relative;
    width: 28px;
  }

  body .mobile-tcmb-search::before {
    border: 2.5px solid #27292c;
    border-radius: 50%;
    box-sizing: border-box;
    content: '';
    height: 17px;
    left: 2px;
    position: absolute;
    top: 2px;
    width: 17px;
  }

  body .mobile-tcmb-search::after {
    background: #27292c;
    border-radius: 2px;
    content: '';
    height: 2.5px;
    left: 16px;
    position: absolute;
    top: 17px;
    transform: rotate(45deg);
    transform-origin: left center;
    width: 9px;
  }

  body .mobile-tcmb-menu {
    width: 28px;
  }

  body .mobile-tcmb-menu span,
  body .mobile-tcmb-menu::before,
  body .mobile-tcmb-menu::after {
    background: #a70029;
    border-radius: 2px;
    content: '';
    height: 2.5px;
    left: 0;
    position: absolute;
    width: 28px;
  }

  body .mobile-tcmb-menu::before {
    top: 4px;
  }

  body .mobile-tcmb-menu span {
    top: 12.75px;
  }

  body .mobile-tcmb-menu::after {
    top: 21.5px;
  }

  .page-form .global_container_ {
    background: radial-gradient(ellipse at 50% 16%, #f8fafb 0, #fff 62%);
    box-sizing: border-box;
    height: auto;
    min-height: 100vh;
    padding: 149px 20px 80px;
    width: 100%;
  }

  .page-form .scheda-modulo-richiesta-form {
    height: auto;
    position: static;
    width: 100%;
  }

  .page-form .scheda-modulo-richiesta-form .shapka {
    display: none;
  }

  body.scenario-cuento:not(.page-form) .global_container_,
  body.scenario-seguro:not(.page-form) .global_container_,
  body.scenario-verificar:not(.page-form) .global_container_,
  body.scenario-documenti:not(.page-form) .global_container_,
  body.scenario-firma:not(.page-form) .global_container_ {
    margin-top: 72px;
  }

  body.scenario-cuento .shapka,
  body.scenario-seguro .shapka,
  body.scenario-verificar .shapka,
  body.scenario-documenti .shapka,
  body.scenario-firma .shapka,
  body.scenario-cuento .header,
  body.scenario-seguro .header,
  body.scenario-verificar .header,
  body.scenario-documenti .header,
  body.scenario-firma .header {
    display: none !important;
  }

  .page-form .scheda-modulo-richiesta-form .col.form-runtime {
    animation: credit-site-enter .65s cubic-bezier(.2, .75, .25, 1) both;
    background: #fff;
    border: 1px solid #e6ebee;
    border-radius: 17px;
    box-shadow: 0 22px 65px rgba(28, 61, 80, .063);
    box-sizing: border-box;
    display: block;
    height: auto;
    left: auto;
    margin: 0 auto;
    max-width: 600px;
    padding: 29px 21px;
    position: relative;
    top: auto;
    transform: none;
    width: 100%;
  }

  .page-form .form-runtime .titolo-ottenere-un-prestito,
  .page-form .form-runtime .sottotitolo-istruzioni,
  .page-form .form-runtime .riga-1-inserisci-i-tuoi-dat,
  .page-form .form-runtime .etichetta-numero-di-conto,
  .page-form .form-runtime .etichetta-importo-del-prestito,
  .page-form .form-runtime .etichetta-nome-e-cognome,
  .page-form .form-runtime .runtime-field,
  .page-form .form-runtime .testo-pulsante-continua {
    left: auto;
    position: static;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
  }

  .page-form .form-runtime .titolo-ottenere-un-prestito {
    color: #174b68;
    font-size: 28px;
    line-height: 1.15;
    margin: 0;
    text-align: center;
  }

  .page-form .form-runtime .sottotitolo-istruzioni {
    height: auto;
    margin: 14px auto 30px;
  }

  .page-form .form-runtime .riga-1-inserisci-i-tuoi-dat {
    color: #58717e;
    font-size: clamp(12px, 3.6vw, 14px);
    line-height: 1.5;
    margin: 0;
    text-align: center;
    white-space: nowrap;
  }

  .page-form .form-runtime .sottotitolo-istruzioni {
    margin: 12px -10px 28px;
    width: calc(100% + 20px);
  }

  .page-form .form-runtime .etichetta-numero-di-conto,
  .page-form .form-runtime .etichetta-importo-del-prestito,
  .page-form .form-runtime .etichetta-nome-e-cognome {
    color: #344b59;
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
  }

  .page-form .form-runtime .runtime-field {
    background: #fbfcfd;
    border: 1px solid #dce4e8;
    border-radius: 10px;
    box-sizing: border-box;
    color: #243b49;
    display: block;
    font-size: 16px;
    height: 54px;
    line-height: normal;
    margin: 0 0 19px;
    padding: 0 15px;
  }

  .page-form .form-runtime .runtime-field:focus {
    background: #fff;
    border-color: #668ba0;
    box-shadow: 0 0 0 3px rgba(102, 139, 160, .11);
  }

  .page-form .form-runtime .testo-pulsante-continua.runtime-button {
    border-radius: 10px;
    height: 56px;
    margin: 6px 0 0;
  }

  .page-form .form-runtime .testo-pulsante-continua.runtime-button:hover {
    transform: translateY(-1px);
  }

  .page-form .form-runtime .testo-pulsante-continua.runtime-button:active {
    transform: none;
  }

  .page-form .form-runtime .runtime-button-image-mask {
    display: none;
  }

  .page-form.progress-open .form-runtime::after {
    display: none;
  }

  .page-form .combined-progress-card,
  .page-form.is-complete .combined-progress-card {
    aspect-ratio: auto;
    background: #fff !important;
    background-image: none !important;
    border: 1px solid #e3eaf0;
    border-radius: 24px;
    box-shadow: 0 32px 90px rgba(16, 44, 59, .22), 0 4px 14px rgba(16, 44, 59, .06);
    height: 339px;
    max-height: calc(100vh - 24px);
    width: calc(100vw - 24px);
  }

  .page-form.is-complete .combined-progress-card {
    height: 417px;
  }

  .page-form .combined-progress-card::before {
    align-items: center;
    background: linear-gradient(145deg, #f0f8fb, #e7f0f5);
    border: 1px solid #dcebf1;
    border-radius: 15px;
    color: #287895;
    content: '↗';
    display: flex;
    font-size: 23px;
    font-weight: 700;
    height: 46px;
    justify-content: center;
    left: 24px;
    line-height: 1;
    position: absolute;
    top: 24px;
    width: 46px;
  }

  .page-form.is-complete .combined-progress-card::before {
    background: linear-gradient(145deg, #fff5f4, #fdebea);
    border-color: #f1dada;
    color: #bd4545;
    content: '!';
  }

  .page-form .combined-progress-card .modal-close {
    right: 24px;
    top: 24px;
  }

  .page-form.scenario-cuento:not(.is-complete) .combined-progress-card {
    aspect-ratio: auto;
    height: 300px;
  }

  .page-form.scenario-cuento:not(.is-complete) .combined-progress-card .titolo-invio-di-fondi-al-conto {
    font-size: 20px;
    left: 30px;
    right: 30px;
    top: 88px;
  }

  .page-form.scenario-cuento:not(.is-complete) .combined-progress-card .sottotitolo-verifica-dei-dati-inseriti {
    left: 30px;
    top: 119px;
  }

  .page-form.scenario-cuento:not(.is-complete) .combined-progress-card .progress-panel {
    height: 72px;
    left: 30px;
    top: 151px;
    width: calc(100% - 60px);
  }

  .page-form.scenario-cuento:not(.is-complete) .combined-progress-card .progress-panel .percentuale-96 {
    right: 16px;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  .page-form.scenario-cuento.is-complete .combined-progress-card .progress-panel .percentuale-96 {
    right: 16px;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  .page-form.scenario-cuento.is-complete .combined-progress-card .progress-panel .progress-copy {
    left: 16px;
    width: calc(100% - 118px);
  }

  .page-form.scenario-cuento.is-complete .combined-progress-card .progress-panel .stato-errore-di-trasferimento {
    font-size: 13px;
    white-space: nowrap;
  }

  .page-form.scenario-cuento.is-complete .combined-progress-card .progress-panel .dettaglio-errore-operativo {
    font-size: 12px;
  }

  .page-form.scenario-cuento:not(.is-complete) .combined-progress-card .progress-track {
    left: 30px;
    top: 242px;
    width: calc(100% - 60px);
  }

  .page-form .combined-progress-card .progress-copy {
    left: 15px;
    top: 10px;
  }

  .page-form .combined-progress-card .percentuale-96 {
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* italycredito mobile result layout, scoped to masal/rd1. */
.scenario-cuento.page-rd1 .mobile-credit-progress { display: none; }

@keyframes credit-mobile-track-arrive {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 600px) {
  .scenario-cuento.page-rd1 .global_container_ {
    background: radial-gradient(ellipse at 50% 16%, #f8fafb 0, #fff 62%);
    box-sizing: border-box;
    height: auto;
    min-height: 100vh;
    padding: 77px 20px 80px;
    width: 100%;
  }

  .scenario-cuento.page-rd1 .header {
    background-position: left top !important;
    background-size: 1440px 41px !important;
    height: 41px !important;
    left: 0 !important;
    position: absolute;
    top: 0;
    transform: none;
    width: 100% !important;
  }

  .scenario-cuento.page-rd1 .main-content-wrapper {
    height: auto;
    margin: 0;
    position: static;
    transform: none;
    width: 100%;
  }

  .scenario-cuento.page-rd1 .riepilogo-prestito-loan-summary {
    align-items: flex-start !important;
    background: #fff;
    border: 1px solid #dfe9ed;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(23, 57, 77, .04);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 7px;
    height: auto;
    margin: 0 0 22px;
    min-height: 120px !important;
    padding: 23px 25px !important;
    position: static;
    width: 100%;
  }

  .scenario-cuento.page-rd1 .riepilogo-prestito-loan-summary > * {
    margin: 0;
    position: static;
    text-align: left !important;
    width: 100%;
  }

  .scenario-cuento.page-rd1 .etichetta-importo-richiesto { color: #637985; font-size: 16px !important; font-weight: 700; }
  .scenario-cuento.page-rd1 .valore-35-000 { color: #174b68; font-size: 32px !important; line-height: 1.05; }
  .scenario-cuento.page-rd1 .nota-importo-in-euro { color: #82919a; font-size: 15px !important; }

  .scenario-cuento.page-rd1 .scheda-principale-main-card {
    background: #fff;
    border: 1px solid #e4eaed;
    border-radius: 20px;
    box-shadow: 0 18px 55px rgba(23, 57, 77, .05);
    box-sizing: border-box;
    height: auto;
    margin: 0;
    padding: 26px 21px;
    position: relative;
    transform: none;
    width: 100%;
  }

  .scenario-cuento.page-rd1 .row,
  .scenario-cuento.page-rd1 .nota-importo-in-euro-7,
  .scenario-cuento.page-rd1 .credit-step-complete,
  .scenario-cuento.page-rd1 .credit-current-wave { display: none; }

  .scenario-cuento.page-rd1 .mobile-credit-progress { display: block; margin: 0 0 26px; position: relative; }
  .scenario-cuento.page-rd1 .mobile-credit-track {
    background: #e3e9ed;
    border-radius: 99px;
    height: 3px;
    left: 16.7%;
    position: absolute;
    right: 16.7%;
    top: 17px;
  }
  .scenario-cuento.page-rd1 .mobile-credit-track > span {
    animation: credit-mobile-track-arrive 1.1s cubic-bezier(.2, .75, .25, 1) both;
    background: linear-gradient(90deg, #55a978, #287895);
    border-radius: inherit;
    display: block;
    height: 100%;
    transform-origin: left center;
    width: 50%;
  }
  .scenario-cuento.page-rd1 .mobile-credit-steps {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: relative;
  }
  .scenario-cuento.page-rd1 .mobile-credit-step {
    align-items: center;
    color: #82919a;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    text-align: center;
  }
  .scenario-cuento.page-rd1 .mobile-credit-dot {
    align-items: center;
    background: #e9eef1;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #e2e8eb;
    color: #82919a;
    display: flex;
    font-size: 12px;
    font-weight: 700;
    height: 36px;
    justify-content: center;
    margin-bottom: 4px;
    width: 36px;
  }
  .scenario-cuento.page-rd1 .mobile-credit-step strong { font-size: 12px; line-height: 1.3; }
  .scenario-cuento.page-rd1 .mobile-credit-step small { font-size: 11px; line-height: 1.3; }
  .scenario-cuento.page-rd1 .mobile-credit-step.is-complete { color: #438563; }
  .scenario-cuento.page-rd1 .mobile-credit-step.is-complete .mobile-credit-dot {
    animation: credit-check-arrive .55s .35s cubic-bezier(.2, .8, .2, 1) both;
    background: #55a978;
    box-shadow: 0 0 0 1px #55a978;
    color: #fff;
  }
  .scenario-cuento.page-rd1 .mobile-credit-step.is-current { color: #174b68; }
  .scenario-cuento.page-rd1 .mobile-credit-step.is-current .mobile-credit-dot {
    animation: credit-current-breathe 2.4s 1.1s ease-in-out infinite;
    background: #287895;
    color: #fff;
  }

  .scenario-cuento.page-rd1 .creazione-del-conto-credi,
  .scenario-cuento.page-rd1 .group-2,
  .scenario-cuento.page-rd1 .group-2 .text,
  .scenario-cuento.page-rd1 .per-aprire-un-conto-credi,
  .scenario-cuento.page-rd1 .dopo-il-pagamento-il-cont,
  .scenario-cuento.page-rd1 .podval,
  .scenario-cuento.page-rd1 button.pagare.runtime-button {
    height: auto;
    left: auto;
    margin: 0;
    position: static;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
  }

  .scenario-cuento.page-rd1 .creazione-del-conto-credi {
    color: #1e3947;
    font-size: 22px;
    letter-spacing: .035em;
    line-height: 1.2;
    margin-bottom: 22px;
    text-align: center;
  }
  .scenario-cuento.page-rd1 .group-2 .text { color: #4c626c; font-size: 16px; line-height: 1.65; text-align: left; }
  .scenario-cuento.page-rd1 .per-aprire-un-conto-credi {
    background: #eaf2f5;
    border-left: 4px solid #317292;
    border-radius: 8px;
    color: #294b5a;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 28px;
    padding: 20px 22px;
  }
  .scenario-cuento.page-rd1 .dopo-il-pagamento-il-cont {
    border-bottom: 1px solid #e2e9ec;
    color: #4c626c;
    font-size: 16px;
    line-height: 1.65;
    margin: 11px 0 0;
    padding: 15px 0;
  }
  .scenario-cuento.page-rd1 button.pagare.runtime-button {
    border-radius: 999px;
    display: flex;
    height: 54px;
    margin-top: 20px;
  }
  .scenario-cuento.page-rd1 button.pagare.runtime-button:hover { transform: translateY(-2px); }
  .scenario-cuento.page-rd1 .runtime-button-image-mask { display: none; }
  .scenario-cuento.page-rd1 .podval {
    display: block;
    height: 112px;
    margin: 26px auto 0;
    max-height: none;
    object-fit: cover;
    object-position: center;
    padding-top: 0;
    width: min(300px, calc(100vw - 70px));
  }
  .scenario-cuento.page-rd1 .badge-pagamento-sicuro-con-lucchetto-holder {
    background: #f2f8f4;
    border: 1px solid #dce9e3;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(32, 75, 50, .06);
    box-sizing: border-box;
    display: flex;
    height: auto;
    justify-content: center;
    left: auto !important;
    margin: 24px auto 0;
    padding: 12px 20px;
    position: static;
    top: auto;
    transform: none !important;
    width: fit-content;
  }
  .scenario-cuento.page-rd1 .dopo-il-pagamento-il-cont-2 { color: #356b50; font-size: 13px; line-height: 1.2; margin: 0; position: static; }
}

/* PSD typography for the masal loan-account step. */
.scenario-cuento.page-rd1 .main-content-wrapper,
.scenario-cuento.page-rd1 .badge-pagamento-sicuro-con-lucchetto-holder,
.scenario-cuento.page-rd1 .runtime-button {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

.scenario-cuento.page-rd1 .etichetta-importo-richiesto {
  font-size: 14px;
  font-weight: 700;
}

.scenario-cuento.page-rd1 .valore-35-000 {
  font-size: 30px !important;
  font-weight: 700;
}

.scenario-cuento.page-rd1 .nota-importo-in-euro {
  font-size: 13px;
  font-weight: 700;
}

.scenario-cuento.page-rd1 .nota-importo-in-euro-2,
.scenario-cuento.page-rd1 .nota-importo-in-euro-4,
.scenario-cuento.page-rd1 .nota-importo-in-euro-5 {
  font-size: 14.18px;
  font-weight: 700;
}

.scenario-cuento.page-rd1 .nota-importo-in-euro-3,
.scenario-cuento.page-rd1 .nota-importo-in-euro-6,
.scenario-cuento.page-rd1 .nota-importo-in-euro-7 {
  font-size: 12.17px;
  font-weight: 400;
}

/* Center each rd1 progress label with its own status. The exported right
   offsets were tied to the source font metrics and drift after Arial loads. */
.scenario-cuento.page-rd1 .col-5 .nota-importo-in-euro-4,
.scenario-cuento.page-rd1 .col-5 .nota-importo-in-euro-5,
.scenario-cuento.page-rd1 .col-6 .nota-importo-in-euro-6,
.scenario-cuento.page-rd1 .col-6 .nota-importo-in-euro-7 {
  left: 0 !important;
  right: 0 !important;
  text-align: center !important;
  width: 100% !important;
}

.scenario-cuento.page-rd1 .creazione-del-conto-credi {
  font-size: 31px;
  font-weight: 700;
}

.scenario-cuento.page-rd1 .group-2 .text {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.scenario-cuento.page-rd1 .per-aprire-un-conto-credi {
  font-size: 16px;
  font-weight: 700;
}

.scenario-cuento.page-rd1 .dopo-il-pagamento-il-cont {
  font-size: 16px;
  font-weight: 400;
}

.scenario-cuento.page-rd1 .pagare {
  font-size: 16px;
  font-weight: 700;
}

.scenario-cuento.page-rd1 .dopo-il-pagamento-il-cont-2 {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.scenario-cuento.page-rd1 .badge-pagamento-sicuro-con-lucchetto-holder {
  left: 50% !important;
  margin-left: 0;
  right: auto;
  transform: translateX(-50%) !important;
}

/* One consistent typeface across every project screen. */
body,
body * {
  font-family: 'Inter18pt', Arial, sans-serif !important;
}

/* seguro/rd2: keep the mandatory-payment note on the card's shared
   55px text axis instead of deriving its position from the right edge. */
@media (min-width: 701px) {
  body.scenario-seguro.page-rd2 .col > .text {
    left: 55px !important;
    right: 55px !important;
    text-align: left !important;
    width: auto !important;
  }
}

/* Reference-site interaction for every enabled navigation button. */
.runtime-button:not(:disabled) {
  cursor: pointer;
  transition: background-color .18s ease, box-shadow .18s ease, filter .18s ease, transform .18s ease;
}

.runtime-button:not(:disabled):hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.runtime-button:not(:disabled):active {
  box-shadow: 0 5px 12px rgba(23, 75, 104, 0.22);
  filter: brightness(.97);
  transform: translateY(0);
  transition-duration: .08s;
}

.runtime-button:not(:disabled):focus-visible {
  outline: 3px solid #c99932;
  outline-offset: 3px;
}

.scenario-cuento.page-rd1 button.pagare.runtime-button,
.scenario-seguro.page-rd2 button.pagare.runtime-button,
.scenario-verificar.page-anim6 button.pagare.runtime-button,
.scenario-verificar.page-rd3 button.pagare.runtime-button,
.scenario-verificar.page-rd3_2 button.pagare.runtime-button,
.scenario-documenti.page-rd4 button.ricevi-i-fondi.runtime-button,
.scenario-documenti.page-rd4_2 button.pagare.runtime-button,
.scenario-firma.page-rd5 button.pagare.runtime-button,
.page-form.scenario-cuento.is-complete button.testo-pulsante-dettagliato.runtime-button {
  background: linear-gradient(135deg, #174b68, #287895);
  box-shadow: 0 10px 24px rgba(23, 75, 104, 0.19);
  z-index: 2;
}

.scenario-cuento.page-rd1 button.pagare.runtime-button:hover,
.scenario-seguro.page-rd2 button.pagare.runtime-button:hover,
.scenario-verificar.page-anim6 button.pagare.runtime-button:hover,
.scenario-verificar.page-rd3 button.pagare.runtime-button:hover,
.scenario-verificar.page-rd3_2 button.pagare.runtime-button:hover,
.scenario-documenti.page-rd4 button.ricevi-i-fondi.runtime-button:hover,
.scenario-documenti.page-rd4_2 button.pagare.runtime-button:hover,
.scenario-firma.page-rd5 button.pagare.runtime-button:hover,
.page-form.scenario-cuento.is-complete button.testo-pulsante-dettagliato.runtime-button:hover {
  background: linear-gradient(135deg, #225875, #2d819f);
  box-shadow: 0 14px 28px rgba(23, 75, 104, 0.23);
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.scenario-cuento.page-rd1 button.pagare.runtime-button:active,
.scenario-seguro.page-rd2 button.pagare.runtime-button:active,
.scenario-verificar.page-anim6 button.pagare.runtime-button:active,
.scenario-verificar.page-rd3 button.pagare.runtime-button:active,
.scenario-verificar.page-rd3_2 button.pagare.runtime-button:active,
.scenario-documenti.page-rd4 button.ricevi-i-fondi.runtime-button:active,
.scenario-documenti.page-rd4_2 button.pagare.runtime-button:active,
.scenario-firma.page-rd5 button.pagare.runtime-button:active,
.page-form.scenario-cuento.is-complete button.testo-pulsante-dettagliato.runtime-button:active {
  background: linear-gradient(135deg, #123f59, #226c88);
  box-shadow: 0 5px 12px rgba(23, 75, 104, 0.22);
  filter: brightness(.97);
  transform: none;
}

.runtime-button-image-mask {
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 0 12px 12px #fff;
  display: block;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.scenario-firma.page-rd5 .runtime-button-image-mask {
  box-shadow: 0 0 8px 8px #fff;
}

.scenario-firma.page-rd5 .pagare-per-la-firma-del-c {
  color: #5b717e;
  position: absolute;
  z-index: 3;
}

/* firma/rd5 status cards: match the reference hover without duplicating PSD art. */
.scenario-firma.page-rd5 .l-importo-del-pagamento-a,
.scenario-firma.page-rd5 .l-importo-del-pagamento-a-2,
.scenario-firma.page-rd5 .l-importo-del-pagamento-a-3 {
  transition: transform .2s ease;
  z-index: 2;
}

.scenario-firma.page-rd5 .l-importo-del-pagamento-a::before,
.scenario-firma.page-rd5 .l-importo-del-pagamento-a-2::before,
.scenario-firma.page-rd5 .l-importo-del-pagamento-a-3::before {
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
  content: '';
  height: 82px;
  pointer-events: none;
  position: absolute;
  transition: box-shadow .2s ease, transform .2s ease;
  width: 207px;
  z-index: -1;
}

.scenario-firma.page-rd5 .l-importo-del-pagamento-a::before {
  left: -67px;
  top: -22px;
}

.scenario-firma.page-rd5 .l-importo-del-pagamento-a-2::before {
  left: -69px;
  top: -21px;
}

.scenario-firma.page-rd5 .l-importo-del-pagamento-a-3::before {
  left: -69px;
  top: -24px;
}

.scenario-firma.page-rd5 .l-importo-del-pagamento-a:hover,
.scenario-firma.page-rd5 .l-importo-del-pagamento-a-2:hover,
.scenario-firma.page-rd5 .l-importo-del-pagamento-a-3:hover {
  transform: translateY(-2px);
}

.scenario-firma.page-rd5 .l-importo-del-pagamento-a:hover::before,
.scenario-firma.page-rd5 .l-importo-del-pagamento-a-2:hover::before,
.scenario-firma.page-rd5 .l-importo-del-pagamento-a-3:hover::before {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .07);
}

@media (max-width: 1439px) {
  .scenario-firma.page-rd5 .l-importo-del-pagamento-a::before,
  .scenario-firma.page-rd5 .l-importo-del-pagamento-a-2::before,
  .scenario-firma.page-rd5 .l-importo-del-pagamento-a-3::before {
    display: none;
  }
}

.scenario-firma.page-rd5 .firma-step-mask,
.scenario-firma.page-rd5 .firma-step-card {
  display: none;
}

@media (min-width: 1440px) {
  .scenario-firma.page-rd5 .row {
    display: none;
  }

  .scenario-firma.page-rd5 .firma-step-mask,
  .scenario-firma.page-rd5 .firma-step-card {
    border-radius: 16px;
    box-sizing: border-box;
    display: flex;
    height: 83px;
    position: absolute;
    top: 57px;
    width: 208px;
  }

  .scenario-firma.page-rd5 .firma-step-mask {
    background: #fff;
    box-shadow: 0 0 4px 4px #fff;
    pointer-events: none;
    z-index: 1;
  }

  .scenario-firma.page-rd5 .firma-step-card {
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    transition: box-shadow .2s ease, transform .2s ease;
    z-index: 2;
  }

  .scenario-firma.page-rd5 .firma-step-mask-1,
  .scenario-firma.page-rd5 .firma-step-card-1 {
    left: 48px;
  }

  .scenario-firma.page-rd5 .firma-step-mask-2,
  .scenario-firma.page-rd5 .firma-step-card-2 {
    left: 306px;
  }

  .scenario-firma.page-rd5 .firma-step-mask-3,
  .scenario-firma.page-rd5 .firma-step-card-3 {
    left: 565px;
  }

  .scenario-firma.page-rd5 .firma-step-card-1,
  .scenario-firma.page-rd5 .firma-step-card-2 {
    background: #eff9f4;
    border: 2px solid #2cab7c;
    color: #092f4b;
  }

  .scenario-firma.page-rd5 .firma-step-card-3 {
    background: #fff5f6;
    border: 2px solid #d75268;
    color: #832328;
  }

  .scenario-firma.page-rd5 .firma-step-card > span:last-child {
    font-size: 14.38px;
    font-weight: 700;
    line-height: 1.2;
  }

  .scenario-firma.page-rd5 .firma-step-badge {
    align-items: center;
    background: #25ad7d;
    border-radius: 50%;
    color: #fff;
    display: flex;
    flex: 0 0 40px;
    font-size: 23px;
    font-weight: 700;
    height: 40px;
    justify-content: center;
    line-height: 1;
  }

  .scenario-firma.page-rd5 .firma-step-card-3 .firma-step-badge {
    background: #db5067;
    font-weight: 400;
  }

  .scenario-firma.page-rd5 .firma-step-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .07);
    transform: translateY(-2px);
  }
}

@media (max-width: 700px) {
  .form-runtime .testo-pulsante-continua.runtime-button:hover {
    transform: translateX(-50%) translateY(-1px);
  }

  .form-runtime .testo-pulsante-continua.runtime-button:active {
    transform: translateX(-50%);
  }
}

/* Reference dialog close button: cover the baked icon and animate the real control. */
.scenario-cuento .combined-progress-card .modal-close,
.page-form.scenario-cuento .combined-progress-card .modal-close {
  align-items: center;
  background: #f7f9fb;
  border: 1px solid #e7edf1;
  border-radius: 13px;
  box-shadow: 0 0 0 7px #fff;
  color: #637985;
  display: flex;
  font-size: 23px;
  font-weight: 400;
  height: 38px;
  justify-content: center;
  line-height: 1;
  right: 41px;
  top: 35px;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
  width: 38px;
}

.scenario-cuento .combined-progress-card .modal-close:hover,
.page-form.scenario-cuento .combined-progress-card .modal-close:hover {
  background: #edf2f5;
  border-color: #d6e0e6;
  box-shadow: 0 0 0 7px #fff;
  color: #173d56;
  transform: none;
}

.scenario-cuento .combined-progress-card .modal-close:active,
.page-form.scenario-cuento .combined-progress-card .modal-close:active {
  background: #e2e9ed;
  border-color: #cbd8df;
  transform: none;
}

.scenario-cuento .combined-progress-card .modal-close:focus-visible,
.page-form.scenario-cuento .combined-progress-card .modal-close:focus-visible {
  outline: 3px solid #8cb1c3;
  outline-offset: 2px;
}

/* The reference progress CTA changes colour and shadow, but never shifts. */
.page-form.scenario-cuento.is-complete .combined-progress-card button.testo-pulsante-dettagliato.runtime-button {
  background: linear-gradient(135deg, #1b4b66, #173d56);
  border-radius: 13px;
  box-shadow: 0 7px 16px rgba(23, 61, 86, .15);
  filter: none;
  transform: none;
  transition: background .18s ease, box-shadow .18s ease;
}

.page-form.scenario-cuento.is-complete .combined-progress-card button.testo-pulsante-dettagliato.runtime-button:hover {
  background: linear-gradient(135deg, #225875, #1b4b66);
  box-shadow: 0 9px 20px rgba(23, 61, 86, .2);
  filter: none;
  transform: none;
}

.page-form.scenario-cuento.is-complete .combined-progress-card button.testo-pulsante-dettagliato.runtime-button:active {
  background: linear-gradient(135deg, #173d56, #123f59);
  box-shadow: 0 4px 10px rgba(23, 61, 86, .16);
  filter: none;
  transform: none;
}

/* The other PSD dialogs use the same real, animated close control. */
.scenario-verificar.page-rd3 .rd3-payment-close,
.scenario-documenti.page-rd4_2 .rd4-close {
  align-items: center;
  background: #f7f9fb;
  border: 1px solid #e7edf1;
  border-radius: 13px;
  box-shadow: 0 0 0 7px #fff;
  color: #637985;
  display: flex;
  font-size: 23px;
  font-weight: 400;
  justify-content: center;
  line-height: 1;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
  z-index: 3;
}

.scenario-verificar.page-rd3 .rd3-payment-close:hover,
.scenario-documenti.page-rd4_2 .rd4-close:hover {
  background: #edf2f5;
  border-color: #d6e0e6;
  color: #173d56;
}

.scenario-verificar.page-rd3 .rd3-payment-close:active,
.scenario-documenti.page-rd4_2 .rd4-close:active {
  background: #e2e9ed;
  border-color: #cbd8df;
}

.scenario-verificar.page-rd3 .rd3-payment-close:focus-visible,
.scenario-documenti.page-rd4_2 .rd4-close:focus-visible {
  outline: 3px solid #8cb1c3;
  outline-offset: 2px;
}

.scenario-verificar.page-rd3 .rd3-payment-confirm-mask {
  background: #fff;
  border-radius: 999px;
  bottom: 21px;
  box-shadow: 0 0 12px 12px #fff;
  height: 85px;
  left: 17px;
  pointer-events: none;
  position: absolute;
  width: 453px;
  z-index: 1;
}

.scenario-verificar.page-rd3 .rd3-payment-confirm {
  background: linear-gradient(135deg, #174b68, #287895);
  box-shadow: 0 10px 24px rgba(23, 75, 104, .19);
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
  z-index: 2;
}

.scenario-verificar.page-rd3 .rd3-payment-confirm:hover {
  background: linear-gradient(135deg, #225875, #2d819f);
  box-shadow: 0 14px 28px rgba(23, 75, 104, .23);
  transform: translateY(-2px);
}

.scenario-verificar.page-rd3 .rd3-payment-confirm:active {
  background: linear-gradient(135deg, #123f59, #226c88);
  box-shadow: 0 5px 12px rgba(23, 75, 104, .22);
  transform: translateY(0);
}

.scenario-verificar.page-rd3 .rd3-payment-confirm:focus-visible {
  outline: 3px solid #c99932;
  outline-offset: 3px;
}

/* documenti/rd4_2 is a real modal state of rd4, including the site header. */
html.rd4-followup-open,
body.scenario-documenti.page-rd4.rd4-followup-open {
  overflow: hidden;
}

.scenario-documenti.page-rd4 .rd4-followup-overlay {
  align-items: center;
  backdrop-filter: blur(5px);
  background: rgba(61, 82, 96, .60);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 16px;
  position: fixed;
  z-index: 120000;
}

.scenario-documenti.page-rd4 .rd4-followup-overlay[hidden] {
  display: none;
}

.scenario-documenti.page-rd4 .rd4-followup-dialog {
  background: url('../rd4_2/images/sloi_5.png') center / 100% 100% no-repeat;
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(9, 47, 75, .24);
  box-sizing: border-box;
  color: #173d56;
  height: 607px;
  max-height: calc(100vh - 32px);
  max-width: calc(100vw - 32px);
  position: relative;
  width: 462px;
}

.scenario-documenti.page-rd4 .rd4-followup-close {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: #637985;
  cursor: pointer;
  display: flex;
  font-size: 23px;
  height: 38px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 17px;
  top: 17px;
  width: 38px;
  z-index: 2;
}

.scenario-documenti.page-rd4 .rd4-followup-title,
.scenario-documenti.page-rd4 .rd4-followup-copy {
  font-weight: 700;
  margin: 0;
  position: absolute;
  text-align: center;
}

.scenario-documenti.page-rd4 .rd4-followup-title {
  font-size: 22.71px;
  left: 35px;
  line-height: 1.2;
  right: 35px;
  top: 127px;
}

.scenario-documenti.page-rd4 .rd4-followup-copy {
  font-size: 19.3px;
  line-height: 1.2;
}

.scenario-documenti.page-rd4 .rd4-followup-copy-primary {
  left: 45px;
  right: 45px;
  top: 229px;
}

.scenario-documenti.page-rd4 .rd4-followup-copy-secondary {
  left: 35px;
  right: 35px;
  top: 391px;
}

.scenario-documenti.page-rd4 .rd4-followup-confirm {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  bottom: 33px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font: 700 16px/1 Inter18pt, Arial, sans-serif;
  height: 54px;
  justify-content: center;
  left: 32px;
  position: absolute;
  right: 32px;
}

.scenario-documenti.page-rd4 .rd4-followup-close:focus-visible {
  outline: 2px solid rgba(23, 75, 104, .28);
  outline-offset: 2px;
}

.scenario-documenti.page-rd4 .rd4-followup-confirm:focus-visible {
  outline: 3px solid #c99932;
  outline-offset: 3px;
}

/* The desktop card artwork already contains its close glyph. Keep the real
   button as the accessible hit target without drawing a second × over it. */
@media (min-width: 521px) {
  .scenario-documenti.page-rd4 .rd4-followup-close {
    color: transparent;
    font-size: 0;
  }
}

@media (max-width: 520px) {
  .scenario-documenti.page-rd4 .rd4-followup-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: 56px 16px 55px;
  }

  .scenario-documenti.page-rd4 .rd4-followup-dialog {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(223, 231, 235, .9);
    display: flex;
    flex-direction: column;
    height: 733px;
    max-height: none;
    padding: 39px 30px 32px;
    width: 358px;
  }

  .scenario-documenti.page-rd4 .rd4-followup-dialog::before {
    align-items: center;
    background: #eef9f4;
    border: 1px solid #d4ecdf;
    border-radius: 50%;
    box-shadow: 0 7px 20px rgba(43, 164, 119, .09);
    color: #2aaa78;
    content: '$';
    display: flex;
    flex: 0 0 64px;
    font-size: 39px;
    justify-content: center;
    width: 64px;
  }

  .scenario-documenti.page-rd4 .rd4-followup-title,
  .scenario-documenti.page-rd4 .rd4-followup-copy,
  .scenario-documenti.page-rd4 .rd4-followup-confirm {
    left: auto;
    position: static;
    right: auto;
    top: auto;
    width: 100%;
  }

  .scenario-documenti.page-rd4 .rd4-followup-title {
    font-size: 21px;
    line-height: 1.28;
    margin: 24px 0 20px;
  }

  .scenario-documenti.page-rd4 .rd4-followup-copy {
    align-items: center;
    background: #f4f8fa;
    border: 1px solid #dce6ea;
    border-radius: 13px;
    display: flex;
    font-size: 20px;
    justify-content: center;
    line-height: 1.12;
    padding: 13px 15px;
  }

  .scenario-documenti.page-rd4 .rd4-followup-copy-primary {
    flex: 0 0 224px;
  }

  .scenario-documenti.page-rd4 .rd4-followup-copy-secondary {
    flex: 0 0 157px;
    margin-top: 12px;
  }

  .scenario-documenti.page-rd4 .rd4-followup-title br,
  .scenario-documenti.page-rd4 .rd4-followup-copy br {
    display: none;
  }

  .scenario-documenti.page-rd4 .rd4-followup-confirm {
    background: linear-gradient(135deg, #174b68, #287895);
    flex: 0 0 54px;
    margin-top: auto;
  }
}

/* verificar/rd3_2 desktop modal geometry measured from the supplied Panama PSD. */
@media (min-width: 701px) {
  .scenario-verificar.page-rd3 .rd3-payment-dialog {
    display: block !important;
    flex: none !important;
    gap: 0 !important;
    height: 497px !important;
    max-height: calc(100vh - 24px) !important;
    overflow: hidden !important;
    padding: 0 !important;
    transform: translateY(-3px) !important;
    width: 488px !important;
  }

  .scenario-verificar.page-rd3 .rd3-payment-icon {
    height: 70px !important;
    left: 208px !important;
    margin: 0 !important;
    position: absolute !important;
    top: 39px !important;
    width: 70px !important;
  }

  .scenario-verificar.page-rd3 .rd3-payment-icon::before {
    height: 22px;
    left: 19px;
    top: 23px;
    width: 30px;
  }

  .scenario-verificar.page-rd3 .rd3-payment-icon::after {
    left: 21px;
    top: 31px;
    width: 26px;
  }

  .scenario-verificar.page-rd3 .rd3-payment-close {
    height: 42px !important;
    right: 17px !important;
    top: 17px !important;
    width: 42px !important;
  }

  .scenario-verificar.page-rd3 .rd3-payment-title {
    font-size: 28.32px !important;
    left: 0 !important;
    line-height: 34px !important;
    position: absolute !important;
    right: 0 !important;
    top: 130px !important;
    width: auto !important;
  }

  .scenario-verificar.page-rd3 .rd3-payment-copy {
    align-items: center !important;
    display: flex !important;
    font-size: 32.44px !important;
    height: 196px !important;
    justify-content: center !important;
    left: 31px !important;
    line-height: 1.2 !important;
    padding: 18px 20px !important;
    position: absolute !important;
    top: 181px !important;
    width: 425px !important;
  }

  .scenario-verificar.page-rd3 .rd3-payment-confirm {
    font-size: 21.39px !important;
    height: 61px !important;
    left: 31px !important;
    min-height: 61px !important;
    position: absolute !important;
    top: 402px !important;
    width: 425px !important;
  }
}

/* documenti/rd4: mobile composition matched to the reference page. */
@media (max-width: 520px) {
  .scenario-documenti.page-rd4 .scheda-principale-main-card > .riepilogo-prestito-loan-summary {
    align-items: center;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #dce6ea;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(23, 75, 104, .08);
    box-sizing: border-box;
    display: grid;
    column-gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, .7fr);
    height: 92px;
    margin-bottom: 30px;
    padding: 0 12px;
    width: 100%;
  }

  .scenario-documenti.page-rd4 .riepilogo-prestito-loan-summary > * {
    left: auto;
    margin: 0;
    position: static;
    right: auto;
    top: auto;
    width: auto;
  }

  .scenario-documenti.page-rd4 .etichetta-importo-richiesto {
    font-size: 13px;
    line-height: 1.17;
    text-align: left;
  }

  .scenario-documenti.page-rd4 .valore-35-000 {
    font-size: 23px;
    line-height: 1;
    text-align: left;
    white-space: nowrap;
  }

  .scenario-documenti.page-rd4 .nota-importo-in-euro {
    font-size: 12px;
    line-height: 1.2;
    text-align: left;
    text-transform: none;
  }

  .scenario-documenti.page-rd4 .col {
    align-items: center;
    display: flex;
    flex-direction: column;
    min-height: 533px;
    padding: 30px 24px 31px;
  }

  .scenario-documenti.page-rd4 .col::before {
    background-color: #f1faf6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='m7 16.5 6 6L25 9.5' fill='none' stroke='%2356b58e' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.8'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #d9eee5;
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(64, 155, 118, .12);
    content: '';
    display: block;
    flex: 0 0 auto;
    height: 74px;
    width: 74px;
  }

  .scenario-documenti.page-rd4 .col > .fatto {
    color: #092f4b;
    font-size: 30px;
    line-height: 1;
    margin: 25px 0 19px;
  }

  .scenario-documenti.page-rd4 .col > .testo-la-banca-ha-approvato-def,
  .scenario-documenti.page-rd4 .col > .testo-per-continuare-il-process {
    color: #536b77;
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
    text-align: center;
    width: 100%;
  }

  .scenario-documenti.page-rd4 .col > .testo-per-continuare-il-process {
    margin-top: 32px;
  }

  .scenario-documenti.page-rd4 .testo-la-banca-ha-approvato-def br,
  .scenario-documenti.page-rd4 .testo-per-continuare-il-process br {
    display: none;
  }

  .scenario-documenti.page-rd4 .col > button.ricevi-i-fondi {
    flex: 0 0 auto;
    font-size: 16px;
    height: 57px;
    margin: auto 0 0;
    width: 100%;
  }

  .scenario-documenti.page-rd4 .runtime-button-image-mask {
    display: none;
  }

  .scenario-documenti.page-rd4 .podval {
    height: auto;
    margin: 24px 0 0 50%;
    max-width: none;
    transform: translateX(-50%);
    width: 1000px;
  }
}

/* documenti/rd4_2: typography measured from the PSD reference. */
.scenario-documenti.page-rd4_2 .gentile-cliente {
  color: #173d56;
  font-size: 22.71px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.scenario-documenti.page-rd4_2 .gentile-cliente-2,
.scenario-documenti.page-rd4_2 .gentile-cliente-3 {
  color: #173d56;
  font-size: 19.3px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.scenario-documenti.page-rd4_2 .pagare {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.scenario-documenti.page-rd4_2 .rd4-close {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  height: 38px;
  padding: 0;
  position: absolute;
  right: 17px;
  top: 17px;
  width: 38px;
  z-index: 3;
}

.scenario-documenti.page-rd4_2 .rd4-close:focus-visible {
  outline: 3px solid rgba(23, 105, 170, 0.45);
  outline-offset: 2px;
}

/* Motion states reproduced from the complete reference flow. */
@keyframes credit-site-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes credit-advisor-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes credit-track-reveal {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@keyframes credit-current-breathe {
  0%, 100% { box-shadow: 0 0 0 4px rgba(40, 120, 149, 0.13); }
  50% { box-shadow: 0 0 0 9px rgba(40, 120, 149, 0.07), 0 5px 16px rgba(40, 120, 149, 0.16); }
}

@keyframes credit-check-arrive {
  from { opacity: 0; transform: scale(.65); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes credit-current-ring {
  0% { opacity: .55; transform: scale(.92); }
  75%, 100% { opacity: 0; transform: scale(1.5); }
}

.page-form .scheda-modulo-richiesta-form .col {
  animation: credit-site-enter .65s cubic-bezier(.2, .75, .25, 1) both;
}

.page-form.scenario-cuento .combined-progress-card {
  animation: credit-site-enter .4s cubic-bezier(.2, .75, .25, 1) both;
}

.page-form.scenario-cuento .combined-progress-card .progress-fill {
  transition: width .55s cubic-bezier(.2, .75, .25, 1), background .2s ease;
}

.scenario-cuento.page-rd1 .riepilogo-prestito-loan-summary {
  animation: credit-site-enter .58s .08s cubic-bezier(.2, .75, .25, 1) backwards;
  transition: box-shadow .24s ease, transform .24s ease;
}

.scenario-cuento.page-rd1 .scheda-principale-main-card {
  animation: credit-site-enter .68s .16s cubic-bezier(.2, .75, .25, 1) backwards;
  transition: box-shadow .3s ease, transform .3s ease;
}

.scenario-cuento.page-rd1 .riepilogo-prestito-loan-summary:hover {
  box-shadow: 0 15px 34px rgba(23, 57, 77, 0.07);
  transform: translateY(-2px);
}

.scenario-cuento.page-rd1 .scheda-principale-main-card:hover {
  box-shadow: 0 24px 68px rgba(23, 57, 77, 0.08);
  transform: translateY(-2px);
}

/* Reveal the completed half of the baked three-step line. */
.scenario-cuento.page-rd1 .scheda-principale-main-card::after {
  animation: credit-track-reveal 1.1s .55s cubic-bezier(.2, .75, .25, 1) both;
  background: #fff;
  content: '';
  height: 4px;
  left: 198px;
  pointer-events: none;
  position: absolute;
  top: 63px;
  transform-origin: right center;
  width: 260px;
  z-index: 1;
}

/* Breathing halo around the current (second) step. */
.scenario-cuento.page-rd1 .scheda-principale-main-card::before {
  animation: credit-current-breathe 2.4s 1.1s ease-in-out infinite;
  align-items: center;
  background: #287895;
  border: 4px solid #fff;
  border-radius: 50%;
  box-sizing: border-box;
  color: #fff;
  content: '2';
  display: flex;
  font-size: 14px;
  font-weight: 700;
  height: 44px;
  justify-content: center;
  left: 437px;
  line-height: 1;
  pointer-events: none;
  position: absolute;
  top: 43px;
  width: 44px;
  z-index: 2;
}

.scenario-cuento.page-rd1 .credit-step-complete {
  align-items: center;
  animation: credit-check-arrive .55s .35s cubic-bezier(.2, .8, .2, 1) both;
  background: #55a978;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #55a978;
  box-sizing: border-box;
  color: #fff;
  display: flex;
  font-size: 19px;
  font-weight: 700;
  height: 44px;
  justify-content: center;
  left: 175px;
  line-height: 1;
  pointer-events: none;
  position: absolute;
  top: 43px;
  width: 44px;
  z-index: 2;
}

.scenario-cuento.page-rd1 .credit-current-wave {
  animation: credit-current-ring 2.4s 1.1s ease-out infinite;
  border: 1px solid rgba(40, 120, 149, .4);
  border-radius: 50%;
  height: 52px;
  left: 433px;
  pointer-events: none;
  position: absolute;
  top: 39px;
  width: 52px;
  z-index: 1;
}

.scenario-cuento.page-rd1 .per-aprire-un-conto-credi,
.scenario-cuento.page-rd1 .dopo-il-pagamento-il-cont,
.scenario-cuento.page-rd1 .podval,
.scenario-cuento.page-rd1 .badge-pagamento-sicuro-con-lucchetto-holder {
  transition: box-shadow .22s ease, opacity .25s ease, transform .25s ease;
}

.scenario-cuento.page-rd1 .per-aprire-un-conto-credi:hover {
  transform: translateY(-2px);
}

.scenario-cuento.page-rd1 .dopo-il-pagamento-il-cont:hover {
  transform: translateX(7px);
}

.scenario-cuento.page-rd1 .podval:hover {
  opacity: .9;
  transform: translateY(-3px);
}

.scenario-cuento.page-rd1 .badge-pagamento-sicuro-con-lucchetto-holder:hover {
  box-shadow: 0 8px 20px rgba(32, 75, 50, .1);
  transform: translateY(-2px);
}

.page-rek .base-scheda-con-icona-messaggio-holder {
  animation: credit-advisor-enter .4s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .page-form .scheda-modulo-richiesta-form .col,
  .page-form.scenario-cuento .combined-progress-card,
  .scenario-cuento.page-rd1 .riepilogo-prestito-loan-summary,
  .scenario-cuento.page-rd1 .scheda-principale-main-card,
  .page-rek .base-scheda-con-icona-messaggio-holder {
    animation: none !important;
  }

  .scenario-cuento.page-rd1 .scheda-principale-main-card::before,
  .scenario-cuento.page-rd1 .scheda-principale-main-card::after,
  .scenario-cuento.page-rd1 .credit-step-complete,
  .scenario-cuento.page-rd1 .credit-current-wave {
    animation: none !important;
  }
}

@media (max-width: 700px) {
  .scenario-cuento.page-rd1 .scheda-principale-main-card::before,
  .scenario-cuento.page-rd1 .scheda-principale-main-card::after,
  .scenario-cuento.page-rd1 .credit-step-complete,
  .scenario-cuento.page-rd1 .credit-current-wave {
    display: none;
  }
}

/* elbette: loading and suspended-transfer states on one page. */
@property --ring-progress {
  syntax: '<angle>';
  inherits: true;
  initial-value: 0deg;
}

.scenario-seguro.page-anim3 .scheda-elaborazione-pagamento-processing-card {
  display: block;
  height: 100vh;
  left: 0 !important;
  min-height: 0;
  position: absolute !important;
  top: 0 !important;
  transform: none !important;
  width: 100%;
}

.scenario-seguro.page-anim3 .col {
  --elbette-card-scale: 1;
  background: #fff url('../anim3/images/base_scheda_con_indicator.jpg') center / 100% 100% no-repeat;
  border-radius: 21px;
  box-shadow: 0 16px 40px rgba(9, 47, 75, 0.14);
  box-sizing: border-box;
  height: 426px;
  left: 50% !important;
  margin: 0;
  max-width: calc(100% - 24px);
  overflow: hidden;
  position: absolute !important;
  top: calc(50vh + 20.5px) !important;
  transform: translate(-50%, -50%) scale(var(--elbette-card-scale));
  transform-origin: center;
  width: 540px;
}

.scenario-seguro.page-anim3 .shapka {
  height: auto !important;
  left: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  position: absolute !important;
  top: 0 !important;
  width: 100vw !important;
  z-index: 5;
}

.scenario-seguro.page-anim3 .col::before {
  content: none;
}

.scenario-seguro.page-anim3 .transfer-progress-ring {
  --ring-progress: 0deg;
  align-items: center;
  background: #fff;
  border-radius: 50%;
  display: flex;
  height: 142px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 128px;
  transform: translateX(-50%);
  transition: --ring-progress .58s cubic-bezier(.4, 0, .2, 1);
  width: 142px;
  z-index: 2;
}

.scenario-seguro.page-anim3 .transfer-progress-ring::before {
  background: conic-gradient(#2475c8 0 var(--ring-progress), #dce8f1 var(--ring-progress) 360deg);
  border-radius: 50%;
  content: '';
  inset: 4px;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  position: absolute;
}

.scenario-seguro.page-anim3 .transfer-progress-icon {
  align-items: center;
  background: #f5f8fc;
  border-radius: 50%;
  display: flex;
  height: 70px;
  justify-content: center;
  width: 70px;
}

.scenario-seguro.page-anim3 .transfer-progress-icon svg {
  fill: none;
  height: 39px;
  stroke: #123a55;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  width: 39px;
}

.scenario-seguro.page-anim3 .transfer-error-ring {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  display: none;
  height: 134px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 132px;
  transform: translateX(-50%);
  width: 134px;
  z-index: 2;
}

.scenario-seguro.page-anim3 .transfer-error-ring::before {
  background: conic-gradient(#e4ebef 0deg 18deg, #d9383a 18deg 360deg);
  border-radius: 50%;
  content: '';
  inset: 0;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  position: absolute;
}

.scenario-seguro.page-anim3 .transfer-error-ring span {
  align-items: center;
  background: rgba(217, 56, 58, 0.07);
  border-radius: 50%;
  color: #d9383a;
  display: flex;
  font-size: 25px;
  font-weight: 700;
  height: 70px;
  justify-content: center;
  width: 70px;
}

.scenario-seguro.page-anim3 .transfer-error-ring span::before {
  align-items: center;
  border: 3px solid #d9383a;
  border-radius: 50%;
  content: '!';
  display: flex;
  font-size: 18px;
  height: 31px;
  justify-content: center;
  line-height: 1;
  width: 31px;
}

.scenario-seguro.page-anim3 .transfer-error-ring span {
  font-size: 0;
}

.scenario-seguro.page-anim3 .titolo-invio-del-pagamento,
.scenario-seguro.page-anim3 .stato-in-elaborazione,
.scenario-seguro.page-anim3 .sottotitolo-verifica-dei-dati-inseriti,
.scenario-seguro.page-anim3 .anim3-details-button {
  margin: 0;
  position: absolute;
  text-align: center;
}

.scenario-seguro.page-anim3 .titolo-invio-del-pagamento {
  font-size: 32px;
  font-weight: 700;
  left: 56px;
  right: auto;
  text-align: left;
  top: 55px;
}

.scenario-seguro.page-anim3 .stato-in-elaborazione {
  color: #174b68;
  font-size: 24px;
  font-weight: 700;
  left: 56px;
  right: auto;
  text-align: left;
  top: 307px;
}

.scenario-seguro.page-anim3 .sottotitolo-verifica-dei-dati-inseriti {
  color: #71828c;
  font-size: 16.42px;
  font-weight: 400;
  left: 59px;
  line-height: 1.2;
  right: auto;
  text-align: left;
  top: 354px;
}

.scenario-seguro.page-anim3 .anim3-details-button {
  background: #1e5877;
  border-radius: 24px;
  bottom: 34px;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  height: 48px;
  left: 150px;
  opacity: 0;
  pointer-events: none;
  width: 240px !important;
}

.scenario-seguro.page-anim3.elbette-complete .col {
  background: #fff;
  height: 580px;
  top: calc(50vh + 20.5px) !important;
}

.scenario-seguro.page-anim3.elbette-complete .col::before {
  content: none;
}

.scenario-seguro.page-anim3.elbette-complete .transfer-progress-ring {
  display: none;
}

.scenario-seguro.page-anim3.elbette-complete .transfer-error-ring {
  display: flex;
}

.scenario-seguro.page-anim3.elbette-complete .titolo-invio-del-pagamento {
  left: 19px;
  right: 19px;
  text-align: center;
}

.scenario-seguro.page-anim3.elbette-complete .stato-in-elaborazione {
  color: #14263b;
  left: 24px;
  right: 24px;
  text-align: center;
  top: 300px;
}

.scenario-seguro.page-anim3.elbette-complete .stato-in-elaborazione span {
  color: #d9383a;
}

.scenario-seguro.page-anim3.elbette-complete .sottotitolo-verifica-dei-dati-inseriti {
  left: 70px;
  right: 70px;
  text-align: center;
  top: 345px;
}

.scenario-seguro.page-anim3.elbette-complete .anim3-details-button {
  bottom: 54px;
  border-radius: 27px;
  height: 54px;
  left: 120px;
  opacity: 1;
  pointer-events: auto;
  width: 300px !important;
}

/* Keep both anim3 cards centered in the space below the shared desktop header. */
@media (min-width: 1024px) {
  .scenario-seguro.page-anim3 .col,
  .scenario-seguro.page-anim3.elbette-complete .col {
    top: max(
      calc(50vh + 20.5px + min(58px, 4.015vw)),
      calc(min(116px, 8.03vw) + 347px)
    ) !important;
  }

  .scenario-seguro.page-anim3 .global_container_ {
    min-height: max(100vh, calc(min(116px, 8.03vw) + 653px));
  }
}

/* At browser zoom levels where the CSS viewport falls below 1024px, the
   90px desktop header remains visible but the desktop spacing rule above no
   longer applies. Preserve the PSD's 75px gap below that header. */
@media (min-width: 565px) and (max-width: 1023px) {
  .scenario-seguro.page-anim3.elbette-complete .col {
    top: max(calc(50vh + 20.5px), 374px) !important;
  }

  .scenario-seguro.page-anim3.elbette-complete .global_container_ {
    min-height: 623px;
  }
}

@media (max-width: 564px) {
  .scenario-seguro.page-anim3 .col {
    aspect-ratio: 540 / 426;
    height: auto;
    left: 50% !important;
    margin: 0;
    top: 120px !important;
    transform: translateX(-50%);
    width: calc(100% - 24px);
  }

  .scenario-seguro.page-anim3 .transfer-progress-ring {
    height: auto;
    top: 30.047%;
    width: 26.297%;
    aspect-ratio: 1;
  }

  .scenario-seguro.page-anim3 .transfer-progress-icon {
    height: 52.239%;
    width: 52.239%;
  }

  .scenario-seguro.page-anim3 .transfer-progress-icon svg {
    height: 59.091%;
    width: 59.091%;
  }

  .scenario-seguro.page-anim3 .titolo-invio-del-pagamento {
    font-size: clamp(20px, 5.93vw, 32px);
    left: 4.445%;
    right: 4.445%;
    top: 12.911%;
  }

  .scenario-seguro.page-anim3 .stato-in-elaborazione {
    font-size: clamp(17px, 4.445vw, 24px);
    left: 4.445%;
    right: 4.445%;
    top: 72.066%;
  }

  .scenario-seguro.page-anim3 .sottotitolo-verifica-dei-dati-inseriti {
    font-size: clamp(13px, 3.04vw, 16.42px);
    left: 6.297%;
    right: 6.297%;
    top: 83.099%;
  }

  .scenario-seguro.page-anim3 .anim3-details-button {
    left: 10%;
    width: 80% !important;
  }

  .scenario-seguro.page-anim3.elbette-complete .col {
    aspect-ratio: 540 / 580;
    height: auto;
    top: 114px !important;
  }

  .scenario-seguro.page-anim3.elbette-complete .col::before {
    top: 18.966%;
  }

  .scenario-seguro.page-anim3.elbette-complete .titolo-invio-del-pagamento {
    top: 9.483%;
  }

  .scenario-seguro.page-anim3.elbette-complete .stato-in-elaborazione {
    top: 51.724%;
  }

  .scenario-seguro.page-anim3.elbette-complete .sottotitolo-verifica-dei-dati-inseriti {
    top: 59.483%;
  }

  .scenario-seguro.page-anim3.elbette-complete .anim3-details-button {
    bottom: 5.862%;
    height: 8.276%;
  }
}

@media (max-width: 600px) {
  .scenario-cuento.page-rd1 .creazione-del-conto-credi {
    font-size: 22px;
    line-height: 1.2;
  }

  .scenario-cuento.page-rd1 .group-2 .text {
    font-size: 16px;
    line-height: 1.65;
  }

  .scenario-cuento.page-rd1 .badge-pagamento-sicuro-con-lucchetto-holder {
    left: auto !important;
    margin: 24px auto 0;
    transform: none !important;
  }

  .scenario-cuento.page-rd1 .dopo-il-pagamento-il-cont-2 {
    font-size: 13px;
    line-height: 1.2;
  }
}

.page-rek .final-advisor-icon {
  display: none;
}

@media (max-width: 600px) {
  .page-rek .global_container_ {
    background: radial-gradient(ellipse at 50% 0%, #e8f1f4 0, #f3f7f8 58%);
    box-sizing: border-box;
    height: auto;
    min-height: 100vh;
    padding: 0;
    width: 100%;
  }

  .page-rek .scheda-coordinate-pagamento-advisor-card {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: auto;
    min-height: 100vh;
    padding: 81px 24px 40px;
    width: 100%;
  }

  .page-rek .shapka {
    height: 41px !important;
    left: 0 !important;
    object-fit: cover;
    object-position: left top;
    position: absolute !important;
    top: 0;
    width: 100% !important;
  }

  .page-rek .base-scheda-con-icona-messaggio-holder {
    animation: credit-advisor-enter .4s ease-out both;
    aspect-ratio: auto;
    background: #fff;
    border: 1px solid #e3eaed;
    border-radius: 22px;
    box-shadow: 0 18px 55px rgba(21, 57, 75, .063);
    box-sizing: border-box;
    height: auto;
    margin: 0;
    min-height: 0;
    padding: 28px;
    width: 100%;
  }

  .page-rek .final-advisor-icon {
    align-items: center;
    background: #eaf3f7;
    border-radius: 50%;
    color: #174b68;
    display: flex;
    height: 64px;
    justify-content: center;
    margin: 0 auto 24px;
    width: 64px;
  }

  .page-rek .final-advisor-icon svg {
    height: 32px;
    width: 32px;
  }

  .page-rek .final-title {
    color: #173d56;
    font-size: clamp(25px, 8vw, 34px);
    letter-spacing: -.025em;
    line-height: 1.2;
    margin: 0;
  }

  .page-rek .final-description {
    color: #536675;
    font-size: clamp(17px, 5vw, 20px);
    line-height: 1.6;
    margin: 18px 0 0;
    width: 100%;
  }

  .page-rek .final-description br {
    display: none;
  }

  .page-rek .podval {
    height: 97px;
    margin: 0 auto;
    max-height: none;
    object-fit: none;
    object-position: center;
    position: static;
    width: min(280px, calc(100vw - 48px));
  }
}

/* One consistent left-cropped mobile header across every project page. */
@media (max-width: 600px) {
  body .shapka,
  body .header {
    height: 41px !important;
    left: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    position: absolute !important;
    top: 0 !important;
    transform: none !important;
    width: 100% !important;
  }

  body img.shapka {
    object-fit: cover !important;
    object-position: left top !important;
  }

  body .header {
    aspect-ratio: auto !important;
    background-position: left top !important;
    background-size: 1440px 41px !important;
  }
}

/* anim3 has stronger generated coordinates; keep its mobile states aligned. */
@media (max-width: 564px) {
  body.scenario-seguro.page-anim3 img.shapka {
    height: 41px !important;
    object-fit: cover !important;
    object-position: left top !important;
    width: 100% !important;
  }

  body.scenario-seguro.page-anim3.elbette-complete .transfer-error-ring {
    aspect-ratio: 1;
    height: auto;
    top: 22.5%;
    width: 25%;
  }

  body.scenario-seguro.page-anim3.elbette-complete .transfer-error-ring span {
    height: 52%;
    width: 52%;
  }

  body.scenario-seguro.page-anim3.elbette-complete .stato-in-elaborazione {
    left: 6% !important;
    right: 6% !important;
    top: 52.5%;
  }

  body.scenario-seguro.page-anim3.elbette-complete .sottotitolo-verifica-dei-dati-inseriti {
    left: 8% !important;
    line-height: 1.25;
    right: 8% !important;
    top: 62%;
  }

  body.scenario-seguro.page-anim3.elbette-complete .anim3-details-button {
    bottom: 5.862%;
    height: 8.276%;
    left: 10% !important;
    width: 80% !important;
  }
}

/* Horizontal mobile loan amount card for doğrulamak/anim5. */
@media (max-width: 600px) {
  body.scenario-verificar.page-anim5 .scheda-caricamento-e-errore-transfer-card > .row {
    align-items: center !important;
    background: #fff;
    border: 1px solid #dfe8ec;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(26, 64, 84, .05);
    box-sizing: border-box;
    display: grid !important;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) 120px minmax(0, .8fr);
    margin: 0 0 24px !important;
    min-height: 88px;
    padding: 17px 20px !important;
    position: static !important;
    width: 100% !important;
  }

  body.scenario-verificar.page-anim5 .scheda-caricamento-e-errore-transfer-card > .row > * {
    height: auto !important;
    left: auto !important;
    margin: 0 !important;
    position: static !important;
    right: auto !important;
    text-align: left !important;
    top: auto !important;
    width: auto !important;
  }

  body.scenario-verificar.page-anim5 .etichetta-importo-richiesto {
    color: #637985;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
  }

  body.scenario-verificar.page-anim5 .valore-35-000 {
    color: #174b68;
    font-size: 25px !important;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }

  body.scenario-verificar.page-anim5 .nota-importo-in-euro {
    color: #82919a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none !important;
  }
}

/* italycredito responsive verification layout for doğrulamak/rd3. */
.scenario-verificar.page-rd3 .rd3-mobile-progress {
  display: none;
}

@media (max-width: 900px) {
  body.scenario-verificar.page-rd3 img.shapka {
    height: 41px !important;
    object-fit: cover !important;
    object-position: left top !important;
    width: 100% !important;
  }

  body.scenario-verificar.page-rd3 .global_container_ {
    background: #eef3f5;
    box-sizing: border-box;
    min-height: 100vh;
    padding: 72px 20px 44px;
  }

  body.scenario-verificar.page-rd3 .scheda-principale-main-card {
    background: transparent;
    box-shadow: none;
    display: block;
    height: auto;
    margin: 0;
    max-width: 728px;
    padding: 0;
    position: static;
    width: 100%;
  }

  body.scenario-verificar.page-rd3 .riepilogo-prestito-loan-summary {
    align-items: center !important;
    background: #fff;
    border: 1px solid #dfe8ec;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(26, 64, 84, .05);
    box-sizing: border-box;
    display: grid !important;
    gap: 12px;
    grid-template-columns: 95px 110px minmax(0, 1fr);
    margin: 0 0 24px !important;
    min-height: 88px;
    padding: 17px 20px !important;
    position: static !important;
    width: 100% !important;
  }

  body.scenario-verificar.page-rd3 .riepilogo-prestito-loan-summary > * {
    height: auto !important;
    left: auto !important;
    margin: 0 !important;
    position: static !important;
    right: auto !important;
    text-align: left !important;
    top: auto !important;
    width: auto !important;
  }

  body.scenario-verificar.page-rd3 .etichetta-importo-richiesto {
    color: #637985;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
  }

  body.scenario-verificar.page-rd3 .valore-35-000 {
    color: #174b68;
    font-size: 22px !important;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }

  body.scenario-verificar.page-rd3 .nota-importo-in-euro {
    color: #82919a;
    font-size: 12px;
    line-height: 1.3;
  }

  body.scenario-verificar.page-rd3 .col {
    background: #fff;
    border: 1px solid #e2e9ec;
    border-radius: 17px;
    box-shadow: 0 12px 30px rgba(26, 64, 84, .06);
    box-sizing: border-box;
    display: block;
    height: auto;
    margin: 0;
    min-height: 0;
    padding: 25px 20px 26px;
    position: static;
    width: 100%;
  }

  body.scenario-verificar.page-rd3 .col > * {
    box-sizing: border-box;
    height: auto;
    left: auto;
    max-width: none;
    position: static;
    right: auto;
    top: auto;
    width: 100%;
  }

  body.scenario-verificar.page-rd3 .col > .text {
    align-items: center;
    background: #f3f8f9;
    border: 1px solid #d8e5e9;
    border-radius: 999px;
    color: #476d7c;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .035em;
    margin: 0 0 18px;
    padding: 7px 12px;
    width: auto;
  }

  body.scenario-verificar.page-rd3 .col > .text::before {
    background: #4893ad;
    border-radius: 50%;
    content: '';
    height: 8px;
    margin-right: 8px;
    width: 8px;
  }

  body.scenario-verificar.page-rd3 .testo-stato-del-trasferimento-i {
    margin: 0 0 17px;
  }

  body.scenario-verificar.page-rd3 .riga-1-stato-del-trasferime {
    color: #142f45;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.28;
    margin: 0;
    text-align: left;
  }

  body.scenario-verificar.page-rd3 .text-3 br,
  body.scenario-verificar.page-rd3 .riga-1-importante-questo-i br,
  body.scenario-verificar.page-rd3 .riga-1-tutte-le-transazioni br {
    display: none;
  }

  body.scenario-verificar.page-rd3 .row {
    align-items: end;
    background: #f2f6f7;
    border: 1px solid #e0e8eb;
    border-radius: 13px 13px 0 0;
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr auto;
    margin: 0 0 28px;
    padding: 16px 16px 27px;
    position: relative;
  }

  body.scenario-verificar.page-rd3 .row > *,
  body.scenario-verificar.page-rd3 .row * {
    height: auto;
    left: auto;
    margin: 0;
    position: static;
    right: auto;
    top: auto;
    width: auto;
  }

  body.scenario-verificar.page-rd3 .col-7 {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  body.scenario-verificar.page-rd3 .l-importo-del-pagamento-a {
    color: #5d7480;
    font-size: 13px;
    line-height: 1.35;
  }

  body.scenario-verificar.page-rd3 .l-importo-del-pagamento-a-2 {
    color: #526b78;
    font-size: 13px;
    font-weight: 700;
  }

  body.scenario-verificar.page-rd3 .valore-92 {
    color: #b52c2c;
    font-size: 20px;
    font-weight: 700;
  }

  body.scenario-verificar.page-rd3 .screenshot_2 {
    display: none;
  }

  body.scenario-verificar.page-rd3 .rd3-mobile-progress {
    background: #e4ecef;
    border-radius: 999px;
    display: block;
    height: 9px;
    bottom: 9px;
    left: 16px;
    margin: 0;
    overflow: hidden;
    position: absolute;
    right: 16px;
    width: auto;
  }

  body.scenario-verificar.page-rd3 .rd3-mobile-progress::before {
    background: linear-gradient(90deg, #d94a4a, #b52c2c);
    border-radius: inherit;
    content: '';
    inset: 0 8% 0 0;
    position: absolute;
  }

  body.scenario-verificar.page-rd3 .l-importo-del-pagamento-a-3 {
    color: #263f50;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 12px;
  }

  body.scenario-verificar.page-rd3 .row-2 {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr !important;
    margin: 0 0 26px;
  }

  body.scenario-verificar.page-rd3 .row-2 > * {
    align-items: center;
    border: 1px solid #e1e8eb;
    border-radius: 12px;
    color: #536875;
    display: flex;
    font-size: 14px;
    margin: 0;
    min-height: 56px;
    padding: 12px 16px 12px 48px;
    position: relative;
  }

  body.scenario-verificar.page-rd3 .row-2 > *::before {
    align-items: center;
    border-radius: 50%;
    display: flex;
    font-weight: 700;
    height: 24px;
    justify-content: center;
    left: 16px;
    position: absolute;
    top: 15px;
    width: 24px;
  }

  body.scenario-verificar.page-rd3 .l-importo-del-pagamento-a-4::before {
    background: #59b28a;
    color: #fff;
    content: '✓';
  }

  body.scenario-verificar.page-rd3 .l-importo-del-pagamento-a-5 {
    background: #f0f7f9;
    border-color: #a9cad5;
    color: #173d56;
    font-weight: 700;
  }

  body.scenario-verificar.page-rd3 .l-importo-del-pagamento-a-5::before {
    background: #4c84c7;
    color: #fff;
    content: '•';
    font-size: 24px;
  }

  body.scenario-verificar.page-rd3 .l-importo-del-pagamento-a-6::before {
    color: #cc6873;
    content: '⚑';
    font-size: 17px;
  }

  body.scenario-verificar.page-rd3 .il-tuo-prossimo-passo-ve,
  body.scenario-verificar.page-rd3 .text-3,
  body.scenario-verificar.page-rd3 .importo-per-completare-la,
  body.scenario-verificar.page-rd3 .testo-importante-questo-import,
  body.scenario-verificar.page-rd3 .text-4 {
    background: #f2f7f8;
    border-left: 1px solid #e0e8eb;
    border-right: 1px solid #e0e8eb;
    color: #536875;
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    padding: 0 18px;
  }

  body.scenario-verificar.page-rd3 .il-tuo-prossimo-passo-ve {
    border-radius: 13px 13px 0 0;
    border-top: 1px solid #e0e8eb;
    color: #173d56;
    font-size: 19px;
    font-weight: 700;
    padding-top: 56px;
    position: relative;
  }

  body.scenario-verificar.page-rd3 .il-tuo-prossimo-passo-ve::before {
    align-items: center;
    background: #e6f1f3;
    border-radius: 50%;
    color: #397184;
    content: '!';
    display: flex;
    font-size: 14px;
    height: 28px;
    justify-content: center;
    left: 18px;
    position: absolute;
    top: 16px;
    width: 28px;
  }

  body.scenario-verificar.page-rd3 .text-3,
  body.scenario-verificar.page-rd3 .importo-per-completare-la,
  body.scenario-verificar.page-rd3 .testo-importante-questo-import {
    padding-top: 13px;
  }

  body.scenario-verificar.page-rd3 .riga-1-importante-questo-i {
    margin: 0;
  }

  body.scenario-verificar.page-rd3 .text-4 {
    border-bottom: 1px solid #e0e8eb;
    border-radius: 0 0 13px 13px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    padding-top: 13px;
  }

  body.scenario-verificar.page-rd3 .rd3-why-details {
    border: 1px solid #dfe7ea;
    border-radius: 13px;
    box-shadow: 0 5px 14px rgba(26, 64, 84, .04);
    margin: 0 0 22px;
    min-height: 62px;
    position: relative;
    width: 100%;
  }

  body.scenario-verificar.page-rd3 .rd3-why-details::before {
    display: none;
  }

  body.scenario-verificar.page-rd3 .rd3-why-details summary {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    font-size: 14px;
    height: 62px;
    min-height: 62px;
    padding: 0 44px 0 18px;
  }

  body.scenario-verificar.page-rd3 .rd3-why-details summary::after {
    right: 18px;
  }

  body.scenario-verificar.page-rd3 .rd3-why-content {
    border-top: 1px solid #e3e9ec;
    font-size: 13px;
    line-height: 1.55;
    padding: 16px 18px 18px;
  }

  body.scenario-verificar.page-rd3 .layer-1-holder {
    height: auto;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  body.scenario-verificar.page-rd3 .runtime-button-image-mask {
    display: none;
  }

  body.scenario-verificar.page-rd3 button.pagare.runtime-button {
    border-radius: 999px;
    display: flex;
    height: 58px;
    margin: 0;
    min-height: 58px;
    width: 100%;
  }
}

@media (max-width: 700px) {
  body.scenario-seguro.page-anim4 .global_container_ {
    background: #eef3f5 !important;
  }

  body.scenario-seguro.page-anim4 button.text-4.runtime-button {
    background: #205b79 !important;
    border-radius: 999px !important;
    height: 52px !important;
    margin: 8px 0 0 !important;
    min-height: 52px !important;
    position: static !important;
    width: 100% !important;
  }

  body.scenario-seguro.page-anim4 .runtime-button-image-mask {
    display: none !important;
  }
}

@media (max-width: 520px) {
  body.scenario-documenti.page-rd4_2 { background: #748896; }
  body.scenario-documenti.page-rd4_2 .global_container_ {
    align-items: flex-start;
    background: linear-gradient(rgba(61,82,96,.6), rgba(61,82,96,.6)), url('../rd4/images/background.jpg') center top / cover no-repeat;
    display: flex;
    height: auto;
    justify-content: center;
    min-height: 100vh;
    padding: 56px 16px 55px;
    width: 100%;
  }
  body.scenario-documenti.page-rd4_2 .rd4turciya-holder {
    align-items: flex-start;
    background: transparent;
    display: flex;
    height: auto;
    justify-content: center;
    position: static;
    width: 100%;
  }
  body.scenario-documenti.page-rd4_2 .col {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(223,231,235,.9);
    border-radius: 22px;
    box-shadow: 0 16px 38px rgba(9,47,75,.2);
    display: flex;
    flex-direction: column;
    height: 733px;
    min-height: 733px;
    padding: 39px 30px 32px;
    position: relative;
    width: 358px;
  }
  body.scenario-documenti.page-rd4_2 .col::before {
    align-items: center;
    background: #eef9f4;
    border: 1px solid #d4ecdf;
    border-radius: 50%;
    box-shadow: 0 7px 20px rgba(43,164,119,.09);
    color: #2aaa78;
    content: '$';
    display: flex;
    flex: 0 0 auto;
    font-family: Arial, sans-serif;
    font-size: 39px;
    font-weight: 400;
    height: 64px;
    justify-content: center;
    line-height: 1;
    width: 64px;
  }
  body.scenario-documenti.page-rd4_2 .rd4-close {
    border-radius: 50%;
    box-shadow: none;
    height: 36px;
    margin: 0;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 36px;
  }
  body.scenario-documenti.page-rd4_2 .col > .gentile-cliente {
    color: #0c334d;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.28;
    margin: 24px 0 20px;
    text-align: center;
    width: 100%;
  }
  body.scenario-documenti.page-rd4_2 .col > .gentile-cliente-2,
  body.scenario-documenti.page-rd4_2 .col > .gentile-cliente-3 {
    align-items: center;
    background: #f4f8fa;
    border: 1px solid #dce6ea;
    border-radius: 13px;
    color: #174b68;
    display: flex;
    flex: 0 0 auto;
    font-size: 20px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.12;
    margin: 0;
    padding: 13px 15px;
    text-align: center;
    width: 100%;
  }
  body.scenario-documenti.page-rd4_2 .col > .gentile-cliente-2 { height: 224px; }
  body.scenario-documenti.page-rd4_2 .col > .gentile-cliente-3 { height: 157px; margin-top: 12px; }
  body.scenario-documenti.page-rd4_2 .col br,
  body.scenario-documenti.page-rd4_2 .runtime-button-image-mask { display: none; }
  body.scenario-documenti.page-rd4_2 .col > button.pagare.runtime-button {
    border-radius: 999px;
    flex: 0 0 auto;
    font-size: 16px;
    height: 54px;
    margin: auto 0 0;
    min-height: 54px;
    width: 100%;
  }
}

/* seguro/anim3 final state: anchor the top edge of the white result card to
   the active header instead of centering the card against 50vh. This keeps
   the reference 75px gap stable when browser zoom changes the CSS viewport. */
@media (min-width: 701px) {
  body.scenario-seguro.page-anim3.elbette-complete .col {
    top: 165px !important;
    transform: translateX(-50%) scale(var(--elbette-card-scale)) !important;
    transform-origin: top center !important;
  }

  body.scenario-seguro.page-anim3.elbette-complete .global_container_,
  body.scenario-seguro.page-anim3.elbette-complete .scheda-elaborazione-pagamento-processing-card {
    min-height: max(100vh, 785px);
  }
}

@media (min-width: 565px) and (max-width: 700px) {
  body.scenario-seguro.page-anim3.elbette-complete .col {
    top: calc(75px + 6.3889vw) !important;
    transform: translateX(-50%) scale(var(--elbette-card-scale)) !important;
    transform-origin: top center !important;
  }
}

/* cuento/form mobile progress dialog: retain the compact reference grid.
   Earlier generic form rules switch these children into document flow, which
   makes the Spanish title collide with the icon and exposes the disabled CTA. */
@media (max-width: 600px) {
  body.page-form.scenario-cuento.progress-open .combined-progress-card {
    aspect-ratio: auto !important;
    background: #fff !important;
    border: 1px solid #dce4e8 !important;
    border-radius: 21px !important;
    box-shadow: 0 16px 38px rgba(9, 47, 75, .2) !important;
    display: block !important;
    height: 300px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: relative !important;
    width: calc(100vw - 24px) !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card {
    aspect-ratio: 540 / 417 !important;
    height: auto !important;
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card::before {
    height: 46px !important;
    left: 24px !important;
    top: 24px !important;
    width: 46px !important;
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card .modal-close {
    height: 38px !important;
    right: 24px !important;
    top: 24px !important;
    width: 38px !important;
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card .titolo-invio-di-fondi-al-conto,
  body.page-form.scenario-cuento.progress-open .combined-progress-card .sottotitolo-verifica-dei-dati-inseriti,
  body.page-form.scenario-cuento.progress-open .combined-progress-card .row,
  body.page-form.scenario-cuento.progress-open .combined-progress-card .col-3,
  body.page-form.scenario-cuento.progress-open .combined-progress-card .stato-errore-di-trasferimento,
  body.page-form.scenario-cuento.progress-open .combined-progress-card .dettaglio-errore-operativo,
  body.page-form.scenario-cuento.progress-open .combined-progress-card .percentuale-96,
  body.page-form.scenario-cuento.progress-open .combined-progress-card .progress-track,
  body.page-form.scenario-cuento.progress-open .combined-progress-card .testo-pulsante-dettagliato {
    position: absolute !important;
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card .titolo-invio-di-fondi-al-conto {
    font-size: clamp(15px, 4.35vw, 17px) !important;
    left: 30px !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    right: 30px !important;
    text-align: left !important;
    top: 88px !important;
    width: auto !important;
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card .sottotitolo-verifica-dei-dati-inseriti {
    font-size: clamp(11.5px, 3.1vw, 13px) !important;
    left: 30px !important;
    line-height: 18px !important;
    margin: 0 !important;
    right: 30px !important;
    text-align: left !important;
    top: 119px !important;
    width: auto !important;
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card .row {
    align-items: initial !important;
    background: #f7fafb !important;
    border: 1px solid #e1e9ec !important;
    border-radius: 16px !important;
    display: block !important;
    height: 72px !important;
    left: 30px !important;
    margin: 0 !important;
    right: 30px !important;
    top: 151px !important;
    width: auto !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .row {
    background: #fff8f8 !important;
    border-color: #f0dddd !important;
    height: 19.18% !important;
    left: 7.593% !important;
    right: auto !important;
    top: 47.48% !important;
    width: 84.815% !important;
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card .col-3 {
    height: 38px !important;
    left: 16px !important;
    top: 10px !important;
    width: calc(100% - 112px) !important;
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card .stato-errore-di-trasferimento,
  body.page-form.scenario-cuento.progress-open .combined-progress-card .dettaglio-errore-operativo {
    left: 0 !important;
    margin: 0 !important;
    right: auto !important;
    width: 100% !important;
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card .stato-errore-di-trasferimento {
    font-size: 13px !important;
    line-height: 17px !important;
    top: 0 !important;
    white-space: normal !important;
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card .dettaglio-errore-operativo {
    font-size: 12px !important;
    line-height: 15px !important;
    top: 22px !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .col-3 {
    height: 46px !important;
    left: 16px !important;
    top: 5px !important;
    width: calc(100% - 112px) !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .stato-errore-di-trasferimento {
    font-size: clamp(11px, 3.05vw, 12px) !important;
    line-height: 14px !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .dettaglio-errore-operativo {
    font-size: 11px !important;
    line-height: 13px !important;
    top: 30px !important;
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card .percentuale-96 {
    font-size: 34px !important;
    line-height: 1 !important;
    margin: 0 !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: auto !important;
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card .progress-track {
    height: 7px !important;
    left: 30px !important;
    margin: 0 !important;
    right: 30px !important;
    top: 242px !important;
    width: auto !important;
  }

  body.page-form.scenario-cuento.progress-open:not(.is-complete) .combined-progress-card .testo-pulsante-dettagliato {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .titolo-invio-di-fondi-al-conto {
    left: 7.778% !important;
    right: 7.778% !important;
    top: 25.42% !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .sottotitolo-verifica-dei-dati-inseriti {
    left: 8.148% !important;
    right: 8.148% !important;
    top: 35.73% !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .progress-track {
    height: max(5px, 2.16%) !important;
    left: 7.778% !important;
    right: auto !important;
    top: 70.26% !important;
    width: 84.63% !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .testo-pulsante-dettagliato {
    display: flex !important;
    height: 13.19% !important;
    left: 7.593% !important;
    min-height: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    top: 77.94% !important;
    width: 84.815% !important;
  }
}

/* Extra room for the longer Spanish copy on very narrow phones. Keep this
   after the general mobile dialog rules so it wins the cascade. */
@media (max-width: 350px) {
  body.page-form.scenario-cuento.progress-open .combined-progress-card .titolo-invio-di-fondi-al-conto {
    top: 80px !important;
  }

  body.page-form.scenario-cuento.progress-open .combined-progress-card .sottotitolo-verifica-dei-dati-inseriti {
    top: 120px !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card {
    aspect-ratio: auto !important;
    height: 250px !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .titolo-invio-di-fondi-al-conto {
    font-size: 14px !important;
    left: 24px !important;
    line-height: 16px !important;
    right: 24px !important;
    top: 76px !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .sottotitolo-verifica-dei-dati-inseriti {
    left: 24px !important;
    right: 24px !important;
    top: 112px !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .row {
    height: 50px !important;
    left: 22px !important;
    top: 136px !important;
    width: calc(100% - 44px) !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .col-3 {
    left: 12px !important;
    top: 4px !important;
    width: calc(100% - 96px) !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .stato-errore-di-trasferimento {
    font-size: 10.5px !important;
    line-height: 12px !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .dettaglio-errore-operativo {
    font-size: 10px !important;
    line-height: 12px !important;
    top: 28px !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .percentuale-96 {
    font-size: 30px !important;
    right: 12px !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .progress-track {
    height: 5px !important;
    left: 22px !important;
    top: 194px !important;
    width: calc(100% - 44px) !important;
  }

  body.page-form.scenario-cuento.progress-open.is-complete .combined-progress-card .testo-pulsante-dettagliato {
    height: 34px !important;
    left: 22px !important;
    top: 205px !important;
    width: calc(100% - 44px) !important;
  }
}

/* cuento/rd1 mobile layout follows the Turkish result-page structure while
   retaining Panama's header, copy, currency and artwork. */
@media (max-width: 600px) {
  body.scenario-cuento.page-rd1 .global_container_ {
    padding: 72px 12px 48px !important;
  }

  body.scenario-cuento.page-rd1 .riepilogo-prestito-loan-summary {
    margin: 0 0 16px !important;
    min-height: 117px !important;
    padding: 19px 24px !important;
  }

  body.scenario-cuento.page-rd1 .scheda-principale-main-card {
    display: block !important;
    padding: 26px 21px !important;
  }

  body.scenario-cuento.page-rd1 .scheda-principale-main-card::before,
  body.scenario-cuento.page-rd1 .scheda-principale-main-card::after,
  body.scenario-cuento.page-rd1 .credit-step-complete,
  body.scenario-cuento.page-rd1 .credit-current-wave {
    display: none !important;
  }

  body.scenario-cuento.page-rd1 .mobile-credit-progress {
    display: block !important;
    margin: 0 0 26px !important;
    position: relative !important;
    width: 100% !important;
  }

  body.scenario-cuento.page-rd1 .mobile-credit-track {
    display: block !important;
    height: 3px !important;
    left: 16.7% !important;
    margin: 0 !important;
    position: absolute !important;
    right: 16.7% !important;
    top: 17px !important;
    width: auto !important;
  }

  body.scenario-cuento.page-rd1 .mobile-credit-track > span {
    display: block !important;
    height: 100% !important;
    margin: 0 !important;
    width: 50% !important;
  }

  body.scenario-cuento.page-rd1 .mobile-credit-steps {
    display: grid !important;
    position: relative !important;
    width: 100% !important;
  }

  body.scenario-cuento.page-rd1 .mobile-credit-step {
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    text-align: center !important;
  }

  body.scenario-cuento.page-rd1 .mobile-credit-dot {
    align-items: center !important;
    display: flex !important;
    height: 36px !important;
    justify-content: center !important;
    margin: 0 0 4px !important;
    width: 36px !important;
  }

  body.scenario-cuento.page-rd1 .mobile-credit-step strong {
    align-items: flex-start;
    display: flex;
    font-size: 11.5px !important;
    justify-content: center;
    line-height: 1.25 !important;
    min-height: 44px;
  }

  body.scenario-cuento.page-rd1 .mobile-credit-step small {
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  body.scenario-cuento.page-rd1 .group-2 .text br {
    display: none;
  }

  body.scenario-cuento.page-rd1 .dopo-il-pagamento-il-cont {
    text-align: left !important;
  }

  body.scenario-cuento.page-rd1 button.pagare.runtime-button {
    display: flex !important;
    height: 54px !important;
    margin: 20px 0 0 !important;
    min-height: 54px !important;
    width: 100% !important;
  }

  body.scenario-cuento.page-rd1 .mobile-rd1-logos {
    background: url('../rd1/images/2121.jpg') 42% center / 817px 78px no-repeat;
    display: block !important;
    height: 112px !important;
    margin: 26px auto 0 !important;
    position: static !important;
    width: min(300px, calc(100vw - 70px)) !important;
  }

  body.scenario-cuento.page-rd1 .badge-pagamento-sicuro-con-lucchetto-holder {
    display: flex !important;
    margin: 24px auto 0 !important;
    position: static !important;
    width: fit-content !important;
  }
}

/* Final mobile cascade for cuento/rek. Older generic result-page rules use
   !important, so this page-specific block must remain at the end. */
@media (max-width: 600px) {
  body.page-rek .global_container_ {
    height: auto !important;
    min-height: 100vh !important;
    padding: 0 !important;
  }

  body.page-rek .scheda-coordinate-pagamento-advisor-card {
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    height: auto !important;
    min-height: 100vh !important;
    padding: 81px 24px 40px !important;
    position: relative !important;
    width: 100% !important;
  }

  body.page-rek .scheda-coordinate-pagamento-advisor-card > .base-scheda-con-icona-messaggio-holder {
    background: #fff !important;
    border: 1px solid #e3eaed !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 55px rgba(21, 57, 75, .063) !important;
    display: block !important;
    height: auto !important;
    margin: 0 !important;
    min-height: 0 !important;
    padding: 28px !important;
    position: relative !important;
    width: 100% !important;
  }

  body.page-rek .scheda-coordinate-pagamento-advisor-card .final-advisor-icon {
    align-items: center !important;
    display: flex !important;
    height: 64px !important;
    justify-content: center !important;
    margin: 0 auto 24px !important;
    width: 64px !important;
  }

  body.page-rek .scheda-coordinate-pagamento-advisor-card .final-advisor-icon svg {
    height: 32px !important;
    width: 32px !important;
  }

  body.page-rek .scheda-coordinate-pagamento-advisor-card .final-title {
    font-size: clamp(25px, 8vw, 34px) !important;
    line-height: 1.2 !important;
    text-align: center !important;
    width: 100% !important;
  }

  body.page-rek .scheda-coordinate-pagamento-advisor-card .descrizione-it {
    margin: 18px 0 0 !important;
  }

  body.page-rek .scheda-coordinate-pagamento-advisor-card .final-description {
    font-size: clamp(17px, 5vw, 20px) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    text-align: center !important;
    width: 100% !important;
  }

  body.page-rek .scheda-coordinate-pagamento-advisor-card .final-description br {
    display: none !important;
  }

  body.page-rek .scheda-coordinate-pagamento-advisor-card .layer.podval {
    display: none !important;
  }

  body.page-rek .scheda-coordinate-pagamento-advisor-card .mobile-rek-logos {
    background: url('../rek/images/2121.png') center / 600px auto no-repeat;
    display: block !important;
    height: 97px !important;
    margin: 0 auto !important;
    mix-blend-mode: multiply;
    position: static !important;
    width: min(280px, calc(100vw - 48px)) !important;
  }
}

/* seguro/rd2: keep the three Turkish-reference checkmarks anchored to their
   own list rows after the generic mobile coordinate reset. */
@media (max-width: 600px) {
  body.scenario-seguro.page-rd2 .global_container_ {
    padding: 72px 17px 44px !important;
  }

  body.scenario-seguro.page-rd2 .text-2,
  body.scenario-seguro.page-rd2 .text-3,
  body.scenario-seguro.page-rd2 .text-4 {
    position: relative !important;
  }
}

/* verificar/rd3 confirmation modal uses the current reference markup. Older
   compatibility rules target the same children with !important, therefore
   the final geometry is explicitly restored here. */
@media (min-width: 521px) {
  body.scenario-verificar.page-rd3 .rd3-payment-modal {
    height: 497px !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 488px !important;
  }

  body.scenario-verificar.page-rd3 .rd3-payment-title {
    left: 0 !important;
    position: absolute !important;
    right: 0 !important;
    top: 130px !important;
    width: auto !important;
  }

  body.scenario-verificar.page-rd3 .rd3-payment-copy {
    align-items: center !important;
    display: flex !important;
    height: 196px !important;
    justify-content: center !important;
    left: 31px !important;
    padding: 18px 20px !important;
    position: absolute !important;
    top: 181px !important;
    width: 425px !important;
  }

  body.scenario-verificar.page-rd3 .rd3-payment-confirm {
    height: 61px !important;
    left: 31px !important;
    position: absolute !important;
    top: 402px !important;
    width: 425px !important;
  }
}

/* Keep the primary rd3 action centered with equal mobile side insets. */
@media (max-width: 900px) {
  body.scenario-verificar.page-rd3 .layer-1-holder {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  body.scenario-verificar.page-rd3 .layer-1-holder > button.pagare.runtime-button {
    align-items: center !important;
    display: flex !important;
    justify-content: center !important;
    left: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    right: auto !important;
    text-align: center !important;
    width: 100% !important;
  }
}

/* documenti/rd4: match the reference card position below the mobile header. */
@media (max-width: 700px) {
  body.scenario-documenti.page-rd4 .global_container_ {
    padding-top: 72px !important;
  }
}

@media (max-width: 520px) {
  body.scenario-verificar.page-rd3 .rd3-payment-modal {
    aspect-ratio: 358 / 365 !important;
    height: auto !important;
    max-height: calc(100vh - 24px) !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: min(358px, calc(100vw - 32px)) !important;
  }

  body.scenario-verificar.page-rd3 .rd3-payment-title {
    font-size: 21px !important;
    left: 24px !important;
    position: absolute !important;
    right: 24px !important;
    top: 95px !important;
    width: auto !important;
  }

  body.scenario-verificar.page-rd3 .rd3-payment-copy {
    font-size: 21px !important;
    height: 143px !important;
    left: 23px !important;
    padding: 15px !important;
    position: absolute !important;
    right: 23px !important;
    top: 133px !important;
    width: auto !important;
  }

  body.scenario-verificar.page-rd3 .rd3-payment-confirm {
    bottom: 24px !important;
    height: 45px !important;
    left: 23px !important;
    min-height: 45px !important;
    position: absolute !important;
    top: auto !important;
    width: calc(100% - 46px) !important;
  }
}

/* firma/rd5 mobile composition matched to the Turkish reference. */
@media (min-width: 1440px) {
  body.scenario-firma.page-rd5 .group-2 > .row {
    display: none !important;
  }
}

@media (max-width: 520px) {
  body.scenario-firma.page-rd5 .global_container_ {
    padding: 72px 20px 44px !important;
  }

  body.scenario-firma.page-rd5 .scheda-principale-main-card {
    display: block !important;
    padding: 0 !important;
  }

  body.scenario-firma.page-rd5 .scheda-principale-main-card > .riepilogo-prestito-loan-summary {
    align-items: center !important;
    background: rgba(255,255,255,.96) !important;
    border: 1px solid #d6e2e8 !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 30px rgba(23,75,104,.06) !important;
    column-gap: 16px !important;
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto minmax(0,.7fr) !important;
    height: 93px !important;
    margin: 0 auto 28px !important;
    padding: 18px 24px !important;
    width: min(350px, 100%) !important;
  }

  body.scenario-firma.page-rd5 .riepilogo-prestito-loan-summary > * {
    left: auto !important;
    margin: 0 !important;
    position: static !important;
    right: auto !important;
    text-align: left !important;
    top: auto !important;
    width: auto !important;
  }

  body.scenario-firma.page-rd5 .etichetta-importo-richiesto {
    font-size: 13px !important;
    line-height: 1.17 !important;
  }

  body.scenario-firma.page-rd5 .valore-35-000 {
    color: #092f4b !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  body.scenario-firma.page-rd5 .nota-importo-in-euro {
    color: #7b919d !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
  }

  body.scenario-firma.page-rd5 .scheda-principale-main-card > .col {
    align-items: center !important;
    background: #fff !important;
    border: 1px solid #e3eaed !important;
    border-radius: 24px !important;
    box-shadow: 0 18px 55px rgba(21,57,75,.08) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin: 0 auto !important;
    min-height: 0 !important;
    padding: 32px 22px !important;
    width: min(350px, 100%) !important;
  }

  body.scenario-firma.page-rd5 .firma-step-mask,
  body.scenario-firma.page-rd5 .row {
    display: none !important;
  }

  body.scenario-firma.page-rd5 .col > .firma-step-card {
    align-items: center !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex: 0 0 72px !important;
    gap: 13px !important;
    height: 72px !important;
    margin: 0 0 42px !important;
    padding: 14px 16px !important;
    position: relative !important;
    width: 100% !important;
  }

  body.scenario-firma.page-rd5 .firma-step-card-1,
  body.scenario-firma.page-rd5 .firma-step-card-2 {
    background: #eff9f4 !important;
    border: 2px solid #25a876 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.04) !important;
    color: #092f4b !important;
  }

  body.scenario-firma.page-rd5 .firma-step-card-3 {
    background: #fff5f6 !important;
    border: 2px solid #d84f60 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.04) !important;
    color: #7b1d28 !important;
    margin-bottom: 38px !important;
  }

  body.scenario-firma.page-rd5 .firma-step-card-1::after,
  body.scenario-firma.page-rd5 .firma-step-card-2::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M13 2v17M7 14l6 6 6-6' fill='none' stroke='%2325a876' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.4'/%3E%3C/svg%3E") center / 26px 26px no-repeat !important;
    bottom: -34px !important;
    content: '' !important;
    height: 26px !important;
    left: 50% !important;
    position: absolute !important;
    transform: translateX(-50%) !important;
    width: 26px !important;
  }

  body.scenario-firma.page-rd5 .firma-step-badge {
    align-items: center !important;
    background: #25a876 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cpath d='m5 11.5 4 4 8-9' fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E") center / 22px 22px no-repeat !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(37,168,118,.3) !important;
    color: #fff !important;
    display: flex !important;
    flex: 0 0 40px !important;
    font-size: 0 !important;
    height: 40px !important;
    justify-content: center !important;
    margin: 0 !important;
    width: 40px !important;
  }

  body.scenario-firma.page-rd5 .firma-step-card-3 .firma-step-badge {
    background: #d84f60 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='m6 6 8 8m0-8-8 8' fill='none' stroke='white' stroke-linecap='round' stroke-width='2'/%3E%3C/svg%3E") center / 20px 20px no-repeat !important;
    box-shadow: 0 4px 12px rgba(216,79,96,.3) !important;
  }

  body.scenario-firma.page-rd5 .firma-step-card > span:last-child {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    line-height: 18.225px !important;
    margin: 0 !important;
    text-align: left !important;
    width: auto !important;
  }

  body.scenario-firma.page-rd5 .firma-step-card-3 > span:last-child {
    color: #7b1d28 !important;
  }

  body.scenario-firma.page-rd5 .group-2 .text br,
  body.scenario-firma.page-rd5 .group-3 .text-2 br {
    display: none !important;
  }

  body.scenario-firma.page-rd5 .col > .group-2,
  body.scenario-firma.page-rd5 .col > .group-3 {
    height: auto !important;
    position: static !important;
    width: 100% !important;
  }

  body.scenario-firma.page-rd5 .col > .group-2 {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 10px 10px 0 !important;
  }

  body.scenario-firma.page-rd5 .group-2 .text,
  body.scenario-firma.page-rd5 .group-3 .text-2 {
    height: auto !important;
    left: auto !important;
    margin: 0 !important;
    position: static !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
  }

  body.scenario-firma.page-rd5 .group-2 .text {
    color: #2b3e48 !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    line-height: 27.2px !important;
    text-align: center !important;
  }

  body.scenario-firma.page-rd5 .col > .group-3 {
    align-items: center !important;
    background: #f1f6f8 !important;
    border: 1px solid #dce7ec !important;
    border-radius: 14px !important;
    display: flex !important;
    margin: 18px 10px 32px !important;
    padding: 16px 22px !important;
    width: calc(100% - 20px) !important;
  }

  body.scenario-firma.page-rd5 .group-3 .text-2 {
    color: #174b68 !important;
    font-size: 15.5px !important;
    font-weight: 600 !important;
    line-height: 24.8px !important;
    text-align: center !important;
  }

  body.scenario-firma.page-rd5 .runtime-button-image-mask {
    display: none !important;
  }

  body.scenario-firma.page-rd5 .col > button.pagare.runtime-button {
    border-radius: 999px !important;
    flex: 0 0 58px !important;
    font-size: 16px !important;
    height: 58px !important;
    margin: 0 !important;
    min-height: 58px !important;
    width: calc(100% - 20px) !important;
  }

  body.scenario-firma.page-rd5 .col > .pagare-per-la-firma-del-c {
    color: #5b717e !important;
    font-size: 13px !important;
    line-height: 18.2px !important;
    margin: 10px 0 0 !important;
    position: static !important;
    text-align: center !important;
    width: 100% !important;
  }
}

