.fz-mp-cuotas {
  --fz-mp-ink: #292929;
  --fz-mp-muted: #6b6b6b;
  --fz-mp-line: #dfdfdf;
  --fz-mp-soft: #f7f7f7;
  --fz-mp-accent: #b8322a;
  --fz-mp-blue: #168ad6;
  --fz-mp-yellow: #ffe600;
  display: block !important;
  position: relative;
  isolation: isolate;
  flex: 0 0 100% !important;
  align-self: stretch !important;
  width: 100% !important;
  min-width: 0;
  max-width: 100% !important;
  margin: 14px 0 18px;
  color: var(--fz-mp-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.fz-mp-cuotas,
.fz-mp-cuotas *,
.fz-mp-cuotas *::before,
.fz-mp-cuotas *::after {
  box-sizing: border-box;
}

/* Elementor puede conservar en el widget el ancho configurado para el aviso anterior. */
.elementor-widget-shortcode.fz-mp-cuotas-host {
  --width: 100% !important;
  flex: 0 0 100% !important;
  align-self: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.elementor-widget-shortcode.fz-mp-cuotas-host > .elementor-widget-container,
.elementor-widget-shortcode.fz-mp-cuotas-host .elementor-shortcode {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

/* El calculador reemplaza el aviso estático de cuotas de la plantilla. */
.fz-mp-cuotas-legacy {
  display: none !important;
}

.fz-mp-cuotas--pending {
  display: none !important;
}

.elementor .fz-mp-cuotas button.fz-mp-cuotas__trigger,
.fz-mp-cuotas button.fz-mp-cuotas__trigger {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 12px;
  gap: 12px;
  align-items: center;
  width: 100% !important;
  max-width: none !important;
  min-height: 70px;
  height: auto !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 1px solid var(--fz-mp-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: var(--fz-mp-ink) !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  line-height: 1.2 !important;
  text-align: left !important;
  text-decoration: none !important;
  text-transform: none !important;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.elementor .fz-mp-cuotas button.fz-mp-cuotas__trigger:hover,
.elementor .fz-mp-cuotas button.fz-mp-cuotas__trigger:focus,
.fz-mp-cuotas button.fz-mp-cuotas__trigger:hover,
.fz-mp-cuotas button.fz-mp-cuotas__trigger:focus {
  border-color: #bcbcbc !important;
  background: #fff !important;
  color: var(--fz-mp-ink) !important;
  box-shadow: 0 3px 12px rgba(41, 41, 41, 0.08) !important;
}

.fz-mp-cuotas__trigger:focus-visible,
.fz-mp-cuotas__checkout:focus-visible {
  outline: 3px solid rgba(22, 138, 214, 0.3);
  outline-offset: 2px;
}

.fz-mp-cuotas__icon {
  display: grid !important;
  place-items: center;
  flex: 0 0 auto;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50%;
  background: var(--fz-mp-yellow) !important;
}

.fz-mp-cuotas__icon svg {
  width: 22px;
  height: 22px;
  fill: var(--fz-mp-blue);
}

.fz-mp-cuotas__copy {
  display: flex !important;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.fz-mp-cuotas__brand {
  margin: 0 !important;
  color: var(--fz-mp-muted) !important;
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

.fz-mp-cuotas__title {
  display: block;
  min-width: 0;
  margin: 0 !important;
  color: var(--fz-mp-ink) !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  line-height: 1.3 !important;
  overflow-wrap: anywhere;
  text-transform: none !important;
}

.fz-mp-cuotas__lead {
  display: block;
  margin: 0 !important;
  color: var(--fz-mp-muted) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere;
  text-transform: none !important;
}

.fz-mp-cuotas__chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.fz-mp-cuotas--open .fz-mp-cuotas__chevron {
  transform: rotate(225deg);
}

.fz-mp-cuotas__panel {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--fz-mp-line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: var(--fz-mp-soft);
}

.fz-mp-cuotas--open .fz-mp-cuotas__trigger {
  border-radius: 8px 8px 0 0 !important;
}

.fz-mp-cuotas__panel[hidden] {
  display: none;
}

.fz-mp-cuotas__panel-title {
  margin: 0 0 10px;
  color: var(--fz-mp-ink) !important;
  font-family: inherit !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.fz-mp-cuotas__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fz-mp-cuotas__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid #e4e4e4;
  font-size: 14px;
  line-height: 1.35;
}

.fz-mp-cuotas__list li:last-child {
  border-bottom: 0;
}

.fz-mp-cuotas__list strong {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
}

.fz-mp-cuotas__notice {
  margin: 12px 0;
  color: var(--fz-mp-muted);
  font-size: 12px;
  line-height: 1.45;
}

.elementor .fz-mp-cuotas button.fz-mp-cuotas__checkout,
.fz-mp-cuotas button.fz-mp-cuotas__checkout {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 42px;
  height: auto !important;
  margin: 0 !important;
  padding: 11px 16px !important;
  border: 1px solid var(--fz-mp-accent) !important;
  border-radius: 5px !important;
  background: var(--fz-mp-accent) !important;
  box-shadow: none !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: none !important;
  cursor: pointer;
}

.elementor .fz-mp-cuotas button.fz-mp-cuotas__checkout:hover,
.elementor .fz-mp-cuotas button.fz-mp-cuotas__checkout:focus,
.fz-mp-cuotas button.fz-mp-cuotas__checkout:hover,
.fz-mp-cuotas button.fz-mp-cuotas__checkout:focus {
  border-color: #9f2c25 !important;
  background: #9f2c25 !important;
  color: #fff !important;
}

.elementor .fz-mp-cuotas button.fz-mp-cuotas__checkout:disabled,
.fz-mp-cuotas button.fz-mp-cuotas__checkout:disabled {
  border-color: #bdbdbd !important;
  background: #bdbdbd !important;
  color: #fff !important;
  cursor: not-allowed;
  filter: none;
}

@media (max-width: 767px) {
  .fz-mp-cuotas {
    margin: 12px 0 16px;
  }

  .elementor .fz-mp-cuotas button.fz-mp-cuotas__trigger,
  .fz-mp-cuotas button.fz-mp-cuotas__trigger {
    grid-template-columns: 36px minmax(0, 1fr) 10px;
    gap: 9px;
    min-height: 72px;
    padding: 11px 10px !important;
  }

  .fz-mp-cuotas__title {
    font-size: 14px !important;
  }

  .fz-mp-cuotas__lead {
    font-size: 12px !important;
  }

  .fz-mp-cuotas__panel {
    padding: 14px 12px;
  }

  .fz-mp-cuotas__list li {
    gap: 10px;
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .elementor .fz-mp-cuotas button.fz-mp-cuotas__trigger,
  .fz-mp-cuotas button.fz-mp-cuotas__trigger {
    grid-template-columns: 34px minmax(0, 1fr) 8px;
    gap: 8px;
    padding-inline: 9px !important;
  }

  .fz-mp-cuotas__icon {
    width: 34px !important;
    height: 34px !important;
  }

  .fz-mp-cuotas__icon svg {
    width: 20px;
    height: 20px;
  }

  .fz-mp-cuotas__brand {
    font-size: 10px !important;
  }

  .fz-mp-cuotas__title {
    font-size: 13px !important;
  }

  .fz-mp-cuotas__lead {
    font-size: 11.5px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fz-mp-cuotas__trigger,
  .fz-mp-cuotas__chevron {
    transition: none;
  }
}
