/**
 * Highlight Animator - Integrated CSS (v1.2.5)
 * 아이콘 교체 및 팝오버-화살표 일체화 디자인 완성
 */

/* 프론트엔드 멀티라인 애니메이션 */
mark.ha-highlight {
    background: transparent;
    color: inherit;
    position: relative;
    padding: 2px 0;
    margin: 0 2px;
    border-radius: 2px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    background-image: linear-gradient(#bedfff, #bedfff);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    background-position: left center;
    transition: background-size 0.8s cubic-bezier(0.16, 1, 0.3, 1); font-weight: bold;
}

mark.ha-highlight.ha-animate {
    background-size: 100% 100%;
}

/* 에디터 내부 정적 표시 */
.block-editor-rich-text__editable mark.ha-highlight {
    /* background-color: #ffe566 !important; */
    background-color: #bedfff !important;
    background-size: 100% 100% !important; font-weight: ;
}

/* ──────────────────────────────────────────────
 * 독립 플로팅 팝오버 & 화살표 수정
 * ────────────────────────────────────────────── */

.ha-floating-popover.components-popover {
    z-index: 1000001 !important;
}

/* 팝오버 박스 본체 */
.ha-floating-popover .components-popover__content {
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid #1e1e1e !important;
    overflow: visible !important;
    padding: 0 !important;
    background-color: #ffe566 !important; /* 전체 배경을 노란색으로 통일 */
    min-width: auto !important;
}

/* 플로팅 버튼 */
.ha-floating-button.components-button {
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 14px !important;
    background-color: #fff !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1e1e1e !important;
    white-space: nowrap !important;
}

.ha-floating-button.components-button:hover {
    filter: brightness(0.95);
}

/* 박스 하단 화살표 (완벽한 일체화) */
.ha-floating-popover .components-popover__arrow {
    background-color: transparent; 
    bottom: -10px !important; /* 화살표가 박스 하단 라인에 완벽히 물리도록 조정 */
    margin-left: -6px !important;
    width: 12px !important;
    height: 12px !important;
    z-index: 1 !important; /* 박스보다 뒤로 가지 않게 하여 테두리 연결성 확보 */
}

/* 아이콘 강제 노출 설정 */
.ha-floating-button svg {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important; width: 28px;
}