/* PickSafe - Onboarding & Allergen Customization CSS */

/* 1. 표준 알레르기 체크박스 항목 스타일 (Image 2 원본 디자인 100% 일치) */
.allergen-check-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: #FFF5EC;
    border: 1.5px solid rgba(251, 146, 60, 0.25);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    user-select: none;
}

.allergen-check-item:hover {
    border-color: var(--accent);
    background: #FFF0E4;
}

.allergen-check-item.checked {
    background: #E6F7F5;
    border: 1.5px solid var(--accent);
}

.allergen-check-item input[type="checkbox"] {
    accent-color: var(--accent);
    transform: scale(1.15);
    cursor: pointer;
}

.allergen-text-box {
    flex: 1;
    min-width: 0;
}

.allergen-korean-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.allergen-inci-name {
    font-size: 0.74rem;
    color: var(--text-secondary);
    margin-top: 2px;
    line-height: 1.2;
}

/* 2. 전성분 2만개 DB 검색 결과 항목 스타일 */
.global-search-header {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    padding: 6px 4px 2px 4px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.global-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.03);
    border: 1px dashed rgba(37, 99, 235, 0.25);
    transition: all 0.15s ease;
}

.global-search-item:hover {
    background: rgba(37, 99, 235, 0.08);
}

.btn-add-searched {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s ease;
}

.btn-add-searched:hover {
    opacity: 0.9;
}

/* 3. 스마트 안내 배너 (오타 감지 제안 & 통용어 시소러스 안내) */
.smart-banner-typo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.12) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 10px;
    font-size: 0.8rem;
    color: #4f46e5;
    animation: fadeInSlide 0.2s ease;
}

.smart-banner-thesaurus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(251, 191, 36, 0.12) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    font-size: 0.8rem;
    color: #b45309;
    font-weight: 600;
    animation: fadeInSlide 0.2s ease;
}

.btn-suggestion-apply {
    background: #6366f1;
    color: #ffffff;
    border: none;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.btn-thesaurus-apply {
    background: #d97706;
    color: #ffffff;
    border: none;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

/* 4. 커스텀 기피 성분 태그 스타일 (파스텔 뱃지) */
.custom-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #fee2e2;
    color: #ef4444;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    animation: fadeInSlide 0.15s ease;
}

.custom-tag-delete {
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: bold;
    color: #ef4444;
    margin-left: 3px;
    line-height: 1;
}

.custom-tag-delete:hover {
    color: #b91c1c;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 5. 커스텀 인풋 실시간 추천 박스 */
.custom-recommendation-box {
    background: #ffffff;
    border: 1.5px solid rgba(45, 212, 191, 0.45);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 0.5rem;
    margin-top: 0.4rem;
    margin-bottom: 0.75rem;
    max-height: 240px;
    overflow-y: auto;
    animation: fadeInSlide 0.15s ease;
}

.recommendation-header {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.35rem;
    padding: 2px 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.recommendation-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 9px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.recommendation-item:hover {
    background: #E6F7F5;
}

.recommendation-item:last-child {
    border-bottom: none;
}

