/* ==========================================================================
   WC Minimum Delivery — Стили
   ========================================================================== */

/* --- Уведомление в корзине --- */
.wcmd-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    animation: wcmd-fadeIn 0.3s ease-in-out;
}

.wcmd-notice--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.wcmd-notice--error .wcmd-notice__icon {
    color: #dc2626;
}

.wcmd-notice--notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.wcmd-notice--notice .wcmd-notice__icon {
    color: #2563eb;
}

.wcmd-notice--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.wcmd-notice--success .wcmd-notice__icon {
    color: #16a34a;
}

.wcmd-notice__icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.wcmd-notice__icon svg {
    display: block;
}

.wcmd-notice__content {
    flex: 1;
}

/* --- Прогресс-бар --- */
.wcmd-progress-wrapper {
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.wcmd-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.wcmd-progress-text {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.wcmd-progress-text--success {
    color: #16a34a;
    font-weight: 600;
}

.wcmd-progress-amount {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.wcmd-progress-bar {
    width: 100%;
    height: 10px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
}

.wcmd-progress-bar__fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.5s ease, background-color 0.3s ease;
    min-width: 0;
}

.wcmd-progress-bar__fill--complete {
    background-color: #16a34a !important;
}

/* --- Уведомление на странице оформления --- */
.wcmd-checkout-notice {
    margin-bottom: 24px;
    animation: wcmd-fadeIn 0.3s ease-in-out;
}

.wcmd-checkout-notice__inner {
    padding: 24px;
    background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    text-align: center;
}

.wcmd-checkout-notice__icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.wcmd-checkout-notice__inner p {
    font-size: 15px;
    color: #991b1b;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.wcmd-continue-btn {
    display: inline-block;
    padding: 10px 24px !important;
    background: #ef4444 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wcmd-continue-btn:hover {
    background: #dc2626 !important;
    color: #fff !important;
}

/* --- Заблокированная кнопка оформления --- */
.wcmd-disabled-btn {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    background: #9ca3af !important;
    border-color: #9ca3af !important;
    color: #fff !important;
}

/* --- Анимация --- */
@keyframes wcmd-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Адаптивность --- */
@media (max-width: 600px) {
    .wcmd-progress-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .wcmd-notice {
        padding: 12px 16px;
        font-size: 14px;
    }

    .wcmd-checkout-notice__inner {
        padding: 16px;
    }
}
