/* Базовые стили */
.delivery-points {
    position: relative;
    display: inline-block;
}

/* Стиль кнопки как на сайте */
.delivery-points__button {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 30px;
    height: 40px;
    background-color: #014f97;
    border-radius: 8px;
    font-weight: 700;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    color: #fff;
    text-align: center;
    border: none;
    cursor: pointer;
    -webkit-transition: background .3s, color .3s, opacity .3s;
    transition: background .3s, color .3s, opacity .3s;
}

.delivery-points__button:hover {
    background-color: #e5097f;
}

/* Стиль для header (только количество) */
.header__location-pvz {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    color: #1b1b22;
    cursor: pointer;
}

.header__location-pvz:hover {
    text-decoration: underline;
}

/* Попап */
.delivery-points__popup {
    position: absolute;

    left: 0;
    margin-bottom: 8px;
    width: 420px;
    max-height: 500px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.delivery-points__popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f6f6f9;
}

.delivery-points__popup-title {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1b1b22;
}

.delivery-points__popup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

.delivery-points__popup-close:hover {
    color: #e5097f;
}

.delivery-points__popup-content {
    overflow-y: auto;
    max-height: 450px;
    padding: 16px 16px 0;
}

/* Служба доставки */
.delivery-points__service {
    margin-bottom: 10px;
    /*padding-bottom: 16px;*/
    border-bottom: 1px solid #f0f0f0;
}

.delivery-points__service:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.delivery-points__service-name {
    font-weight: 700;
    font-size: 14px;
    font-family: "Manrope", sans-serif;
    color: #1b1b22;
    margin-bottom: 4px;
}

.delivery-points__service-price {
    font-size: 12px;
    color: #014f97;
   /* margin-bottom: 12px;*/
}

.delivery-points__service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Карточка ПВЗ (стиль gray-card) */
.delivery-points__item {
    position: relative;
    padding: 16px;
    border-radius: 20px;
    background-color: #f6f6f9;
    overflow: hidden;
}

.delivery-points__item-title {
    font-weight: 700;
    font-size: 14px;
    font-family: "Manrope", sans-serif;
    color: #1b1b22;
    margin-bottom: 6px;
}

.delivery-points__item-address {
    font-size: 12px;
    font-family: "Manrope", sans-serif;
    color: #666;
    margin-bottom: 6px;
    line-height: 1.4;
}

.delivery-points__item-schedule {
    font-size: 11px;
    font-family: "Manrope", sans-serif;
    color: #999;
    margin-bottom: 4px;
}

.delivery-points__item-period {
    font-size: 11px;
    font-family: "Manrope", sans-serif;
    color: #014f97;
    margin-top: 8px;
}

.delivery-points__loading,
.delivery-points__error {
    text-align: center;
    padding: 30px;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    color: #999;
}

.delivery-points__error {
    color: #e5097f;
}

/* Ссылка "подробнее" */
.delivery-points__service-detail {
    display: inline-block;
    margin: 8px 0 12px;
    padding: 6px 16px;
    background-color: #014f97;
    border-radius: 8px;
    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: background .3s;
}

.delivery-points__service-detail:hover {
    background-color: #e5097f;
    color: #fff;
    text-decoration: none;
}

/* Заголовок службы */
.delivery-points__service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

/* Прелоадер */
.delivery-points__preloader {
    display: inline-block;
    vertical-align: middle;
}

.delivery-points__loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.delivery-points__loading .delivery-points__preloader {
    width: 44px;
    height: 44px;
}

.delivery__pvz-span > .delivery-points__preloader {
    height: 20px;
    width: 20px;
    position: relative;
    /*top: -5px;
    right: 8px;*/
}

.delivery-points__popup-footer {
    border-top: 1px solid #f7f0f0;
    margin: 0px 20px;
    text-align: right;
    padding: 10px 0px 5px;
}

@media (max-width: 860px) {
    .delivery-points__popup {
        position: fixed;
        width: 100%;
        /*height: 100%;*/
        top: 0;
    }
}