#renovapay-payment-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

/* Bandeau mode test */
.renovapay-test-mode-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    background: #fff7ed;
    border: 1px solid #fb923c;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #9a3412;
}

.renovapay-test-mode-banner strong {
    font-weight: 700;
}

.renovapay-test-mode-banner code {
    background: #fff;
    border: 1px solid #fdba74;
    border-radius: 4px;
    padding: 2px 8px;
    font-family: 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #c2410c;
    letter-spacing: 0.05em;
}

#renovapay-payment-request-container {
    margin-bottom: 15px;
}

#renovapay-payment-request-separator {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

#renovapay-payment-request-separator::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #cbd5e1;
    z-index: 1;
}

#renovapay-payment-request-separator span {
    background: #f8fafc;
    padding: 0 15px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #64748b;
    position: relative;
    z-index: 2;
}

#renovapay-card-container {
    margin-top: 10px;
}

.renovapay-form-row label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.renovapay-input-container {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 12px 14px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Style de focus fourni par Stripe JS via des classes automatiques */
.renovapay-input-container.StripeElement--focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.05);
    outline: none;
}

.renovapay-input-container.StripeElement--invalid {
    border-color: #f87171;
}

#renovapay-card-errors {
    color: #dc2626;
    font-size: 13px;
    margin-top: 8px;
    font-weight: 500;
}

/* Sélecteur d'options de paiement */
.renovapay-payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.renovapay-payment-option {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.2s ease-in-out;
}

.renovapay-payment-option:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.renovapay-payment-option.active {
    border-color: #6366f1;
    background: #f5f3ff;
    box-shadow: 0 0 0 1px #6366f1;
}

.renovapay-payment-option label {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    margin: 0 !important;
    width: 100%;
    user-select: none;
    box-sizing: border-box;
}

.renovapay-payment-option input[type="radio"] {
    margin: 0 12px 0 0 !important;
    cursor: pointer;
    accent-color: #6366f1;
    width: 18px;
    height: 18px;
}

.renovapay-option-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    flex-grow: 1;
}

.renovapay-option-icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.renovapay-option-icons img {
    height: 20px !important;
    width: auto !important;
    max-height: 20px !important;
    max-width: 50px !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.renovapay-option-icons img.renovapay-wallet-icon {
    height: 20px !important;
    max-height: 20px !important;
}

/* Contenu des méthodes */
.renovapay-method-content {
    display: none;
}

.renovapay-method-content.active {
    display: block;
}

/* Grille responsive et alignement du formulaire de carte bancaire */
.renovapay-credit-card-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 15px;
}

.renovapay-form-row-group {
    display: flex;
    gap: 16px;
}

.renovapay-form-row {
    display: flex;
    flex-direction: column;
}

.renovapay-form-row.full-width {
    width: 100%;
}

.renovapay-form-row.half-width {
    width: 50%;
}

@media (max-width: 480px) {
    .renovapay-form-row-group {
        flex-direction: column;
        gap: 16px;
    }
    
    .renovapay-form-row.half-width {
        width: 100%;
    }
}

/* Notice frais de service */
.renovapay-service-fee-notice {
    display: flex;
    align-items: center;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #1e3a8a;
}
.renovapay-service-fee-notice strong {
    font-weight: 700;
}
