.usinelp-embed-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.usinelp-embed-wrapper {
    position: relative;
    min-height: 200px;
}

.usinelp-embed-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: usinelp-spin 1s linear infinite;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.usinelp-embed-wrapper[style*="opacity: 1"]::before {
    opacity: 0;
}

@keyframes usinelp-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.usinelp-iframe {
    width: 100%;
    border: none;
    display: block;
    transition: height 0.3s ease;
}

.usinelp-error {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.usinelp-error code {
    background: rgba(0,0,0,0.05);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 13px;
}

.usinelp-error strong {
    font-weight: 600;
}

.usinelp-embed-container::before {
    content: '';
    display: block;
    padding-top: 50%;
    position: relative;
}

.usinelp-embed-container .usinelp-iframe {
    position: absolute;
    top: 0;
    left: 0;
}

@media (max-width: 768px) {
    .usinelp-embed-container {
        margin: 0;
    }
}
