/* Wrapper principale */
.cr-box-wrap {
    display: flex;
    gap: 3rem;
    padding: 2rem;
    border: 1px solid #eee;
    border-radius: 10px;
    align-items: flex-start;
    background: #ffffff;
    margin-bottom: 2rem;
}

/* Colonna sinistra */
.cr-box-left {
    min-width: 180px;
}

.cr-average {
    font-size: 3rem;
    line-height: 1;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cr-stars {
    margin-bottom: 0.25rem;
}

.cr-based-on {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
}

/* Colonna centrale: barre */
.cr-box-middle {
    flex: 1;
}

.cr-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.cr-row-label {
    width: 2rem;
}

.cr-row-bar {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: #eeeeee;
    overflow: hidden;
}

.cr-row-bar-fill {
    display: block;
    height: 100%;
    background: #111111; /* cambia colore se vuoi */
}

.cr-row-count {
    width: 2.5rem;
    text-align: right;
}

/* Colonna destra */
.cr-box-right {
    display: flex;
    align-items: center;
}

/* Bottoni */
.cr-btn-primary,
.cr-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.cr-btn-primary {
    background: #111111;
    color: #ffffff;
}

.cr-btn-primary:hover {
    background: #000000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.cr-btn-secondary {
    background: #f5f5f5;
    color: #333333;
    margin-top: 0.5rem;
}

.cr-btn-secondary:hover {
    background: #e5e5e5;
}

/* Responsive semplice */
@media (max-width: 768px) {
    .cr-box-wrap {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cr-box-right {
        justify-content: flex-start;
    }
}
