/* iHerb Support Cards Styles */
.iherb-support-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.iherb-card {
    flex: 1;
    min-width: 280px;
    max-width: 45%;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.iherb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.iherb-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.iherb-icon {
    background: #5a7d32;
    color: #fff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.iherb-card-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 4px;
    color: #333;
}

.iherb-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.iherb-timer {
    margin-top: 12px;
    font-size: 13px;
    color: #333;
    background: #fff;
    border: 2px dashed #5a7d32;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    font-weight: 500;
}

.iherb-button {
    margin-top: auto;
    display: inline-block;
    text-align: center;
    background: #5a7d32;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.iherb-button:hover {
    background: #4a6b28;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(90, 125, 50, 0.3);
}

/* Ограничение ширины для одиночных карточек */
.iherb-chat-only .iherb-card,
.iherb-email-only .iherb-card {
    max-width: 45%;
    margin: 0 auto;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .iherb-support-cards {
        flex-direction: column;
        gap: 16px;
    }
    
    .iherb-card {
        min-width: auto;
        max-width: none;
        padding: 20px;
    }
    
    .iherb-chat-only .iherb-card,
    .iherb-email-only .iherb-card {
        max-width: none;
        margin: 0;
    }
    
    .iherb-icon {
        width: 40px;
        height: 40px;
    }
    
    .iherb-card-title {
        font-size: 16px;
    }
    
    .iherb-card-desc {
        font-size: 13px;
    }
    
    .iherb-status-indicator {
        width: 14px;
        height: 14px;
        top: 12px;
        right: 12px;
    }
}

/* Индикатор статуса - лампочка */
.iherb-status-indicator {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
    z-index: 1000;
    cursor: help;
}

.iherb-status-indicator:hover {
    transform: scale(1.1);
}

.iherb-status-indicator.online {
    background: #4CAF50;
    animation: pulse-green 2s infinite;
}

.iherb-status-indicator.offline {
    background: #f44336;
    animation: blink-red 3s infinite steps(1, end);
}

.iherb-status-indicator.holiday {
    background: #ff9800;
    animation: blink-orange 3s infinite steps(1, end);
}

/* Простая анимация пульсации */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Четкие анимации мигания */
@keyframes blink-red {
    0%, 49% { 
        opacity: 1; 
        transform: scale(1); 
    }
    50%, 100% { 
        opacity: 0.25; 
        transform: scale(0.9); 
    }
}

@keyframes blink-orange {
    0%, 49% { 
        opacity: 1; 
        transform: scale(1); 
    }
    50%, 100% { 
        opacity: 0.25; 
        transform: scale(0.9); 
    }
}

/* Анимации мигания */
@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(244, 67, 54, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
    }
}

@keyframes pulse-orange {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
}

/* Дополнительные стили для лучшей совместимости */
.iherb-support-cards * {
    box-sizing: border-box;
}

.iherb-card svg {
    width: 24px;
    height: 24px;
}

.iherb-timer strong {
    color: #5a7d32;
    font-weight: 700;
}

/* Уважение к настройкам доступности */
@media (prefers-reduced-motion: reduce) {
    .iherb-status-indicator {
        animation: none;
    }
}
