/* InPost GeoWidget v5 modal. Hidden with visibility (not display) so the
   widget iframe keeps its size between openings. */
.inpost-map-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.6);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.inpost-map-overlay.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.inpost-map-modal {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 960px;
    height: min(680px, calc(100vh - 32px));
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.inpost-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 8px 6px 16px;
    background: #ffcd00;
    color: #1d1d1b;
}

.inpost-map-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.inpost-map-modal inpost-geowidget {
    display: block;
    flex: 1;
    min-height: 0;
    width: 100%;
}

.inpost-map-close {
    flex: none;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #1d1d1b;
    font-size: 24px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
}

.inpost-map-close:hover,
.inpost-map-close:focus {
    background: #f2f2f2;
}
