/* Wrapper */
.crp-reactions-shortcode {
    padding: 50px 0;
    margin-top: 50px;
    border-bottom: 1px solid #eee;
    color: #0b1220; /* inherit your theme text color */
    /* max-width: 90%; */
    margin: auto;
    margin-bottom: 50px;
}

/* Flex row with 7 equal-width columns on desktop */
.crp-reactions-container {
    margin-top: 3rem;
    --gap: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
}

.crp-reactions-shortcode .crp-header {
    font-size: 24px;
    color: rgb (11, 42, 58);
    margin-bottom: 10px;
}

.crp-reactions-shortcode .crp-total-reactions {
    font-size: 24px;
    color: rgb (11, 42, 58);
}

/* Each item = equal width (7 columns) */
.crp-single-reaction {
    flex: 0 0 calc((100% - 6 * var(--gap)) / 8);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 12px; /* rounded corners */
    background: #fff; /* card background (or transparent if you want) */
    padding: 16px; /* breathing room for shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Hover = lift + shadow */
.crp-single-reaction:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    background: #f9fafb; /* optional subtle hover bg */
    cursor: pointer;
}

.crp-single-reaction.active {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    background: #f9fafb; /* optional subtle hover bg */
}

/* ICON TILE ONLY gets the dark background */
.crp-icon {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    background: #0B2A3A;
    border: 1px solid #0B2A3A;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.crp-icon img {
    width: 25px;
    height: 25px;
    display: block;
}

/* Count above label (bold) */
.crp-count {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.3px;
}
.crp-label {
    margin-top: 6px;
    font-size: 12px;
    color: #202224; /* muted */
}

.crp-sub-label {
    margin-top: 4px;
    font-size: 12px;
    color: #202224; /* muted */
    visibility: hidden; /* hidden by default */
    opacity: 0; /* for smooth fade-in */
    transition: opacity 0.2s ease;
}

/* Show on hover */
.crp-single-reaction:hover .crp-sub-label {
    visibility: visible;
    opacity: 1;
}

.crp-single-reaction.active .crp-sub-label {
    visibility: visible;
    opacity: 1;
}

img.crp-bc-icon {
    width: 25px;
    vertical-align: text-bottom;
}

/* Responsive: 4 columns on md, 2 on sm, 1 on xs */
@media (max-width: 1024px) {
    .crp-single-reaction {
        flex-basis: calc((100% - 3 * var(--gap)) / 4);
    }
}
@media (max-width: 680px) {
    .crp-single-reaction {
        flex-basis: calc((100% - 1 * var(--gap)) / 2);
    }
}
@media (max-width: 400px) {
    .crp-single-reaction {
        flex-basis: 100%;
    }
}
