/* Centralized Swap Specific Styles - Improved Compact Version */
.swap-widget-container {
    max-width: 900px;
    margin: 30px auto; /* Reduced from 40px */
    padding: 2rem; /* Reduced from 3rem for more compact look */
    text-align: center;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 50px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.swap-widget-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 70px rgba(139, 92, 246, 0.5);
}

.swap-widget-container h1 {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    margin-bottom: 15px; /* More consistent spacing */
}

.swap-widget-container iframe {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    margin-top: 10px; /* Small gap between description and iframe */
}

.swap-widget-container iframe:hover {
    transform: scale(1.01); /* Reduced hover effect for subtlety */
}

/* Responsive Design - Improved */
@media (max-width: 768px) {
    .swap-widget-container {
        margin: 20px auto;
        padding: 1.5rem; /* Even more compact on mobile */
    }
    
    .swap-widget-container h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .swap-widget-container p {
        margin-bottom: 15px !important; /* Override inline styles */
    }
    
    .swap-widget-container iframe {
        height: 400px; /* Shorter on mobile */
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .swap-widget-container {
        padding: 1.25rem; /* Most compact for small screens */
        margin: 15px auto;
    }
    
    .swap-widget-container h1 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .swap-widget-container p {
        margin-bottom: 12px !important;
        font-size: 0.9rem;
    }
    
    .swap-widget-container iframe {
        height: 380px; /* Even shorter on very small screens */
    }
}