/**
 * Fioreria Delivery Cutoff Styles
 * CSS for today delivery cutoff notification system
 */

/* Main delivery notification container */
.fioreria-delivery-notification {
    margin: 15px 0;
    padding: 16px 20px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(10px);
    opacity: 0;
    animation: slideInFade 0.6s ease forwards;
    animation-fill-mode: forwards;
    visibility: visible;
}

/* Animation for notification appearance - stays visible longer */
@keyframes slideInFade {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Ensure notification stays visible after animation */
.fioreria-delivery-notification.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Stable notification state */
.fioreria-delivery-notification:not(.updating) {
    animation-play-state: paused;
}

/* Success state - order can be delivered today */
.fioreria-delivery-notification.success {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f9f0 100%);
    border: 2px solid #4c6b5c;
    box-shadow: 0 4px 12px rgba(76, 107, 92, 0.15);
}

/* Warning state - after cutoff time */
.fioreria-delivery-notification.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #fef8e1 100%);
    border: 2px solid #f0ad4e;
    box-shadow: 0 4px 12px rgba(240, 173, 78, 0.15);
}

/* Urgent state - close to cutoff time */
.fioreria-delivery-notification.urgent {
    background: linear-gradient(135deg, #ffe6e6 0%, #fff0f0 100%);
    border: 2px solid #e74c3c;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
    animation: pulseUrgent 2s infinite;
}

@keyframes pulseUrgent {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Icon styling */
.fioreria-delivery-notification .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 12px;
    font-size: 14px;
    vertical-align: middle;
}

.fioreria-delivery-notification.success .icon {
    background: #4c6b5c;
    color: white;
}

.fioreria-delivery-notification.warning .icon {
    background: #f0ad4e;
    color: white;
}

.fioreria-delivery-notification.urgent .icon {
    background: #e74c3c;
    color: white;
}

/* Message text styling */
.fioreria-delivery-notification .message {
    display: inline-block;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    vertical-align: middle;
}

.fioreria-delivery-notification.success .message {
    color: #2d5936;
}

.fioreria-delivery-notification.warning .message {
    color: #8a6d3b;
}

.fioreria-delivery-notification.urgent .message {
    color: #a94442;
}

/* Time remaining emphasis */
.fioreria-delivery-notification .time-remaining {
    font-weight: 700;
    font-size: 16px;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-decoration-thickness: 2px;
}

/* Countdown animation for urgent state */
.fioreria-delivery-notification.urgent .time-remaining {
    animation: timeCountdown 1s infinite alternate;
}

@keyframes timeCountdown {
    from { opacity: 1; }
    to { opacity: 0.7; }
}

/* Decorative elements */
.fioreria-delivery-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
}

/* Hover effects */
.fioreria-delivery-notification:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .fioreria-delivery-notification {
        margin: 10px 0;
        padding: 14px 16px;
        border-radius: 8px;
    }

    .fioreria-delivery-notification .message {
        font-size: 14px;
    }

    .fioreria-delivery-notification .icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
        margin-right: 10px;
    }
}

/* Smooth transitions for dynamic updates */
.fioreria-delivery-notification.updating {
    opacity: 0.7;
    transform: scale(0.98);
    transition: all 0.3s ease;
}