:root {
    --st-primary: var(--primary, #d50c2d);
    --st-primary-light: var(--primary-light, rgba(213, 12, 45, 0.08));
}

.speedtest-container {
    max-width: 1000px;
    margin: 0 auto;
}

.speedtest-embed-wrapper {
    position: relative;
    width: 100%;
    min-height: 650px;
    background: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.speedtest-embed-host {
    width: 100%;
    min-height: 650px;
    display: block;
}

.speedtest-loader {
    position: absolute;
    inset: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    z-index: 5;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.speedtest-spinner {
    width: 44px;
    height: 44px;
    border: 3.5px solid var(--st-primary-light);
    border-top-color: var(--st-primary);
    border-radius: 50%;
    animation: stSpin 0.9s linear infinite;
}

@keyframes stSpin {
    to {
        transform: rotate(360deg);
    }
}

.speedtest-loader-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {

    .speedtest-embed-wrapper,
    .speedtest-embed-host {
        min-height: 600px;
    }
}