/* CDEK Checkout Styles */

.order__delivery {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.order__delivery-label {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.order__delivery-types {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.order__delivery-types .input-checkbox {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.order__delivery-types .input-checkbox:hover {
    border-color: #007bff;
}

.order__delivery-types .input-checkbox__input:checked + .input-checkbox__icon + .input-checkbox__text {
    color: #007bff;
    font-weight: 600;
}

.order__delivery-types .input-checkbox__input:checked ~ * {
    border-color: #007bff;
}

.delivery-cost {
    margin-left: auto;
    font-weight: 600;
    color: #28a745;
}

.cdek-city-selection,
.cdek-pickup-selection {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.city-suggestions {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    border-radius: 0 0 6px 6px;
}

.city-suggestion {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.city-suggestion:hover {
    background: #f0f0f0;
}

.city-suggestion:last-child {
    border-bottom: none;
}

.cdek-pvz-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cdek-pvz-modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cdek-pvz-modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cdek-pvz-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.cdek-pvz-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cdek-pvz-modal-close:hover {
    color: #333;
}

.cdek-pvz-modal-body {
    flex: 1;
    overflow: hidden;
}

.cdek-pvz-container {
    display: flex;
    height: 600px;
}

.cdek-pvz-map {
    flex: 1;
    min-height: 400px;
}

.cdek-pvz-list {
    width: 350px;
    overflow-y: auto;
    border-left: 1px solid #e9ecef;
    background-color: #f8f9fa;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cdek-pvz-item {
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cdek-pvz-item:hover {
    border-color: #007bff;
    background: #f8f9ff;
}

.cdek-pvz-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.cdek-pvz-address {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.cdek-pvz-worktime {
    color: #6c757d;
    font-size: 0.85rem;
}

.selected-pvz-info {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #e8f5e8;
    border-radius: 4px;
    color: #155724;
    font-size: 0.9rem;
}

.cdek-delivery-cost {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.delivery-cost-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 1.1rem;
    font-weight: 600;
}

.delivery-cost-label {
    color: #333;
}

.delivery-cost-value {
    color: #28a745;
    font-weight: 700;
}

.cdek-pvz-balloon {
    padding: 0.5rem;
}

.cdek-pvz-balloon h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.cdek-pvz-balloon p {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    color: #6c757d;
}

.cdek-pvz-select-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    transition: background-color 0.2s;
}

.cdek-pvz-select-btn:hover {
    background-color: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
    .cdek-pvz-modal-content {
        width: 95%;
        height: 95%;
        margin: 1rem;
    }
    
    .cdek-pvz-container {
        flex-direction: column;
        height: auto;
    }
    
    .cdek-pvz-map {
        height: 300px;
        min-height: 300px;
    }
    
    .cdek-pvz-list {
        width: 100%;
        max-height: 300px;
    }
    
    .order__delivery-types .input-checkbox {
        padding: 0.75rem;
    }
    
    .delivery-cost {
        font-size: 0.9rem;
    }
    .cdek-pickup-selection .field{
        flex-direction: column;
    }
}
.cdek-courier-options{
  padding-top: 20px;
}
.cdek-courier-options .field{
  padding-top: 15px;
}