/* Sezione "Come funziona" - Stile compatibile con il plugin */
.rnb-how-it-works-section {
    margin: 20px 0;
}

/* Quando il contenuto è visibile, mostra il contenitore */
.rnb-how-it-works-section:has(.rnb-how-it-works-content:not([style*="display: none"])) {
    background: #ffffff;
    border: 1px solid #e1ecf4;
    border-radius: 8px;
    overflow: hidden;
}

/* Fallback per browser che non supportano :has() */
.rnb-how-it-works-section.rnb-content-visible {
    background: #ffffff;
    border: 1px solid #e1ecf4;
    border-radius: 8px;
    overflow: hidden;
}

.rnb-how-it-works-content {
    padding: 0;
}

.rnb-how-it-works-header {
    background: #689BCAB5;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
}

.rnb-header-left {
    display: flex;
    align-items: center;
}

.rnb-how-it-works-header .rnb-info-icon {
    color: white;
    margin-right: 10px;
    font-size: 16px;
}

.rnb-how-it-works-header h3 {
    margin: 0;
    color: white !important;
    font-size: 16px;
    font-weight: 600;
}

.rnb-how-it-works-options {
    padding: 20px;
    background: transparent;
}

.rnb-option {
    background: #ffffff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e1ecf4;
    margin-bottom: 15px;
}

.rnb-option:last-child {
    margin-bottom: 0;
}

.rnb-option-title {
    margin: 0 0 10px 0;
    color: #4a90c2;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.rnb-option-icon {
    margin-right: 10px;
    font-size: 16px;
    color: #6ba3d6;
    width: 20px;
    text-align: center;
}

.rnb-option-description {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
    font-size: 13px;
}

/* Pulsante toggle - stile simile al pulsante "Noleggia" ma più piccolo */
.rnb-how-it-works-toggle {
    margin: 20px 0;
    text-align: left;
}

.rnb-toggle-button {
    background: linear-gradient(135deg, #6ba3d6 0%, #4a90c2 100%);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(107, 163, 214, 0.3);
}

.rnb-toggle-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(107, 163, 214, 0.4);
}

.rnb-toggle-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 163, 214, 0.3);
}

.rnb-toggle-button .rnb-info-icon {
    margin-right: 8px;
    font-size: 14px;
}

/* Pulsante di chiusura - design minimalista */
.rnb-close-button {
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
    cursor: pointer !important;
    padding: 0 !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    margin-left: 10px !important;
    box-shadow: none !important;
}

.rnb-close-button:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.15) !important;
    transform: none !important;
    box-shadow: none !important;
}

.rnb-close-button:focus {
    outline: none !important;
    color: white !important;
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: none !important;
}

.rnb-close-button:active {
    transform: scale(0.95) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .rnb-how-it-works-header {
        padding: 12px 15px;
    }
    
    .rnb-how-it-works-options {
        padding: 15px;
    }
    
    .rnb-option {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .rnb-option-title {
        font-size: 13px;
    }
    
    .rnb-option-description {
        font-size: 12px;
    }
    
    .rnb-toggle-button {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .rnb-close-button {
        width: 22px !important;
        height: 22px !important;
        font-size: 12px !important;
    }
}