/* =========================================================
   NEETLY REPUTAZIONE NEGOZI
   Nome pubblico: Reputazione
   Scala: 10 stelle
   ========================================================= */

.ntlrep-box,
.ntlrep-box * {
    box-sizing: border-box;
}

.ntlrep-box {
    width: 100%;
    margin: 0 0 24px 0;
    padding: 18px;
    border: 1px solid #dedede;
    border-top: 5px solid #c70000;
    border-radius: 24px;
    background: #ffffff;
    color: #202020;
    font-family: Poppins, Arial, Helvetica, sans-serif;
    box-shadow: none;
}

.ntlrep-box--admin {
    margin-top: 12px;
    max-width: 100%;
}

.ntlrep-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 14px 0;
}

.ntlrep-kicker {
    margin: 0 0 4px 0;
    color: #c70000;
    font-size: 12px;
    line-height: 1.1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ntlrep-box h2 {
    margin: 0;
    color: #202020;
    font-size: clamp(24px, 4vw, 34px);
    line-height: .95;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.ntlrep-total {
    min-width: 138px;
    text-align: right;
}

.ntlrep-total strong {
    display: block;
    color: #202020;
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.ntlrep-total small {
    font-size: 14px;
    font-weight: 800;
    color: #777777;
}

.ntlrep-stars {
    display: inline-block;
    color: #c70000;
    font-size: 16px;
    line-height: 1;
    letter-spacing: -0.08em;
    white-space: nowrap;
}

.ntlrep-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.ntlrep-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    background: #fafafa;
}

.ntlrep-label strong {
    display: block;
    color: #202020;
    font-size: 14px;
    line-height: 1.15;
    font-weight: 900;
}

.ntlrep-label span {
    display: block;
    margin-top: 4px;
    color: #666666;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
}

.ntlrep-meter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    text-align: right;
}

.ntlrep-meter em {
    min-width: 34px;
    color: #202020;
    font-size: 14px;
    line-height: 1;
    font-style: normal;
    font-weight: 900;
}

.ntlrep-note {
    margin: 14px 0 0 0;
    color: #666666;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
}

.ntlrep-admin-signals {
    margin-top: 16px;
    padding: 14px;
    border-radius: 18px;
    background: #f6f6f6;
    border: 1px solid #e6e6e6;
}

.ntlrep-admin-signals h3 {
    margin: 0 0 10px 0;
    color: #202020;
    font-size: 16px;
    line-height: 1.1;
    font-weight: 900;
}

.ntlrep-admin-signals ul {
    margin: 0 0 10px 18px;
    padding: 0;
}

.ntlrep-admin-signals li {
    margin: 0 0 6px 0;
    color: #444444;
    font-size: 13px;
    line-height: 1.35;
}

.ntlrep-admin-signals p {
    margin: 0;
    color: #666666;
    font-size: 12px;
    line-height: 1.4;
}

.ntlrep-admin-stars {
    color: #c70000;
    letter-spacing: -0.08em;
    white-space: nowrap;
}

.ntlrep-loop-store-badge .ntl-loop-store-score {
    white-space: nowrap;
}

/* Nasconde il vecchio blocco ERS pubblico del plugin principale. */
.single-lmi_store .ntl-single-meta .ntl-reputation {
    display: none !important;
}

@media (max-width: 720px) {
    .ntlrep-box {
        padding: 14px;
        border-radius: 20px;
    }

    .ntlrep-head {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ntlrep-total {
        min-width: 0;
        text-align: left;
    }

    .ntlrep-total strong {
        font-size: 26px;
    }

    .ntlrep-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
    }

    .ntlrep-meter {
        justify-content: space-between;
    }

    .ntlrep-stars {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .ntlrep-stars {
        font-size: 12px;
    }
}

/* =========================================================
   NEETLY REPUTAZIONE - ADMIN PARAMETRI STELLE
   ========================================================= */

.ntlrep-admin-editor {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #dedede;
    border-radius: 18px;
    background: #ffffff;
}

.ntlrep-admin-editor h3 {
    margin: 0 0 8px 0;
    color: #202020;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.1;
}

.ntlrep-admin-editor p {
    margin: 0 0 12px 0;
    color: #666666;
    font-size: 13px;
    line-height: 1.4;
}

.ntlrep-admin-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px 0;
    font-weight: 900;
    color: #202020;
}

.ntlrep-admin-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 14px 0;
}

.ntlrep-admin-field {
    padding: 12px;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    background: #fafafa;
}

.ntlrep-admin-field label {
    display: block;
    margin: 0 0 8px 0;
}

.ntlrep-admin-field label strong,
.ntlrep-admin-editor label strong {
    display: block;
    color: #202020;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
}

.ntlrep-admin-field label span {
    display: block;
    margin-top: 3px;
    color: #777777;
    font-size: 12px;
    line-height: 1.2;
}

.ntlrep-admin-field input[type="number"] {
    width: 100%;
    min-height: 36px;
    border-radius: 8px;
}

.ntlrep-note--admin-lock {
    padding: 12px;
    border-radius: 14px;
    background: #fff8e5;
    border: 1px solid #f0d58a;
}

.ntlrep-settings-table textarea {
    min-height: 58px;
}

/* =========================================================
   NEETLY REPUTAZIONE - STELLE TOTALI NELLE CARD NEGOZI
   ========================================================= */

.ntlrep-card-main {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin: 6px 0 8px 0 !important;
    padding: 7px 9px !important;
    border-radius: 999px !important;
    background: rgba(199, 0, 0, .07) !important;
    color: #202020 !important;
    line-height: 1 !important;
    max-width: 100% !important;
}

.ntlrep-card-stars {
    display: inline-block !important;
    color: #c70000 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    letter-spacing: -0.08em !important;
    white-space: nowrap !important;
}

.ntlrep-card-main strong {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 1px !important;
    color: #202020 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

.ntlrep-card-main small {
    color: #777777 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
}

@media (max-width: 720px) {
    .ntlrep-admin-fields {
        grid-template-columns: 1fr;
    }

    .ntlrep-card-main {
        gap: 6px !important;
        padding: 6px 7px !important;
    }

    .ntlrep-card-stars {
        font-size: 11px !important;
    }

    .ntlrep-card-main strong {
        font-size: 12px !important;
    }
}
