.upx-app {
    --up-red: #00102b;
    --up-ink: #171717;
    --up-muted: #8d8d8d;
    max-width: 1320px;
    margin: auto;
    padding: 24px 20px 65px;
    background: #fff;
    color: var(--up-ink);
    font-family: inherit
}

.upx-app * {
    box-sizing: border-box
}

.upx-shell {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr) 285px;
    gap: 20px;
    align-items: start
}

.upx-nav,
.upx-card {
    border: 1px solid #ececec;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 22px #0000000a
}

.upx-nav {
    padding: 14px;
    position: sticky;
    top: 88px
}

.upx-nav-title {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 8px 17px;
    font-size: 13px;
    font-weight: 900;
    border-bottom: 1px solid #eee
}

.upx-nav-title i {
    width: 31px;
    height: 31px;
    border-radius: 9px;
    background: #fff2f3;
    color: var(--up-red);
    display: grid;
    place-items: center
}

.upx-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 11px;
    margin: 3px 0;
    border-radius: 9px;
    color: #555;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s
}

.upx-nav a i {
    width: 18px;
    text-align: center;
    font-size: 13px
}

.upx-nav a:hover,
.upx-nav a.active {
    background: #fff1f2;
    color: var(--up-red)
}

.upx-nav .logout {
    border-top: 1px solid #eee;
    margin-top: 12px;
    padding-top: 17px;
    color: var(--up-red)
}

.upx-main {
    min-width: 0
}

.upx-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 7px 0 20px
}

.upx-welcome h1 {
    font-size: 22px;
    font-weight: 900;
    margin: 0
}

.upx-welcome h1 span {
    color: var(--up-red)
}

.upx-welcome p {
    color: #777;
    font-size: 10px;
    margin: 5px 0 0
}

.upx-welcome>i {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #fff4f5;
    color: var(--up-red);
    display: grid;
    place-items: center;
    font-size: 22px
}

.upx-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin-bottom: 20px
}

.upx-stat {
    padding: 16px 12px;
    text-align: center
}

.upx-stat i {
    width: 37px;
    height: 37px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 8px;
    background: #fff3f4;
    color: var(--up-red)
}

.upx-stat span {
    display: block;
    font-size: 8px;
    color: #777
}

.upx-stat strong {
    display: block;
    font-size: 21px;
    margin-top: 5px
}

.upx-section {
    margin-top: 18px
}

.upx-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px
}

.upx-section-head h2 {
    font-size: 14px;
    font-weight: 900;
    margin: 0
}

.upx-section-head a {
    font-size: 9px;
    color: var(--up-red)
}

.upx-orders {
    overflow: hidden
}

.upx-dash-fav-slider {
    padding: 2px 2px 8px;
    overflow: hidden
}

.upx-dash-fav-slider .swiper-slide {
    height: auto
}

.upx-dash-fav-slider .yalla-product-card {
    height: 100%
}

.upx-order {
    display: grid;
    grid-template-columns: 80px 1fr 90px 85px 28px;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0
}

.upx-order:last-child {
    border: 0
}

.upx-order img {
    width: 74px;
    height: 54px;
    border-radius: 9px;
    object-fit: cover
}

.upx-order h3 {
    font-size: 10px;
    font-weight: 900;
    margin: 0
}

.upx-order p,
.upx-order small {
    font-size: 8px;
    color: #999;
    margin: 3px 0
}

.upx-status {
    padding: 5px 8px;
    border-radius: 7px;
    background: #eaf8ee;
    color: #288e49;
    font-size: 8px;
    text-align: center
}

.upx-status.pending {
    background: #fff5df;
    color: #bc7a00
}

.upx-price {
    font-size: 10px;
    font-weight: 900
}

.upx-arrow {
    width: 26px;
    height: 26px;
    border: 1px solid #eee;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--up-red)
}

.upx-products {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 9px
}

.upx-product {
    overflow: hidden;
    position: relative
}

.upx-product img {
    width: 100%;
    height: 100px;
    object-fit: cover
}

.upx-product div {
    padding: 9px
}

.upx-product h3 {
    font-size: 9px;
    font-weight: 900;
    margin: 0
}

.upx-product p {
    font-size: 8px;
    color: #999;
    margin: 3px 0
}

.upx-product button {
    position: absolute;
    top: 7px;
    left: 7px;
    width: 27px;
    height: 27px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--up-red)
}

.upx-side {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.upx-user {
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #fff0f1, #fff)
}

.upx-user-cover {
    height: 55px;
    background: radial-gradient(circle at 20% 30%, #ffccd1, transparent 28%), linear-gradient(135deg, #fff2f3, #ffe6e8)
}

.upx-avatar {
    width: 83px;
    height: 83px;
    border: 5px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    margin-top: -42px;
    box-shadow: 0 5px 18px #0002
}

.upx-user h2 {
    font-size: 14px;
    font-weight: 900;
    margin: 7px 0 2px
}

.upx-user p {
    font-size: 8px;
    color: #888
}

.upx-user a {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin: 8px 0 15px;
    padding: 7px 12px;
    border-radius: 20px;
    background: #fff;
    color: var(--up-red);
    font-size: 8px;
    font-weight: 800
}

.upx-points {
    padding: 17px
}

.upx-points-head {
    display: flex;
    justify-content: space-between
}

.upx-points strong {
    font-size: 22px;
    color: var(--up-red)
}

.upx-points i {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff6df;
    color: #e5a300;
    font-size: 19px
}

.upx-points p {
    font-size: 14px;
    color: #888
}

.upx-points button {
    border: 0;
    border-radius: 8px;
    padding: 8px 11px;
    font-size: 8px;
    font-weight: 800
}

.upx-coupon {
    padding: 18px;
    color: #fff;
    background: linear-gradient(135deg, #111, #2b1712);
    position: relative;
    overflow: hidden
}

.upx-coupon:after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: #fc570022;
    left: -35px;
    top: -35px
}

.upx-coupon h3 {
    font-size: 13px;
    line-height: 1.7
}

.upx-coupon b {
    color: #ff5a67
}

.upx-coupon button {
    border: 0;
    background: var(--up-red);
    color: #fff;
    border-radius: 8px;
    padding: 8px 11px;
    font-size: 8px
}

.upx-code {
    margin-top: 12px;
    padding: 8px;
    border: 1px dashed #ffffff55;
    border-radius: 8px;
    text-align: center;
    font-size: 9px
}

.upx-address {
    padding: 15px
}

.upx-address h3 {
    font-size: 11px;
    font-weight: 900
}

.upx-address p {
    font-size: 14px;
    color: #777;
    line-height: 1.7
}

.upx-address a {
    font-size: 8px;
    color: var(--up-red)
}

.upx-page-card {
    padding: 20px
}

.upx-page-head {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
    margin-bottom: 17px
}

.upx-page-head i {
    width: 45px;
    height: 45px;
    border-radius: 13px;
    background: #fff1f2;
    color: var(--up-red);
    display: grid;
    place-items: center;
    font-size: 18px
}

.upx-page-head h1 {
    font-size: 18px;
    font-weight: 900;
    margin: 0
}

.upx-page-head p {
    font-size: 9px;
    color: #888;
    margin: 4px 0
}

.upx-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px
}

.upx-field label {
    display: block;
    font-size: 9px;
    font-weight: 800;
    margin-bottom: 6px
}

.upx-field input,
.upx-field textarea,
.upx-field select {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 9px;
    padding: 10px;
    font-size: 10px;
    outline: 0;
    background: #fff
}

.upx-field input:focus,
.upx-field textarea:focus {
    border-color: var(--up-red)
}

.upx-field.full {
    grid-column: 1/-1
}

.upx-save {
    border: 0;
    background: var(--up-red);
    color: #fff;
    border-radius: 9px;
    padding: 11px 24px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity .15s
}

.upx-save:disabled,
.upx-icon-btn:disabled,
.upx-fav-remove:disabled {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none
}

.upx-cancel {
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #555;
    border-radius: 9px;
    padding: 11px 24px;
    font-size: 10px;
    font-weight: 800
}

.upx-list-item {
    position: relative
}

.upx-list-item button {
    margin-inline-start: 6px
}

.upx-list-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border: 1px solid #eee;
    border-radius: 11px;
    margin-bottom: 10px
}

.upx-list-item>i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff2f3;
    color: var(--up-red);
    display: grid;
    place-items: center
}

.upx-list-item div {
    flex: 1
}

.upx-list-item h3 {
    font-size: 11px;
    margin: 0
}

.upx-list-item p {
    font-size: 8px;
    color: #888;
    margin: 4px 0
}

.upx-list-item button {
    border: 1px solid #eee;
    background: #fff;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 8px
}

.upx-empty {
    text-align: center;
    padding: 70px 20px
}

.upx-empty i {
    font-size: 38px;
    color: #ddd
}

.upx-empty h2 {
    font-size: 15px;
    margin: 12px 0 4px
}

.upx-empty p {
    font-size: 9px;
    color: #999
}

.upx-trust {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 17px
}

.upx-trust div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-inline-start: 1px solid #eee
}

.upx-trust div:first-child {
    border: 0
}

.upx-trust i {
    font-size: 19px;
    color: var(--up-red)
}

.upx-trust b {
    font-size: 14px;
}

.upx-trust small {
    display: block;
    font-size: 14px;
    color: #999
}

@media(max-width:1050px) {
    .upx-shell {
        grid-template-columns: 210px 1fr
    }

    .upx-side {
        grid-column: 1/-1;
        display: grid;
        grid-template-columns: repeat(3, 1fr)
    }

    .upx-user {
        grid-row: span 2
    }

    .upx-products {
        grid-template-columns: repeat(4, 1fr)
    }
}

.upx-nav-toggle {
    display: none
}

.upx-nav-drawer {
    display: none
}

@media(max-width:760px) {
    .upx-app {
        padding: 12px 10px 40px
    }

    .upx-shell {
        grid-template-columns: 1fr
    }

    #upx-nav-desktop {
        display: none
    }

    .upx-nav-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        border: 1px solid #ececec;
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 5px 22px #0000000a;
        padding: 14px;
        font-size: 11px;
        font-weight: 800;
        color: var(--up-ink);
        cursor: pointer
    }

    .upx-nav-toggle i {
        width: 31px;
        height: 31px;
        border-radius: 9px;
        background: #fff2f3;
        color: var(--up-red);
        display: grid;
        place-items: center;
        font-size: 13px
    }

    .upx-nav-drawer {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 2100;
        visibility: hidden;
        pointer-events: none
    }

    .upx-nav-drawer.open {
        visibility: visible;
        pointer-events: auto
    }

    .upx-nav-drawer-overlay {
        position: absolute;
        inset: 0;
        background: #00000066;
        opacity: 0;
        transition: opacity .25s
    }

    .upx-nav-drawer.open .upx-nav-drawer-overlay {
        opacity: 1
    }

    .upx-nav-drawer-panel {
        position: absolute;
        top: 0;
        bottom: 0;
        inset-inline-start: 0;
        width: 78%;
        max-width: 280px;
        border-radius: 0;
        box-shadow: 0 0 30px #0003;
        transform: translateX(-100%);
        transition: transform .25s;
        overflow-y: auto;
        padding: 18px
    }

    [dir="rtl"] .upx-nav-drawer-panel {
        transform: translateX(100%)
    }

    .upx-nav-drawer.open .upx-nav-drawer-panel {
        transform: translateX(0)
    }

    .upx-nav-drawer-close {
        position: absolute;
        top: 14px;
        inset-inline-end: 14px;
        width: 30px;
        height: 30px;
        border: 0;
        border-radius: 50%;
        background: #f5f5f5;
        color: #666;
        display: grid;
        place-items: center;
        cursor: pointer
    }

    .upx-side {
        grid-template-columns: 1fr
    }

    .upx-stats {
        grid-template-columns: 1fr 1fr
    }

    .upx-order {
        grid-template-columns: 65px 1fr 28px
    }

    .upx-order .upx-status,
    .upx-order .upx-price {
        display: none
    }

    .upx-products {
        display: flex;
        overflow: auto
    }

    .upx-product {
        min-width: 145px
    }

    .upx-form {
        grid-template-columns: 1fr
    }

    .upx-field.full {
        grid-column: auto
    }

    .upx-trust {
        grid-template-columns: 1fr 1fr;
        gap: 18px
    }

    .upx-trust div {
        border: 0
    }
}

.upx-order {
    cursor: pointer;
    transition: .15s
}

.upx-order:hover {
    background: #fafafa
}

.upx-status.active {
    background: #fff5df;
    color: #bc7a00
}

.upx-status.done {
    background: #eaf8ee;
    color: #288e49
}

.upx-fav-wrap {
    position: relative
}

.upx-fav-remove {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--up-red);
    box-shadow: 0 2px 8px #0002;
    cursor: pointer;
    font-size: 11px
}

[dir="rtl"] .upx-fav-remove {
    left: auto;
    right: 8px
}

.upx-suppliers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px
}

.upx-fav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.upx-fav-grid .upx-fav-wrap {
    height: 100%
}

.upx-fav-grid .yalla-product-card {
    height: 100%
}

@media (max-width: 900px) {
    .upx-fav-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width: 560px) {
    .upx-fav-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:760px) {
    .upx-suppliers-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

.upx-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px
}

.upx-tab {
    border: 1px solid #eee;
    background: #fff;
    color: #666;
    border-radius: 10px;
    padding: 9px 18px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer
}

.upx-tab.active {
    background: var(--up-red);
    border-color: var(--up-red);
    color: #fff
}

.upx-points-page {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.upx-points-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 38px 20px;
    text-align: center
}

.upx-points-hero i {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff6df;
    color: #e5a300;
    font-size: 24px
}

.upx-points-hero span {
    font-size: 10px;
    color: #888
}

.upx-points-hero strong {
    font-size: 34px;
    font-weight: 900;
    color: var(--up-red)
}

.upx-points-note {
    font-size: 10px;
    color: #999;
    text-align: center
}

.upx-list-item.unread {
    background: #fff8f8;
    border-color: #ffd9da
}

.upx-list-item .upx-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--up-red);
    flex: none
}

.upx-address-actions {
    margin-bottom: 16px
}

.upx-addr-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 14px;
    margin-bottom: 10px
}

.upx-addr-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff2f3;
    color: var(--up-red);
    display: grid;
    place-items: center;
    flex: none
}

.upx-addr-card-body {
    flex: 1;
    min-width: 0
}

.upx-addr-card-body h3 {
    font-size: 11px;
    margin: 0 0 4px
}

.upx-addr-card-body p {
    font-size: 9px;
    color: #888;
    margin: 0
}

.upx-addr-card-actions {
    display: flex;
    gap: 6px
}

.upx-icon-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 9px;
    color: #555;
    cursor: pointer
}

.upx-icon-btn.danger {
    color: var(--up-red);
    border-color: #ffd9da
}

/* ---------- Modals (address / order detail) ---------- */
.upx-modal {
    position: fixed;
    inset: 0;
    background: #00000066;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px
}

.upx-modal.open {
    display: flex
}

.upx-modal-dialog {
    background: #fff;
    border-radius: 18px;
    max-width: 520px;
    width: 100%;
    max-height: 88vh;
    overflow: auto;
    box-shadow: 0 20px 60px #00000030
}

.upx-modal-dialog.upx-modal-lg {
    max-width: 760px
}

.upx-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2
}

.upx-modal-title {
    font-size: 14px;
    font-weight: 900;
    margin: 0
}

.upx-modal-close {
    border: 0;
    background: #f5f5f5;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #666;
    cursor: pointer
}

.upx-modal-body {
    padding: 22px
}

.upx-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 0 22px 22px
}

.upx-modal-skel {
    width: 100%
}

/* Order status timeline + invoice, matching checkout.aspx's thank-you page (ck-* classes) */
.ck-inv-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px
}

.ck-status-track {
    display: flex;
    align-items: flex-start
}

.ck-status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    text-align: center
}

.ck-status-step span {
    font-size: 10px;
    font-weight: 700;
    color: #aaa
}

.ck-status-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f3f3f3;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: .3s
}

.ck-status-line {
    flex: 1;
    height: 3px;
    background: #ececec;
    margin-top: 18px;
    position: relative;
    overflow: hidden
}

.ck-status-line:after {
    content: "";
    position: absolute;
    inset: 0;
    background: #1e6b3c;
    transform: scaleX(0);
    transform-origin: left;
    transition: .4s
}

.ck-status-line.done:after {
    transform: scaleX(1)
}

.ck-status-step.done .ck-status-dot {
    background: #e9f8ef;
    color: #1e6b3c
}

.ck-status-step.done span {
    color: #1e6b3c
}

.ck-status-step.active .ck-status-dot {
    background: var(--up-red);
    color: #fff;
    box-shadow: 0 0 0 6px #00102b1f
}

.ck-status-step.active span {
    color: var(--up-red)
}

.ck-inv-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px
}

.ck-inv-brand img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    object-fit: cover
}

.ck-inv-brand b {
    font-size: 13px
}

.ck-inv-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1.5px dashed #eee
}

.ck-inv-headmeta h2 {
    font-size: 14px;
    font-weight: 900;
    margin: 0 0 6px
}

.ck-inv-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    background: #fff7f2;
    color: #b5620a
}

.ck-inv-meta {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px
}

.ck-inv-meta li {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    padding: 7px 0;
    border-bottom: 1px dashed #f2f2f2
}

.ck-inv-meta li span:first-child {
    color: #999
}

.ck-inv-meta li span:last-child {
    font-weight: 800
}

.ck-inv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px
}

.ck-inv-table th {
    text-align: start;
    padding: 8px 6px;
    color: #999;
    font-size: 9px;
    font-weight: 800;
    border-bottom: 1.5px solid #eee
}

.ck-inv-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #f5f5f5
}

.ck-inv-table tfoot th,
.ck-inv-table tfoot td {
    border-top: 1.5px dashed #eee;
    border-bottom: 0;
    padding-top: 14px;
    font-size: 13px;
    font-weight: 900;
    color: var(--up-red)
}

.ck-inv-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover
}

.ck-inv-item {
    display: flex;
    align-items: center;
    gap: 10px
}

.ck-inv-item div {
    display: flex;
    flex-direction: column;
    gap: 2px
}

.ck-inv-item small {
    color: #999;
    font-size: 8px
}

.upx-order-supplier {
    display: flex;
    align-items: center;
    gap: 12px
}

.upx-order-supplier-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: cover;
    flex: none
}

.upx-order-supplier small {
    display: block;
    font-size: 9px;
    color: #999
}

.upx-order-supplier b {
    font-size: 13px
}

/* ---------- Support chat (ticket conversation) ---------- */
.upx-chat-thread {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 52vh;
    overflow-y: auto;
    padding: 4px 2px
}

.upx-chat-msg {
    max-width: 78%;
    border-radius: 14px;
    padding: 10px 13px;
    font-size: 11px;
    line-height: 1.7;
    position: relative
}

.upx-chat-msg p {
    margin: 0
}

.upx-chat-msg small {
    display: block;
    margin-top: 5px;
    font-size: 8px;
    opacity: .65
}

.upx-chat-msg.from-user {
    align-self: flex-end;
    background: var(--up-red);
    color: #fff;
    border-bottom-left-radius: 4px
}

[dir="rtl"] .upx-chat-msg.from-user {
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 4px
}

.upx-chat-msg.from-admin {
    align-self: flex-start;
    background: #f3f3f3;
    color: #222;
    border-bottom-right-radius: 4px
}

[dir="rtl"] .upx-chat-msg.from-admin {
    border-bottom-right-radius: 14px;
    border-bottom-left-radius: 4px
}

.upx-chat-img {
    display: block;
    max-width: 100%;
    border-radius: 10px;
    margin-top: 6px
}

.upx-chat-composer {
    display: flex;
    gap: 8px;
    padding: 14px 22px;
    border-top: 1px solid #f0f0f0
}

.upx-chat-input {
    flex: 1;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 11px;
    outline: 0
}

.upx-chat-input:focus {
    border-color: var(--up-red)
}

.upx-chat-send {
    border-radius: 50%;
    width: 38px;
    height: 38px;
    padding: 0;
    display: grid;
    place-items: center;
    flex: none
}

@media print {
    body * {
        visibility: hidden
    }

    #upx-print-area,
    #upx-print-area * {
        visibility: visible
    }

    #upx-print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: 0;
        box-shadow: none
    }

    .header-1,
    .yalla-footer,
    .upx-nav,
    .upx-side,
    .upx-trust,
    .upx-modal-header,
    .upx-modal-actions,
    #offcanvasMenu_btn {
        display: none !important
    }
}