﻿.agency-popup {
    ;
    padding: 16px;
    font-family: inherit;
    box-sizing: border-box;
}

/* ===========================
   Header
=========================== */

.popup-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.popup-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .popup-icon .icon {
        width: 24px;
        height: 24px;
    }

.popup-head {
    flex: 1;
    min-width: 0;
}

.popup-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
}

.popup-service {
    margin-top: 4px;
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

/* ===========================
   Content
=========================== */

.popup-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.popup-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

    .popup-item .icon {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        color: var(--primary);
        margin-top: 2px;
    }

    .popup-item span {
        flex: 1;
        word-break: break-word;
    }

/* ===========================
   Footer
=========================== */

.popup-actions {
    display: flex;
}

.popup-btn {
    width: 100%;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: all .25s ease;
}

.popup-route {
    background: var(--success);
    color: #fff;
}

    .popup-route:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

.popup-btn .icon {
    width: 18px;
    height: 18px;
}

/* ===== Mobile Popup ===== */
@media (max-width: 768px) {

    .agency-popup {
        width: 240px;
        max-height: 58vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .popup-content {
        padding-bottom: 2px;
        gap: 2px;
    }

    .popup-actions {
        position: sticky;
        bottom: 0;
        
        padding-top: 10px;
        border-top: 1px solid #E5E7EB;
        z-index: 5;
    }

    .popup-btn {
        width: 80%;
        justify-content: center;
    }
}
