/* Style Revolut */
.finnews-currency-converter {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    background-color: #f7f7f7;
    color: #333;
    padding: 20px;
}

/* En-tête */
.finnews-converter-header {
    margin-bottom: 20px;
}

.finnews-converter-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Formulaire */
.finnews-converter-form {
    padding: 0;
}

/* Label Montant */
.finnews-converter-amount label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 16px;
    color: #666;
}

/* Bloc de devise source */
.finnews-converter-from {
    background-color: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Bloc de devise cible */
.finnews-converter-to {
    background-color: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Label de conversion avec flèche plus visible */
.finnews-converter-to-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 16px;
    color: #666;
}

/* Bouton d'échange entre devises - plus visible */
.currency-swap-button {
    background-color: #3684f8;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    margin-left: 10px;
    transition: background-color 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.currency-swap-button:hover {
    background-color: #2b74e2;
}

.currency-swap-button svg {
    fill: white;
    stroke: white;
}

/* Sélecteurs de devises */
.finnews-converter-currencies {
    flex-direction: column;
    margin-bottom: 0;
}

/* Masquer les labels par défaut */
.finnews-converter-from label,
.finnews-converter-to label {
    display: none;
}

/* Style des sélecteurs */
.finnews-converter-from select,
.finnews-converter-to select {
    width: auto;
    border: none;
    background: none;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding-right: 30px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6' fill='none'%3E%3Cpath fill='%23333333' d='M6 6 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}

.finnews-converter-from select:focus,
.finnews-converter-to select:focus {
    outline: none;
}

/* Champ montant */
.finnews-converter-amount input {
    border: 1px solid #ddd;
    background: #fff;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: right;
    width: 160px;
    border-radius: 8px;
    padding: 10px;
}

.finnews-converter-amount input:focus {
    outline: none;
    border-color: #3684f8;
}

/* Conteneurs pour la mise en page Revolut */
.currency-with-flag {
    display: flex;
    align-items: center;
}

/* Drapeaux et icônes plus grands */
.currency-flag {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.amount-display {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

/* Résultat */
.finnews-converter-result {
    display: none !important; /* Caché car on utilise l'affichage intégré */
}

/* Informations de taux */
.taux-info {
    background-color: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.taux-label {
    color: #666;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.taux-value {
    font-weight: 500;
}

/* Masquer complètement le bouton Convertir car conversion dynamique */
.finnews-converter-button {
    display: none;
}

/* Footer */
.finnews-converter-footer {
    padding: 0;
    border: none;
    background: none;
    margin-top: 20px;
}

.finnews-converter-disclaimer {
    font-size: 14px;
    color: #888;
    text-align: center;
    line-height: 1.4;
}

/* Masquer le bouton swap original */
.finnews-converter-swap {
    display: none;
}

/* Masquer les détails du résultat */
.finnews-result-details {
    display: none;
}

/* Crypto icons améliorés */
.crypto-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #333;
}

/* Styles spécifiques pour les SVG - pour s'assurer qu'ils remplissent bien leur conteneur */
.currency-flag svg {
    width: 100%;
    height: 100%;
    display: block;
}