/* Pronovias style bottom right popup */
.country-suggestor {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 24px;
    width: 340px;
    max-width: calc(100vw - 40px);
    font-family: inherit;
    display: none; /* hidden by default, JS will show it */
    animation: ss-slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    box-sizing: border-box;
}

@keyframes ss-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.country-suggestor__header {
    position: absolute;
    top: 15px;
    right: 15px;
}

.country-suggestor .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.country-suggestor .close-btn:hover {
    color: #000;
}

.country-suggestor__main-content {
    text-align: center;
    padding-top: 10px;
}

.country-suggestor__title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.country-suggestor__title-flag {
    font-size: 18px;
    line-height: 1;
}

.country-suggestor__desc {
    font-size: 14px;
    color: #555;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.country-suggestor__link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    background: #f8e71c; /* Yellow matching the screenshot */
    color: #111 !important;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 50px; /* Pill shape */
    font-weight: 700;
    font-size: 16px;
    transition: background 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
}

.country-suggestor__link:hover, .country-suggestor__link:focus {
    background: #dfd01a;
    color: #111 !important;
    text-decoration: none;
}

.country-suggestor__link:active {
    transform: scale(0.98);
}

.country-suggestor-overlay {
    display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
    .country-suggestor-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.65); /* Semi-transparent black */
        z-index: 999998; /* Just below the popup */
        animation: ss-fade-in-overlay 0.4s ease-out forwards;
    }

    @keyframes ss-fade-in-overlay {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .country-suggestor {
        top: 50%;
        left: 50%;
        bottom: auto;
        right: auto;
        width: 90%;
        max-width: 380px;
        border-radius: 12px;
        padding: 24px;
        transform: translate(-50%, -50%);
        animation: ss-fade-in-mobile 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    
    @keyframes ss-fade-in-mobile {
        from {
            opacity: 0;
            transform: translate(-50%, -45%);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%);
        }
    }
}
