/* 1. Empêcher Bootstrap de modifier la police et le fond du BODY du site */
:where(body:not(.arlon-simulator)) {
    background-color: initial; /* Redonne la main au thème WP */
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

/* 2. Empêcher le soulignement des liens hors du simulateur */
:where(a:not(.arlon-simulator *)) {
    text-decoration: inherit !important;
    color: inherit;
}

/* 3. Empêcher Bootstrap de modifier les marges des titres du thème */
:where(h1, h2, h3, h4, h5, h6):not(.arlon-simulator *) {
    margin-top: inherit;
    margin-bottom: inherit;
    font-weight: inherit;
    line-height: inherit;
}
.acsim-cta-btn{
    border-radius: 14px;
    padding: 22px 18px;
    border-color: #ff6d29;
    text-align: center;
    box-shadow: 0 10px 22px rgba(0,0,0,.15);
}
.acsim-cta-btn:hover{ filter: brightness(.97); border-color: #ff6d29; background-color: #ff6d29; color: #fff;}
.acsim-cta-title{ font-weight: 800; letter-spacing: .4px; font-size: 16px; }
.acsim-cta-sub{ font-weight: 800; letter-spacing: .4px; font-size: 16px; margin-top: 6px; }
.acsim-arrow{ font-size: 22px; vertical-align: -1px; }

.acsim-recap{
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.08);
}
.acsim-recap-item{
    display:flex;
    justify-content:space-between;
    gap: 10px;
    padding: 4px 0;
}
.acsim-recap-item span{ color: rgba(0,0,0,.65); }

/* slider */
.ac-amount{
    --ac-track: #d7d7d7;
    --ac-thumb: #ff6d29;
    --ac-pill-bg: #f6f7f8;
    --ac-pill-bd: #d8dadd;
    --ac-step-bg: #4a4a4a;
    --ac-step-fg: #ffffff;

    margin-top: 6px;
}

.ac-amount__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:10px;
}

.ac-amount__pill{
    border: 1px solid #d8dadd;
    border-radius: 12px;
    padding: 8px 12px;
    display:inline-flex;
    align-items:center;
}

.ac-amount__pillInput{
    width: 140px;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-weight: 700;
    font-size: 20px;
    color: #0a0a3a;
    text-align: center;
    padding: 0;
    appearance: none;           /* évite effets navigateur */
}

.ac-amount.is-manual .ac-amount__pill{
    background: #fff;
    border-color: #bfc4c9;
}

/* Toggle switch (icon-like) */
.ac-toggle{ display:inline-flex; align-items:center; cursor:pointer; }
.ac-toggle input{ display:none; }

.ac-toggle__track{
    width: 44px;
    height: 26px;
    background:#111;
    border-radius: 26px;
    position:relative;
    opacity:.15;
    transition: .2s;
}
.ac-toggle__track::after{
    content:'';
    width: 20px;
    height: 20px;
    background:#fff;
    border-radius: 50%;
    position:absolute;
    top:3px; left:3px;
    transition: .2s;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.ac-toggle input:checked + .ac-toggle__track{
    opacity: .9;
    background: var(--ac-thumb);
}
.ac-toggle input:checked + .ac-toggle__track::after{
    transform: translateX(18px);
}

/* Row */
.ac-amount__row{
    display:flex;
    align-items:center;
    gap:12px;
}

.ac-amount__step{
    width:44px;
    height:44px;
    border:0;
    border-radius:10px;
    background: var(--ac-step-bg);
    color: var(--ac-step-fg);
    font-size:22px;
    line-height:1;
    cursor:pointer;
}

.ac-amount__range{
    flex:1;
    appearance:none;
    height: 10px;
    border-radius: 999px;
    background: var(--ac-track);
    outline:none;
}

/* WebKit thumb */
.ac-amount__range::-webkit-slider-thumb{
    appearance:none;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--ac-thumb);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    cursor:pointer;
    margin-top: -6px;
}
.ac-amount__range::-webkit-slider-runnable-track{
    height: 10px;
    border-radius: 999px;
    background: var(--ac-track);
}

/* Firefox */
.ac-amount__range::-moz-range-thumb{
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--ac-thumb);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    cursor:pointer;
}
.ac-amount__range::-moz-range-track{
    height: 10px;
    border-radius: 999px;
    background: var(--ac-track);
}

.ac-amount__limits{
    display:flex;
    justify-content:space-between;
    margin-top:8px;
    font-size:13px;
    color:#666;
}

/* When manual enabled, pill looks editable */
.ac-amount.is-manual .ac-amount__pill{
    background:#fff;
    border-color:#bfc4c9;
}

/* Card monthly */
/* grid like expressfinance */
.ac-monthly-grid{
    display:grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap:12px;
}

@media (max-width: 1200px){
    .ac-monthly-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px){
    .ac-monthly-grid{ grid-template-columns: repeat(2, 1fr); }
}

.ac-monthly-card{
    position:relative;
    border:1px solid #e3e6ea;
    background:#fff;
    border-radius:0;
    padding:14px 10px;
    text-align:center;
    cursor:pointer;
    line-height:1.2;
}

.ac-monthly-card .ac-monthly-eur{
    font-weight:700;
}

.ac-monthly-card .ac-monthly-months{
    margin-top:4px;
    color:#334155;
}

.ac-monthly-card .ac-monthly-check{
    position:absolute;
    right:-10px;
    top:-10px;
    width:24px;
    height:24px;
    border-radius:999px;
    display:none;
    align-items:center;
    justify-content:center;
    font-weight:800;
    background:#22c55e;
    color:#fff;
}

.ac-monthly-card.is-selected{
    background: #ff6d29;
    border-color: #ff6d29;
    color:#fff;
}

.ac-monthly-card.is-selected .ac-monthly-months{
    color:#fff;
}

.ac-monthly-card.is-selected .ac-monthly-check{
    display:flex;
}
.acsim-btn-color
{
    background-color: #ff6d29 !important;
    border-color: #ff6d29 !important;
}

#acsim-root .acsim-repeatg-head .btn { white-space: nowrap; }

#acsim-root .acsim-repeatg-toggle {
    text-decoration: none;
    color: inherit;
}
#acsim-root .acsim-repeatg-toggle:hover { text-decoration: underline; }

#acsim-root .acsim-repeatg-card {
    border-radius: 12px;
}

#acsim-root .acsim-repeatg-body.d-none { display: none !important; }

#acsim-root input:read-only,
#acsim-root textarea:read-only,
.is-readonly
{
    background-color: #f1f3f5; !important;
    color: #6c757d; !important;
    border-color: #d0d7de !important;
    cursor: not-allowed !important;
}
