/* Стили для улучшения отображения ошибок валидации в корзине */

/* Поля с ошибками */
.uk-form-danger,
.uk-form-danger:focus {
    border-color: #f0506e !important;
    background-color: rgba(240, 80, 110, 0.05) !important;
    box-shadow: 0 0 0 1px rgba(240, 80, 110, 0.2) !important;
}

/* Блок с ошибками */
.uk-alert-danger {
    background: #f0506e;
    color: #fff;
    border-radius: 4px;
    margin-bottom: 20px;
    animation: slideInDown 0.3s ease-out;
    padding: 15px;
}

/* Анимация появления блока ошибок */
@keyframes slideInDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Список ошибок */
.errors {
    margin: 0;
    padding: 0;
    list-style: none;
}

.errors li {
    margin-bottom: 5px;
    font-size: 14px;
}

.errors li:last-child {
    margin-bottom: 0;
}

/* Дополнительные стили для выделения проблемных полей */
.field-error {
    position: relative;
}

.field-error::after {
    content: "!";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #f0506e;
    font-weight: bold;
    font-size: 16px;
}

/* Улучшение видимости на мобильных устройствах */
@media (max-width: 768px) {
    .uk-alert-danger {
        font-size: 14px;
        padding: 15px;
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }

    .errors li {
        font-size: 13px;
    }
}

/* Стили для кнопки с блокировкой */
.order__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Пульсация для привлечения внимания к ошибкам */
.error-highlight {
    animation: errorPulse 1s ease-in-out;
}

@keyframes errorPulse {

    0%,
    100% {
        box-shadow: 0 0 0 1px rgba(240, 80, 110, 0.2);
    }

    50% {
        box-shadow: 0 0 0 3px rgba(240, 80, 110, 0.4);
    }
}

/* Стили для блока уведомления о минимальной сумме заказа */
.min-sum-notice {
    background: #fff5f5;
    border: 1px solid #f0506e;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    font-size: 14px;
}

.min-sum-notice__header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.min-sum-notice__icon {
    margin-right: 8px;
    flex-shrink: 0;
}

.min-sum-notice__title {
    font-size: 14px;
    font-weight: 600;
    color: #f0506e;
    line-height: 1.2;
}

.min-sum-notice__content {
    margin-left: 0;
}

.min-sum-notice__missing {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
}

.min-sum-notice__missing strong {
    color: #f0506e;
    font-weight: 600;
}

.min-sum-notice__current {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.3;
}

.min-sum-notice__current span {
    font-weight: 600;
    color: #333;
}

.min-sum-notice__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.min-sum-notice__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    line-height: 1.2;
}

.min-sum-notice__btn--primary {
    background: #76A135;
    color: white;
}

.min-sum-notice__btn--primary:hover {
    background: #5d8129;
}

.min-sum-notice__btn--secondary {
    background: transparent;
    color: #f0506e;
    border: 1px solid #f0506e;
}

.min-sum-notice__btn--secondary:hover {
    background: #f0506e;
    color: white;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .min-sum-notice {
        margin: 15px -15px;
        border-radius: 0;
        padding: 15px;
    }

    .min-sum-notice__content {
        margin-left: 0;
        margin-top: 10px;
    }

    .min-sum-notice__header {
        margin-bottom: 10px;
    }

    .min-sum-notice__actions {
        gap: 8px;
    }

    .min-sum-notice__btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (min-width: 769px) {
    .min-sum-notice__actions {
        flex-direction: row;
        justify-content: flex-start;
    }

    .min-sum-notice__btn {
        flex: 0 0 auto;
        min-width: 180px;
    }
}