.mobile_network_detector {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.mobile_network_detector.is-waiting,
.mobile_network_detector.is-success,
.mobile_network_detector.is-error {
    display: block;
}

.mobile_network_detector.is-waiting {
    border: 1px solid color-mix(in srgb, var(--primary) 35%, #fff);
    background: color-mix(in srgb, var(--primary) 10%, #fff);
    color: var(--primary);
}

.mobile_network_detector.is-success {
    border: 1px solid color-mix(in srgb, var(--primary) 40%, #fff);
    background: color-mix(in srgb, var(--primary) 12%, #fff);
    color: var(--primary);
}

.mobile_network_detector.is-error {
    border: 1px solid #f5c2c7;
    background: #f8d7da;
    color: #842029;
}

body.auto-network-detect .js-vending-form {
    display: flex;
    flex-direction: column;
}

body.auto-network-detect .js-phone-block {
    order: -1;
}

body.auto-network-detect:not(.network-picker-unlocked) .js-network-picker {
    display: none;
}

.js-detected-network-slot {
    position: relative;
    min-width: 2.75rem;
    justify-content: center;
}

.detected-network-inline {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    vertical-align: middle;
}

.detected-network-badge,
.detected-network-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    animation: detected-network-pop 0.22s ease-out;
}

.detected-network-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.detected-network-badge.is-waiting {
    border: 2px solid color-mix(in srgb, var(--primary) 45%, #fff);
    border-top-color: var(--primary);
    background: transparent;
    animation: detected-network-spin 0.7s linear infinite;
}

.detected-network-badge.is-mtn {
    background: #ffcc00;
    color: #111;
}

.detected-network-badge.is-airtel {
    background: #e4002b;
    color: #fff;
}

.detected-network-badge.is-glo {
    background: #50b848;
    color: #fff;
}

.detected-network-badge.is-9mobile {
    background: #006f3c;
    color: #fff;
}

.detected-network-logo {
    object-fit: cover;
    background: #fff;
}

@keyframes detected-network-pop {
    from {
        transform: scale(0.72);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes detected-network-spin {
    to {
        transform: rotate(360deg);
    }
}
