/* ==========================================
   RedStop Delivery Map Plugin Styles
   Colors: white, red, gray, black
   Font: Montserrat
   No border-radius
   ========================================== */

/* Button trigger */
.redstop-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #e30613;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s ease, transform 0.1s ease;
}

.redstop-map-btn:hover {
    background: #c00510;
}

.redstop-map-btn:active {
    transform: translateY(1px);
}

.redstop-map-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.redstop-map-btn__text {
    white-space: nowrap;
}

/* Modal */
.redstop-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
}

.redstop-modal.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.redstop-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.redstop-modal__container {
    position: relative;
    width: 90%;
    max-width: 1100px;
    height: 85vh;
    max-height: 800px;
    background: #ffffff;
    z-index: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Modal header */
.redstop-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 2px solid #e30613;
    background: #ffffff;
    flex-shrink: 0;
}

.redstop-modal__title {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.redstop-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 2px solid #cccccc;
    color: #666666;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.redstop-modal__close:hover {
    border-color: #e30613;
    color: #e30613;
}

/* Notice text */
.redstop-modal__notice {
    padding: 14px 24px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #444444;
    line-height: 1.5;
    flex-shrink: 0;
}

/* Map container */
.redstop-modal__map {
    flex: 1;
    min-height: 0;
    position: relative;
}

/* Yandex map inner override */
.redstop-modal__map .ymaps-2-1-79-map {
    width: 100% !important;
    height: 100% !important;
}

/* Responsive */
@media (max-width: 768px) {
    .redstop-modal__container {
        width: 95%;
        height: 90vh;
        max-height: none;
    }

    .redstop-modal__header {
        padding: 14px 16px;
    }

    .redstop-modal__title {
        font-size: 15px;
    }

    .redstop-modal__notice {
        padding: 12px 16px;
        font-size: 12px;
    }

    .redstop-map-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .redstop-modal__container {
        width: 100%;
        height: 100%;
        max-height: none;
    }

    .redstop-modal__title {
        font-size: 14px;
        letter-spacing: 0.3px;
    }

    .redstop-modal__notice {
        font-size: 11px;
    }

    .redstop-map-btn {
        width: 100%;
        justify-content: center;
    }
}
