/* === Checkout PVZ Button === */
.chr-cdek-pvz-wrap {
    margin-top: 10px;
    padding: 0;
}

.chr-cdek-select-pvz {
    display: inline-block;
    padding: 10px;
    margin-top: 10px;
    background: transparent;
    color: #2962ff !important;
    border: 1.5px solid #2962ff !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: none;
    letter-spacing: 0.02em;
}

.chr-cdek-select-pvz:hover {
    background: #eef2ff;
    color: #2962ff !important;
}

.chr-cdek-change-pvz {
    margin-top: 10px;
}

.chr-cdek-pvz-selected {
    font-size: 13px;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.4;
    padding: 6px 10px;
    background: #f5f7ff;
    border-radius: 6px;
    border-left: 3px solid #2962ff;
}

.chr-cdek-pvz-icon {
    font-size: 14px;
}

/* === Map Modal === */
#chr-cdek-map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.chr-cdek-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #1a1a2e;
    color: #fff;
    flex-shrink: 0;
}

.chr-cdek-map-title {
    font-size: 17px;
    font-weight: 600;
}

.chr-cdek-map-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 0 6px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.chr-cdek-map-close:hover {
    opacity: 1;
}

#chr-cdek-map-container {
    flex: 1;
    position: relative;
    min-height: 0;
    overflow: hidden;
}

#chr-cdek-map {
    width: 100%;
    height: 100%;
}

/* === Info Panel (overlay at bottom of map) === */
#chr-cdek-info-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: #fff;
    border-top: 3px solid #2962ff;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.chr-cdek-info-content {
    flex: 1;
    min-width: 0;
}

.chr-cdek-info-type {
    font-weight: 700;
    font-size: 15px;
    color: #2962ff;
    margin-bottom: 4px;
}

.chr-cdek-info-address {
    font-size: 14px;
    color: #222;
    margin-bottom: 4px;
    font-weight: 500;
}

.chr-cdek-info-time {
    font-size: 13px;
    color: #555;
    margin-bottom: 2px;
}

.chr-cdek-info-phone {
    font-size: 13px;
    color: #555;
}

.chr-cdek-info-delivery {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 6px;
    padding: 4px 0;
}

.chr-cdek-info-select {
    background: #2962ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 10px rgba(41, 98, 255, 0.3);
    align-self: center;
}

.chr-cdek-info-select:hover {
    background: #1c4fd6;
    box-shadow: 0 4px 16px rgba(41, 98, 255, 0.4);
}

.chr-cdek-info-select:disabled {
    background: #999;
    cursor: not-allowed;
    box-shadow: none;
}

.chr-cdek-cost {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
}

.chr-cdek-period {
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

.chr-cdek-cost-error {
    font-size: 13px;
    color: #c62828;
}

.chr-cdek-loading {
    font-size: 13px;
    color: #888;
}

/* === Mobile === */
@media (max-width: 768px) {
    #chr-cdek-info-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
    }

    .chr-cdek-info-select {
        text-align: center;
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }

    .chr-cdek-map-header {
        padding: 12px 16px;
    }
}

/* === Map Loader === */
#chr-cdek-map-loader {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
    display: none;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    padding: 8px 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    font-size: 13px;
    color: #333;
    font-weight: 500;
    align-items: center;
    gap: 8px;
}

#chr-cdek-map-loader.fadeIn,
#chr-cdek-map-loader[style*="display: flex"],
#chr-cdek-map-loader[style*="display:flex"] {
    display: flex !important;
}

.chr-cdek-loader-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top-color: #2962ff;
    border-radius: 50%;
    animation: chr-cdek-spin 0.7s linear infinite;
}

@keyframes chr-cdek-spin {
    to { transform: rotate(360deg); }
}
