.tppl-widget-iframe {
    height: 100%;
    width: 100%;
    border: none;
    overflow: hidden;
}

.tppl-popup-widget {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.tppl-popup-widget-loading {
    width: 100%;
    height: 100%;
    vertical-align: center;
    text-align: center;
    background: rgba(255, 255, 255, .8) url('http://i.stack.imgur.com/FhHRx.gif') 50% 50% no-repeat;
    z-index: 999999 !important;
}

.tppl-widget-title {
    font-weight: 500;
    margin-bottom: 10px;
}


.ppl-parcelshop-map {
    min-height: 551px;
    min-width: 350px;
    height: 600px;
    max-height: 640px;
}

.tppl-widget-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 999999 !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

/* Modal centered content */
.ppl-popup-content {
    background: #fff;
    position: relative;
    width: 95%;
    height: 95%;
    max-width: 1600px;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 0;
    /* Remove padding to let the map fill */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .ppl-popup-content {
        width: 90%;
        height: 90%;
    }
}

/* Ensure map fills the modal */
#ppl-parcelshop-map {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    /* Override fixed min-height */
}

/* Improved Close Button */
.tppl-widget-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 24px;
    line-height: 1;
    text-decoration: none;
    z-index: 10000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    font-family: Arial, sans-serif;
}

.tppl-widget-close-button:hover {
    background: #f0f0f0;
    transform: scale(1.1);
    color: #000;
}

/* Override for the "change" modal if needed */
.popup-content-change {
    /* Keep consistent with main modal */
}

@media screen and (max-width: 720px) {
    .ppl-popup-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
}