/* =========================================================
   BASE
========================================================= */

.icrea-battery-wrap {
    margin: 30px 0;
    font-size: 15px;
    line-height: 1.45;
}

.icrea-battery-header h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
}

/* =========================================================
   INTRO TEXT (wp_editor) - CENTRÉ ET STYLISÉ
========================================================= */

.icrea-battery-intro {
    max-width: 900px;
    margin: 0 auto 35px;
    padding: 25px 30px;
    font-size: 16px;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.icrea-battery-intro h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 15px;
    color: #1a1a1a;
}

.icrea-battery-intro p {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #333;
}

.icrea-battery-intro strong {
    color: #ff6b00;
}

/* =========================================================
   SONDAGE
========================================================= */

.icrea-survey-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.icrea-survey-header {
    text-align: center;
    margin-bottom: 25px;
}

.icrea-survey-header h3 {
    font-size: 24px;
    margin: 0 0 10px;
    color: #1a1a1a;
}

.icrea-survey-header p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.icrea-survey-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.icrea-survey-btn {
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.icrea-survey-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.icrea-survey-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.icrea-survey-results {
    margin-top: 25px;
}

.icrea-survey-results h4 {
    font-size: 20px;
    margin: 0 0 20px;
    text-align: center;
    color: #1a1a1a;
}

.icrea-survey-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.icrea-survey-bar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.icrea-survey-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.icrea-survey-percentage {
    color: #667eea;
    font-size: 16px;
}

.icrea-survey-bar-bg {
    height: 28px;
    background: #e8ecef;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.icrea-survey-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}

.icrea-survey-message {
    text-align: center;
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
}

/* =========================================================
   CRITÈRES / FILTRES
========================================================= */

.icrea-battery-criteria {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    margin-bottom: 15px;
}

.icrea-battery-criteria-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    width: 100%;
}

.icrea-battery-criteria-label {
    font-weight: 700;
}

.icrea-battery-criteria-item {
    font-size: 14px;
    cursor: pointer;
}

.icrea-battery-criteria-item input {
    margin-right: 6px;
}

.icrea-battery-criteria-clear {
    background: #222;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.icrea-battery-criteria-row--header{
    justify-content: flex-start;
}

.icrea-battery-criteria-toggle{
    background:#fff;
    color:#222;
    border:1px solid #d0d0d0;
    padding:6px 10px;
    border-radius:4px;
    cursor:pointer;
    font-size:13px;
    font-weight:700;
}

.icrea-battery-criteria-toggle:hover{
    border-color:#a8a8a8;
}

.icrea-battery-criteria-collapsible{
    width:100%;
    display:flex;
    flex-wrap:wrap;
    gap:10px 14px;
    padding:10px 12px;
    border:1px solid #e2e2e2;
    border-radius:8px;
    background:#fafafa;
}

.icrea-battery-criteria--open .icrea-battery-criteria-collapsible{
    animation: icreaFadeIn .12s ease-out;
}

@keyframes icreaFadeIn{
    from{opacity:0; transform: translateY(-2px);} 
    to{opacity:1; transform: translateY(0);} 
}

.icrea-battery-brand-filter {
    padding: 5px 8px;
    font-size: 14px;
}

/* =========================================================
   TABLE
========================================================= */

.icrea-battery-table-wrap {
    overflow-x: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

.icrea-battery-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1100px;
}

.icrea-battery-table thead th {
    background: #f5f5f5;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 8px;
    border-bottom: 2px solid #ddd;
    text-align: center;
}

.icrea-battery-table tbody td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
}

/* =========================================================
   IMAGES
========================================================= */

.icrea-brand-logo {
    max-height: 40px;
    max-width: 90px;
    object-fit: contain;
}

.icrea-product-img {
    max-height: 80px;
    max-width: 110px;
    object-fit: contain;
}

.icrea-ext-img {
    max-height: 60px;
}

.icrea-video-thumb {
    max-width: 80px;
    max-height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

/* =========================================================
   BADGE EXTENSION
========================================================= */

.icrea-ext-badge {
    background: #ff6b00;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 8px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.icrea-cluster-sub {
    margin-top: 6px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* =========================================================
   PRIX
========================================================= */

.icrea-price-old {
    display: inline-block;
    font-size: 13px;
    color: #888;
    text-decoration: line-through;
}

.icrea-price-new {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    color: #d80000;
}

/* =========================================================
   SCORES (2 badges différents)
========================================================= */

.icrea-score-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.icrea-score-admin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.icrea-score-user {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* =========================================================
   BOUTONS
========================================================= */

.icrea-battery-offer-btn,
.icrea-battery-price-btn {
    display: inline-block;
    margin: 4px 0;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.icrea-battery-offer-btn {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    color: #fff;
}

.icrea-battery-offer-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
}

.icrea-battery-price-btn {
    background: #eee;
    color: #333;
}

.icrea-battery-price-btn:hover {
    background: #ddd;
}

.icrea-offer-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* =========================================================
   BOUTONS (Offre / Signalement / Détail)
========================================================= */

/* Icônes (SVG en mask pour éviter les problèmes d’emoji / conflits de police) */
.icrea-icon{
    display:inline-block;
    width:18px;
    height:18px;
    background-color: currentColor;
    -webkit-mask-repeat:no-repeat;
    -webkit-mask-position:center;
    -webkit-mask-size:contain;
            mask-repeat:no-repeat;
            mask-position:center;
            mask-size:contain;
}

.icrea-icon--cart{
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 6h15l-1.5 9h-12z'/%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 6l-2-4H1'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3C/svg%3E");
            mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 6h15l-1.5 9h-12z'/%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 6l-2-4H1'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3C/svg%3E");
}

.icrea-icon--flag{
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 22V4'/%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 4c6-3 8 3 14 0v10c-6 3-8-3-14 0z'/%3E%3C/svg%3E");
            mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 22V4'/%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 4c6-3 8 3 14 0v10c-6 3-8-3-14 0z'/%3E%3C/svg%3E");
}


.icrea-offer-actions .icrea-action-offer,
.icrea-offer-actions .icrea-action-report {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    cursor: pointer;
    line-height: 1;
    font-size: 0; /* icon only */
    transition: transform .08s ease, box-shadow .12s ease, opacity .12s ease;
}

.icrea-offer-actions .icrea-action-offer {
    background: #111;
    color: #fff;
    border-color: rgba(0,0,0,.25);
}

.icrea-offer-actions .icrea-action-report {
    background: #fff;
    color: #111;
}

.icrea-offer-actions .icrea-action-offer:hover,
.icrea-offer-actions .icrea-action-report:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
    transform: translateY(-1px);
}

.icrea-offer-actions .icrea-action-offer:active,
.icrea-offer-actions .icrea-action-report:active {
    transform: translateY(0px);
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
}

.icrea-cluster-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.18);
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    opacity: .9;
    transition: transform .08s ease, box-shadow .12s ease, opacity .12s ease;
}

.icrea-cluster-detail-btn:hover {
    opacity: 1;
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
    transform: translateY(-1px);
}



/* =========================================================
   MODALES
========================================================= */

.icrea-battery-modal {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    margin-left: auto;
    margin-right: auto;
    z-index: 9999;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.35);
    max-width: 440px;
    width: calc(100% - 40px);
    padding: 0;
    display: none;
    box-sizing: border-box;
}

.icrea-battery-modal.is-visible {
    display: block;
}

.icrea-battery-modal-inner {
    padding: 25px 28px;
    position: relative;
}

.icrea-battery-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.icrea-battery-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.icrea-battery-modal h3 {
    margin: 0 0 20px;
    font-size: 20px;
    color: #1a1a1a;
}

.icrea-offer-main-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.icrea-offer-main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 107, 0, 0.4);
}

.icrea-offer-code-box {
    margin-top: 20px;
    padding: 15px;
    background: #f5f7fa;
    border-radius: 8px;
}

.icrea-offer-code-box.is-hidden {
    display: none;
}

.icrea-offer-code-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.icrea-offer-code-line span {
    flex: 1;
    padding: 10px 14px;
    background: #fff;
    border: 2px dashed #667eea;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 16px;
    color: #667eea;
    text-align: center;
}

.icrea-offer-copy-btn {
    padding: 10px 16px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.icrea-offer-copy-btn:hover {
    background: #5568d3;
}

.icrea-offer-discount {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.icrea-offer-discount span {
    font-weight: 700;
    color: #d80000;
    font-size: 16px;
}

.icrea-offer-copy-feedback {
    font-size: 13px;
    color: #0f9d58;
    font-weight: 600;
    margin-top: 8px;
}

/* =========================================================
   MODAL - Autres codes promo (multi-promos)
========================================================= */

.icrea-offer-extra-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

/* New structure (2.3.35+) */
.icrea-extra-promo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
}

.icrea-extra-promo-code {
    font-weight: 700;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 6px 10px;
    background: #fff;
}

.icrea-extra-promo-desc {
    font-size: 13px;
    color: #555;
    flex: 1;
}

.icrea-extra-promo-date {
    font-size: 12px;
    color: #777;
    white-space: nowrap;
}

.icrea-extra-copy-btn {
    padding: 6px 10px;
    border: none;
    border-radius: 10px !important;
    background: #f2c94c;
    color: #000;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.1;
    cursor: pointer;
}

.icrea-extra-copy-btn.copied {
    background: #d9f7e5;
}

.icrea-battery-form-row {
    margin-bottom: 15px;
}

.icrea-battery-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.icrea-battery-form-row input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.icrea-battery-form-submit {
    width: 100%;
    padding: 12px 20px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icrea-battery-form-submit:hover {
    background: #5568d3;
}

/* =========================================================
   TRI VISUEL (icônes ↑ ↓)
========================================================= */

.icrea-battery-table thead th.icrea-sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 24px;
}

.icrea-battery-table thead th .icrea-sort-indicator {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: .55;
}

.icrea-battery-table thead th.icrea-sortable .icrea-sort-indicator::before {
    content: "↕";
}

.icrea-battery-table thead th.icrea-sortable.is-sorted-asc .icrea-sort-indicator::before {
    content: "↑";
    opacity: 1;
}

.icrea-battery-table thead th.icrea-sortable.is-sorted-desc .icrea-sort-indicator::before {
    content: "↓";
    opacity: 1;
}

/* =========================================================
   MEILLEUR €/kWh (highlight + badge)
========================================================= */

.icrea-best-kwh {
    background: rgba(255, 107, 0, 0.10);
    position: relative;
}

.icrea-best-kwh-badge {
    margin-top: 6px;
    display: inline-block;
    background: #ff6b00;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    line-height: 1;
}

/* ================================
   OVERLAY MODALES (fond flouté)
================================ */

.icrea-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    display: none;
}

/* Robust centering for the unified mobile info modal. Some themes apply CSS
   transforms on wrappers (or other global styles) that can shift a fixed
   positioned element. Rendering the modal inside the overlay and centering via
   flex avoids that class of issues. */
.icrea-modal-overlay.icrea-modal-overlay--center {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.icrea-pack-mobile-modal.icrea-modal--in-overlay {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    max-height: calc(100vh - 32px) !important;
    width: min(92vw, 560px) !important;
}

/* Animation */
.icrea-battery-modal,
.icrea-modal-overlay {
    animation: icreaFadeIn 0.2s ease-out;
}

@keyframes icreaFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

body.icrea-modal-open {
    overflow: hidden;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .icrea-battery-wrap {
        font-size: 14px;
    }

    .icrea-battery-table {
        min-width: 900px;
    }

    .icrea-product-img {
        max-height: 65px;
    }

    .icrea-battery-intro {
        padding: 20px;
    }

    .icrea-battery-intro h2 {
        font-size: 22px;
    }

    .icrea-survey-container {
        padding: 20px;
    }

    .icrea-survey-form {
        grid-template-columns: 1fr;
    }
}

/* Admin quick edit pencil (shown only to editors/admins) */
.icrea-edit-pencil{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  margin-left:6px;
  border-radius:6px;
  text-decoration:none;
  opacity:.75;
}
.icrea-edit-pencil:hover{ opacity:1; }
.icrea-edit-pencil .dashicons{ font-size:16px; width:16px; height:16px; }

/* Admin quick link to open official product page (shown only to admins) */
.icrea-admin-product-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  margin-left:6px;
  border-radius:6px;
  text-decoration:none;
  opacity:.75;
}
.icrea-admin-product-link:hover{ opacity:1; }
.icrea-admin-product-link .dashicons{ font-size:16px; width:16px; height:16px; }


/* Cluster detail column */
.icrea-cluster-detail-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.25);
  background:#fff;
  cursor:pointer;
  padding:0;
  font-weight:800;
  line-height:1;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size:0 !important; /* glyph rendered via ::before for maximum compatibility */
  color:#111 !important;
  -webkit-text-fill-color:#111 !important;
  opacity:.85;
}
.icrea-cluster-detail-btn::before{
  content:"i";
  font-size:13px;
  line-height:1;
  font-weight:900;
  color:#111;
}
.icrea-cluster-detail-btn:hover{ opacity:1; }
.icrea-cluster-detail-inner{ max-width:900px; }
.icrea-cluster-detail-body{ display:flex; flex-direction:column; gap:14px; }
.icrea-cluster-detail-imgwrap{
  width:100%;
  display:flex;
  justify-content:center;
}
#icrea-cluster-detail-img{
  max-width:100%;
  height:auto;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.12);
}
.icrea-cluster-detail-text{
  padding:12px 14px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:10px;
  background:#fff;
  white-space:normal;
  line-height:1.45;
}
.icrea-cluster-detail-text p{margin:0 0 .6em;}
.icrea-cluster-detail-text p:last-child{margin-bottom:0;}
.icrea-cluster-detail-text ul,.icrea-cluster-detail-text ol{margin:.2em 0 .6em 1.25em; padding:0;}
.icrea-cluster-detail-text li{margin:.18em 0;}
.icrea-cluster-detail-text br{line-height:1.1;}



/* Score detail modal */

/* Score detail modal layout fix (wider + scroll) */
.icrea-battery-modal.icrea-score-modal{
  max-width: 760px;
  width: min(760px, 92vw);
  max-height: 85vh;
  overflow: hidden;
}
.icrea-battery-modal.icrea-score-modal .icrea-battery-modal-inner{
  padding: 22px 22px 18px;
  max-height: 85vh;
  overflow: auto;
  box-sizing: border-box;
}
.icrea-score-detail-inner{ max-width: 100%; width: 100%; }
.icrea-score-bar-row{ width: 100%; box-sizing: border-box; }

.icrea-score-badge.icrea-score-click { cursor:pointer; }
.icrea-score-badge.icrea-score-click:hover { filter: brightness(1.05); }

.icrea-score-detail-inner { max-width: 720px; width: min(720px, 92vw); }
.icrea-score-detail-summary { display:flex; gap:16px; align-items:flex-start; margin: 6px 0 14px; }
.icrea-score-detail-big { font-size: 34px; font-weight: 800; line-height: 1; }
.icrea-score-detail-max { font-size: 16px; font-weight: 700; margin-left: 6px; opacity: .7; }
.icrea-score-detail-top { font-size: 13px; opacity: .9; display:flex; flex-direction:column; gap:6px; margin-top: 2px; }
.icrea-score-detail-bars { display:flex; flex-direction:column; gap:12px; }
.icrea-score-bar-row { border:1px solid #eee; border-radius:12px; padding:10px 12px; background:#fff; }
.icrea-score-bar-head { display:flex; justify-content:space-between; align-items:baseline; gap:10px; }
.icrea-score-bar-label { font-weight:700; font-size: 13px; }
.icrea-score-bar-points { font-size: 12px; opacity:.7; white-space:nowrap; }
.icrea-score-bar-track { height:10px; border-radius:999px; background: rgba(0,0,0,.08); overflow:hidden; margin-top:8px; }
.icrea-score-bar-fill { height:100%; border-radius:999px; background: rgba(0,0,0,.65); }
.icrea-score-bar-explain { font-size:12px; opacity:.65; margin-top:8px; }
.icrea-score-detail-footnote { font-size:12px; opacity:.6; margin-top:12px; }

/* ROI controls + ROI modal */
.icrea-roi-controls{ background:#fff; border:1px solid #eee; border-radius:16px; padding:14px 16px; margin: 14px 0 12px; box-shadow: 0 8px 24px rgba(0,0,0,.05); }
.icrea-roi-controls__title{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.icrea-roi-controls__hint{ opacity:.75; font-size:12px; }
.icrea-roi-controls__row{ display:flex; align-items:center; gap:12px; margin-top:10px; }
.icrea-roi-controls__label{ font-weight:700; font-size:13px; }
.icrea-roi-controls__slider{ flex:1; min-width: 180px; }
.icrea-roi-controls__value{ font-weight:800; font-size:13px; white-space:nowrap; }
.icrea-roi-controls__legend{ margin-top:10px; font-size:12px; opacity:.7; }

.icrea-roi-cell{ display:flex; align-items:center; gap:8px; justify-content:flex-start; }
.icrea-roi-value{ font-weight:800; }
.icrea-roi-value.is-good{ opacity:1; }
.icrea-roi-value.is-mid{ opacity:.85; }
.icrea-roi-value.is-bad{ opacity:.7; }
.icrea-roi-info{
    width:22px;
    height:22px;
    border-radius:999px;
    border:1px solid rgba(0,0,0,.18);
    background:#fff;
    cursor:pointer;
    padding:0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
    line-height:1;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size:0 !important; /* we render the glyph with ::before for maximum compatibility */
    color:#111 !important;
    -webkit-text-fill-color:#111 !important;
}
.icrea-roi-info::before{
    content:"i";
    font-size:12px;
    line-height:1;
    font-weight:900;
    color:#111;
}
.icrea-roi-info:hover{ filter: brightness(0.98); }

/* ROI sizing indicator (subtle row background) */
tr.icrea-roi-fit{ background: rgba(46, 204, 113, .06); outline: 2px solid rgba(46, 204, 113, .10); outline-offset:-2px; }
tr.icrea-roi-oversize{ background: rgba(52, 152, 219, .05); outline: 2px solid rgba(52, 152, 219, .10); outline-offset:-2px; }
tr.icrea-roi-undersize{ background: rgba(241, 196, 15, .06); outline: 2px solid rgba(241, 196, 15, .12); outline-offset:-2px; }

.icrea-roi-detail-inner{ max-width: 760px; width: min(760px, 92vw); }
.icrea-roi-detail-top{ display:flex; align-items:flex-end; justify-content:space-between; gap:14px; flex-wrap:wrap; margin: 4px 0 12px; }
.icrea-roi-detail-big{ font-size:34px; font-weight:900; line-height:1; }
.icrea-roi-detail-unit{ font-size:14px; font-weight:800; opacity:.7; }
.icrea-roi-detail-sub{ font-size:13px; }
.icrea-roi-detail-grid{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px 12px; margin-top: 10px; }
.icrea-roi-kv{ border:1px solid #eee; border-radius:12px; padding:10px 12px; background:#fff; }
.icrea-roi-k{ font-size:12px; opacity:.65; font-weight:700; }
.icrea-roi-v{ font-size:13px; font-weight:800; margin-top: 3px; }
.icrea-roi-detail-footnote{ font-size:12px; opacity:.65; margin-top: 12px; }

@media (max-width: 560px){
  .icrea-roi-controls__row{ flex-direction:column; align-items:stretch; }
  .icrea-roi-controls__value{ text-align:right; }
  .icrea-roi-detail-grid{ grid-template-columns: 1fr; }
}


/* Controls row: marque + critères on one line */
.icrea-battery-controls-row{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:center;justify-content:space-between;width:100%;}
.icrea-battery-controls-left{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center;}
.icrea-battery-controls-right{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center;margin-left:auto;}
@media (max-width: 640px){.icrea-battery-controls-row{flex-direction:column;align-items:stretch;}.icrea-battery-controls-right{justify-content:flex-start;margin-left:0;}}

/* ROI status badge (modal) */
.icrea-roi-status{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  border:1px solid transparent;
  line-height:1;
  white-space:nowrap;
}
.icrea-roi-status--neutral{ background:#f3f4f6; border-color:#e5e7eb; color:#374151; }
.icrea-roi-status--ok{ background:#eaf7ee; border-color:#bfe6c9; color:#146c2e; box-shadow:0 0 0 3px rgba(20,108,46,.08); }
.icrea-roi-status--under{ background:#fff4e5; border-color:#ffd8a8; color:#8a4b00; box-shadow:0 0 0 3px rgba(138,75,0,.08); }
.icrea-roi-status--over{ background:#e8f2ff; border-color:#b6d3ff; color:#0b3d91; box-shadow:0 0 0 3px rgba(11,61,145,.08); }


/* =========================================================
   ADBLOCK MODAL
========================================================= */

.icrea-adblock-modal .icrea-modal-body{
    padding: 18px 22px 22px;
}

.icrea-adblock-modal .icrea-modal-header{
    padding: 18px 22px 0;
}

.icrea-adblock-modal .icrea-modal-title{
    font-size: 18px;
    font-weight: 700;
}

.icrea-adblock-body{
    overflow: auto;
    padding-right: 6px;
}

.icrea-adblock-actions{
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

.icrea-adblock-actions .icrea-btn{
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
}

.icrea-btn{background:#f1f1f1;border:1px solid #ddd;color:#111;cursor:pointer;}
.icrea-btn-primary{background:#111;color:#fff;border-color:#111;}
.icrea-btn-primary:hover{opacity:0.92;}



/* Wide modals (used for AdBlock and long explanatory content) */
.icrea-battery-modal.is-wide{
  max-width: 820px;
  width: min(820px, calc(100% - 40px));
}

/* Generic rich text rendering inside modals (wp_editor output) */
.icrea-modal-richtext{
  line-height: 1.45;
  white-space: normal;
}
.icrea-modal-richtext p{ margin: .45em 0; }
.icrea-modal-richtext p:first-child{ margin-top: 0; }
.icrea-modal-richtext p:last-child{ margin-bottom: 0; }
.icrea-modal-richtext ul,
.icrea-modal-richtext ol{
  margin: .35em 0 .55em 1.25em;
  padding: 0;
}
.icrea-modal-richtext li{
  margin: .22em 0;
}

/* Adblock modal: make it responsive + keep CTA visible */
.icrea-adblock-modal .icrea-battery-modal-inner{
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 120px);
}
.icrea-adblock-body{
  overflow: auto;
  padding-right: 6px; /* room for scrollbar */
}
.icrea-adblock-actions{
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid rgba(0,0,0,.08);
}
@media (max-width: 640px){
  .icrea-battery-modal.is-wide{
    width: calc(100% - 24px);
  }
  .icrea-adblock-modal .icrea-battery-modal-inner{
    max-height: calc(100vh - 80px);
    padding: 18px 18px;
  }
}


/* Responsive padding around comparison tables */
@media (max-width: 1024px){
  .icrea-battery-table-wrap{ padding-left:16px; padding-right:16px; }
}
@media (max-width: 640px){
  .icrea-battery-table-wrap{ padding-left:10px; padding-right:10px; }
}


/* ===== ROI Suggestion (pack + extensions) ===== */
.icrea-roi-suggest {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.10);
}

.icrea-roi-suggest-h {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 700;
}

.icrea-roi-suggest-line {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.08);
}

.icrea-roi-suggest-images {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.icrea-roi-suggest-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.10);
}

.icrea-roi-suggest-plus {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0,0,0,.08);
  font-weight: 800;
}

.icrea-roi-suggest-xn {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.10);
  font-weight: 800;
  letter-spacing: .2px;
}

.icrea-roi-suggest-text {
  min-width: 0;
  flex: 1 1 auto;
}

.icrea-roi-suggest-title {
  font-weight: 800;
  margin-bottom: 2px;
}

.icrea-roi-suggest-sub {
  font-size: 12px;
  line-height: 1.35;
  opacity: .85;
}

.icrea-roi-suggest-toggle {
  flex: 0 0 auto;
  border: 1px solid rgba(0,0,0,.18);
  /* Certains thèmes forcent des couleurs (texte blanc/transparence).
     On fixe un bouton contrasté pour qu'il reste lisible partout. */
  background: #222 !important;
  color: #fff !important;
  border-color: #222 !important;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Sur certains thèmes (boutons globaux), les règles ci-dessus peuvent encore être écrasées.
   On renforce la spécificité pour garantir un bouton lisible. */
.icrea-modal .icrea-roi-suggest-toggle,
.icrea-roi-modal .icrea-roi-suggest-toggle {
  background-color: #222 !important;
  color: #fff !important;
  border-color: #222 !important;
}

.icrea-roi-suggest-toggle:hover {
  filter: brightness(1.1);
}

.icrea-roi-suggest-details {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.03);
  border: 1px dashed rgba(0,0,0,.20);
}

.icrea-roi-suggest-kv {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.icrea-roi-suggest-kv:last-child { border-bottom: 0; }
.icrea-roi-suggest-kv span { opacity: .85; }

@media (max-width: 640px) {
  .icrea-roi-suggest-line { align-items: flex-start; }
  .icrea-roi-suggest-toggle { align-self: stretch; }
}

/* Ensure the "i" glyph is always visible regardless of theme fonts */
.icrea-i-glyph{font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif !important;font-weight:800;font-style:normal;line-height:1;display:inline-block;pointer-events:none;}

.icrea-roi-controls__kwh{
  /* Some themes force inputs to 100% width; keep this one compact */
  width: 90px !important;
  min-width: 90px;
  max-width: 140px;
  flex: 0 0 auto;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
}
.icrea-roi-controls__kwh:focus{ outline:none; border-color:#bdbdbd; box-shadow: 0 0 0 3px rgba(0,0,0,.05); }
.icrea-roi-controls__sep{ width:1px; height:24px; background:#eee; margin:0 2px; }
@media (max-width: 860px){
  .icrea-roi-controls__row{ flex-wrap:wrap; }
  .icrea-roi-controls__sep{ display:none; }
  .icrea-roi-controls__kwh{ width:120px !important; min-width:120px; }
}


/* =========================================================
   BATTERY REQUESTS (suggestions + votes)
========================================================= */

.icrea-battery-requests-wrap {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,.05);
}

.icrea-battery-requests-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom: 10px;
}

.icrea-battery-requests-title{
    font-size: 16px;
    font-weight: 800;
    color:#111;
}

.icrea-req-toggle{
    border:1px solid #e6e6e6;
    background:#f7f7f7;
    padding:8px 12px;
    border-radius: 10px;
    font-weight:700;
    cursor:pointer;
}

.icrea-req-panel{
    margin-top: 10px;
    padding-top: 10px;
    border-top:1px dashed #e8e8e8;
}

.icrea-req-grid{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.icrea-req-field label{
    display:block;
    font-weight:700;
    margin-bottom:6px;
}

.icrea-req-opt{
    font-weight:400;
    color:#777;
    font-size: 12px;
}

.icrea-req-req{
    color:#ff6b00;
    font-weight:900;
}

.icrea-req-field input,
.icrea-req-field textarea{
    width:100%;
    border:1px solid #e6e6e6;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    background:#fff;
}

.icrea-req-field-wide{
    grid-column: 1 / -1;
}

.icrea-req-help{
    margin-top: 6px;
    font-size: 12px;
    opacity: .75;
}

.icrea-req-actions{
    display:flex;
    align-items:center;
    gap:12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.icrea-req-submit{
    background:#ff6b00;
    border: none;
    color:#fff;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
}

.icrea-req-msg{
    font-size: 13px;
    color:#333;
}

.icrea-req-msg.is-success{ color:#2e7d32; font-weight:700; }
.icrea-req-msg.is-error{ color:#c62828; font-weight:700; }

.icrea-battery-requests-list{
    margin-top: 14px;
}

.icrea-req-items{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.icrea-req-item{
    border:1px solid #ededed;
    border-radius: 14px;
    padding: 12px;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap: 12px;
    background:#fafafa;
}

.icrea-req-item.is-done{
    opacity: 0.75;
}

.icrea-req-item.is-done .icrea-req-title{
    text-decoration: line-through;
}

.icrea-req-title{
    font-weight: 900;
    margin-bottom: 6px;
}

.icrea-req-meta{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    font-size: 13px;
    color:#444;
}

.icrea-req-link{
    color:#1565c0;
    font-weight:700;
    text-decoration:none;
}

.icrea-req-note{
    color:#555;
}

/* Mobile: on masque le commentaire (souvent long) pour éviter d'élargir la ligne */
@media (max-width: 700px){
  .icrea-req-note{ display:none !important; }
}

.icrea-req-vote{
    display:flex;
    align-items:center;
    gap:8px;
    flex-shrink:0;
}

.icrea-req-vote-btn{
    width:34px;
    height:34px;
    border-radius: 10px;
    border:1px solid #e6e6e6;
    background:#fff;
    cursor:pointer;
    font-weight:900;
}

.icrea-req-vote-btn:disabled{
    opacity: 0.5;
    cursor:not-allowed;
}

.icrea-req-vote-count{
    font-weight: 900;
    min-width: 24px;
    text-align:center;
}

.icrea-req-badge{
    display:inline-block;
    margin-left:8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.icrea-req-badge-done{
    background: #e8f5e9;
    color:#2e7d32;
    border:1px solid #c8e6c9;
}

.icrea-req-empty{
    padding: 10px 12px;
    background:#fafafa;
    border:1px dashed #e6e6e6;
    border-radius: 12px;
    color:#666;
}

/* responsive */
@media (max-width: 680px){
    .icrea-req-grid{
        grid-template-columns: 1fr;
    }
}


/* ===== Battery requests: "Voir toutes les demandes" accordion ===== */
.icrea-req-more{
    margin-top: 10px;
    border-top: 1px dashed #e6e6e6;
    padding-top: 10px;
}
.icrea-req-more-summary{
    cursor: pointer;
    font-weight: 800;
    color: #0b57d0;
    user-select: none;
    list-style: none;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f6f8ff;
}
.icrea-req-more-summary::-webkit-details-marker{ display:none; }
.icrea-req-more-summary:after{
    content: "▼";
    font-size: 12px;
    opacity: .8;
}
.icrea-req-more[open] .icrea-req-more-summary:after{
    content: "▲";
}
.icrea-req-more-body{
    padding-top: 10px;
}


/* =========================================================
   BATTERY REQUESTS – DONE/ADDED STATE
=================================================== */
.icrea-req-item.icrea-req-item-done .icrea-req-title,
.icrea-req-item.icrea-req-item-done .icrea-req-note {
    text-decoration: line-through;
    opacity: 0.6;
}
.icrea-req-item.icrea-req-item-done {
    opacity: 0.85;
}


/* Requests list one-line rows */

.icrea-req-item .icrea-req-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
}
.icrea-req-item .icrea-req-row > *{
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
}
.icrea-req-item .req-brand{
  font-weight:600;
  color:#2563eb;
}
.icrea-req-item .req-model a{
  font-weight:500;
  text-decoration:none;
}
.icrea-req-item .req-sep{
  color:#cbd5e1;
}
.icrea-req-item .req-link a{
  text-decoration:none;
}
.icrea-req-item .req-note{
  flex:1;
  min-width:0;
  color:#6b7280;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.icrea-req-item .icrea-req-vote{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:6px;
}
.icrea-req-item-done{
  opacity:.65;
}
.icrea-req-item-done .icrea-req-row{
  text-decoration:line-through;
}

/* Keep propose form layout (avoid one-line override) */
.icrea-req-grid{display:grid !important; grid-template-columns:repeat(2, minmax(0,1fr)) !important; gap:10px !important;}
.icrea-req-field-wide{grid-column:1 / -1 !important;}

/* === v2.2.31 Ultra-compact request list (reduce vertical space) === */
.icrea-req-item { margin: 6px 0 !important; }
.icrea-req-row{
  padding: 6px 10px !important;
  gap: 8px !important;
  border-radius: 8px !important;
  min-height: 0 !important;
}
.icrea-req-row, .icrea-req-row *{
  line-height: 1.2 !important;
  font-size: 13px !important;
}
.req-sep{ margin: 0 2px !important; }
.req-note{
  font-size: 12.5px !important;
}
.req-vote{
  padding: 2px 7px !important;
  border-radius: 6px !important;
}
.req-link a{ font-size: 14px !important; }

/* === v2.2.32 MINI MODE (dense + uppercase) === */
.icrea-req-row{
  padding: 4px 8px !important;
  gap: 6px !important;
}
.icrea-req-row, .icrea-req-row *{
  font-size: 12px !important;
  line-height: 1.15 !important;
}
.req-brand, .req-model{
  text-transform: uppercase !important;
  font-weight: 600 !important;
}
.req-note{
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

/* === v2.2.33 MINI TIGHT (reduced outer spacing) === */
.icrea-req-item{
  margin: 3px 0 !important;
}
.icrea-req-row{
  padding: 3px 6px !important; /* 🔴 cadre très serré */
  border-radius: 6px !important;
}

/* === v2.2.34 ULTRA CONDENSED (mockup-style) === */
.icrea-req-item{
  margin: 1px 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.icrea-req-row{
  padding: 2px 6px !important;
  gap: 6px !important;
  border-radius: 999px !important;
  background: #f8fafc !important;
}

.icrea-req-row, .icrea-req-row *{
  font-size: 11.5px !important;
  line-height: 1.1 !important;
}

.req-brand, .req-model{
  font-weight: 700 !important;
}

.req-sep{
  margin: 0 1px !important;
}

.req-note{
  padding: 0 !important;
}

.req-vote{
  margin-left: auto !important;
  padding: 1px 6px !important;
  font-size: 11px !important;
  border-radius: 999px !important;
}

.icrea-req-item-done .icrea-req-row{
  opacity: 0.55 !important;
  text-decoration: line-through !important;
}

/* === v2.2.35 LISTE ULTRA CONDENSEE (no wasted space) === */
.icrea-req-item{
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.icrea-req-row{
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 2px 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  line-height: 1 !important;
}

.icrea-req-row,
.icrea-req-row *{
  font-size: 12px !important;
  line-height: 1 !important;
}

.req-brand,
.req-model{
  font-weight: 700 !important;
  text-transform: uppercase !important;
}

.req-sep{
  margin: 0 1px !important;
}

.req-note{
  white-space: nowrap !important;
  padding: 0 !important;
}

.req-vote{
  margin-left: auto !important;
  padding: 0 4px !important;
  font-size: 11px !important;
  border-radius: 4px !important;
}

/* Thin separator between rows */
.icrea-req-item + .icrea-req-item{
  border-top: 1px solid #e5e7eb;
}

.icrea-req-item-done{
  opacity: 0.55 !important;
}

/* === v2.2.36 FINAL MICRO-SPACING TWEAKS === */

/* Slight left padding so brand isn't glued to edge */
.icrea-req-row{
  padding-left: 4px !important;
}

/* Ultra-tight vote button */
.req-vote{
  padding: 0 2px !important;
  min-width: unset !important;
  height: auto !important;
  line-height: 1 !important;
}

/* === v2.2.37 VOTE BUTTON ULTRA TIGHT === */
.req-vote{
  padding: 0 !important;          /* no padding */
  margin: 0 2px 0 auto !important;
  width: auto !important;
  height: auto !important;
  min-width: unset !important;
  min-height: unset !important;
  border-radius: 2px !important;  /* almost square */
  line-height: 1 !important;
}

/* === v2.2.38 VOTE BTN FIX (correct selectors) === */
/* vote container: no pill, no extra spacing */
.icrea-req-vote{
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  margin: 0 2px 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* arrow button: remove WP/theme button chrome */
.icrea-req-vote-btn{
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  line-height: 1 !important;
  font-size: 11px !important;
}
.icrea-req-vote-btn:hover,
.icrea-req-vote-btn:focus{
  background: transparent !important;
  box-shadow: none !important;
}

/* count: tiny */
.icrea-req-votes-count{
  padding: 0 !important;
  margin: 0 !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

/* === v2.2.42 VOTE BADGE UI === */
.icrea-req-vote-btn{
  background: #eef2f7 !important;
  color: #4b5563 !important;
  border: 1px solid #e5e7eb !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
}
.icrea-req-votes-count{
  color: #4b5563 !important;
  font-weight: 600 !important;
}
.icrea-req-vote.is-voted .icrea-req-vote-btn{
  background: #d1fae5 !important;
  color: #065f46 !important;
  border-color: #a7f3d0 !important;
}
.icrea-req-vote.is-voted .icrea-req-votes-count{
  color: #065f46 !important;
}

/* === v2.2.44 VOTE PILL TEXT === */
.icrea-req-vote-btn{
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  line-height: 1 !important;
}


/* === v2.3.0 Newsletter subscribe block === */
.icrea-news-subscribe{
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}
.icrea-news-subscribe__title{
  font-weight: 800;
  margin-bottom: 4px;
}
.icrea-news-subscribe__desc{
  color:#6b7280;
  font-size: 13px;
  margin-bottom: 10px;
}
.icrea-news-subscribe__form{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items:center;
}
.icrea-news-subscribe__form input[type="email"]{
  flex: 1 1 240px;
  min-width: 220px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.icrea-news-subscribe__form select{
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.icrea-news-subscribe__form button{
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  background:#f2c94c;
  font-weight: 800;
}
.icrea-news-subscribe__msg{
  flex: 1 1 100%;
  font-size: 13px;
  margin-top: 6px;
}

/* === v2.3.3 Compare mode === */
.icrea-battery-compare-toggle{
  margin-left:10px;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background:#fff;
  cursor:pointer;
  font-weight:800;
}
.icrea-battery-compare-toggle.is-active{
  background:#f3f4f6;
}
.icrea-battery-comparebar{
  margin-top:10px;
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  padding:10px 12px;
  border:1px dashed #e5e7eb;
  border-radius:12px;
  background:#fafafa;
}
.icrea-battery-comparebar button{
  padding:8px 12px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#fff;
  cursor:pointer;
  font-weight:800;
}
.icrea-compare-wrap{
  display:inline-flex;
  align-items:center;
  margin-right:8px;
}
.icrea-compare-check{
  width:16px;
  height:16px;
}

/* === v2.3.6 : bouton texte noir (comparateur + proposer batterie) === */

/* Boutons comparateur frontend */
.icrea-battery-compare-toggle,
.icrea-battery-comparebar button,
.icrea-battery-comparebar .icrea-battery-compare-show,
.icrea-battery-comparebar .icrea-battery-compare-reset {
    color: #000 !important;
}

/* Bouton 'Plus de détails' (proposer une batterie) */
.icrea-req-toggle,
.icrea-req-toggle button {
    color: #000 !important;
}

/* === v2.3.8 : conserver hover gris (pas noir) === */

/* Comparateur frontend */
.icrea-battery-compare-toggle:hover,
.icrea-battery-comparebar button:hover,
.icrea-battery-comparebar .icrea-battery-compare-show:hover,
.icrea-battery-comparebar .icrea-battery-compare-reset:hover {
    background: #e5e7eb !important; /* gris clair */
    color: #000 !important;
}

/* Proposer une batterie : bouton Plus de détails */
.icrea-req-toggle:hover,
.icrea-req-toggle button:hover {
    background: #e5e7eb !important; /* gris clair */
    color: #000 !important;
}


/* =========================================================
   Mobile quick-view modal (pack name click)
========================================================= */
#icrea-pack-mobile-modal{
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  max-width: 720px !important;
  width: 92vw !important;
  max-height: 90vh !important;
  overflow: auto !important;
  box-sizing: border-box !important;
  z-index: 999999 !important;
}

.icrea-pack-mobile-modal .icrea-pack-mobile-inner{
  max-width: 560px;
}
.icrea-pack-mobile-section{ margin-top: 14px; }
.icrea-pack-mobile-section-title{
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}
.icrea-pack-mobile-muted{
  opacity: .8;
  font-size: 13px;
  margin: 4px 0;
}
.icrea-pack-mobile-roi-head,
.icrea-pack-mobile-offer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
}
.icrea-pack-mobile-roi-years{ font-size: 14px; }
.icrea-pack-mobile-kv{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:6px 10px;
  margin-top:8px;
}
.icrea-pack-mobile-kv-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:8px;
  font-size: 13px;
}
.icrea-pack-mobile-score-head{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  margin-bottom:6px;
}
.icrea-pack-mobile-score-big{
  font-size: 16px;
  font-weight: 800;
}
.icrea-pack-mobile-score-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 13px;
}
.icrea-pack-mobile-score-row:last-child{ border-bottom:0; }
.icrea-pack-mobile-score-row.pos .icrea-pack-mobile-score-pts{ color: #1a7f37; }
.icrea-pack-mobile-score-row.neg .icrea-pack-mobile-score-pts{ color: #b42318; }

.icrea-pack-mobile-offer-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration:none;
  font-weight: 700;
}
.icrea-pack-mobile-discount{
  font-weight:700;
  font-size: 12px;
  opacity:.9;
}
.icrea-pack-mobile-offer-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:8px;
}
.icrea-pack-mobile-code{
  font-weight:800;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  white-space:nowrap;
}
.icrea-pack-mobile-offer-desc{
  flex:1;
  font-size: 12px;
  opacity: .85;
}
.icrea-mini-copy{
  padding: 4px 8px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  min-height: 0 !important;
}
.icrea-pack-mobile-extra-title{
  margin-top:12px;
  font-weight:800;
  font-size: 13px;
}
.icrea-pack-mobile-actions{
  margin-top: 14px;
}
.icrea-pack-mobile-report{
  width:100%;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
}
.icrea-pack-mobile-copytoast{
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  opacity: .85;
}

/* =========================
   VIDÉOS (modal)
========================= */
.icrea-video-link{background:transparent;border:0;padding:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;}
.icrea-video-link:focus{outline:2px solid rgba(59,130,246,.5);outline-offset:2px;border-radius:8px;}

#icrea-battery-videos-modal .icrea-battery-modal-inner{max-width:900px;}

.icrea-videos-topnote{font-size:12px;color:#6b7280;margin:-6px 0 12px 0;line-height:1.35;}

.icrea-videos-featured{border:1px solid rgba(234,179,8,.45);background:rgba(234,179,8,.08);padding:12px;border-radius:14px;margin:0 0 12px 0;}
.icrea-videos-featured-title{font-weight:700;margin:0 0 8px 0;display:flex;align-items:center;gap:8px;}
.icrea-videos-grid{display:grid;grid-template-columns:1fr;gap:12px;}
@media (min-width: 900px){
  .icrea-videos-grid{grid-template-columns:1fr 1fr;}
}

.icrea-video-card{border:1px solid rgba(148,163,184,.35);border-radius:14px;padding:10px;background:#fff;box-shadow:0 1px 8px rgba(0,0,0,.04);}
.icrea-video-card h4{margin:0 0 8px 0;font-size:14px;line-height:1.2;}
.icrea-video-embed{border-radius:12px;overflow:hidden;}
.icrea-video-embed iframe{width:100%;height:240px;}

.icrea-video-submit{border-top:1px dashed rgba(148,163,184,.55);margin-top:14px;padding-top:12px;}
.icrea-video-submit h4{margin:0 0 8px 0;}
.icrea-video-form{display:grid;grid-template-columns:1fr;gap:8px;}
@media (min-width: 720px){
  .icrea-video-form{grid-template-columns:1fr 1fr;}
  .icrea-video-form .full{grid-column:1 / -1;}
}
.icrea-video-form input,.icrea-video-form select{width:100%;padding:10px 12px;border:1px solid rgba(148,163,184,.55);border-radius:12px;}
.icrea-video-form button{padding:10px 14px;border:0;border-radius:12px;cursor:pointer;font-weight:600;}
.icrea-video-feedback{font-size:13px;opacity:.9;}
