/* ═════════════════════════════════════════════════
   VIMISS FLOATING BELL & 4-ITEM MENU
   - Nút chuông lõi xanh #0c509c viền đồng tâm (icon chuông lớn 28px)
   - 4 ô item kích thước lớn (70px x 80px) hiển thị từ dưới lên
   - Màu chủ đạo #0c509c, không có tooltip
   ═════════════════════════════════════════════════ */

/* ── Wrapper cố định ở góc màn hình ── */
.vimiss-bell-wrapper {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 72px;
    user-select: none;
}

.vimiss-bell-wrapper.is-right {
    left: auto;
    right: 28px;
}

/* ── Menu 4 item nổi lên phía trên quả chuông ── */
.vimiss-bell-menu {
    display: flex;
    flex-direction: column;
    gap: 9px;
    align-items: center;
    margin-bottom: 14px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.18s ease, 
                visibility 0.18s ease;
}

.vimiss-bell-wrapper.is-open .vimiss-bell-menu {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ── Từng item dạng ô chữ nhật bo tròn (Diện tích lớn: 70px x 80px) ── */
.vimiss-bell-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 80px;
    background: #D94751;
    border-radius: 8px;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(217, 71, 81, 0.38);
    cursor: pointer;
    border: none;
    outline: none;
    padding: 8px 4px;
    box-sizing: border-box;
    transform: translateY(14px);
    opacity: 0;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.18s ease, 
                background-color 0.15s ease, 
                box-shadow 0.15s ease;
}

/* Hiệu ứng hiển thị từ dưới lên: Item 4 (Test học bổng) xuất hiện trước, Item 1 (ĐK tư vấn) xuất hiện sau */
.vimiss-bell-wrapper.is-open .vimiss-bell-item {
    transform: translateY(0);
    opacity: 1;
}

.vimiss-bell-wrapper.is-open .vimiss-bell-item:nth-child(4) {
    transition-delay: 0.02s;
}

.vimiss-bell-wrapper.is-open .vimiss-bell-item:nth-child(3) {
    transition-delay: 0.06s;
}

.vimiss-bell-wrapper.is-open .vimiss-bell-item:nth-child(2) {
    transition-delay: 0.10s;
}

.vimiss-bell-wrapper.is-open .vimiss-bell-item:nth-child(1) {
    transition-delay: 0.14s;
}

.vimiss-bell-item:hover {
    background: #C23741;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(217, 71, 81, 0.48);
    color: #ffffff !important;
}

.vimiss-bell-item:active {
    transform: scale(0.96);
}

/* Icon bên trong item (Kích thước lớn 30px) */
.vimiss-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    margin-bottom: 4px;
}

.vimiss-item-icon svg {
    display: block;
    fill: #ffffff;
}

/* Chữ bên trong item (To, rõ ràng 12px) */
.vimiss-item-text {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    line-height: 1.25;
    letter-spacing: -0.2px;
    display: block;
    white-space: normal;
}

/* ── Nút quả chuông ── */
.vimiss-bell-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #D94751;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    padding: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 0 0 3.5px rgba(217, 71, 81, 0.32),
                0 0 0 6px rgba(217, 71, 81, 0.68),
                0 0 0 10.5px rgba(217, 71, 81, 0.32);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.vimiss-bell-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.06);
}

.vimiss-bell-btn:active {
    transform: scale(0.96);
}

.vimiss-bell-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

/* Icon chuông tăng size lên 28px */
.vimiss-bell-icon svg {
    display: block;
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

/* Responsive mobile */
@media (max-width: 480px) {
    .vimiss-bell-wrapper {
        bottom: 20px;
        left: 20px;
        width: 64px;
    }
    .vimiss-bell-wrapper.is-right {
        left: auto;
        right: 20px;
    }
    .vimiss-bell-btn {
        width: 44px;
        height: 44px;
        box-shadow: 0 0 0 3px rgba(217, 71, 81, 0.32),
                    0 0 0 5px rgba(217, 71, 81, 0.68),
                    0 0 0 9px rgba(217, 71, 81, 0.32);
    }
    .vimiss-bell-icon svg {
        width: 24px;
        height: 24px;
    }
    .vimiss-bell-item {
        width: 62px;
        height: 72px;
    }
    .vimiss-item-icon {
        height: 26px;
    }
    .vimiss-item-icon svg {
        width: 24px;
        height: 24px;
    }
    .vimiss-item-text {
        font-size: 11px;
    }
}

/* ═════════════════════════════════════════════════
   GUTENBERG BLOCK EDITOR PREVIEW
   ═════════════════════════════════════════════════ */
.vimiss-bell-editor-wrap {
    padding: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    min-height: 430px;
    box-sizing: border-box;
}

.vimiss-bell-editor-wrap.is-right {
    justify-content: flex-end;
}

.vimiss-bell-editor-wrap .vimiss-bell-wrapper {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0;
}

/* Trong editor, luôn cho menu hiển thị để người dùng xem trực tiếp */
.vimiss-bell-editor-wrap .vimiss-bell-menu {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.vimiss-bell-editor-wrap .vimiss-bell-item {
    transform: translateY(0);
    opacity: 1;
}

/* ═════════════════════════════════════════════════
   HOTLINE POPUP MODAL (Giao diện phẳng, gọn gàng)
   ═════════════════════════════════════════════════ */
.vimiss-hotline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.vimiss-hotline-overlay.is-active {
    display: flex;
}

.vimiss-hotline-dialog {
    max-width: 440px;
    width: 100%;
    background: #ffffff;
    border-radius: 18px;
    padding: 34px 28px 30px 28px;
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

.vimiss-hotline-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.vimiss-hotline-close:hover {
    color: #374151;
}

.vimiss-hotline-title {
    font-size: 21px;
    font-weight: 700;
    color: #1275b0;
    margin: 0 0 16px 0;
    padding: 0;
    text-align: center;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

.vimiss-hotline-btn-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.vimiss-hotline-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    background: linear-gradient(180deg, #225074 0%, #3075AA 100%);
    border-radius: 9999px;
    box-sizing: border-box;
    padding: 12px 24px;
    cursor: pointer;
    transition: filter 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
}

.vimiss-hotline-pill:hover {
    filter: brightness(1.08);
    opacity: 0.95;
}

.vimiss-hotline-pill:active {
    transform: scale(0.99);
}

.vimiss-hotline-tel {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.vimiss-hotline-tel:hover {
    text-decoration: underline;
}

.vimiss-hotline-sep {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    user-select: none;
    line-height: 1;
}

@media (max-width: 480px) {
    .vimiss-hotline-dialog {
        padding: 28px 18px 24px 18px;
        border-radius: 16px;
        max-width: calc(100vw - 32px);
    }

    .vimiss-hotline-title {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .vimiss-hotline-pill {
        min-height: 48px;
        padding: 10px 12px;
        gap: 6px;
    }

    .vimiss-hotline-tel,
    .vimiss-hotline-sep {
        font-size: 15px;
    }
}

