/* Popup Like Heart Button Styles */
.popup-like-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

/* カウント数字（左側） */
.popup-like-count {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    min-width: 30px;
    text-align: right;
    transition: color 0.3s ease;
}

/* ハートボタン */
button.popup-like-btn {
    background: #E9E9E9 !important;
    border: none !important;
    padding: 12px;
    border-radius: 50%; 
    color: transparent !important;
    cursor: pointer;
    outline: none !important;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

button.popup-like-btn:hover {
    background: #E9E9E9 !important;
    transform: scale(1.0);
}

button.popup-like-btn:active {
    background: #E9E9E9 !important;
    transform: scale(1.0);
}

/* フォーカス時（クリック後）のスタイルリセット */
button.popup-like-btn:focus {
    background: #E9E9E9 !important;
    border: none !important;
    outline: none !important;
    color: transparent !important;
    box-shadow: none !important;
}

/* Like済み状態 */
button.popup-like-btn.liked {
    background: #E9E9E9 !important;
}

button.popup-like-btn.liked:hover {
    background: #E9E9E9 !important;
}

button.popup-like-btn.liked:active {
    background: #E9E9E9 !important;
}

/* Like済み時のフォーカス */
button.popup-like-btn.liked:focus {
    background: #E9E9E9 !important;
    border: none !important;
    outline: none !important;
    color: transparent !important;
    box-shadow: none !important;
}

/* ハートアイコン（SVG） */
.heart-icon {
    width: 22px;
    height: 22px;
    fill: none !important;
    stroke: #FE0309 !important;
    stroke-width: 2;
    transition: all 0.3s ease;
}

/* Like済み状態 → 赤いハート */
button.popup-like-btn.liked .heart-icon {
    fill: #FE0309 !important;
    stroke: #FE0309 !important;
}

/* Like済み時のカウント色 */
.popup-like-wrapper:has(.popup-like-btn.liked) .popup-like-count {
    color: #FE0309;
}

/* クリック時のパルスアニメーション */
.heart-icon.animate-pulse {
    animation: heartPulse 0.3s ease;
}

@keyframes heartPulse {
    0% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.2); 
    }
    100% { 
        transform: scale(1); 
    }
}

/* ホバー時の微細なアニメーション */
button.popup-like-btn:not(.liked):hover .heart-icon {
    fill: rgba(254, 3, 9, 0.2) !important;
    stroke-width: 2.4;
}

/* Elementor Popup内での調整 */
.elementor-popup-modal .popup-like-wrapper {
    justify-content: center;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .heart-icon {
     width: 18px;
     height: 18px;
    }
	button.popup-like-btn{
		padding:11px;
	}
    .popup-like-count {
        font-size: 14px;
    }
}