.ctc-crypto-container {
    display: flex;
    flex-wrap: nowrap; /* Empêche le retour à la ligne */
    overflow-x: auto; /* Ajoute un défilement horizontal si nécessaire */
    padding: 10px 0;
    border: 1px solid #eee;
    border-radius: 8px;
    /* background-color: #f9f9f9; */ /* Supprimé */
}

.ctc-crypto-item {
    display: flex;
    flex-direction: column; /* Aligner les éléments en colonne */
    align-items: center; /* Centrer les éléments horizontalement */
    text-align: center; /* Centrer le texte */
    padding: 8px 10px;
    margin-right: 8px; /* Espace entre les éléments */
    border: 1px solid #ddd; /* Bordure pour délimiter */
    border-radius: 4px;
    min-width: 120px; /* Largeur minimale plus petite */
    max-width: 150px; /* Largeur maximale pour contrôle */
    /* background-color: #fff; */ /* Supprimé */
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.05); */ /* Supprimé */
}

.ctc-crypto-item:last-child {
    margin-right: 0;
}

.ctc-crypto-icon {
    width: 24px; /* Icône plus petite */
    height: 24px;
    margin-bottom: 5px; /* Espace sous l'icône */
}

.ctc-crypto-name {
    font-weight: bold;
    font-size: 0.8em; /* Police plus petite */
    color: #333;
    margin-bottom: 3px;
    white-space: nowrap; /* Empêcher le retour à la ligne du nom */
    overflow: hidden;
    text-overflow: ellipsis; /* Ajouter ... si le nom est trop long */
    width: 100%; /* S'assurer qu'il prend la largeur pour l'ellipsis */
}

.ctc-crypto-price {
    font-size: 0.85em; /* Police plus petite */
    color: #0073aa;
    margin-bottom: 2px;
}

.ctc-crypto-change {
    font-size: 0.75em; /* Police plus petite */
    /* Sera sous le prix à cause de flex-direction: column */
}

.ctc-crypto-change.positive {
    color: #4CAF50; /* Vert */
}

.ctc-crypto-change.negative {
    color: #F44336; /* Rouge */
}

/* Style pour le défilement horizontal sur les petits écrans */
@media (max-width: 768px) {
    .ctc-crypto-container {
        /* Permet aux items de prendre toute la largeur et de défiler */
    }
    .ctc-crypto-item {
        flex-shrink: 0; /* Empêche les items de rétrécir */
        min-width: 110px; /* Ajuster pour petits écrans */
    }
}

/* Styles pour l'affichage sur une seule ligne */
/* Styles pour le wrapper du widget scrollable et les flèches */
.ctc-scrollable-widget-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 30px; /* Espace pour les flèches à l'extérieur du conteneur scrollable */
    max-width: 100%; /* S'assurer que le wrapper ne dépasse pas son parent */
    box-sizing: border-box;
}

.ctc-crypto-container-single-line {
    display: flex;
    overflow-x: scroll; /* Permet le défilement horizontal */
    scrollbar-width: none; /* Cache l'ascenseur sur Firefox */
    -ms-overflow-style: none; /* Cache l'ascenseur sur IE et Edge */
    white-space: nowrap; /* Empêche le retour à la ligne */
    padding: 10px 0; /* Ajustez le padding vertical si nécessaire, padding horizontal est 0 car géré par le wrapper */
    font-family: Arial, sans-serif;
    width: 100%; /* Le conteneur prendra la largeur disponible à l'intérieur du wrapper */
    margin: 0; /* Supprime les marges par défaut qui pourraient interférer */
    scroll-behavior: smooth; /* Pour un défilement doux */
}

.ctc-crypto-container-single-line::-webkit-scrollbar {
    display: none; /* Cache l'ascenseur sur Chrome, Safari et Opera */
}

.ctc-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #333; /* Couleur de la flèche active */
    cursor: pointer;
    user-select: none;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.8); /* Fond légèrement transparent pour la lisibilité */
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.ctc-scroll-arrow-left {
    left: 0px; /* Position de la flèche gauche */
}

.ctc-scroll-arrow-right {
    right: 0px; /* Position de la flèche droite */
}

.ctc-scroll-arrow.ctc-arrow-disabled {
    color: #ccc; /* Couleur de la flèche désactivée */
    cursor: default;
    opacity: 0.5;
}
    margin-top: -16px;
}    

/* Cache l'ascenseur sur Chrome, Safari et Opera */
.ctc-crypto-container-single-line::-webkit-scrollbar {
    display: none;
}

.ctc-crypto-item-single-line {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto; /* Empêche la compression des items */
    padding: 8px 12px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin-right: 10px; /* Espace entre les items */
    gap: 8px; /* Espace entre les éléments internes */
}

.ctc-crypto-icon-single-line {
    width: 24px;
    height: 24px;
    flex-shrink: 0; /* Empêche l'icône d'être compressée */
}

.ctc-crypto-name-single-line {
    font-weight: bold;
    flex-shrink: 0; /* Empêche le texte d'être compressé */
}

.ctc-crypto-price-single-line {
    flex-shrink: 0;
}

.ctc-crypto-change-single-line {
    font-size: 0.9em;
    flex-shrink: 0;
}

.ctc-crypto-change-single-line.positive {
    color: green;
}

.ctc-crypto-change-single-line.negative {
    color: red;
}

/* Si vous souhaitez que l'ensemble des 10 cryptos soit sur une seule ligne qui scrolle horizontalement,
   vous pouvez décommenter et adapter le style suivant pour le conteneur principal. */
/*
.ctc-crypto-container-single-line {
    display: flex;
    overflow-x: auto; // Permet le scroll horizontal
    white-space: nowrap; // Empêche les items de passer à la ligne
    padding: 10px;
    font-family: Arial, sans-serif;
}

.ctc-crypto-item-single-line {
    display: inline-flex; // Important pour que white-space: nowrap fonctionne sur le parent
    align-items: center;
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin-right: 10px; // Remplace gap pour le scroll horizontal
    min-width: auto; // Laisser la largeur s'adapter au contenu
}
*/

/* Styles précédents (si vous les conservez pour une autre utilisation ou comme référence) */
.ctc-crypto-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px;
    font-family: Arial, sans-serif;
}

.ctc-crypto-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    width: calc(20% - 15px); /* Environ 5 items par ligne, ajustez le gap en conséquence */
    min-width: 180px; /* Largeur minimale avant de passer à la ligne */
    box-sizing: border-box;
    display: flex;
    flex-direction: column; /* Met les éléments en colonne */
    align-items: center; /* Centre les éléments horizontalement dans la colonne */
    text-align: center;
    background-color: #fff; /* Fond blanc */
}

.ctc-crypto-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 5px;
}

.ctc-crypto-name {
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 5px;
}

.ctc-crypto-price {
    font-size: 0.95em;
    margin-bottom: 5px;
}

.ctc-crypto-change {
    font-size: 0.9em;
}

.ctc-crypto-change.positive {
    color: green;
}

.ctc-crypto-change.negative {
    color: red;
}

/* Responsive pour les petits écrans */
@media (max-width: 900px) {
    .ctc-crypto-item {
        width: calc(33.333% - 15px); /* 3 items par ligne */
    }
}

@media (max-width: 600px) {
    .ctc-crypto-item {
        width: calc(50% - 15px); /* 2 items par ligne */
    }
}

@media (max-width: 400px) {
    .ctc-crypto-item {
        width: 100%; /* 1 item par ligne */
    }
}