/* 客服面板容器 - 设置高z-index确保在最顶层 */
.customer-service-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 2147483647; /* 使用浏览器支持的最大z-index值，确保在所有元素之上 */
    background-size: cover;
    background-position: center;
}

/* 折叠状态的客服图标 */
.service-icon {
    width: 152px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
    background-image: url('/wp-content/plugins/more/image/panel-mobile-close.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    overflow: visible;
    /* 确保没有其他样式覆盖背景 */
    background-color: transparent !important;
    z-index: 10;
}

.service-icon:hover {
    transform: scale(1.05);
}

/* 左侧图标容器样式 */
.icon-image-container {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

/* 左侧图标样式 */
.icon-image {
    width: 67px;
    height: 67px;
    z-index: 2;
    margin-bottom: 10px;
    margin-left: 20px;
    margin-right: -5px;
    opacity: 1;
}

/* 文本容器样式 */
.icon-text-container {
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: left;
    margin-left: -5px;
    margin-right: 0;
}

/* 右侧加粗文字样式 */
.icon-text-bold {
    color: white;
    font-size: 12px;
    font-weight: bold;
    position: relative;
    z-index: 2;
    text-align: left;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    margin-left: 5px;
    margin-top: 10px;
}

/* 右侧普通文字样式 */
.icon-text-normal {
    color: white;
    font-size: 8px;
    font-weight: normal;
    position: relative;
    z-index: 2;
    text-align: left;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
    margin-left: 5px;
}

/* 保留原有样式以兼容其他可能的使用 */
.icon-text {
    color: white;
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 10px;
    margin-right: 10px;
    position: relative;
    z-index: 2;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

/* 展开状态的客服面板 */
.service-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    /* background: #fff; */
    border-radius: 12px;
    padding: 15px;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); */
    /* width: 204px; */
    /* height: 176px; */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    /* border: 2px dashed #d1c4e9; */
    background-image: url('/wp-content/plugins/more/image/open-pannel.png');
    background-repeat: no-repeat;
    z-index: 2147483646; /* 面板本身也设置高z-index，确保在视频之上 */
}

.service-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 面板标题 */
.panel-header {
    margin-left: -30px;
    margin-top: -20px;
    display: flex;
    height: 60px;
    justify-content: flex-start;
    align-items: center;
    /* margin-bottom: 15px;
    padding-bottom: 10px; */
    /* border-bottom: 1px solid #e0e0e0; */
}

.panel-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    top: 0px;
    right: 5px;
    z-index: 10;
}

.close-btn img {
    width: 18px;
    height: 18px;
}

/* 聊天选项 */
.chat-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    justify-content: flex-end;
}

.chat-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    padding-top: 10px;
    /* background-color: #f8f9fa; */
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chat-option:hover {
    background-color: #e9ecef;
}

.chat-option.whatsapp {
    background-color: #e3f2fd;
}

.chat-option.whatsapp:hover {
    background-color: #bbdefb;
}

.chat-option.line {
    background-color: #e3f2fd;
}

.chat-option.line:hover {
    background-color: #bbdefb;
}

.chat-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-icon {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #fff;
}

.chat-icon img {
    width: 28px;
    height: 28px;
}

.chat-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.arrow-icon img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

/* 提示信息 */
.tip-message {
    background-color: #9c27b0;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 13px;
    text-align: center;
}

/* 装饰元素 */
.decorator {
    position: absolute;
    font-size: 10px;
    color: #ff4081;
    font-weight: bold;
    z-index: 1001;
}

/* 响应式布局 - 桌面设备 */
@media (min-width: 769px) {
    .service-panel {
        width: 300px;
        background-image: url('https://www.ztnzenmind.com/wp-content/plugins/more/image/open-pannel.png');
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }

    .chat-options {
        flex-direction: row;
    }

}

/* 响应式布局 - 移动设备 (保持原有宽度) */
@media (max-width: 768px) {
    .service-panel {
        width: 204px;
        background-image: url('https://www.ztnzenmind.com/wp-content/plugins/more/image/open-pannel.png');
        background-repeat: no-repeat;
    }

    .chat-options {
        flex-direction: column;
    }

}