/* Podcast English Understanding Bot */
.peub-floating-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999999;
    font-family: Arial, Helvetica, sans-serif;
}

.peub-toggle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    font-size: 30px;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.peub-floating-panel {
    width: 380px;
    max-width: calc(100vw - 32px);
    margin-bottom: 12px;
}

.peub-bot {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 42px rgba(17, 24, 39, 0.22);
    border: 1px solid #e5e7eb;
    color: #1f2937;
}

.peub-shortcode-wrap {
    max-width: 760px;
    margin: 24px auto;
    font-family: Arial, Helvetica, sans-serif;
}

.peub-embedded {
    box-shadow: 0 12px 36px rgba(20, 33, 61, 0.14);
}

.peub-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #111827;
    color: #fff;
}

.peub-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #60a5fa;
    font-size: 23px;
    flex: 0 0 auto;
}

.peub-header strong {
    display: block;
    font-size: 16px;
    line-height: 1.2;
}

.peub-header span {
    display: block;
    font-size: 12px;
    color: #cbd5e1;
    margin-top: 3px;
    line-height: 1.3;
}

.peub-chat {
    height: 360px;
    overflow-y: auto;
    padding: 15px;
    background: #f9fafb;
}

.peub-msg {
    max-width: 84%;
    padding: 11px 13px;
    margin: 8px 0;
    line-height: 1.48;
    border-radius: 17px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 14px;
}

.peub-msg-bot {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 5px;
}

.peub-msg-user {
    margin-left: auto;
    color: #fff;
    background: #2563eb;
    border-bottom-right-radius: 5px;
}

.peub-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 12px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.peub-suggestions button {
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
    border-radius: 999px;
    padding: 7px 10px;
    cursor: pointer;
    font-size: 12px;
}

.peub-suggestions button:hover {
    background: #dbeafe;
}

.peub-input-row {
    display: flex;
    gap: 8px;
    padding: 13px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

.peub-input-row input {
    flex: 1;
    min-width: 0;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 11px 12px;
    font-size: 14px;
    outline: none;
}

.peub-input-row input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.peub-input-row button {
    border: 0;
    border-radius: 14px;
    background: #2563eb;
    color: white;
    padding: 0 16px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.peub-input-row button:hover {
    background: #1d4ed8;
}

@media (max-width: 640px) {
    .peub-floating-widget {
        right: 12px;
        bottom: 12px;
    }

    .peub-toggle {
        width: 58px;
        height: 58px;
    }

    .peub-floating-panel {
        width: calc(100vw - 24px);
    }

    .peub-chat {
        height: 350px;
    }

    .peub-msg {
        max-width: 92%;
    }
}
