/**
 * PRP Location Turbo  v2.0.0
 * Integrates visually with prp-nigeria-location-fields/location-fields.css
 */

/* ── Positioning wrapper (only added when not already inside .prp-field-wrapper) ── */
.prp-lt-w {
    position: relative;
    display: block;
    width: 100%;
}

/* ── Select states ─────────────────────────────────── */
.prp-location-select.prp-lt-loading {
    opacity: 0.5;
    cursor: wait;
    border-color: #c9a02a !important;
    transition: opacity 0.2s, border-color 0.2s;
}

.prp-location-select.prp-lt-error {
    border-color: #d63638 !important;
    box-shadow: 0 0 0 2px rgba(214, 54, 56, 0.15) !important;
}

/* ── Status badge base ─────────────────────────────── */
.prp-lt-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
    font-family: inherit;
}

/* ── Bouncing-dot spinner ──────────────────────────── */
.prp-lt-spin { color: #7a6010; }

.prp-lt-d {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #0073aa;    /* matches PMPro blue */
    animation: prplt-b 1.1s infinite ease-in-out;
    flex-shrink: 0;
}
.prp-lt-d:nth-child(1) { animation-delay: 0.00s; }
.prp-lt-d:nth-child(2) { animation-delay: 0.18s; }
.prp-lt-d:nth-child(3) { animation-delay: 0.36s; }

@keyframes prplt-b {
    0%, 80%, 100% { transform: scale(0.5); opacity: 0.3; }
    40%           { transform: scale(1.0); opacity: 1.0; }
}

.prp-lt-lbl {
    font-size: 11px;
    color: #555;
    letter-spacing: 0.01em;
}

/* ── Ready badge ────────────────────────────────────── */
.prp-lt-ok {
    color: #1a7a3a;
    font-size: 11px;
    font-weight: 600;
}

/* ── Error message ──────────────────────────────────── */
.prp-lt-err {
    color: #d63638;
    font-size: 11.5px;
    flex-wrap: wrap;
    gap: 4px;
}

/* ── Retry button ───────────────────────────────────── */
.prp-lt-retry {
    display: inline-block;
    margin-left: 4px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #d63638;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    line-height: 1.8;
    transition: background 0.15s;
}
.prp-lt-retry:hover  { background: #a82325; }
.prp-lt-retry:focus  { outline: 2px solid #d63638; outline-offset: 2px; }

/* ── Reduced-motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .prp-lt-d { animation: none; opacity: 0.7; }
}
