.transaction {
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background-color: #fff;
    transition: max-height 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
}

.transaction-header {
    background-color: #f9f9f9;
    padding: 10px;
    display: inline-block;
    cursor: pointer;
    width: 100%;
}

.transaction-header > .control-buttons {
    float: right;
}

.transaction-header span {
    font-size: 14px;
}

.toggle-button, .close-button {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

/* Limite la hauteur maximale de transaction-details */
.transaction-details {
    max-height: 200px;
    overflow-y: scroll;
    display: none;
    padding: 10px;
    border-top: 1px solid #ddd;
}

/* Structure chaque ligne d'élément de transaction */
.transaction-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 5px 0;
}

/* Style des sous-éléments */
.transaction-icon {
    margin-right: 10px;
}

.transaction-name {
    font-size: 14px;
}

.transaction-status {
    color: #333;
    font-size: 14px;
}

.transaction-description {
    font-size: 12px;
    color: #555;
    margin-left: 5px;
}

/* Cache les détails sur les petits écrans */
@media (max-width: 400px) {
    .transaction-details {
        display: none;
    }
}
