/* ===== Overlay ===== */
#ssp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Popup box ===== */
#ssp-popup {
    background: #fff;
    border-radius: 12px;
    padding: 36px 40px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#ssp-popup h3 {
    margin: 0 0 18px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
}

#ssp-postcode {
    width: 100%;
    padding: 10px 14px;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
    margin-bottom: 12px;
}

#ssp-postcode:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

/* ===== Button row ===== */
#ssp-btn-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

#ssp-check,
#ssp-geolocate {
    flex: 1;
    padding: 10px 16px;
    font-size: .95rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, opacity .2s;
}

#ssp-check {
    background: #3b82f6;
    color: #fff;
}

#ssp-check:hover {
    background: #2563eb;
}

#ssp-geolocate {
    display: :none;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #86efac;
}

#ssp-geolocate:hover:not(:disabled) {
    background: #dcfce7;
}

#ssp-geolocate:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* ===== Status & Results ===== */
.ssp-geo-status {
    font-size: .88rem;
    margin-bottom: 10px;
    min-height: 1.2em;
}

#ssp-results {
    margin-top: 4px;
}

#ssp-results p {
    margin: 0 0 12px;
    font-size: .95rem;
    line-height: 1.5;
}

.ssp-success {
    color: #15803d;
}

.ssp-error {
    color: #dc2626;
}

/* ===== Confirm button ===== */
.ssp-btn-confirm {
    display: block;
    width: 100%;
    padding: 11px;
    background: #15803d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.ssp-btn-confirm:hover {
    background: #166534;
}

/* ===== Multiple store selection ===== */
.ssp-store-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.ssp-store-option {
    width: 100%;
    padding: 11px 16px;
    background: #f8fafc;
    color: #111;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: .97rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background .15s, border-color .15s;
}

.ssp-store-option:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

/* ===== Change Store floating button ===== */
.ssp-change-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    color: #111;
    border: 1.5px solid #d1d5db;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}

.ssp-change-store-btn::before {
    content: '📍';
    font-size: 1rem;
}

.ssp-change-store-btn:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 12px rgba(59, 130, 246, .2);
}

.ssp-change-store-name {
    max-width: 140px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ssp-change-label {
    color: #3b82f6;
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}