/* Conteneur des boutons */
.ccm-buttons {
    margin-bottom: 15px;
    /* Ne pas utiliser float */
    /* float: right; */
}

/* Préfixe et séparateur */
.ccm-label {
    margin-right: 10px;
    font-weight: bold;
    vertical-align: middle;
}
.ccm-separator {
    margin: 0 5px;
    vertical-align: middle;
    font-weight: bold;
}

/* Boutons de base */
.ccm-buttons button {
    padding: 8px 10px;
    margin: 3px;
    border: 1px solid #ccc;
    background-color: #f5f5f5;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

/* Boutons activés */
.coin-btn.active {
    background-color: #4CAF50; /* vert moins vif */
    color: white;
}
.no-coin-btn.active {
    background-color: #e57373; /* rouge moins vif */
    color: white;
}
.no-coin-btn.grey {
    background-color: grey;
    color: white;
}

/* Version réduite (pour la loop) */
.ccm-buttons-small button {
    padding: 5px 8px;
    margin: 2px;
    font-size: 0.8em;
}
.ccm-buttons-small {
    display: block;
    clear: both;
    margin-top: 10px;
}

/* Style pour la page de collection utilisateur */
.ccm-user-collection {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.ccm-coin {
    width: 200px;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    background-color: #fafafa;
}
.ccm-coin h3 {
    font-size: 1em;
    margin: 10px 0 0;
}

/* Styles pour la page de collection */
.ccm-collection-filter {
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}
.ccm-collection-filter a {
    text-decoration: none;
    color: #0073aa;
}
.ccm-collection-filter a:hover {
    text-decoration: underline;
}

.ccm-user-collection {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.ccm-group-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
}
.ccm-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.ccm-coin {
    width: 200px;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    background-color: #fafafa;
    font-family: Arial, sans-serif;
}
.ccm-coin h3 {
    font-size: 1em;
    margin: 10px 0 0;
}
.coin-not-owned img {
    opacity: 0.3;
}

@media only screen and (max-width: 620px) {
    .ccm-buttons,
    .ccm-buttons-small {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 9999 !important;
        width: 100% !important;
        padding: 10px !important;
        text-align: center !important;
    }
    .ccm-buttons button,
    .ccm-buttons-small button {
        display: inline-block !important;
        margin: 5px !important;
        width: auto !important;
    }
}

