﻿:root {
    --wa-green: #25D366;
    --wa-green-dark: #128C7E;
    --wa-green-teal: #075E54;
    --wa-bubble-out: #DCF8C6;
    --wa-bubble-in: #FFFFFF;
    --wa-bg: #ECE5DD;
    --wa-header-bg: #075E54;
    --wa-text-dark: #111B21;
    --wa-text-muted: #667781;
    --wa-tick-blue: #53BDEB;
    --wa-shadow: 0 1px 3px rgba(0,0,0,.18);
    --radius: 8px;
}

/* ── DevExpress popup overrides ── */
.wa-popup .dxpc-modalOwner {
    background: rgba(0,0,0,.45) !important;
}

.wa-popup .dxpc-window {
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 60px rgba(0,0,0,.4) !important;
    border: none !important;
    padding: 0 !important;
}

.wa-popup .dxpc-header {
    display: none !important;
}

.wa-popup .dxpc-content {
    padding: 0 !important;
    overflow: hidden !important;
}

.wa-popup .dxpc-contentWrapper {
    padding: 0 !important;
}

/* ── App shell ── */
#waShell {
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 480px;
    height: 620px;
    background: var(--wa-bg);
    overflow: hidden;
    position: relative;
}

/* ── Header ── */
.wa-header {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    background: var(--wa-header-bg);
    padding: 10px 14px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.wa-back-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,.85);
    font-size: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    transition: background .15s;
    padding: 0;
}

    .wa-back-btn:hover {
        background: rgba(255,255,255,.18);
    }

.wa-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    color: var(--wa-green-dark);
    text-transform: uppercase;
    border: 2px solid rgba(255,255,255,.3);
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.wa-hdr-info {
    -ms-flex: 1;
    flex: 1;
    overflow: hidden;
}

.wa-hdr-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-hdr-phone {
    font-size: 12px;
    color: rgba(255,255,255,.7);
    margin-top: 1px;
}

.wa-hdr-right {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
}

.wa-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--wa-green);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 1
    }

    50% {
        opacity: .35
    }
}

.wa-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,.85);
    font-size: 17px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    transition: background .15s;
}

    .wa-icon-btn:hover {
        background: rgba(255,255,255,.18);
    }

/* ── Message list ── */
.wa-msg-list {
    -ms-flex: 1;
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 2px;
}

    .wa-msg-list::-webkit-scrollbar {
        width: 4px;
    }

    .wa-msg-list::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,.18);
        border-radius: 4px;
    }

/* Date badge */
.wa-date-badge {
    text-align: center;
    margin: 8px 0 4px;
}

    .wa-date-badge span {
        background: rgba(255,255,255,.82);
        font-size: 11px;
        color: var(--wa-text-muted);
        padding: 3px 10px;
        border-radius: 7px;
        box-shadow: var(--wa-shadow);
        display: inline-block;
    }

/* Bubble row */
.wa-msg {
    display: -ms-flexbox;
    display: flex;
    max-width: 80%;
    margin-bottom: 8px;
    animation: msgIn .18s ease both;
}

@keyframes msgIn {
    from {
        opacity: 0;
        -ms-transform: translateY(5px);
        transform: translateY(5px)
    }

    to {
        opacity: 1;
        -ms-transform: none;
        transform: none
    }
}

.wa-msg.out {
    -ms-flex-item-align: end;
    align-self: flex-end;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
}

.wa-msg.in {
    -ms-flex-item-align: start;
    align-self: flex-start;
}

/* Bubble */
.wa-bubble {
    padding: 6px 56px 18px 9px;
    border-radius: var(--radius);
    box-shadow: var(--wa-shadow);
    position: relative;
    word-break: break-word;
    line-height: 1.44;
    min-width: 70px;
}

.wa-msg.out .wa-bubble {
    background: var(--wa-bubble-out);
    border-top-right-radius: 2px;
}

.wa-msg.in .wa-bubble {
    background: var(--wa-bubble-in);
    border-top-left-radius: 2px;
}

/* Tail */
.wa-bubble:before {
    content: '';
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
}

.wa-msg.out .wa-bubble:before {
    right: -7px;
    border-left: 8px solid var(--wa-bubble-out);
    border-bottom: 8px solid transparent;
}

.wa-msg.in .wa-bubble:before {
    left: -7px;
    border-right: 8px solid var(--wa-bubble-in);
    border-bottom: 8px solid transparent;
}

/* Text */
.wa-btext {
    font-size: 13.5px;
    color: var(--wa-text-dark);
    padding-right: 0;
    white-space: pre-wrap;
}

/* Meta (time + ticks) */
.wa-meta {
    position: absolute;
    bottom: 4px;
    right: 7px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    color: var(--wa-text-muted);
    white-space: nowrap;
}

.wa-ticks {
    font-size: 12px;
    color: var(--wa-text-muted);
}

    .wa-ticks.read {
        color: var(--wa-tick-blue);
    }

/* ── Image bubble ── */
.wa-img-wrap {
    border-radius: 6px;
    overflow: hidden;
    max-width: 220px;
    cursor: pointer;
    position: relative;
    display: block;
}

    .wa-img-wrap img {
        width: 100%;
        display: block;
    }

.wa-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    transition: background .2s;
}

.wa-img-wrap:hover .wa-img-overlay {
    background: rgba(0,0,0,.28);
}

.wa-img-overlay span {
    color: #fff;
    font-size: 26px;
    opacity: 0;
    transition: opacity .2s;
}

.wa-img-wrap:hover .wa-img-overlay span {
    opacity: 1;
}

.wa-img-ph {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 5px;
    padding: 16px 20px;
    background: rgba(0,0,0,.07);
    border-radius: 6px;
    color: var(--wa-text-muted);
    font-size: 11.5px;
    min-width: 140px;
}

.wa-img-caption {
    font-size: 13px;
    color: var(--wa-text-dark);
    margin-top: 4px;
    padding-right: 44px;
}

/* ── Document bubble ── */
.wa-doc {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 9px;
    background: rgba(0,0,0,.06);
    border-radius: 7px;
    padding: 9px 11px;
    min-width: 180px;
    text-decoration: none;
    transition: background .15s;
    cursor: pointer;
}

    .wa-doc:hover {
        background: rgba(0,0,0,.12);
    }

.wa-doc-icon {
    font-size: 26px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.wa-doc-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--wa-text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.wa-doc-type {
    font-size: 11px;
    color: var(--wa-text-muted);
    margin-top: 1px;
}

/* ── Typing indicator ── */
.wa-typing {
    display: none;
    -ms-flex-align: center;
    align-items: center;
    gap: 4px;
    background: var(--wa-bubble-in);
    border-radius: var(--radius);
    border-top-left-radius: 2px;
    padding: 9px 13px;
    box-shadow: var(--wa-shadow);
    margin: 0 14px 4px;
    -ms-flex-item-align: start;
    align-self: flex-start;
    width: fit-content;
}

    .wa-typing.show {
        display: -ms-flexbox;
        display: flex;
    }

    .wa-typing span {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--wa-text-muted);
        display: inline-block;
        animation: tBounce .9s infinite;
    }

        .wa-typing span:nth-child(2) {
            animation-delay: .15s;
        }

        .wa-typing span:nth-child(3) {
            animation-delay: .30s;
        }

@keyframes tBounce {
    0%, 60%, 100% {
        -ms-transform: translateY(0);
        transform: translateY(0)
    }

    30% {
        -ms-transform: translateY(-5px);
        transform: translateY(-5px)
    }
}

/* ── Loading / empty ── */
.wa-loading {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 10px;
    -ms-flex: 1;
    flex: 1;
    color: var(--wa-text-muted);
    font-size: 13px;
}

.wa-spinner {
    width: 26px;
    height: 26px;
    border: 3px solid #ddd;
    border-top-color: var(--wa-green-dark);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        -ms-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}

.wa-empty {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 8px;
    -ms-flex: 1;
    flex: 1;
    color: var(--wa-text-muted);
    font-size: 13.5px;
}

/* ── Input bar ── */
.wa-input-bar {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: end;
    align-items: flex-end;
    gap: 7px;
    padding: 7px 11px;
    background: #F0F2F5;
    border-top: 1px solid #dde1e5;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.wa-inner-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--wa-text-muted);
    padding: 5px;
    border-radius: 50%;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    line-height: 0;
    transition: color .15s, background .15s;
}

    .wa-inner-btn:hover {
        color: var(--wa-green-dark);
    }

    .wa-inner-btn:disabled {
        opacity: .4;
        cursor: not-allowed;
    }

.wa-input-wrap {
    -ms-flex: 1;
    flex: 1;
    background: #fff;
    border-radius: 20px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    padding: 4px 4px 4px 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,.09);
    min-height: 38px;
    gap: 2px;
}

.wa-textarea {
    -ms-flex: 1;
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    font-family: 'Inter','Segoe UI',Tahoma,sans-serif;
    font-size: 14px;
    color: var(--wa-text-dark);
    background: transparent;
    line-height: 1.44;
    max-height: 126px;
    overflow-y: auto;
    padding: 4px 2px;
    align-self: center;
}

    .wa-textarea:-ms-input-placeholder {
        color: var(--wa-text-muted);
    }

    .wa-textarea::placeholder {
        color: var(--wa-text-muted);
    }

.wa-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--wa-green-dark);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,.22);
    transition: background .15s;
}

    .wa-send-btn:hover {
        background: var(--wa-green);
    }

    .wa-send-btn:disabled {
        background: #bbb;
        cursor: not-allowed;
    }

/* ── Toast ── */
.wa-toast {
    position: absolute;
    bottom: 60px;
    left: 50%;
    -ms-transform: translateX(-50%) translateY(8px);
    transform: translateX(-50%) translateY(8px);
    background: rgba(0,0,0,.72);
    color: #fff;
    font-size: 12px;
    padding: 6px 15px;
    border-radius: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s, -ms-transform .22s, transform .22s;
    white-space: nowrap;
    z-index: 10;
}

    .wa-toast.show {
        opacity: 1;
        -ms-transform: translateX(-50%) translateY(0);
        transform: translateX(-50%) translateY(0);
    }

/* ── Lightbox ── */
#waLightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.88);
    z-index: 99999;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
}

    #waLightbox.open {
        display: -ms-flexbox;
        display: flex;
    }

    #waLightbox img {
        max-width: 90%;
        max-height: 88vh;
        border-radius: 5px;
        box-shadow: 0 8px 40px rgba(0,0,0,.55);
    }

#waLbClose {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

.wa-msg {
    margin-bottom: 2px;
}

    .wa-msg.wa-single {
        margin-bottom: 10px;
    }

    .wa-msg.wa-last {
        margin-bottom: 10px;
    }

    .wa-msg.in.wa-first .wa-bubble {
        border-bottom-left-radius: 4px;
    }

    .wa-msg.in.wa-middle .wa-bubble {
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
    }

    .wa-msg.in.wa-last .wa-bubble {
        border-top-left-radius: 4px;
    }

    .wa-msg.out.wa-first .wa-bubble {
        border-bottom-right-radius: 4px;
    }

    .wa-msg.out.wa-middle .wa-bubble {
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
    }

    .wa-msg.out.wa-last .wa-bubble {
        border-top-right-radius: 4px;
    }

    .wa-msg.wa-first .wa-bubble:before,
    .wa-msg.wa-middle .wa-bubble:before {
        display: none;
    }

.wa-failed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #d93025;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    line-height: 13px;
}

.wa-emoji-panel {
    display: none;
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 58px;
    height: 360px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 28px rgba(0,0,0,.32);
    overflow: hidden;
    z-index: 30;
}

    .wa-emoji-panel.show {
        display: block;
    }

    .wa-emoji-panel emoji-picker {
        width: 100%;
        height: 100%;
        --background: #ffffff;
        --border-color: transparent;
    }

.wa-inner-btn.wa-active {
    color: var(--wa-green-dark);
    background: rgba(18, 140, 126, .12);
}

.wa-optout-banner {
    display: none;
    margin: 0 12px 8px 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #666;
    font-size: 12px;
}

    .wa-optout-banner.show {
        display: block;
    }

.wa-undeliverable-banner {
    display: none;
    margin: 0 12px 8px 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #c62828;
    font-size: 12px;
}

    .wa-undeliverable-banner.show {
        display: block;
    }

/* ── 24-hour window expired banner ── */
.wa-window-expired-banner {
    display: none;
    margin: 0 12px 6px 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    color: #5d4037;
    font-size: 12px;
    line-height: 1.5;
}

    .wa-window-expired-banner.show {
        display: block;
    }

/* ── Attachment preview overlay ── */
#waAttachPreview {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a1a1a;
    z-index: 20;
    -ms-flex-direction: column;
    flex-direction: column;
}

    #waAttachPreview.show {
        display: -ms-flexbox;
        display: flex;
    }

.wa-ap-header {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(0,0,0,.5);
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.wa-ap-title {
    -ms-flex: 1;
    flex: 1;
    color: rgba(255,255,255,.9);
    font-size: 13.5px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wa-ap-body {
    -ms-flex: 1;
    flex: 1;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px 16px;
}

    .wa-ap-body img {
        max-width: 100%;
        max-height: 100%;
        border-radius: 6px;
        -o-object-fit: contain;
        object-fit: contain;
        box-shadow: 0 4px 24px rgba(0,0,0,.5);
    }

.wa-ap-doc-card {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.85);
    padding: 24px 20px;
    background: rgba(255,255,255,.08);
    border-radius: 12px;
    min-width: 180px;
    max-width: 280px;
}

.wa-ap-doc-icon {
    font-size: 54px;
    line-height: 1;
}

.wa-ap-doc-name {
    font-size: 13.5px;
    font-weight: 500;
    text-align: center;
    word-break: break-all;
    color: rgba(255,255,255,.9);
}

.wa-ap-doc-size {
    font-size: 11.5px;
    color: rgba(255,255,255,.5);
}

.wa-ap-footer {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: flex-end;
    align-items: flex-end;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0,0,0,.5);
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.wa-ap-input-wrap {
    -ms-flex: 1;
    flex: 1;
    background: rgba(255,255,255,.12);
    border-radius: 20px;
    padding: 7px 14px;
    min-height: 38px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
}

.wa-ap-caption {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    font-family: 'Inter','Segoe UI',Tahoma,sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,.92);
    line-height: 1.44;
    max-height: 90px;
    overflow-y: auto;
}

    .wa-ap-caption::-webkit-input-placeholder {
        color: rgba(255,255,255,.45);
    }

    .wa-ap-caption:-ms-input-placeholder {
        color: rgba(255,255,255,.45);
    }

    .wa-ap-caption::placeholder {
        color: rgba(255,255,255,.45);
    }

/* ── Audio (voice) bubble ── */
.wa-audio {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,.06);
    border-radius: 7px;
    padding: 9px 12px;
    min-width: 180px;
    cursor: pointer;
    transition: background .15s;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .wa-audio:hover {
        background: rgba(0,0,0,.13);
    }

.wa-audio-icon {
    font-size: 26px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.wa-audio-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--wa-text-dark);
    line-height: 1.4;
}

.wa-audio-hint {
    font-size: 11px;
    font-weight: 400;
    color: var(--wa-text-muted);
}

/* ── Video bubble ── */
.wa-video-wrap {
    border-radius: 6px;
    overflow: hidden;
    max-width: 220px;
    cursor: pointer;
    position: relative;
    display: block;
    background: rgba(0,0,0,.08);
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.wa-video-ph {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 32px;
    color: var(--wa-text-muted);
    font-size: 12px;
}

.wa-video-play {
    font-size: 36px;
    color: var(--wa-text-dark);
}

.wa-video-wrap:hover .wa-img-overlay {
    background: rgba(0,0,0,.28);
}

.wa-video-wrap:hover .wa-img-overlay span {
    opacity: 1;
}

/* ── Media lightbox (audio / video popup overlay) ── */
.wa-media-lightbox {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.78);
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 500;
    border-radius: inherit;
    cursor: pointer;
}

.wa-media-lb-content {
    position: relative;
    background: #1f2c34;
    border-radius: 10px;
    padding: 32px 24px 20px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    cursor: default;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
}

    .wa-media-lb-content audio,
    .wa-media-lb-content video {
        display: block;
        border-radius: 6px;
        outline: none;
    }

.wa-media-lb-close {
    position: absolute;
    top: 7px;
    right: 9px;
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 4px;
    transition: color .15s, background .15s;
}

    .wa-media-lb-close:hover {
        color: #fff;
        background: rgba(255,255,255,.12);
    }