/* Live Support Chat — earn4you */
.rx-lc-page {
    padding: 0 0 5rem;
    max-width: 720px;
    margin: 0 auto;
}

.rx-lc-hero {
    text-align: center;
    padding: 1.25rem 1rem 1rem;
    position: relative;
}

.rx-lc-hero h2 {
    font-size: 1.35rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.rx-lc-hero h2 i {
    color: #6366f1;
    animation: rxLcPulse 2s ease infinite;
}

@keyframes rxLcPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.12); opacity: 0.85; }
}

.rx-lc-hero p {
    font-size: 0.82rem;
    opacity: 0.7;
    margin-top: 0.35rem;
}

.rx-lc-mode-bar {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem 0.75rem;
    justify-content: center;
}

.rx-lc-mode-btn {
    flex: 1;
    max-width: 160px;
    border: 1px solid rgba(99, 102, 241, 0.35);
    background: rgba(99, 102, 241, 0.08);
    color: inherit;
    border-radius: 999px;
    padding: 0.55rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.rx-lc-mode-btn.is-active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.rx-lc-shell {
    margin: 0 0.75rem;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(15, 23, 42, 0.55);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    min-height: 58vh;
    max-height: 72vh;
}

body.rx-theme-light .rx-lc-shell {
    background: #fff;
    border-color: #e2e8f0;
}

.rx-lc-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    font-size: 0.72rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(99, 102, 241, 0.1);
    flex-wrap: wrap;
}

.rx-lc-dept-badge {
    margin-left: auto;
    font-size: 0.62rem;
    font-weight: 800;
    color: #fff;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #6366f1;
}

.rx-lc-msg--transfer {
    align-self: center;
    max-width: 94%;
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
    color: #92400e !important;
    text-align: center;
    font-size: 0.62rem !important;
    line-height: 1.35 !important;
    padding: 0.45rem 0.65rem !important;
}

body.rx-theme-light .rx-lc-msg--transfer {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #78350f;
    border-color: #fbbf24;
}

.rx-lc-msg--admin .rx-lc-agent {
    font-size: 0.62rem;
    font-weight: 800;
    opacity: 0.9;
    margin-bottom: 0.2rem;
}

body.rx-theme-light .rx-lc-status {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.rx-lc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: rxLcBlink 1.5s ease infinite;
}

@keyframes rxLcBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.rx-lc-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    scroll-behavior: smooth;
}

.rx-lc-msg {
    max-width: 88%;
    padding: 0.65rem 0.85rem;
    border-radius: 1rem;
    font-size: 0.82rem;
    line-height: 1.45;
    animation: rxLcSlideIn 0.3s ease;
    word-break: break-word;
    white-space: pre-wrap;
}

@keyframes rxLcSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.rx-lc-msg--user {
    align-self: flex-end;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-bottom-right-radius: 0.25rem;
}

.rx-lc-msg--bot,
.rx-lc-msg--system {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 0.25rem;
}

body.rx-theme-light .rx-lc-msg--bot,
body.rx-theme-light .rx-lc-msg--system {
    background: #f1f5f9;
    color: #0f172a;
}

.rx-lc-msg--admin {
    align-self: flex-start;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    border-bottom-left-radius: 0.25rem;
}

.rx-lc-msg-time {
    font-size: 0.62rem;
    opacity: 0.65;
    margin-top: 0.25rem;
}

.rx-lc-msg img {
    max-width: 100%;
    border-radius: 0.5rem;
    margin-top: 0.35rem;
    display: block;
}

.rx-lc-topics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
}

body.rx-theme-light .rx-lc-topics {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.rx-lc-topic {
    border: none;
    border-radius: 0.75rem;
    padding: 0.55rem 0.25rem;
    font-size: 0.62rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: transform 0.2s ease;
}

.rx-lc-topic i { font-size: 1rem; }

.rx-lc-topic:hover { transform: translateY(-2px); }

.rx-lc-compose {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    align-items: flex-end;
}

body.rx-theme-light .rx-lc-compose {
    border-color: #e2e8f0;
    background: #fff;
}

.rx-lc-compose textarea {
    flex: 1;
    resize: none;
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 0.85rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
    background: transparent;
    color: inherit;
    min-height: 42px;
    max-height: 100px;
    font-family: inherit;
}

.rx-lc-compose textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.rx-lc-send,
.rx-lc-attach {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rx-lc-attach {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

.rx-lc-send {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

.rx-lc-fab {
    position: fixed;
    right: 1rem;
    bottom: calc(5.5rem + env(safe-area-inset-bottom));
    z-index: 900;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.45);
    cursor: pointer;
    animation: rxLcFabBounce 3s ease infinite;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 992px) {
    .rx-lc-fab { bottom: 1.5rem; }
}

@keyframes rxLcFabBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.rx-lc-fab-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    background: #ef4444;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
}

.rx-lc-fab-badge.is-show { display: flex; }

.rx-guest-page {
    color: #0f172a;
}

.rx-guest-wrap {
    align-items: flex-start;
    padding: 1.25rem 1rem 2rem;
}

.rx-guest-page-inner {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.rx-guest-lc-header {
    text-align: center;
    padding: 0.5rem 0 1rem;
}

.rx-guest-logo {
    margin: 0 auto 0.75rem;
    display: block;
}

.rx-guest-lc-header h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.rx-guest-lc-header h1 i {
    color: #6366f1;
}

.rx-guest-lc-header p {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0.65rem;
}

.rx-guest-lc-header a {
    color: #4f46e5;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.rx-guest-lc-header a:hover {
    text-decoration: underline;
}

.rx-guest-page .rx-lc-shell {
    margin: 0;
    min-height: 62vh;
    max-height: none;
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.12);
    backdrop-filter: blur(12px);
}

.rx-guest-page .rx-lc-compose textarea {
    color: #0f172a;
    background: #f8fafc;
}

.rx-guest-page .rx-lc-compose textarea::placeholder {
    color: #94a3b8;
}

.rx-guest-page .rx-lc-attach {
    color: #6366f1;
}

.rx-lc-dash-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0.75rem 1rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.35);
}

/* Dashboard support row — col12 with two col6 buttons */
.rx-support-dash-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    width: 100%;
    margin: 0 0.75rem 1rem;
    padding: 0;
    box-sizing: border-box;
    max-width: calc(100% - 1.5rem);
}

.rx-support-dash-btn {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    padding: 0.75rem 0.7rem;
    border-radius: 1rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    position: relative;
}

.rx-support-dash-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: rxSupportShine 4.5s ease-in-out infinite;
    pointer-events: none;
}

.rx-support-dash-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.rx-support-dash-btn--chat {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.rx-support-dash-btn--wa {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.rx-support-dash-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    font-size: 1.15rem;
    position: relative;
    z-index: 1;
}

.rx-support-dash-btn--chat .rx-support-dash-icon {
    animation: rxSupportPulse 2.2s ease-in-out infinite;
}

.rx-support-dash-btn--wa .rx-support-dash-icon i {
    animation: rxSupportWiggle 2.8s ease-in-out infinite;
    transform-origin: center;
}

.rx-support-dash-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
    position: relative;
    z-index: 1;
}

.rx-support-dash-text strong {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rx-support-dash-text small {
    font-size: 0.62rem;
    font-weight: 600;
    opacity: 0.9;
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes rxSupportPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35); transform: scale(1); }
    50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); transform: scale(1.05); }
}

@keyframes rxSupportWiggle {
    0%, 88%, 100% { transform: rotate(0deg) scale(1); }
    90% { transform: rotate(-8deg) scale(1.08); }
    94% { transform: rotate(8deg) scale(1.08); }
    98% { transform: rotate(0deg) scale(1); }
}

@keyframes rxSupportShine {
    0%, 70% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

@media (max-width: 360px) {
    .rx-support-dash-btn {
        flex-direction: column;
        text-align: center;
        padding: 0.65rem 0.45rem;
    }
    .rx-support-dash-text small { display: none; }
}

.rx-login-support {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.rx-login-support p {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.rx-login-support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.rx-login-support-links a {
    font-size: 0.72rem;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
}

.rx-login-support-links a:hover {
    background: #e0e7ff;
}

/* ===== WhatsApp-style full-screen chat ===== */
.rx-wa-chat-page {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

body.rx-wa-chat-page .rx-lc-page,
body.rx-wa-active {
    overflow: hidden;
}

.rx-wa-app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    max-width: 100%;
    margin: 0 auto;
    background: #e5ddd5;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4cdc4' fill-opacity='0.35'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    position: relative;
}

.rx-wa-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    padding-top: max(0.65rem, env(safe-area-inset-top));
    background: #075E54;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 10;
}

.rx-wa-back {
    color: #fff;
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50%;
}

.rx-wa-back:hover { background: rgba(255,255,255,0.12); }

.rx-wa-header-info {
    flex: 1;
    min-width: 0;
}

.rx-wa-header-info h1 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.rx-wa-header-info p {
    font-size: 0.72rem;
    opacity: 0.85;
    margin: 0.15rem 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rx-wa-dept {
    font-size: 0.62rem;
    font-weight: 800;
    color: #fff;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #128C7E;
    flex-shrink: 0;
}

.rx-wa-join-top {
    border: none;
    border-radius: 999px;
    padding: 0.32rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: #25D366;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 20;
    position: relative;
}

.rx-wa-join-top:hover { background: #1fb855; }
.rx-wa-join-top:disabled { opacity: 1; cursor: default; }
.rx-wa-join-top.is-joined {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.45);
    color: #fff;
}

.rx-wa-empty-hint {
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    color: #667781;
    flex-shrink: 0;
}

.rx-wa-empty-hint[hidden] { display: none !important; }

.rx-wa-messages--idle {
    opacity: 0.5;
}

.rx-wa-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem 0.65rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    -webkit-overflow-scrolling: touch;
}

.rx-wa-msg {
    display: flex;
    align-items: flex-end;
    max-width: 78%;
    animation: rxWaIn 0.2s ease;
}

.rx-wa-msg--user { max-width: 82%; }
.rx-wa-msg--admin { max-width: 72%; }

@keyframes rxWaIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.rx-wa-msg--user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.rx-wa-msg--admin,
.rx-wa-msg--system,
.rx-wa-msg--bot {
    align-self: flex-start;
}

.rx-wa-bubble {
    padding: 0.35rem 0.5rem 0.28rem;
    border-radius: 0.45rem;
    font-size: 0.84rem;
    line-height: 1.35;
    word-break: break-word;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.08);
    position: relative;
    max-width: 100%;
    display: inline-block;
}

.rx-wa-msg--user .rx-wa-bubble {
    background: #DCF8C6;
    color: #111b21;
    border-top-right-radius: 0.15rem;
}

.rx-wa-msg--admin .rx-wa-bubble {
    background: var(--wa-bubble, #fff);
    color: #fff;
    border-top-left-radius: 0.15rem;
}

.rx-wa-msg--system .rx-wa-bubble,
.rx-wa-msg--bot .rx-wa-bubble {
    background: #fff;
    color: #111b21;
    border-top-left-radius: 0.15rem;
}

.rx-wa-msg--transfer {
    align-self: center;
    max-width: 95%;
}

.rx-wa-msg--transfer .rx-wa-bubble {
    background: #fff3cd;
    color: #856404;
    text-align: center;
    font-size: 0.75rem;
}

.rx-wa-sender {
    font-size: 0.62rem;
    font-weight: 700;
    opacity: 0.9;
    margin-bottom: 0.12rem;
    line-height: 1.2;
}

.rx-wa-date-sep {
    align-self: center;
    text-align: center;
    margin: 0.5rem 0;
    width: 100%;
}

.rx-wa-date-sep span {
    display: inline-block;
    background: rgba(225, 218, 208, 0.92);
    color: #54656f;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.28rem 0.65rem;
    border-radius: 0.45rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.rx-wa-tick { margin-left: 0.2rem; font-size: 0.58rem; }
.rx-wa-tick--pending { color: #8696a0; }
.rx-wa-tick--sent { color: #8696a0; }
.rx-wa-tick--read { color: #53bdeb; }

.rx-wa-uploading {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    font-size: 1.25rem;
    color: #128C7E;
}

.rx-wa-msg--pending .rx-wa-bubble { position: relative; min-width: 48px; }

.rx-wa-time {
    font-size: 0.62rem;
    color: #667781;
    text-align: right;
    margin-top: 0.2rem;
}

.rx-wa-msg--admin .rx-wa-time { color: rgba(255,255,255,0.75); }

.rx-wa-img {
    max-width: 200px;
    border-radius: 0.35rem;
    margin-top: 0.2rem;
    display: block;
}

.rx-wa-voice-play {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 150px;
    padding: 0.2rem 0;
    cursor: pointer;
}

.rx-wa-voice-play-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #128C7E;
    color: #fff;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.rx-wa-voice-play.is-playing .rx-wa-voice-play-btn {
    background: #075E54;
}

.rx-wa-voice-bars {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 22px;
    flex: 1;
}

.rx-wa-voice-bars span {
    width: 3px;
    height: 6px;
    background: #128C7E;
    border-radius: 2px;
    animation: rxWaBar 0.8s ease-in-out infinite;
}

.rx-wa-voice-bars span:nth-child(2) { animation-delay: 0.1s; height: 12px; }
.rx-wa-voice-bars span:nth-child(3) { animation-delay: 0.2s; height: 18px; }
.rx-wa-voice-bars span:nth-child(4) { animation-delay: 0.15s; height: 10px; }
.rx-wa-voice-bars span:nth-child(5) { animation-delay: 0.25s; height: 14px; }

@keyframes rxWaBar {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1.2); }
}

.rx-wa-voice-dur {
    font-size: 0.65rem;
    color: #667781;
    white-space: nowrap;
}

.rx-wa-voice-play audio { display: none; }

.rx-wa-compose {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    padding: 0.5rem 0.6rem;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    background: #f0f2f5;
    flex-shrink: 0;
}

.rx-wa-btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #54656f;
    font-size: 1.15rem;
    cursor: pointer;
    flex-shrink: 0;
}

.rx-wa-voice-btn.is-recording {
    color: #ef4444;
    animation: rxWaRec 1s ease infinite;
}

@keyframes rxWaRec {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.rx-wa-compose textarea {
    flex: 1;
    resize: none;
    border: none;
    border-radius: 1.25rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    background: #fff;
    color: #111b21;
    min-height: 42px;
    max-height: 120px;
    font-family: inherit;
    line-height: 1.35;
}

.rx-wa-compose textarea:focus { outline: none; }

.rx-wa-mic-right { color: #54656f; }

.rx-wa-image-preview {
    position: absolute;
    inset: 0;
    background: #0b141a;
    z-index: 30;
    display: flex;
    flex-direction: column;
}

.rx-wa-image-preview[hidden] { display: none !important; }

.rx-wa-image-preview-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.rx-wa-image-preview-inner img {
    flex: 1;
    object-fit: contain;
    width: 100%;
    min-height: 0;
    background: #000;
}

.rx-wa-image-preview-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem;
    background: #1f2c34;
}

.rx-wa-preview-cancel {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #aebac1;
    font-size: 1.2rem;
    cursor: pointer;
}

.rx-wa-image-preview-actions input {
    flex: 1;
    border: none;
    border-radius: 1.25rem;
    padding: 0.55rem 0.85rem;
    background: #2a3942;
    color: #e9edef;
    font-size: 0.88rem;
}

.rx-wa-preview-send {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #00a884;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.rx-wa-voice-panel {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    padding-bottom: max(0.55rem, env(safe-area-inset-bottom));
    background: #f0f2f5;
    flex-shrink: 0;
}

.rx-wa-voice-panel[hidden] { display: none !important; }

.rx-wa-voice-trash {
    border: none;
    background: transparent;
    color: #ef4444;
    font-size: 1.2rem;
    cursor: pointer;
    width: 36px;
}

.rx-wa-voice-wave {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 32px;
}

.rx-wa-voice-wave span {
    width: 3px;
    height: 8px;
    background: #ef4444;
    border-radius: 2px;
    animation: rxWaRecBar 0.6s ease-in-out infinite;
}

.rx-wa-voice-wave span:nth-child(odd) { animation-delay: 0.1s; height: 16px; }
.rx-wa-voice-wave span:nth-child(3) { height: 22px; }
.rx-wa-voice-wave span:nth-child(5) { height: 18px; }

@keyframes rxWaRecBar {
    0%, 100% { transform: scaleY(0.4); opacity: 0.6; }
    50% { transform: scaleY(1); opacity: 1; }
}

.rx-wa-voice-timer {
    font-size: 0.82rem;
    font-weight: 600;
    color: #667781;
    min-width: 2.5rem;
    text-align: center;
}

.rx-wa-voice-send {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #128C7E;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.rx-wa-send {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #128C7E;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
}

.rx-wa-send:hover { background: #075E54; }

/* Logged-in page inside masterblade */
body.rx-page-support.rx-wa-chat-page main,
body.rx-page-support.rx-wa-chat-page .rx-main-content {
    padding: 0 !important;
    max-width: 100% !important;
}

body.rx-page-support.rx-wa-chat-page .rx-bottom-nav {
    display: none !important;
}

body.rx-page-support .rx-wa-app {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

body.rx-page-support.rx-wa-chat-page .rx-shell-header,
body.rx-page-support.rx-wa-chat-page .rx-bottom-nav {
    display: none !important;
}

body.rx-page-support.rx-wa-chat-page .rx-main-content {
    padding: 0 !important;
    min-height: 100dvh;
}

