/* Стили для формы корзины */

/* Принудительное отображение секции выбора типа клиента */
.busket-order__customer-type {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.busket-order__customer-type .busket-order__variants {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.busket-order__customer-type .busket-order__variant {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.busket-order__customer-type .checkbox {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
    gap: 10px;
}

.busket-order__customer-type .checkbox__input {
    position: relative !important;
    left: auto !important;
    opacity: 0 !important;
}

.busket-order__customer-type .checkbox__mark {
    display: block !important;
    flex-shrink: 0;
}

.busket-order__customer-type .checkbox__txt {
    display: inline-block !important;
}

/* Стили для загруженных файлов */
.dropzone__files {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.dropzone__files-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
}

.dropzone__files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropzone__file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropzone__file-item:hover {
    border-color: #ccc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dropzone__file-info {
    flex: 1;
    overflow: hidden;
    margin-right: 10px;
}

.dropzone__file-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
    margin-bottom: 2px;
}

.dropzone__file-size {
    color: #666;
    font-size: 12px;
}

.dropzone__file-remove {
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.dropzone__file-remove:hover {
    background: #cc0000;
}

/* Стили для опций доставки */
.busket-order__delivery-options {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.busket-order__delivery-options .busket-order__terminal,
.busket-order__delivery-options .busket-order__variant,
.busket-order__delivery-options .busket-order__address {
    margin-bottom: 15px;
}

.busket-order__delivery-options .busket-order__terminal:last-child,
.busket-order__delivery-options .busket-order__variant:last-child,
.busket-order__delivery-options .busket-order__address:last-child {
    margin-bottom: 0;
}

/* Стили для заблокированных полей */
.field__input:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

.field__input:disabled::placeholder {
    color: #bbb;
}

/* Стили для заблокированных чекбоксов */
.checkbox__input:disabled {
    cursor: not-allowed;
}

.checkbox__input:disabled + .checkbox__mark {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox__input:disabled ~ .checkbox__txt {
    opacity: 0.5;
    cursor: not-allowed;
    color: #999;
}

/* Стили для заблокированных лейблов */
label:has(.checkbox__input:disabled) {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Анимации для переходов */
.busket-order__delivery-options {
    transition: all 0.3s ease;
}

.busket-order__legal-fields {
    transition: all 0.3s ease;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .dropzone__file-item {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .dropzone__file-name {
        font-size: 13px;
    }
    
    .dropzone__file-size {
        font-size: 11px;
    }
    
    .dropzone__file-remove {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .busket-order__delivery-options {
        padding: 15px;
        margin-top: 15px;
    }
}

/* Стили для валидации */
.field__input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.field__input.success {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Стили для уведомлений */
.form-notification {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 14px;
}

.form-notification.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-notification.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-notification.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}
