/* Andromède - Financement WooCommerce */

.andromede-financement-wrap {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: 760px;
  margin: 28px 0;
}

.andromede-financement-card {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0, 96, 170, 0.18);
  border-radius: 18px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.andromede-financement-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #0060aa;
  font-size: 22px;
  line-height: 1.2;
}

.andromede-financement-price {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: #1f2f46;
  margin: 0 0 10px;
}

.andromede-financement-note {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.5;
  color: #4b5563;
}

.andromede-financement-options {
  display: grid;
  gap: 10px;
  margin: 16px 0 20px;
}

.andromede-financement-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  padding: 13px 15px;
  border: 1px solid rgba(0, 96, 170, 0.22);
  border-radius: 12px;
  background: #f8fbfd;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.andromede-financement-option:hover {
  border-color: #00a6f9;
  background: #f1f9fe;
}

.andromede-financement-option input {
  margin: 4px 0 0;
  flex: 0 0 auto;
}

.andromede-financement-option:has(input:checked) {
  border-color: #f28c00;
  background: #fff7ed;
}

.andromede-financement-option-content {
  display: block;
  min-width: 0;
  width: 100%;
}

.andromede-financement-option-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.andromede-financement-duration {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-weight: 700;
  color: #1f2f46;
}

.andromede-financement-monthly {
  font-weight: 800;
  color: #f28c00;
  white-space: nowrap;
  text-align: right;
}

.andromede-financement-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  padding: 12px 20px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}

.andromede-financement-btn-cash {
  background: #0060aa !important;
  color: #ffffff !important;
}

.andromede-financement-btn-location,
.andromede-financement-btn-financement {
  background: #f28c00 !important;
  color: #ffffff !important;
  border: none !important;
}

.andromede-financement-legal {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #6b7280;
}

@media only screen and (max-width: 767px) {
  .andromede-financement-wrap {
    gap: 16px;
    max-width: 100%;
  }

  .andromede-financement-card {
    padding: 18px;
  }

  .andromede-financement-card h3 {
    font-size: 20px;
  }

  .andromede-financement-price {
    font-size: 24px;
  }

  .andromede-financement-option {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
  }

  .andromede-financement-option-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .andromede-financement-monthly {
    white-space: normal;
    text-align: left;
  }
}


.andromede-financement-more {
  appearance: none;
  background: transparent;
  border: none;
  color: #f28c00;
  cursor: pointer;
  font-weight: 700;
  padding: 0;
  margin: 0 0 14px;
  text-decoration: underline;
}

.andromede-financement-more:hover {
  color: #d97800;
}

.andromede-financement-more-content {
  border-left: 4px solid #f28c00;
  background: #fff7ed;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: #374151;
}

.andromede-financement-more-content p:last-child,
.andromede-financement-more-content ul:last-child {
  margin-bottom: 0;
}

.andromede-financement-more-content a {
  color: #f28c00;
  font-weight: 700;
}


.andromede-financement-btn-location span,
.andromede-financement-btn-financement span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.95;
  margin-top: 3px;
}

.andromede-financement-btn-location,
.andromede-financement-btn-financement {
  flex-direction: column;
  gap: 2px;
}

.andromede-financement-total {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.25;
  color: #6b7280;
  white-space: normal;
}

.andromede-financement-modal[hidden] {
  display: none !important;
}

.andromede-financement-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.andromede-financement-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
}

.andromede-financement-modal-panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(80vh, 760px);
  overflow: auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.andromede-financement-modal-panel h4 {
  margin: 0 40px 16px 0;
  color: #0060aa;
  font-size: 22px;
  line-height: 1.25;
}

.andromede-financement-modal-close {
  appearance: none;
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: #f3f4f6;
  color: #1f2937;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.andromede-financement-modal-close:hover {
  background: #e5e7eb;
}

.andromede-financement-modal .andromede-financement-more-content {
  margin: 0;
}

body.andromede-financement-modal-open {
  overflow: hidden;
}

.andromede-financement-btn-financement {
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  max-width: 440px;
  margin: 8px auto 0;
  background: #f28c00 !important;
  color: #ffffff !important;
  border: none !important;
  text-align: center;
  white-space: normal;
  font-size: 15px !important;
  line-height: 1.15 !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

.andromede-financement-btn-financement:hover,
.andromede-financement-btn-financement:focus {
  background: #d97800 !important;
  color: #ffffff !important;
}

.andromede-financement-btn-financement span {
  display: block;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 600;
  opacity: 0.95;
  margin-top: 2px;
}

@media only screen and (max-width: 767px) {
  .andromede-financement-total {
    white-space: normal;
  }

  .andromede-financement-modal {
    padding: 14px;
  }

  .andromede-financement-modal-panel {
    max-height: 86vh;
    padding: 22px 20px;
  }
}


.andromede-financement-total-summary {
  margin: -6px 0 16px;
  font-size: 12.5px;
  line-height: 1.35;
  color: #6b7280;
}

.andromede-financement-total-summary.is-warning {
  color: #b45309;
  font-weight: 700;
}


/* Version 1.6.8 : ajout de repères verticaux pour les durées du curseur */
.andromede-financement-slider-wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 16px 0 12px;
  padding: 16px 18px 14px;
  border: 1px solid rgba(0, 96, 170, 0.18);
  border-radius: 16px;
  background: #f8fbfd;
  overflow: hidden;
}

.andromede-financement-slider-values {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  color: #1f2f46;
}

.andromede-financement-slider-duration {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: #1f2f46;
}

.andromede-financement-slider-duration strong {
  font-size: 18px;
  font-weight: 800;
  color: #1f2f46;
}

.andromede-financement-slider-monthly {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 600;
  color: #1f2f46;
  text-align: right;
}

.andromede-financement-slider-monthly strong {
  font-size: 18px;
  font-weight: 800;
  color: #1f2f46;
  white-space: nowrap;
}

.andromede-financement-slider-monthly-label {
  color: #1f2f46;
  white-space: nowrap;
}

input.andromede-financement-slider[type="range"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
  height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  --andromede-slider-progress: 0%;
}

input.andromede-financement-slider[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #f28c00 0%,
    #f28c00 var(--andromede-slider-progress),
    #d8e7f5 var(--andromede-slider-progress),
    #d8e7f5 100%
  );
}

input.andromede-financement-slider[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  border: 3px solid #1f2f46;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(31, 47, 70, 0.22);
}

input.andromede-financement-slider[type="range"]::-moz-range-track {
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: #d8e7f5;
}

input.andromede-financement-slider[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: #f28c00;
}

input.andromede-financement-slider[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #1f2f46;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(31, 47, 70, 0.22);
}

.andromede-financement-slider-ticks {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  margin-top: -2px;
  margin-bottom: 8px;
  padding: 0 1px;
  pointer-events: none;
}

.andromede-financement-slider-tick {
  display: block;
  width: 2px;
  height: 12px;
  border-radius: 999px;
  background: #bfd3e6;
  flex: 0 0 auto;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.andromede-financement-slider-tick.is-active {
  background: #1f2f46;
  transform: scaleY(1.08);
}

.andromede-financement-slider-labels {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.2;
  color: #6b7280;
}

.andromede-financement-slider-labels span {
  min-width: 0;
  text-align: center;
}

.andromede-financement-slider-labels span:first-child {
  text-align: left;
}

.andromede-financement-slider-labels span:last-child {
  text-align: right;
}

.andromede-financement-slider-wrap.is-selected {
  border-color: #1f2f46;
  background: #f8fbfd;
}

@media only screen and (max-width: 767px) {
  .andromede-financement-slider-wrap {
    padding: 14px;
  }

  .andromede-financement-slider-values {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .andromede-financement-slider-monthly {
    width: 100%;
    justify-content: space-between;
    text-align: left;
    font-size: 13px;
  }

  .andromede-financement-slider-monthly strong {
    font-size: 16px;
  }

  .andromede-financement-slider-ticks {
    margin-bottom: 6px;
  }

  .andromede-financement-slider-labels {
    font-size: 10.5px;
  }
}


/* Version 1.6.9 : shortcode de récapitulatif de financement */
.andromede-financement-recap {
  width: 100%;
  max-width: 760px;
  margin: 18px 0 24px;
  box-sizing: border-box;
}

.andromede-financement-recap-empty {
  border: 1px dashed rgba(0, 96, 170, 0.25);
  border-radius: 14px;
  padding: 16px 18px;
  background: #f8fbfd;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.45;
}

.andromede-financement-recap-card {
  border: 1px solid rgba(0, 96, 170, 0.18);
  border-radius: 18px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.andromede-financement-recap-kicker {
  margin: 0 0 6px;
  color: #f28c00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.andromede-financement-recap-card h3 {
  margin: 0 0 8px;
  color: #0060aa;
  font-size: 22px;
  line-height: 1.2;
}

.andromede-financement-recap-product {
  margin: 0 0 16px;
  color: #1f2f46;
  font-size: 16px;
  font-weight: 700;
}

.andromede-financement-recap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
}

.andromede-financement-recap-grid div {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fbfd;
}

.andromede-financement-recap-grid dt {
  margin: 0 0 4px;
  color: #6b7280;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.andromede-financement-recap-grid dd {
  margin: 0;
  color: #1f2f46;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.andromede-financement-recap-note {
  margin: 14px 0 0;
  color: #6b7280;
  font-size: 12.5px;
  line-height: 1.45;
}

@media only screen and (max-width: 767px) {
  .andromede-financement-recap-card {
    padding: 18px;
  }

  .andromede-financement-recap-grid {
    grid-template-columns: 1fr;
  }
}


/* Version 1.7.0 : verrouillage des couleurs du shortcode récap contre les styles du thème */
.andromede-financement-recap,
.andromede-financement-recap * {
  box-sizing: border-box;
}

.andromede-financement-recap .andromede-financement-recap-empty {
  background: #f8fbfd !important;
  color: #6b7280 !important;
}

.andromede-financement-recap .andromede-financement-recap-card {
  background: #ffffff !important;
  color: #1f2f46 !important;
}

.andromede-financement-recap .andromede-financement-recap-kicker {
  color: #f28c00 !important;
}

.andromede-financement-recap .andromede-financement-recap-card h1,
.andromede-financement-recap .andromede-financement-recap-card h2,
.andromede-financement-recap .andromede-financement-recap-card h3,
.andromede-financement-recap .andromede-financement-recap-card h4,
.andromede-financement-recap .andromede-financement-recap-card h5,
.andromede-financement-recap .andromede-financement-recap-card h6,
.andromede-financement-recap .andromede-financement-recap-card h3 a {
  color: #0060aa !important;
}

.andromede-financement-recap .andromede-financement-recap-product {
  color: #1f2f46 !important;
}

.andromede-financement-recap .andromede-financement-recap-grid div {
  background: #f8fbfd !important;
}

.andromede-financement-recap .andromede-financement-recap-grid dt {
  color: #6b7280 !important;
}

.andromede-financement-recap .andromede-financement-recap-grid dd,
.andromede-financement-recap .andromede-financement-recap-grid strong {
  color: #1f2f46 !important;
}

.andromede-financement-recap .andromede-financement-recap-note {
  color: #6b7280 !important;
}


/* Version 1.7.1 : le shortcode récap est masqué tant que le bouton financement n’a pas été cliqué */
.andromede-financement-recap[hidden] {
  display: none !important;
}

.andromede-financement-recap:not(.is-filled) {
  display: none !important;
}
