/* ================= 设计器内部样式 ================= */
.in_design_page .comments_reviews>div {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.in_design_page .comment_support_status {
    display: flex !important;
    opacity: 1 !important;
}

.in_design_page .mess_hint {
    display: flex !important;
    opacity: 1 !important;
}

/* ================= Sonner 级原生堆叠 Toast 样式 ================= */
.pl_toast {
    display: none !important;
}

.toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    width: 320px;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    /* 防止空白处阻挡点击 */
}

.toast-message {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    color: #1f2937;
    border: 1px solid #f3f4f6;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    pointer-events: auto;

    /* 核心动画引擎：弹性过渡 */
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.15),
        opacity 0.4s ease,
        box-shadow 0.4s ease;

    transform-origin: top center;
    z-index: var(--z-index);
}

/* 绿色与红色主题 */
.toast-message.is-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.toast-message.is-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* ======== 核心状态控制 ======== */

/* 1. 展开状态 (Hover) : 平铺展示保持不变 */
.toast-container[data-expanded="true"] .toast-message {
    transform: translateY(var(--offset)) scale(1);
    opacity: 1;
}

/* ================== 修改这里 ================== */
/* 2. 折叠状态 (Default) : 使用 :not 反向判断，即使不写属性也默认堆叠！ */
.toast-container:not([data-expanded="true"]) .toast-message {
    /* 向下位移 index * 14px，每层缩小 5% */
    transform: translateY(calc(var(--index) * 14px)) scale(calc(1 - var(--index) * 0.05));
}

/* 折叠时，只有前 3 个可见，后面的完全透明 */
.toast-container:not([data-expanded="true"]) .toast-message[data-visible="false"] {
    opacity: 0;
    pointer-events: none;
}

/* 3. 进场与退场控制 */
.toast-message.is-entering {
    transform: translateY(-100%) scale(0.5) !important;
    opacity: 0 !important;
}

.toast-message.is-leaving {
    transform: scale(0.8) !important;
    opacity: 0 !important;
    pointer-events: none;
}

/* ================= 留言弹窗样式 ================= */
/* 定制弹窗内部的对话框样式 */
.fancybox__dialog {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    max-width: 500px;
    /* 限制宽度，防止长留言撑得太宽 */
    width: 90%;
    /* 移动端适配 */
    margin: 0 auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* 如果你想调整弹窗里的留言内容，可以这样写 */
.fancybox__dialog .p_loopitem {
    border: none;
    /* 去掉原本的边框，因为外层已经有 dialog 容器了 */
    box-shadow: none;
    margin: 0;
    padding: 0;
}

.fancybox__dialog .p_loopitem {
    max-width: 500px;
    width: 100%;
}

.fancybox__dialog .e_text-6 {
    font-size: 26px;
    color: #000;
    line-height: 1.4;
    font-family: "e584f03f-0d60-4d69-b59a-225c6e9f8a67";
    margin-bottom: 13px;
}

.fancybox__dialog .e_container-5 {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    width: 100%;
}

.fancybox__dialog .e_container-5>.p_item {
    flex: 1;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.fancybox__dialog .e_timeFormat-7 {
    color: rgb(0 0 0);
    font-size: 16px;
    line-height: 1.2;
}

.fancybox__dialog .e_html-11 {
    display: flex;
    align-items: center;
}

.fancybox__dialog .e_html-11 .star-rating {
    display: flex;
}

.fancybox__dialog .e_html-11 .star-rating span {
    width: 21px;
    height: 18px;
    background-size: 19px;
    background-repeat: no-repeat;
    background-position: left;
    padding: 0 3px;
    opacity: 0;
}

.fancybox__dialog .e_html-11 .star-rating span.cur {
    background-image: url(https://omo-oss-image1.thefastimg.com//portal-saas/pg2025073121544411901/cms/image/c69ab875-8806-44c6-8106-5a44fd6cd6d1.png);
    opacity: 1;
}

.fancybox__dialog .e_richText-12 {
    font-size: 17px;
    line-height: 1.5;
    color: #0009;
    border-top: 1px solid rgb(0 0 0 / 10%);
    margin-top: 25px;
    padding-top: 25px;
    min-height: 180px;
}

.fancybox__dialog .e_text-15 {
    display: none;
}