.zp-chat-examples {
    background: #0d0e34;
    border-radius: 32px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Tabs */
.zp-ce-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.zp-ce-tab {
    flex: 1 0 auto;
    min-height: 56px;
    border-radius: 999px;
    background: #fff;
    color: #0d0e34;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    padding: 12px 18px;
    line-height: 1;
    transition: background 0.2s;
    white-space: nowrap;
}

.zp-ce-tab-label-mobile {
    display: none;
}

.zp-ce-tab.active {
    background: #ffd200;
}

/* Category panels */
.zp-ce-category {
    display: none;
}

.zp-ce-category.active {
    display: block;
}

/* Slider */
.zp-ce-slider {
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.zp-ce-slider:active {
    cursor: grabbing;
}

.zp-ce-track {
    display: flex;
    align-items: flex-start; /* each example keeps its own natural height */
    gap: 16px;
    transition: transform 0.35s ease;
    will-change: transform;
}

.zp-ce-slider {
    transition: height 0.35s ease;
}

.zp-ce-example {
    flex: 0 0 auto; /* JS sets explicit px width */
    min-width: 0;
}

/* Chat window */
.zp-ce-chat-window {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}

/* Header */
.zp-ce-chat-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #0d0e34;
}

.zp-ce-chat-window--whatsapp .zp-ce-chat-header {
    background: rgba(47, 191, 113, 0.25);
}

.zp-ce-chat-window--telegram .zp-ce-chat-header {
    background: rgba(0, 136, 204, 0.15);
}

.zp-ce-platform-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zp-ce-platform-icon--whatsapp {
    background: #2fbf71;
}

.zp-ce-platform-icon--telegram {
    background: #0088cc;
}

.zp-ce-chat-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.zp-ce-chat-header-info strong {
    font-size: 18px;
    font-weight: 800;
    color: #0d0e34;
    line-height: 1.3;
}

.zp-ce-chat-header-info span {
    font-size: 15px;
    color: #0d0e34;
    line-height: 1.3;
}

/* Messages */
.zp-ce-messages {
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zp-ce-message {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.zp-ce-message--sender {
    flex-direction: row-reverse;
}

/* Avatar — lock dimensions; !important beats common theme img resets */
.zp-ce-avatar {
    display: block !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0;
}

/* Bubble */
.zp-ce-bubble {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 75%;
    word-break: break-word;
}

.zp-ce-message--receiver .zp-ce-bubble {
    background: rgba(255, 210, 0, 0.25);
    border-radius: 9px 9px 9px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.zp-ce-message--sender .zp-ce-bubble {
    background: rgba(255, 122, 26, 0.25);
    border-radius: 9px 9px 0 9px;
}

.zp-ce-name {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
    display: block;
}

.zp-ce-message--receiver .zp-ce-name {
    color: #ffd200;
}

.zp-ce-message--sender .zp-ce-name {
    color: #2fbf71;
}

.zp-ce-text {
    color: #0d0e34;
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 767px) {
    .zp-chat-examples {
        padding: 12px !important;
        gap: 12px;
        border-radius: 12px !important;
    }

    .zp-ce-tabs {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .zp-ce-tab {
        flex: 1 0 0;
        min-width: 0;
        min-height: 44px;
        font-size: 12px;
    }

    .zp-ce-tab-label {
        display: none;
    }
    .zp-ce-tab-label-mobile {
        display: inline;
        font-size: 12px;
    }

    .zp-ce-messages {
        gap: 18px;
    }

    .zp-ce-avatar {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
    }

    .zp-ce-text {
        font-size: 12px !important;
    }
}
