

.up-page,
.up-rail,
.up-rail-overlay,
.up-dialog {
    --up-brand: var(--primary-color, #f7858d);
    --up-brand-2: var(--primary-second-color, var(--up-brand));
    --up-brand-soft: rgba(0, 0, 0, 0.04);
    --up-brand-dark: var(--up-brand);
    --up-bg: #f5f6f8;
    --up-card: #fff;
    --up-border: #e6e8ec;
    --up-text: #1f2328;
    --up-text-2: #5b616b;
    --up-text-3: #8a9099;
    --up-danger: #d93a3a;
    --up-r-card: 16px;
    --up-r-item: 12px;
    --up-shadow: 0 10px 30px rgba(16, 24, 40, 0.05);
    --up-gutter: 12px;
    --up-pad: 14px;
}

@supports (background: color-mix(in srgb, red 10%, white)) {
    .up-page,
    .up-rail,
    .up-rail-overlay,
    .up-dialog {
        --up-brand-soft: color-mix(in srgb, var(--up-brand) 10%, #fff);
        --up-brand-dark: color-mix(in srgb, var(--up-brand) 72%, #111);
    }
}

@media (min-width: 576px) {
    .up-page {
        --up-gutter: 16px;
        --up-pad: 18px;
    }
}

@media (min-width: 992px) {
    .up-page {
        --up-pad: 22px;
    }
}

.up-page *,
.up-rail *,
.up-dialog * {
    box-sizing: border-box;
}

/* ================================================================== page */
.up-page {
    /* the site header (.main-header.dt-sl) is a full-width float that nothing clears. Flex and
       grid boxes may not overlap a float, so without this they were squeezed to 0px beside it
       and the dashboard came out blank on phones. */
    clear: both;
    width: 100%;
    min-width: 0;
    padding: 20px 0 32px;
    color: var(--up-text);
    background: var(--up-bg);
}

.up-page a,
.up-page a:hover,
.up-rail a,
.up-rail a:hover {
    text-decoration: none;
}

.up-page .up-container {
    padding-left: var(--up-gutter);
    padding-right: var(--up-gutter);
}

.up-layout-row {
    align-items: flex-start;
}

/* the sidebar follows the page as it scrolls (like adeli.gold). The column itself is the sticky
   box: the row is as tall as the content, so the column has room to travel. */
@media (min-width: 768px) {
    .up-layout-row > .up-sidebar-column {
        position: sticky;
        top: 16px;
        align-self: flex-start;
    }

    /* no inner scroll: the page scrolls normally under the mouse. A sidebar taller than the screen
       first scrolls with the page, then pins once its bottom is in view (user-rail.js sets the
       column's `top` to a negative offset for that). */
    /* the layout's .wrapper uses overflow-x:hidden, which turns it into a scroll box and
       stops position:sticky; clip hides the same overflow without that side effect */
    body:has(.up-page) .wrapper {
        /* main.css sets overflow-x: hidden !important on .wrapper */
        overflow-x: clip !important;
    }
}

.up-layout-row > [class*="col-"] {
    min-width: 0;
}

/* style.css has a global `a:hover { border: none }`, which makes every bordered link lose its
   border on hover and shrink (the cards "jump"). Bordered links here keep it. */
.up-page .up-balance-item:hover,
.up-page .up-stat:hover,
.up-page .up-actions a:hover,
.up-page .up-order:hover,
.up-page .up-tx:hover,
.up-page .up-btn--soft:hover,
.up-page .up-eyebrow--link:hover,
.up-page .up-balance-btn:hover,
.up-page .up-pagination .site-pagination a:hover,
.up-page .up-ticket:hover {
    border-style: solid;
    border-width: 1px;
}

.up-page .up-eyebrow--link:hover {
    border-color: var(--up-brand);
}

/* rows that scroll sideways can also be dragged with a mouse (user-rail.js) */
[data-drag-scroll].is-draggable {
    cursor: grab;
}

[data-drag-scroll].is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

[data-drag-scroll].is-dragging a,
[data-drag-scroll].is-dragging img {
    pointer-events: none;
}

/* ================================================================== sidebar */
.up-sidebar {
    overflow: hidden;
    background: var(--up-card);
    border: 1px solid var(--up-border);
    border-radius: var(--up-r-card);
    box-shadow: var(--up-shadow);
}

.up-sidebar-user {
    position: relative;
    overflow: hidden;
    padding: 24px 16px 20px;
    text-align: center;
    border-bottom: 1px solid var(--up-border);
}

.up-sidebar-user::before {
    content: '';
    position: absolute;
    top: -75px;
    right: -70px;
    width: 175px;
    height: 175px;
    border-radius: 50%;
    background: var(--up-brand-soft);
}

.up-avatar {
    position: relative;
    z-index: 1;
    width: 76px;
    height: 76px;
    margin: 0 auto 12px;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--up-brand), var(--up-brand-2));
}

.up-avatar img,
.up-mobile-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
    border: 3px solid #fff;
    border-radius: 50%;
}

.up-user-name {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--up-text);
}

.up-user-phone {
    position: relative;
    z-index: 1;
    display: block;
    direction: ltr;
    font-size: 12px;
    color: var(--up-text-3);
}

.up-sidebar-balances {
    padding: 14px;
    border-bottom: 1px solid var(--up-border);
}

.up-balance-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 11px;
    color: var(--up-text);
    background: #fafbfc;
    border: 1px solid var(--up-border);
    border-radius: 14px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.up-balance-item:hover {
    color: var(--up-text);
    border-color: var(--up-brand);
    background: var(--up-brand-soft);
}

.up-balance-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--up-brand-dark);
    background: var(--up-brand-soft);
    border-radius: 12px;
}

.up-balance-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.up-balance-content small {
    font-size: 11px;
    color: var(--up-text-3);
}

.up-balance-content strong {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.up-balance-content strong span {
    font-size: 11px;
    font-weight: 400;
    color: var(--up-text-3);
}

.up-menu {
    padding: 14px;
}

.up-menu-title {
    margin: 0 10px 8px;
    font-size: 11px;
    font-weight: 500;
    color: var(--up-text-3);
}

.up-menu ul + .up-menu-title {
    margin-top: 14px;
}

.up-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.up-menu li {
    margin: 0 0 3px;
}

.up-menu a {
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    font-size: 13px;
    color: var(--up-text-2);
    border-radius: var(--up-r-item);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.up-menu a:hover {
    color: var(--up-text);
    background: #f6f7f9;
}

.up-menu a.active {
    font-weight: 600;
    color: var(--up-brand-dark);
    background: var(--up-brand-soft);
}

.up-menu a.active::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 0;
    bottom: 10px;
    width: 3px;
    border-radius: 5px 0 0 5px;
    background: linear-gradient(180deg, var(--up-brand), var(--up-brand-2));
}

.up-menu a > i {
    flex: 0 0 22px;
    width: 22px;
    font-size: 20px;
    text-align: center;
    color: #a2a7af;
}

.up-menu a.active > i {
    color: var(--up-brand);
}

.up-sidebar-balances {
    border-bottom: 0;
}

/* password + logout: two compact buttons right under the wallet box */
.up-sidebar-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 14px 14px;
    border-bottom: 1px solid var(--up-border);
}

.up-page .up-sidebar-footer a {
    min-width: 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--up-text-2);
    background: #f6f7f9;
    border-radius: 11px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.up-page .up-sidebar-footer a:hover {
    color: var(--up-text);
    background: #eceef1;
}

.up-sidebar-footer a i {
    font-size: 17px;
}

.up-page .up-sidebar-footer a.is-logout {
    color: var(--up-danger);
    background: #fdf1f1;
}

.up-page .up-sidebar-footer a.is-logout:hover {
    color: #fff;
    background: var(--up-danger);
}

/* ================================================================== content pages */
.up-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

/* page header: a soft gradient card with an accent bar, icon tile, title block and an aside
   (summary chips / action). Wide screens: one row; tablets: aside wraps under; phones: stacked. */
.up-page-header {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 16px 20px;
    padding: 20px 22px;
    background: linear-gradient(120deg, var(--up-brand-soft) 0%, #fff 52%, #fff 100%);
    border: 1px solid var(--up-border);
    border-radius: 20px;
    box-shadow: var(--up-shadow);
    /* the header sizes its contents by its own width (it sits in a narrow column next to the
       sidebar on tablets), so it compacts first and only stacks on phones */
    container: up-head / inline-size;
}

/* soft glow in the far corner */
.up-page-header::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--up-brand-soft) 0%, transparent 70%);
    pointer-events: none;
}

/* accent bar on the reading edge */
.up-page-header::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 5px;
    height: 52px;
    border-radius: 5px 0 0 5px;
    background: linear-gradient(180deg, var(--up-brand), var(--up-brand-2));
    transform: translateY(-50%);
    pointer-events: none;
}

.up-page-head {
    position: relative;
    z-index: 1;
    flex: 1 1 200px;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.up-page-icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    background: linear-gradient(135deg, var(--up-brand), var(--up-brand-2));
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.14);
}

.up-page-head-text {
    min-width: 0;
}

.up-eyebrow,
.up-page .up-eyebrow--link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--up-brand-dark);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--up-border);
    border-radius: 999px;
}

.up-eyebrow::before {
    content: '';
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--up-brand), var(--up-brand-2));
}

.up-eyebrow--link::before {
    display: none;
}

.up-page .up-eyebrow--link:hover {
    color: var(--up-brand-dark);
    border-color: var(--up-brand);
}

.up-eyebrow--link i {
    font-size: 15px;
}

.up-page-header h1 {
    margin: 0 0 4px;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.5;
    color: var(--up-text);
}

.up-page-header p {
    margin: 0;
    font-size: 12px;
    line-height: 1.8;
    color: var(--up-text-3);
}

.up-page-aside {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.up-head-stats {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
}

.up-head-stat {
    min-width: 92px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--up-border);
    border-radius: 14px;
}

.up-head-stat strong {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    color: var(--up-text);
}

.up-head-stat small {
    font-size: 10px;
    white-space: nowrap;
    color: var(--up-text-3);
}

.up-head-stat.is-success strong { color: #1f8a4c; }
.up-head-stat.is-warning strong { color: #a86a06; }
.up-head-stat.is-danger strong { color: var(--up-danger); }
.up-head-stat.is-info strong { color: #1d63b8; }

.up-head-btn {
    min-height: 46px;
}

/* a narrow header (tablet column): tighter pieces so title and aside still share one row */
@container up-head (max-width: 660px) {
    .up-page-head {
        flex-basis: 150px;
        gap: 10px;
    }

    .up-page-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        font-size: 22px;
        border-radius: 14px;
    }

    .up-page-header h1 {
        font-size: 17px;
    }

    .up-page-header p {
        font-size: 11px;
    }

    .up-page-aside,
    .up-head-stats {
        gap: 6px;
    }

    .up-head-stat {
        min-width: 0;
        padding: 6px 10px;
    }

    .up-head-stat strong {
        font-size: 14px;
    }

    .up-head-btn {
        min-height: 40px;
        padding: 0 12px;
        font-size: 12px;
    }
}

/* narrower still: the action button keeps only its icon (the label stays for screen readers) */
@container up-head (max-width: 580px) {
    .up-head-btn {
        width: 40px;
        padding: 0;
    }

    .up-head-btn span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .up-head-btn i {
        font-size: 20px;
    }

    .up-head-stat small {
        font-size: 9px;
    }
}

/* very narrow headers (phones): still one row down to 360px — smaller pieces, the subtitle
   wraps, and the orders header keeps only its first summary number */
@container up-head (max-width: 480px) {
    .up-page-head {
        flex-basis: 0;
        gap: 8px;
    }

    .up-page-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        font-size: 20px;
        border-radius: 12px;
    }

    .up-eyebrow,
    .up-page .up-eyebrow--link {
        margin-bottom: 4px;
        padding: 1px 8px;
        font-size: 10px;
    }

    .up-page-header h1 {
        margin-bottom: 2px;
        font-size: 15px;
    }

    .up-page-header p {
        font-size: 10px;
        line-height: 1.7;
    }

    .up-head-stat {
        padding: 5px 8px;
        border-radius: 12px;
    }

    .up-head-stat:nth-child(n + 2) {
        display: none;
    }

    .up-head-btn {
        width: 38px;
        min-height: 38px;
        border-radius: 11px;
    }
}

@container up-head (max-width: 360px) {
    .up-page-header p {
        display: none;
    }
}

/* phones: only the card itself gets tighter */
@media (max-width: 575.98px) {
    .up-page-header {
        gap: 10px;
        padding: 14px;
        border-radius: var(--up-r-card);
    }

    .up-page-header::after {
        height: 36px;
    }
}

.up-card {
    min-width: 0;
    padding: var(--up-pad);
    background: var(--up-card);
    border: 1px solid var(--up-border);
    border-radius: var(--up-r-card);
    box-shadow: var(--up-shadow);
}

.up-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.up-card-header span {
    display: block;
    font-size: 11px;
    color: var(--up-text-3);
}

.up-card-header h2 {
    margin: 2px 0 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--up-text);
}

/* a status pill in a card header is also a span: keep its own centred layout, not the block above */
.up-card-header .up-pill {
    display: inline-flex;
    flex: none;
}

.up-card-header .up-count {
    flex: none;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    color: var(--up-brand-dark);
    background: var(--up-brand-soft);
    border-radius: 999px;
}

.up-empty {
    padding: 32px 12px;
    text-align: center;
    color: var(--up-text-3);
}

.up-empty i {
    display: block;
    margin-bottom: 8px;
    font-size: 40px;
    color: #c4c8ce;
}

.up-empty p {
    margin: 0;
    font-size: 13px;
}

/* ================================================================== measurements list */
.up-measure-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* phones: each row is a small card — name on top, date under it, arrow on the left */
.up-measure-head {
    display: none;
}

.up-measure-row {
    width: 100%;
    display: grid;
    grid-template-columns: 32px auto minmax(0, 1fr) auto;
    grid-template-areas:
        "index first last action"
        "index date date action";
    align-items: center;
    column-gap: 10px;
    row-gap: 2px;
    padding: 12px;
    font: inherit;
    text-align: right;
    color: var(--up-text);
    background: #fafbfc;
    border: 1px solid var(--up-border);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.up-measure-row:hover {
    border-color: var(--up-brand);
    background: var(--up-brand-soft);
}

.up-measure-row:focus-visible {
    outline: 2px solid var(--up-brand);
    outline-offset: 2px;
}

.up-measure-index {
    grid-area: index;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--up-brand-dark);
    background: var(--up-brand-soft);
    border-radius: 10px;
}

/* phones: first and last name sit side by side on the top line */
.up-measure-first,
.up-measure-last {
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.up-measure-first {
    grid-area: first;
}

.up-measure-last {
    grid-area: last;
}

.up-measure-date {
    grid-area: date;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--up-text-3);
}

.up-measure-date i {
    font-size: 14px;
}

.up-measure-action {
    grid-area: action;
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    font-weight: 500;
    color: var(--up-brand-dark);
}

.up-measure-action span {
    display: none;
}

.up-measure-action i {
    font-size: 20px;
}

/* tablets and up: a table-like list with a header row */
@media (min-width: 768px) {
    .up-measure-head,
    .up-measure-row {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr) auto;
        grid-template-areas: none;
        align-items: center;
        column-gap: 14px;
    }

    .up-measure-head {
        padding: 0 12px 4px;
        font-size: 11px;
        color: var(--up-text-3);
    }

    .up-measure-row > * {
        grid-area: auto;
    }

    .up-measure-first,
    .up-measure-last {
        font-size: 13px;
    }

    .up-measure-action span {
        display: inline;
    }
}

/* ================================================================== measurement dialog */
.up-dialog {
    margin: auto;
    width: min(640px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    padding: 0;
    overflow: hidden;
    color: var(--up-text);
    background: var(--up-card);
    border: 0;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.2);
}

.up-dialog[open] {
    display: flex;
    flex-direction: column;
}

.up-dialog::backdrop {
    background: rgba(15, 15, 14, 0.46);
}

body.up-dialog-open {
    overflow: hidden;
}

.up-dialog-header {
    flex: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--up-border);
}

.up-dialog-header h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
}

.up-dialog-header small {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--up-text-3);
}

.up-dialog-close {
    flex: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 20px;
    color: var(--up-text-2);
    background: #f3f4f6;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

.up-dialog-close:hover {
    color: var(--up-text);
    background: #e9ebef;
}

.up-dialog-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px 18px 20px;
}

.up-measure-group + .up-measure-group {
    margin-top: 18px;
}

.up-measure-group h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--up-text-2);
}

.up-measure-group h4::before {
    content: '';
    width: 4px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--up-brand), var(--up-brand-2));
}

.up-measure-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

@media (min-width: 576px) {
    .up-measure-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.up-measure-item {
    min-width: 0;
    padding: 10px 12px;
    background: #fafbfc;
    border: 1px solid var(--up-border);
    border-radius: var(--up-r-item);
}

.up-measure-item dt {
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 400;
    color: var(--up-text-3);
}

.up-measure-item dd {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 0;
}

.up-measure-item dd strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--up-text);
}

.up-measure-item dd small {
    font-size: 11px;
    color: var(--up-text-3);
}

/* ================================================================== dashboard */
.up-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: var(--up-r-item);
    transition: filter 0.2s ease;
}

.up-btn i {
    font-size: 18px;
}

.up-page .up-btn--primary,
.up-page .up-btn--primary:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--up-brand), var(--up-brand-2));
}

.up-page .up-btn--primary:hover {
    filter: brightness(0.95);
}

.up-page .up-link {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    font-weight: 500;
    color: var(--up-brand-dark);
}

.up-link i {
    font-size: 16px;
}

.up-pill {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--up-text-2);
    background: #f1f2f4;
    border-radius: 999px;
}

.up-pill.is-success {
    color: #1f8a4c;
    background: #e8f6ee;
}

.up-pill.is-warning {
    color: #a86a06;
    background: #fff5df;
}

.up-pill.is-danger {
    color: var(--up-danger);
    background: #fdeeee;
}

/* hero: greeting + four summary numbers */
.up-hero {
    position: relative;
    overflow: hidden;
    padding: var(--up-pad);
    background: var(--up-card);
    border: 1px solid var(--up-border);
    border-radius: var(--up-r-card);
    box-shadow: var(--up-shadow);
}

.up-hero::before {
    content: '';
    position: absolute;
    top: -90px;
    left: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--up-brand-soft);
    pointer-events: none;
}

.up-hero-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.up-hero-top h1 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    color: var(--up-text);
}

.up-hero-top p {
    margin: 0;
    font-size: 12px;
    color: var(--up-text-3);
}

.up-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

@media (min-width: 1200px) {
    .up-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.up-page .up-stat {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    color: var(--up-text);
    background: #fafbfc;
    border: 1px solid var(--up-border);
    border-radius: 14px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.up-page .up-stat:hover {
    color: var(--up-text);
    border-color: var(--up-brand);
    background: var(--up-brand-soft);
}

.up-stat-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--up-brand-dark);
    background: var(--up-brand-soft);
    border-radius: 12px;
}

.up-stat.is-warning .up-stat-icon {
    color: #a86a06;
    background: #fff5df;
}

.up-stat-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.up-stat-body small {
    font-size: 11px;
    color: var(--up-text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.up-stat-body strong {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.up-stat-body strong span {
    font-size: 11px;
    font-weight: 400;
    color: var(--up-text-3);
}

/* shortcuts */
.up-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.up-page .up-actions a {
    min-width: 0;
    min-height: 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: var(--up-text-2);
    background: var(--up-card);
    border: 1px solid var(--up-border);
    border-radius: 14px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.up-page .up-actions a:hover {
    color: var(--up-brand-dark);
    border-color: var(--up-brand);
}

.up-actions i {
    font-size: 24px;
    color: var(--up-brand);
}

.up-actions span {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* cart shortcut: icon with the number of items in the cart */
.up-actions .up-action-icon {
    position: relative;
    overflow: visible;
    line-height: 1;
}

.up-actions .up-action-badge {
    position: absolute;
    top: -7px;
    right: -13px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
    color: #fff;
    background: var(--up-brand);
    border: 2px solid var(--up-card);
    border-radius: 999px;
    box-sizing: border-box;
}

/* suggested products: a horizontal scroll strip sized to the content column */
.up-suggest {
    padding-left: 0;
    padding-right: 0;
}

.up-suggest .up-card-header {
    padding: 0 var(--up-pad);
}

.up-suggest-nav {
    display: flex;
    gap: 6px;
}

.up-suggest-nav button {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 20px;
    color: var(--up-text-2);
    background: #f3f4f6;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

.up-suggest-nav button:hover {
    color: var(--up-brand-dark);
    background: var(--up-brand-soft);
}

.up-products {
    display: grid;
    grid-auto-flow: column;
    /* three cards fill the strip (two on phones); the rest scroll in */
    grid-auto-columns: calc((100% - 2 * 12px) / 3);
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--up-pad);
    /* a scroll box clips on every side: room above and below for a hovered card's lift (-3px) and
       shadow (components/product-card.css), taken back with negative margins so the section keeps
       its spacing */
    margin: -8px 0 -14px;
    padding: 10px var(--up-pad) 24px;
    scrollbar-width: thin;
}

.up-products > .item {
    min-width: 0;
    scroll-snap-align: start;
}

/* last orders: table-like list on wide screens, cards on phones */
.up-orders {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.up-orders-head {
    display: none;
}

.up-page .up-order {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
        "id status go"
        "date price go";
    align-items: center;
    column-gap: 10px;
    row-gap: 6px;
    padding: 12px;
    color: var(--up-text);
    background: #fafbfc;
    border: 1px solid var(--up-border);
    border-radius: 14px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.up-page .up-order:hover {
    color: var(--up-text);
    border-color: var(--up-brand);
    background: var(--up-brand-soft);
}

.up-order-id {
    grid-area: id;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.up-order-status {
    grid-area: status;
}

.up-order-go {
    grid-area: go;
    font-size: 20px;
    color: var(--up-text-3);
}

.up-order-date {
    grid-area: date;
    font-size: 12px;
    color: var(--up-text-3);
}

.up-order-price {
    grid-area: price;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.up-order-price small {
    font-size: 11px;
    font-weight: 400;
    color: var(--up-text-3);
}

.up-order-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--up-brand-dark);
    background: var(--up-brand-soft);
    border-radius: 10px;
}

.up-order-id > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.up-order-id small {
    font-size: 10px;
    color: var(--up-text-3);
}

.up-order-id strong {
    font-size: 14px;
    font-weight: 700;
}

@media (min-width: 992px) {
    .up-orders-head,
    .up-page .up-order {
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 24px;
        grid-template-areas: none;
        column-gap: 14px;
    }

    .up-orders-head {
        padding: 0 12px 2px;
        font-size: 11px;
        color: var(--up-text-3);
    }

    .up-page .up-order > * {
        grid-area: auto;
    }

    .up-order-date {
        font-size: 13px;
        color: var(--up-text-2);
    }
}

/* personal info + favourites side by side on wide screens */
.up-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

@media (min-width: 1200px) {
    .up-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

.up-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.up-info > div {
    min-width: 0;
    padding: 10px 12px;
    background: #fafbfc;
    border: 1px solid var(--up-border);
    border-radius: var(--up-r-item);
}

.up-info > div.is-wide {
    grid-column: 1 / -1;
}

.up-info dt {
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 400;
    color: var(--up-text-3);
}

.up-info dd {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--up-text);
    overflow-wrap: anywhere;
}

.up-favorites {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.up-favorites li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #fafbfc;
    border: 1px solid var(--up-border);
    border-radius: 14px;
}

.up-page .up-favorites a {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--up-text);
}

.up-favorites img {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    object-fit: cover;
    background: #fff;
    border-radius: 10px;
}

.up-favorites a span {
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.up-favorites .favorite-remove-btn {
    flex: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 18px;
    color: var(--up-text-3);
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

.up-favorites .favorite-remove-btn:hover {
    color: var(--up-danger);
    background: #fdeeee;
}

@media (max-width: 575.98px) {
    .up-hero-top h1 {
        font-size: 18px;
    }

    .up-hero-top .up-btn {
        width: 100%;
    }

    .up-page .up-stat {
        gap: 8px;
        padding: 10px;
    }

    .up-stat-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .up-stat-body strong {
        font-size: 14px;
    }

    /* five shortcuts become a swipeable row instead of squeezing */
    .up-actions {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 84px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .up-actions::-webkit-scrollbar {
        display: none;
    }

    .up-products {
        grid-auto-columns: calc((100% - 10px) / 2);
        gap: 10px;
    }

    .up-suggest-nav {
        display: none;
    }
}

@media (max-width: 399.98px) {
    /* cards run edge to edge here; the bare shortcut row keeps a small inset */
    .up-actions {
        padding: 0 12px;
    }
}

/* ================================================================== orders */
.up-pill.is-info {
    color: #1d63b8;
    background: #e9f2fd;
}

.up-pill--lg {
    flex: none;
    height: 32px;
    padding: 0 14px;
    font-size: 12px;
}

.up-btn--sm {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
}

.up-page .up-btn--soft {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--up-text-2);
    background: #fff;
    border: 1px solid var(--up-border);
}

.up-page .up-btn--soft:hover {
    color: var(--up-brand-dark);
    border-color: var(--up-brand);
}

.up-page .up-btn--soft.is-success {
    color: #1f8a4c;
    border-color: #bfe5cf;
    background: #f1faf5;
}

.up-btn--soft i {
    font-size: 16px;
}

/* empty state (orders page) */
.up-empty--lg {
    padding: 36px 16px 28px;
}

.up-empty-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--up-brand-soft);
}

.up-empty--lg .up-empty-icon i {
    margin: 0;
    font-size: 36px;
    color: var(--up-brand);
}

.up-empty--lg h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--up-text);
}

.up-empty--lg p {
    max-width: 360px;
    margin: 0 auto 16px;
    line-height: 1.9;
}

/* pagination (front::components.paginate + components/pagination.css): in the panel it sits inside a
   card already, so no divider above it, and it uses the panel's colours */
.up-pagination .site-pagination {
    --pg-brand: var(--up-brand);
    --pg-line: var(--up-border);
    --pg-text: var(--up-text-2);
    margin: 0;
    padding-top: 0;
    border-top: 0;
}

.up-pagination .site-pagination__page,
.up-pagination .site-pagination__step {
    height: 38px;
    border-radius: 10px;
    font-size: 13px;
}

.up-pagination .site-pagination__page {
    min-width: 38px;
}

.up-pagination a.site-pagination__page:hover,
.up-pagination a.site-pagination__step:hover {
    color: var(--up-brand-dark);
}

.up-pagination .site-pagination__page.is-current {
    border-color: transparent;
    background: linear-gradient(135deg, var(--up-brand), var(--up-brand-2));
}

/* order page */
.up-page .up-back {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--up-text-3);
}

.up-page .up-back:hover {
    color: var(--up-brand-dark);
}

.up-back i {
    font-size: 16px;
}

.up-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid;
    border-radius: var(--up-r-card);
}

.up-alert.is-success {
    color: #17663a;
    background: #eef9f2;
    border-color: #c7ead5;
}

.up-alert.is-danger {
    color: #a02727;
    background: #fdf1f1;
    border-color: #f3caca;
}

.up-alert-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    border-radius: 50%;
    /* each alert variant sets its own --up-alert colour */
    background: var(--up-alert, var(--up-text-3));
}

.up-alert.is-success { --up-alert: #1f8a4c; }
.up-alert.is-danger { --up-alert: var(--up-danger); }
.up-alert.is-warning { --up-alert: #c7860c; }
.up-alert.is-muted { --up-alert: #8a9099; }

.up-alert-icon i {
    color: #fff;
}

.up-alert strong {
    display: block;
    font-size: 13px;
    line-height: 1.8;
}

.up-alert p {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.9;
}

.up-pay {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    border-color: #f2dfb5;
    background: #fffbf2;
}

.up-pay-text {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.up-pay-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #a86a06;
    background: #fff1d0;
    border-radius: 12px;
}

.up-pay h2 {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 700;
}

.up-pay p {
    margin: 0;
    font-size: 12px;
    color: var(--up-text-3);
}

.up-pay p strong {
    font-size: 13px;
    color: var(--up-text);
}

.up-pay-form {
    display: flex;
    gap: 8px;
    flex: 1 1 340px;
    max-width: 460px;
}

.up-select {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    font: inherit;
    font-size: 13px;
    color: var(--up-text);
    background: #fff;
    border: 1px solid var(--up-border);
    border-radius: var(--up-r-item);
}

.up-select:focus {
    outline: none;
    border-color: var(--up-brand);
    box-shadow: 0 0 0 3px var(--up-brand-soft);
}

.up-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

/* label on the right, amount on the left of the same line (wraps on very narrow boxes) */
.up-summary-item {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 10px;
    padding: 12px 14px;
    background: var(--up-card);
    border: 1px solid var(--up-border);
    border-radius: 14px;
}

.up-summary-item small {
    font-size: 11px;
    color: var(--up-text-3);
}

.up-summary-item strong {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.up-summary-item strong span {
    font-size: 11px;
    font-weight: 400;
    color: var(--up-text-3);
}

.up-summary-item.is-main {
    border-color: var(--up-brand);
    background: var(--up-brand-soft);
}

.up-summary-item.is-main strong {
    font-size: 17px;
    color: var(--up-brand-dark);
}

/* order items */
.up-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.up-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    background: #fafbfc;
    border: 1px solid var(--up-border);
    border-radius: 14px;
}

.up-item-main {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.up-item-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--up-border);
    border-radius: 12px;
}

.up-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.up-item-info {
    min-width: 0;
}

.up-item-info h3 {
    margin: 2px 0 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
    color: var(--up-text);
}

.up-item-attrs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.up-item-attrs li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    font-size: 11px;
    color: var(--up-text-2);
    background: #fff;
    border: 1px solid var(--up-border);
    border-radius: 999px;
}

.up-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.up-item-prices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
}

.up-item-prices > div {
    min-width: 0;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid var(--up-border);
    border-radius: 10px;
}

.up-item-prices dt {
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 400;
    color: var(--up-text-3);
}

.up-item-prices dd {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.up-item-prices dd small {
    font-size: 10px;
    font-weight: 400;
    color: var(--up-text-3);
}

.up-item-prices .is-total dd {
    color: var(--up-brand-dark);
}

.up-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.up-item-actions:empty {
    display: none;
}

@media (min-width: 768px) {
    .up-item-prices {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .up-item-actions {
        justify-content: flex-end;
        padding-top: 10px;
        border-top: 1px dashed var(--up-border);
    }
}

/* attributes past the first four fold into a toggle */
.up-item-more {
    margin-top: 6px;
}

.up-item-more > summary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--up-brand-dark);
    list-style: none;
    cursor: pointer;
}

.up-item-more > summary::-webkit-details-marker {
    display: none;
}

.up-item-more > summary .is-open,
.up-item-more[open] > summary .is-closed {
    display: none;
}

.up-item-more[open] > summary .is-open {
    display: inline;
}

.up-item-more[open] > .up-item-attrs {
    margin-top: 6px;
}

/* order progress */
.up-steps {
    display: grid;
    grid-template-columns: repeat(var(--up-steps, 5), minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.up-steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
    text-align: center;
}

/* the line to the next step (RTL: steps run right to left) */
.up-steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 19px;
    right: calc(50% + 24px);
    left: calc(-50% + 24px);
    height: 3px;
    border-radius: 3px;
    background: var(--up-border);
}

.up-steps li.is-done:not(.is-current)::after {
    background: linear-gradient(270deg, var(--up-brand), var(--up-brand-2));
}

.up-step-dot {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: #a2a7af;
    background: #f3f4f6;
    border: 2px solid var(--up-border);
    border-radius: 50%;
}

.up-steps li.is-done .up-step-dot {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--up-brand), var(--up-brand-2));
}

.up-steps li.is-current .up-step-dot {
    box-shadow: 0 0 0 5px var(--up-brand-soft);
}

.up-step-label {
    max-width: 100%;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--up-text-3);
}

.up-steps li.is-done .up-step-label {
    color: var(--up-text);
}

.up-track.is-canceled .up-step-dot {
    color: #c4c8ce;
}

@media (max-width: 575.98px) {
    .up-steps li:not(:last-child)::after {
        top: 16px;
        right: calc(50% + 20px);
        left: calc(-50% + 20px);
    }

    .up-step-dot {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .up-step-label {
        font-size: 10px;
    }
}

/* number of steps in a progress row (up-steps--N on the list) */
.up-steps--2 { --up-steps: 2; }
.up-steps--3 { --up-steps: 3; }
.up-steps--4 { --up-steps: 4; }
.up-steps--5 { --up-steps: 5; }
.up-steps--6 { --up-steps: 6; }
.up-steps--7 { --up-steps: 7; }
.up-steps--8 { --up-steps: 8; }
.up-steps--9 { --up-steps: 9; }

/* Tapin parcel tracking card (user/orders/partials/tapin-tracking) */
.up-tapin .up-card-header form {
    margin: 0;
}

.up-tapin .up-alert + .up-alert,
.up-tapin .up-details + .up-alert,
.up-tapin .up-details + .up-steps {
    margin-top: 12px;
}

.up-tapin-summary dd.is-ltr {
    direction: ltr;
    text-align: right;
}

/* nine Tapin stages do not fit a phone row: let the row scroll sideways */
@media (max-width: 767.98px) {
    .up-tapin .up-steps {
        grid-template-columns: repeat(var(--up-steps), minmax(74px, 1fr));
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: thin;
    }
}

/* order details */
.up-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin: 0;
}

@media (min-width: 576px) {
    .up-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.up-details > div {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: #fafbfc;
    border: 1px solid var(--up-border);
    border-radius: var(--up-r-item);
}

.up-details > div.is-wide {
    grid-column: 1 / -1;
}

.up-details-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--up-brand-dark);
    background: var(--up-brand-soft);
    border-radius: 10px;
}

.up-details > div > span:last-child {
    min-width: 0;
}

.up-details dt {
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 400;
    color: var(--up-text-3);
}

.up-details dd {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

/* simple rows: installments, transactions */
.up-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.up-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    background: #fafbfc;
    border: 1px solid var(--up-border);
    border-radius: 14px;
}

.up-row-index {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--up-brand-dark);
    background: var(--up-brand-soft);
    border-radius: 10px;
}

.up-row-body {
    flex: 1 1 160px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.up-row-body strong {
    font-size: 14px;
    font-weight: 700;
}

.up-row-body strong small {
    font-size: 11px;
    font-weight: 400;
    color: var(--up-text-3);
}

.up-row-body > small {
    font-size: 11px;
    line-height: 1.8;
    color: var(--up-text-3);
}

@media (max-width: 575.98px) {
    .up-pay-form {
        flex-direction: column;
        flex-basis: 100%;
        max-width: none;
    }

    .up-pay-form .up-btn {
        width: 100%;
    }

    .up-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .up-summary-item.is-main {
        grid-column: 1 / -1;
    }

    .up-item-thumb {
        flex-basis: 60px;
        width: 60px;
        height: 60px;
    }

    .up-item-actions .up-btn {
        flex: 1 1 auto;
    }
}

/* ================================================================== favourites */
/* Fixed-slot cards: image (square) · title (always 2 lines tall) · price (old-price line always
   reserved) · button. Whatever a product has or lacks, every card in a row is the same height. */
.up-favs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.up-fav {
    position: relative;
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--up-border);
    border-radius: 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.up-fav:hover {
    border-color: transparent;
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.1);
    transform: translateY(-3px);
}

.up-fav-media {
    position: relative;
    aspect-ratio: 1 / 1;
    margin: 8px 8px 0;
    overflow: hidden;
    background: #f4f5f7;
    border-radius: 14px;
}

.up-fav-media > a,
.up-fav-media img {
    display: block;
    width: 100%;
    height: 100%;
}

.up-fav-media img {
    object-fit: cover;
    transition: transform 0.4s ease;
}

.up-fav:hover .up-fav-media img {
    transform: scale(1.05);
}

.up-fav.is-unavailable .up-fav-media img {
    filter: grayscale(0.8);
    opacity: 0.7;
}

/* badges sit on the image, so they never push the text down */
.up-fav-badges {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    pointer-events: none;
}

.up-fav-badge {
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(16, 24, 40, 0.15);
}

.up-fav-badge.is-sale {
    background: var(--up-danger);
}

.up-fav-badge.is-muted {
    color: var(--up-text-2);
    background: rgba(255, 255, 255, 0.95);
}

/* filled heart = saved; hover turns it into "remove" */
.up-fav-remove {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 19px;
    color: var(--up-danger);
    background: rgba(255, 255, 255, 0.95);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 6px 14px rgba(16, 24, 40, 0.14);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.up-fav-remove:hover,
.up-fav-remove:focus-visible {
    color: #fff;
    background: var(--up-danger);
    transform: scale(1.08);
}

.up-fav-remove:focus-visible {
    outline: 2px solid var(--up-danger);
    outline-offset: 2px;
}

.up-fav-body {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 8px;
    padding: 12px 12px 12px;
}

.up-fav-title {
    margin: 0;
    height: calc(1.75em * 2);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.up-page .up-fav-title a {
    color: var(--up-text);
}

.up-page .up-fav-title a:hover {
    color: var(--up-brand-dark);
}

.up-fav-price {
    display: grid;
    grid-template-rows: 18px 26px;
    align-content: start;
}

.up-fav-old {
    font-size: 11px;
    line-height: 18px;
    color: var(--up-text-3);
}

.up-fav-now {
    display: flex;
    align-items: baseline;
    gap: 4px;
    line-height: 26px;
    white-space: nowrap;
    overflow: hidden;
}

.up-fav-now strong {
    font-size: 16px;
    font-weight: 800;
    color: var(--up-text);
}

.up-fav-now small {
    font-size: 11px;
    color: var(--up-text-3);
}

/* a discounted price (the old price is crossed out above it) shows in red, as on the product cards */
.up-fav-now.is-discounted strong,
.up-fav-now.is-discounted small {
    color: #d93a3a;
}

.up-fav-now.is-na {
    font-size: 13px;
    font-weight: 600;
    color: var(--up-text-3);
}

.up-page .up-fav-btn {
    align-self: end;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 0 12px 0 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--up-brand-dark);
    background: var(--up-brand-soft);
    border-radius: 12px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.up-fav-btn i {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.up-page .up-fav-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--up-brand), var(--up-brand-2));
}

.up-fav-btn:hover i {
    transform: translateX(-3px);
}

@media (max-width: 575.98px) {
    .up-favs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .up-fav {
        border-radius: 16px;
    }

    .up-fav-media {
        margin: 6px 6px 0;
        border-radius: 12px;
    }

    .up-fav-body {
        gap: 6px;
        padding: 10px;
    }

    .up-fav-title {
        font-size: 12px;
    }

    .up-fav-now strong {
        font-size: 14px;
    }

    .up-fav-remove {
        width: 32px;
        height: 32px;
        font-size: 17px;
    }

    .up-fav-badge {
        padding: 2px 7px;
        font-size: 10px;
    }

    .up-page .up-fav-btn {
        height: 36px;
        font-size: 11px;
    }
}

/* ================================================================== wallet */
/* balance card */
.up-balance {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 16px;
    padding: 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--up-brand) 0%, var(--up-brand-2) 100%);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.16);
}

/* two soft rings, card-like */
.up-balance::before,
.up-balance::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.up-balance::before {
    top: -90px;
    left: -60px;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.1);
}

.up-balance::after {
    bottom: -120px;
    left: 120px;
    width: 220px;
    height: 220px;
    border: 28px solid rgba(255, 255, 255, 0.06);
}

.up-balance-main,
.up-balance-stats {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.up-balance-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.85;
}

.up-balance-label i {
    font-size: 17px;
}

.up-balance-value {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 18px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.up-balance-value small {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.8;
}

.up-balance-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.up-page .up-balance-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.up-page .up-balance-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

.up-page .up-balance-btn.is-light {
    color: var(--up-brand-dark);
    background: #fff;
    border-color: #fff;
}

.up-page .up-balance-btn.is-light:hover {
    color: var(--up-brand-dark);
    background: #f3f4f6;
}

.up-balance-btn i {
    font-size: 18px;
}

.up-balance-stats {
    display: grid;
    align-content: center;
    gap: 8px;
}

.up-balance-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    backdrop-filter: blur(4px);
}

.up-balance-stat-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
}

.up-balance-stat > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.up-balance-stat small {
    font-size: 11px;
    opacity: 0.8;
}

.up-balance-stat strong {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.up-balance-stat strong span {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
}

/* transaction rows: a table-like list on wide screens, compact cards on phones */
.up-txs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.up-tx {
    width: 100%;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto 20px;
    grid-template-areas:
        "icon info amount go"
        "icon date status go";
    align-items: center;
    gap: 4px 12px;
    padding: 12px;
    font: inherit;
    text-align: right;
    color: var(--up-text);
    background: #fafbfc;
    border: 1px solid var(--up-border);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.up-tx:hover {
    border-color: var(--up-brand);
    background: var(--up-brand-soft);
}

.up-tx:focus-visible {
    outline: 2px solid var(--up-brand);
    outline-offset: 2px;
}

.up-tx-icon {
    grid-area: icon;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 12px;
}

.is-in .up-tx-icon {
    color: #1f8a4c;
    background: #e8f6ee;
}

.is-out .up-tx-icon {
    color: var(--up-danger);
    background: #fdeeee;
}

.up-tx-info {
    grid-area: info;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.up-tx-info strong {
    font-size: 13px;
    font-weight: 700;
}

.up-tx-info small {
    font-size: 11px;
    color: var(--up-text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.up-tx-date {
    grid-area: date;
    font-size: 11px;
    color: var(--up-text-3);
}

.up-tx-amount {
    grid-area: amount;
    justify-self: end;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    direction: ltr;
}

.up-tx-amount small {
    font-size: 10px;
    font-weight: 400;
    color: var(--up-text-3);
}

.is-in .up-tx-amount {
    color: #1f8a4c;
}

.is-out .up-tx-amount {
    color: var(--up-danger);
}

.up-tx.is-failed .up-tx-amount {
    color: var(--up-text-3);
    text-decoration: line-through;
}

.up-tx-status {
    grid-area: status;
    justify-self: end;
}

.up-tx-go {
    grid-area: go;
    font-size: 20px;
    color: var(--up-text-3);
}

@media (min-width: 992px) {
    .up-tx {
        grid-template-columns: 40px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) 90px 20px;
        grid-template-areas: "icon info date amount status go";
    }

    .up-tx-date {
        font-size: 12px;
        color: var(--up-text-2);
    }

    .up-tx-amount {
        justify-self: start;
    }
}

/* transaction detail (dialog body) */
.up-tx-dialog {
    width: min(520px, calc(100vw - 32px));
}

.up-tx-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 36px 0;
    font-size: 13px;
    color: var(--up-text-3);
}

.up-tx-loading span {
    width: 20px;
    height: 20px;
    border: 2px solid var(--up-border);
    border-top-color: var(--up-brand);
    border-radius: 50%;
    animation: up-spin 0.8s linear infinite;
}

@keyframes up-spin {
    to {
        transform: rotate(360deg);
    }
}

.up-txd-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 16px;
}

.up-txd-hero.is-in {
    background: linear-gradient(135deg, #eef9f2, #f8fafc);
    border: 1px solid #c7ead5;
}

.up-txd-hero.is-out {
    background: linear-gradient(135deg, #fdf1f1, #f8fafc);
    border: 1px solid #f3caca;
}

.up-txd-hero > div {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.up-txd-hero small {
    font-size: 11px;
    color: var(--up-text-3);
}

.up-txd-hero strong {
    font-size: 20px;
    font-weight: 800;
    direction: ltr;
    text-align: right;
}

.up-txd-hero strong span {
    font-size: 12px;
    font-weight: 400;
    color: var(--up-text-3);
}

.up-txd-hero.is-in strong {
    color: #1f8a4c;
}

.up-txd-hero.is-out strong {
    color: var(--up-danger);
}

.up-txd-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.up-txd-list > div {
    min-width: 0;
    padding: 10px 12px;
    background: #fafbfc;
    border: 1px solid var(--up-border);
    border-radius: var(--up-r-item);
}

.up-txd-list > div.is-wide {
    grid-column: 1 / -1;
}

.up-txd-list dt {
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 400;
    color: var(--up-text-3);
}

.up-txd-list dd {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.up-txd-list dd.is-ltr {
    direction: ltr;
    text-align: right;
}

.up-page .up-txd-list a {
    color: var(--up-brand-dark);
}

/* top-up form */
.up-topup {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}

.up-topup-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--up-text);
}

.up-topup-step:not(:first-child) {
    margin-top: 10px;
}

.up-topup-step label {
    margin: 0;
}

.up-topup-num {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--up-brand), var(--up-brand-2));
    border-radius: 9px;
}

.up-amount {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 16px;
    background: #fafbfc;
    border: 2px solid var(--up-border);
    border-radius: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.up-amount:focus-within {
    border-color: var(--up-brand);
    background: #fff;
    box-shadow: 0 0 0 4px var(--up-brand-soft);
}

.up-amount.is-invalid {
    border-color: var(--up-danger);
}

.up-amount-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0;
    font: inherit;
    font-size: 20px;
    font-weight: 800;
    color: var(--up-text);
    background: transparent;
    border: 0;
    outline: none;
    /* number inputs are LTR by default: keep the digits LTR but start them from the right */
    direction: ltr;
    text-align: right;
    -moz-appearance: textfield;
}

.up-amount-input::-webkit-outer-spin-button,
.up-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.up-amount-input::placeholder {
    font-size: 14px;
    font-weight: 400;
    color: #b3b8c0;
}

.up-amount-unit {
    flex: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--up-text-3);
}

.up-amount-hint {
    margin-top: -4px;
    font-size: 11px;
    color: var(--up-text-3);
}

.up-field-error {
    display: block;
    margin-top: -4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--up-danger);
}

.up-quick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.up-quick-btn {
    min-width: 0;
    height: 44px;
    padding: 0 6px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--up-text-2);
    background: #fff;
    border: 1px solid var(--up-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.up-quick-btn small {
    font-size: 10px;
    font-weight: 400;
    color: var(--up-text-3);
}

.up-quick-btn:hover {
    color: var(--up-brand-dark);
    border-color: var(--up-brand);
}

.up-quick-btn.is-active {
    color: var(--up-brand-dark);
    background: var(--up-brand-soft);
    border-color: var(--up-brand);
}

.up-gateways {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    border-radius: 16px;
}

.up-gateways.is-invalid .up-gateway-box {
    border-color: #f3caca;
}

.up-gateway {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.up-gateway input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.up-gateway-box {
    min-height: 60px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    background: #fff;
    border: 2px solid var(--up-border);
    border-radius: 14px;
    transition: all 0.2s ease;
}

.up-gateway:hover .up-gateway-box {
    border-color: var(--up-brand);
}

.up-gateway input:focus-visible + .up-gateway-box {
    box-shadow: 0 0 0 4px var(--up-brand-soft);
}

.up-gateway input:checked + .up-gateway-box {
    border-color: var(--up-brand);
    background: var(--up-brand-soft);
}

.up-gateway-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--up-brand-dark);
    background: #f3f4f6;
    border-radius: 10px;
}

.up-gateway-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.up-gateway-check {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: transparent;
    border: 2px solid var(--up-border);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.up-gateway input:checked + .up-gateway-box .up-gateway-check {
    color: #fff;
    border-color: transparent;
    background: var(--up-brand);
}

.up-gateway-error:empty {
    display: none;
}

.up-topup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px dashed var(--up-border);
}

.up-topup-total {
    display: flex;
    flex-direction: column;
}

.up-topup-total small {
    font-size: 11px;
    color: var(--up-text-3);
}

.up-topup-total strong {
    font-size: 18px;
    font-weight: 800;
}

.up-topup-submit {
    min-height: 50px;
    padding: 0 22px;
    font-size: 14px;
}

.up-topup-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 767.98px) {
    .up-balance {
        grid-template-columns: minmax(0, 1fr);
        padding: 18px;
        border-radius: 18px;
    }

    .up-balance-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .up-balance-value {
        margin-bottom: 14px;
        font-size: 24px;
    }

    .up-balance-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .up-page .up-balance-btn {
        justify-content: center;
        padding: 0 10px;
        font-size: 12px;
    }

    .up-balance-stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px;
    }

    .up-balance-stat strong {
        font-size: 13px;
    }

    .up-tx {
        gap: 2px 10px;
        padding: 10px;
    }

    .up-txd-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .up-quick {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .up-amount {
        height: 54px;
    }

    .up-amount-input {
        font-size: 18px;
    }

    .up-gateways {
        grid-template-columns: minmax(0, 1fr);
    }

    .up-topup-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .up-topup-submit {
        width: 100%;
    }
}

/* ================================================================== settlements */
.up-alert.is-warning {
    color: #8a5a05;
    background: #fff8e8;
    border-color: #f2dfb5;
}

.up-alert.is-muted {
    color: var(--up-text-2);
    background: #f6f7f9;
    border-color: var(--up-border);
}

.up-page .up-btn--danger,
.up-page .up-btn--danger:hover {
    color: #fff;
    background: linear-gradient(135deg, #e74c3c, #dc2626);
}

.up-page .up-btn--danger:hover {
    filter: brightness(0.95);
}

.up-card-no {
    direction: ltr;
    text-align: right;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

.up-stl .up-tx-icon {
    color: var(--up-brand-dark);
    background: var(--up-brand-soft);
}

.up-page .up-stl {
    text-decoration: none;
}

.up-stl .up-tx-amount {
    direction: rtl;
    color: var(--up-text);
}

/* form */
.up-amount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: -4px;
}

.up-amount-row .up-amount-hint {
    margin: 0;
}

.up-link-btn {
    padding: 0;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--up-brand-dark);
    background: none;
    border: 0;
    border-bottom: 1px dashed currentColor;
    cursor: pointer;
}

.up-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
}

.up-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.up-field.is-wide {
    grid-column: 1 / -1;
}

.up-field > label {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--up-text-2);
}

.up-input {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: #fafbfc;
    border: 2px solid var(--up-border);
    border-radius: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.up-input:focus-within {
    background: #fff;
    border-color: var(--up-brand);
    box-shadow: 0 0 0 4px var(--up-brand-soft);
}

.up-input.is-invalid {
    border-color: var(--up-danger);
}

.up-input > i {
    flex: none;
    font-size: 19px;
    color: var(--up-text-3);
}

.up-input input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--up-text);
    background: transparent;
    border: 0;
    outline: none;
}

.up-input input::placeholder {
    font-weight: 400;
    color: #b3b8c0;
}

/* card number and IBAN read left to right, but still start from the right edge */
.up-input.is-ltr input {
    direction: ltr;
    text-align: right;
    letter-spacing: 1px;
}

.up-input.is-ltr input::placeholder {
    letter-spacing: 0;
}

.up-field-hint {
    font-size: 11px;
    color: var(--up-text-3);
}

.up-field .up-field-error {
    margin-top: 0;
}

.up-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 6px;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.9;
    color: #1d4f8f;
    background: #eef5fe;
    border: 1px solid #d4e5fb;
    border-radius: 14px;
}

.up-note i {
    flex: none;
    font-size: 18px;
    line-height: 1.4;
}

/* detail page */
.up-stl-summary {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.up-stl-amount {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 14px;
    text-align: center;
    background: linear-gradient(135deg, var(--up-brand-soft), #fff);
    border: 1px solid var(--up-border);
    border-radius: 16px;
}

.up-stl-amount small {
    font-size: 12px;
    color: var(--up-text-3);
}

.up-stl-amount strong {
    font-size: 26px;
    font-weight: 800;
    color: var(--up-text);
}

.up-stl-amount strong span {
    font-size: 13px;
    font-weight: 400;
    color: var(--up-text-3);
}

.up-stl-cancel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    font-size: 12px;
    line-height: 1.9;
    color: var(--up-text-3);
    border-top: 1px dashed var(--up-border);
}

.up-stl-cancel > span {
    flex: 1 1 260px;
}

.up-confirm-item-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--up-danger);
    background: #fff;
    border-radius: 12px;
}

@media (max-width: 575.98px) {
    .up-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .up-stl-amount strong {
        font-size: 22px;
    }

    .up-stl-cancel .up-btn {
        width: 100%;
    }
}

/* ================================================================== tickets */
.up-pill--outline {
    gap: 4px;
    background: #fff;
    border: 1px solid var(--up-border);
}

.up-pill--outline i {
    font-size: 13px;
}

.up-pill--outline.is-danger {
    background: #fff;
    border-color: #f3caca;
}

.up-pill--outline.is-info {
    background: #fff;
    border-color: #cfe1f8;
}

/* list rows reuse .up-tx */
.up-ticket .up-tx-icon {
    color: var(--up-brand-dark);
    background: var(--up-brand-soft);
}

.up-ticket.is-close .up-tx-icon {
    color: #1f8a4c;
    background: #e8f6ee;
}

.up-ticket.is-close .up-tx-info strong {
    color: var(--up-text-2);
}

.up-page .up-ticket {
    text-decoration: none;
}

.up-ticket .up-ticket-updated {
    direction: rtl;
    font-size: 11px;
    font-weight: 500;
    color: var(--up-text-3);
}

.up-ticket-badges {
    gap: 6px;
}

/* form pieces */
.up-field-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--up-text-2);
}

.up-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 14px;
    font: inherit;
    font-size: 14px;
    line-height: 1.9;
    color: var(--up-text);
    background: #fafbfc;
    border: 2px solid var(--up-border);
    border-radius: 14px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.up-textarea:focus {
    background: #fff;
    border-color: var(--up-brand);
    box-shadow: 0 0 0 4px var(--up-brand-soft);
}

.up-textarea.is-invalid {
    border-color: var(--up-danger);
}

.up-textarea::placeholder {
    color: #b3b8c0;
}

.up-segment {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    background: #f3f4f6;
    border-radius: 14px;
}

.up-segment label {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.up-segment input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.up-segment span {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--up-text-2);
    border-radius: 11px;
    transition: all 0.2s ease;
}

.up-segment span i {
    font-size: 16px;
}

.up-segment input:checked + span {
    color: var(--up-brand-dark);
    background: #fff;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}

.up-segment .is-high input:checked + span {
    color: var(--up-danger);
}

.up-segment input:focus-visible + span {
    outline: 2px solid var(--up-brand);
    outline-offset: 2px;
}

/* attachment picker (adeli.gold style): area + button, then a preview panel of file cards */
.up-upload {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.up-upload-area {
    position: relative;
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0;
    padding: 14px;
    background: #fafbfc;
    border: 2px dashed var(--up-border);
    border-radius: 16px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.up-upload-area:hover,
.up-upload-area:focus-within {
    background: var(--up-brand-soft);
    border-color: var(--up-brand);
}

.up-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.up-upload-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--up-brand-dark);
    background: #fff;
    border: 1px solid var(--up-border);
    border-radius: 14px;
}

.up-upload-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.up-upload-content strong {
    font-size: 13px;
    font-weight: 700;
}

.up-upload-content small {
    font-size: 11px;
    line-height: 1.7;
    color: var(--up-text-3);
}

.up-upload-button {
    flex: none;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--up-brand-dark);
    background: #fff;
    border: 1px solid var(--up-border);
    border-radius: 10px;
}

.up-upload-preview {
    padding: 11px;
    background: #fafbfc;
    border: 1px solid var(--up-border);
    border-radius: 14px;
}

.up-upload-preview[hidden] {
    display: none;
}

.up-upload-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--up-border);
}

.up-upload-preview-head > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.up-upload-preview-head strong {
    font-size: 12px;
    font-weight: 700;
}

.up-upload-preview-head small {
    font-size: 11px;
    color: var(--up-text-3);
}

.up-upload-clear {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    font: inherit;
    font-size: 11px;
    color: var(--up-danger);
    background: #fdf1f1;
    border: 1px solid #f6d5d5;
    border-radius: 9px;
    cursor: pointer;
}

.up-upload-clear:hover {
    color: #fff;
    background: var(--up-danger);
}

.up-upload-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 292px;
    margin-top: 10px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.up-upload-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--up-border);
    border-radius: 12px;
}

.up-upload-item.is-error {
    background: #fff7f7;
    border-color: #f3caca;
}

.up-upload-thumb {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 20px;
    color: var(--up-brand-dark);
    background: var(--up-brand-soft);
    border-radius: 10px;
}

.up-upload-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.is-error .up-upload-thumb {
    color: var(--up-danger);
    background: #fdeeee;
}

.up-upload-item-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.up-upload-item-content strong {
    font-size: 12px;
    font-weight: 600;
    direction: ltr;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.up-upload-item-content small {
    font-size: 11px;
    color: var(--up-text-3);
}

.is-error .up-upload-item-content small {
    color: var(--up-danger);
    font-weight: 600;
}

.up-upload-remove {
    flex: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 15px;
    color: var(--up-text-3);
    background: #f3f4f6;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.up-upload-remove:hover {
    color: #fff;
    background: var(--up-danger);
}

/* validation modal list (Ravand's .validation-list) */
.up-validation-list {
    max-height: 210px;
    margin: 18px 0 22px;
    padding: 10px 12px;
    overflow-y: auto;
    list-style: none;
    text-align: right;
    background: linear-gradient(135deg, #fff7f7, #f8fafc);
    border: 1px solid #fee2e2;
    border-radius: 16px;
}

.up-validation-list li {
    position: relative;
    margin-bottom: 8px;
    padding: 9px 36px 9px 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
    color: #dc2626;
    overflow-wrap: anywhere;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(254, 226, 226, 0.9);
    border-radius: 12px;
}

.up-validation-list li:last-child {
    margin-bottom: 0;
}

.up-validation-list li::before {
    content: '!';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #dc2626;
    background: #fee2e2;
    border-radius: 7px;
    transform: translateY(-50%);
}

/* RTL: the send arrow points left, toward where the text flows */
.up-btn .mdi-send {
    transform: scaleX(-1);
}

.up-topup-submit.is-loading {
    opacity: 0.7;
    cursor: progress;
}

/* conversation — Telegram style: avatar at the outer edge, bubble next to it */
.up-chat-card {
    padding-bottom: 0;
    overflow: hidden;
}

.up-chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 600px;
    margin: 0 calc(var(--up-pad) * -1);
    padding: 14px var(--up-pad);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    background:
        radial-gradient(circle at 20% 10%, var(--up-brand-soft), transparent 40%),
        #f7f8fa;
    border-top: 1px solid var(--up-border);
}

.up-chat-day {
    display: flex;
    justify-content: center;
    margin: 4px 0;
}

.up-chat-day span {
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--up-text-2);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--up-border);
    border-radius: 999px;
}

.up-msg {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: min(80%, 620px);
}

/* own messages: right side (RTL start), avatar on the far right */
.up-msg.is-own {
    align-self: flex-start;
    flex-direction: row;
}

/* support: left side, avatar on the far left */
.up-msg.is-support {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.up-msg-avatar {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    object-fit: cover;
    background: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.12);
}

.up-msg-body {
    min-width: 0;
}

.up-msg-bubble {
    position: relative;
    min-width: 120px;
    padding: 8px 12px 6px;
    font-size: 13px;
    line-height: 1.95;
    color: var(--up-text);
    overflow-wrap: anywhere;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

/* the corner next to the avatar is the "tail" */
.is-own .up-msg-bubble {
    color: #fff;
    background: linear-gradient(135deg, var(--up-brand), var(--up-brand-2));
    border-bottom-right-radius: 4px;
}

.is-support .up-msg-bubble {
    background: #fff;
    border: 1px solid var(--up-border);
    border-bottom-left-radius: 4px;
}

.up-msg-author {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 700;
    color: var(--up-brand-dark);
}

.is-own .up-msg-author {
    color: rgba(255, 255, 255, 0.85);
}

.up-msg-time {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.6;
    text-align: left;
    color: var(--up-text-3);
}

.is-own .up-msg-time {
    color: rgba(255, 255, 255, 0.75);
}

/* image attachments as thumbnails inside the bubble */
.up-msg-images {
    display: grid;
    gap: 4px;
    margin: 6px 0 2px;
    overflow: hidden;
    border-radius: 12px;
}

.up-msg-images--1 {
    grid-template-columns: minmax(0, 260px);
}

.up-msg-images--2 {
    grid-template-columns: repeat(2, minmax(0, 140px));
}

.up-msg-images--3 {
    grid-template-columns: repeat(3, minmax(0, 110px));
}

.up-msg-images a {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.06);
}

.up-msg-images--1 a {
    aspect-ratio: 4 / 3;
}

.up-msg-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.up-msg-images a:hover img {
    transform: scale(1.05);
}

/* other attachments (zip) as file rows */
.up-msg-files {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}

.up-page .up-msg-files a,
.up-page .up-msg-files a:hover {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    color: inherit;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
}

.up-page .is-support .up-msg-files a,
.up-page .is-support .up-msg-files a:hover {
    background: #f6f7f9;
    border-color: var(--up-border);
}

.up-msg-files span {
    flex: 1 1 auto;
    min-width: 0;
    direction: ltr;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.up-msg-files i {
    flex: none;
    font-size: 16px;
}

/* reply box */
.up-composer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.up-composer-label {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.up-composer .up-textarea {
    min-height: 100px;
}

.up-composer-footer {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 575.98px) {
    .up-segment span {
        font-size: 12px;
    }

    .up-upload-area {
        flex-wrap: wrap;
    }

    .up-upload-button {
        width: 100%;
        justify-content: center;
    }

    .up-upload-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .up-chat {
        max-height: 480px;
    }

    .up-msg {
        max-width: 88%;
        gap: 6px;
    }

    .up-msg-avatar {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }

    .up-msg-images--1 {
        grid-template-columns: minmax(0, 220px);
    }

    .up-composer-footer .up-topup-submit {
        width: 100%;
    }
}

/* ================================================================== personal info */
.up-profile-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}

/* profile header card: a cover band, the picture overlapping its bottom edge, the user's name and
   contact line next to it, and the picture actions at the far end */
.up-avatar-card {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.up-avatar-cover {
    position: relative;
    height: 96px;
    background:
        radial-gradient(circle at 15% 120%, rgba(255, 255, 255, 0.22) 0 70px, transparent 71px),
        radial-gradient(circle at 85% -30%, rgba(255, 255, 255, 0.14) 0 90px, transparent 91px),
        linear-gradient(135deg, var(--up-brand), var(--up-brand-2));
}

.up-avatar-edit {
    /* above the cover band (which is positioned), only the picture reaches up into it */
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 18px;
    margin-top: -40px;
    padding: 0 var(--up-pad) var(--up-pad);
}

.up-avatar-frame {
    position: relative;
    z-index: 1;
    flex: 0 0 112px;
    width: 112px;
    height: 112px;
    padding: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 26px rgba(16, 24, 40, 0.16);
    transition: box-shadow 0.2s ease;
}

.up-avatar-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f3f4f6;
    border-radius: 50%;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

/* a new picture waiting to be saved */
.up-avatar-edit.is-preview .up-avatar-frame {
    box-shadow: 0 0 0 3px var(--up-brand), 0 10px 26px rgba(16, 24, 40, 0.16);
}

/* the saved picture is marked for deletion */
.up-avatar-edit.is-removing .up-avatar-frame img {
    opacity: 0.5;
    filter: grayscale(1);
}

.up-avatar-camera {
    position: absolute;
    bottom: 4px;
    left: 4px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 17px;
    color: #fff;
    background: var(--up-brand-dark);
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.up-avatar-camera:hover {
    transform: scale(1.08);
}

.up-avatar-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 48px; /* starts under the cover band */
    padding-bottom: 4px;
}

.up-avatar-name {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
    color: var(--up-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.up-avatar-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}

.up-avatar-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    font-size: 12px;
    direction: ltr;
    color: var(--up-text-2);
}

.up-avatar-meta i {
    font-size: 15px;
    color: var(--up-text-3);
}

.up-avatar-status {
    font-size: 12px;
    color: var(--up-text-3);
}

.up-avatar-edit.is-preview .up-avatar-status {
    color: var(--up-brand-dark);
    font-weight: 600;
}

.up-avatar-edit.is-removing .up-avatar-status {
    color: var(--up-danger);
    font-weight: 600;
}

.up-avatar-side {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    padding-top: 48px;
    padding-bottom: 4px;
}

.up-avatar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.up-avatar-actions .up-btn {
    min-height: 40px;
}

.up-avatar-actions [hidden] {
    display: none;
}

.up-avatar-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--up-text-3);
}

.up-avatar-hint i {
    font-size: 14px;
}

.up-page .up-btn--soft.is-danger {
    color: var(--up-danger);
    border-color: #f6d5d5;
    background: #fff;
}

.up-page .up-btn--soft.is-danger:hover {
    color: #fff;
    border-color: var(--up-danger);
    background: var(--up-danger);
}

.up-field > label small {
    font-weight: 400;
    color: var(--up-text-3);
}

.up-select-box select {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0 0 0 24px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--up-text);
    background: transparent url("data:image/svg+xml,%3Csvg width='14' height='14' fill='none' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' stroke='%238a9099' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat left center;
    border: 0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.up-counter {
    align-self: flex-end;
    font-variant-numeric: tabular-nums;
}

/* narrow content column (tablets): the actions drop under the name */
@media (max-width: 1199.98px) {
    .up-avatar-edit {
        flex-wrap: wrap;
    }

    .up-avatar-info {
        flex-basis: calc(100% - 130px);
    }

    .up-avatar-side {
        flex-basis: 100%;
        align-items: flex-start;
        padding-top: 0;
        padding-bottom: 0;
    }

    .up-avatar-actions {
        justify-content: flex-start;
    }
}

/* phones: everything centred under the picture */
@media (max-width: 575.98px) {
    .up-avatar-cover {
        height: 80px;
    }

    .up-avatar-edit {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: -52px;
        text-align: center;
    }

    .up-avatar-frame {
        flex-basis: 104px;
        width: 104px;
        height: 104px;
    }

    .up-avatar-info {
        flex-basis: auto;
        align-items: center;
        width: 100%;
        padding-top: 0;
        padding-bottom: 0;
    }

    .up-avatar-name {
        max-width: 100%;
        font-size: 17px;
    }

    .up-avatar-meta {
        justify-content: center;
    }

    .up-avatar-side {
        align-items: center;
        width: 100%;
    }

    .up-avatar-actions {
        justify-content: center;
        width: 100%;
    }

    .up-avatar-actions .up-btn {
        flex: 1 1 auto;
    }
}

/* ================================================================== confirm modal (Ravand style) */
.up-confirm {
    --up-danger-2: #dc2626;
    /* the site's global reset zeroes margins, which un-centres a modal <dialog> */
    margin: auto;
    width: min(430px, calc(100vw - 28px));
    max-height: calc(100dvh - 28px);
    padding: 0;
    overflow: hidden auto;
    color: var(--up-text);
    background: #fff;
    border: 0;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22), 0 8px 24px rgba(15, 23, 42, 0.1);
}

/* no backdrop-filter: blurring the whole page behind the dialog had to be redone while the icon
   animates, which made every hover and animation in the dialog stutter. A slightly darker plain
   backdrop sets it apart instead. */
.up-confirm::backdrop {
    background: rgba(15, 23, 42, 0.55);
}

.up-validation-list[hidden] { display: none; }
.up-validation.is-success::before { background: #188047; }
.up-validation.is-success .up-confirm-body {
    background: radial-gradient(circle at top right, #e5f7ec, transparent 52%), #fff;
}
.up-validation.is-success .up-confirm-icon-bg {
    background: #16834b;
    box-shadow: 0 14px 32px #16834b45;
}
.up-validation.is-success .up-confirm-btn.is-danger {
    background: #157642;
    box-shadow: 0 8px 20px #15764238;
}
.up-validation.is-success .up-confirm-btn.is-danger:hover { background: #126438; }

/* open and close both ease: the dialog rises in and sinks out, the backdrop fades.
   `overlay` / `display` allow-discrete keep it in the top layer until the closing fade ends;
   browsers without @starting-style just show and hide it instantly */
.up-confirm {
    --up-confirm-ease: cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
    transform: translateY(14px) scale(0.97);
    transition:
        opacity 0.3s ease,
        transform 0.45s var(--up-confirm-ease),
        overlay 0.3s allow-discrete,
        display 0.3s allow-discrete;
}

.up-confirm[open] {
    opacity: 1;
    transform: none;
}

.up-confirm::backdrop {
    opacity: 0;
    transition:
        opacity 0.3s ease,
        overlay 0.3s allow-discrete,
        display 0.3s allow-discrete;
}

.up-confirm[open]::backdrop {
    opacity: 1;
}

@starting-style {
    .up-confirm[open] {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }

    .up-confirm[open]::backdrop {
        opacity: 0;
    }
}

/* top accent bar */
.up-confirm::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(135deg, #e74c3c, var(--up-brand));
}

.up-confirm-close {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 18px;
    color: #64748b;
    background: #f8fafc;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.25s ease;
}

.up-confirm-close:hover {
    color: #e74c3c;
    background: #fee2e2;
    transform: rotate(90deg) scale(1.04);
}

.up-confirm-body {
    padding: 34px 28px 26px;
    text-align: center;
    background:
        radial-gradient(circle at top right, rgba(231, 76, 60, 0.1), transparent 38%),
        radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.08), transparent 42%),
        #fff;
}

.up-confirm-icon-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.up-confirm-icon-bg {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #e74c3c;
    box-shadow: 0 14px 32px rgba(231, 76, 60, 0.28);
}

/* a soft halo that slowly widens and fades behind the circle, instead of the circle itself throbbing */
.up-confirm-icon-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    animation: up-confirm-halo 3.2s cubic-bezier(0.33, 0, 0.2, 1) 0.5s infinite;
    will-change: transform, opacity;
}

/* the icon settles in once when the dialog opens */
.up-confirm[open] .up-confirm-icon-wrap {
    animation: up-confirm-pop 0.6s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.up-confirm-icon-bg::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
}

.up-confirm-icon {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
}

.up-confirm-icon i {
    font-size: 32px;
    line-height: 1;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
    animation: up-confirm-float 3.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    will-change: transform;
}

@keyframes up-confirm-pop {
    from {
        opacity: 0;
        transform: scale(0.6);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes up-confirm-halo {
    0% {
        opacity: 0.35;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.35);
    }
}

/* a slow, small drift: no scaling, so the glyph never looks like it jolts */
@keyframes up-confirm-float {
    0%, 100% {
        transform: translateY(1px);
    }

    50% {
        transform: translateY(-2px);
    }
}

.up-confirm-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
}

.up-confirm-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.9;
    color: #64748b;
}

/* the product being removed */
.up-confirm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 22px;
    padding: 10px 12px;
    text-align: right;
    background: linear-gradient(135deg, #fff7f7, #f8fafc);
    border: 1px solid #fee2e2;
    border-radius: 16px;
}

.up-confirm-item img {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    object-fit: cover;
    background: #fff;
    border-radius: 12px;
}

.up-confirm-item span {
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.up-confirm-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.up-confirm-btn {
    min-width: 150px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    /* only cheap properties animate (a growing 34px shadow was repainted on every frame) */
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.up-confirm-btn i {
    font-size: 18px;
}

.up-confirm-btn.is-danger {
    color: #fff;
    background: linear-gradient(135deg, #e74c3c, var(--up-danger-2));
    box-shadow: 0 12px 28px rgba(231, 76, 60, 0.28);
}

.up-confirm-btn.is-danger:hover {
    transform: translateY(-2px);
}

.up-confirm-btn.is-danger:active {
    transform: none;
}

.up-confirm-btn.is-danger.is-loading {
    opacity: 0.7;
    cursor: progress;
}

.up-confirm-btn.is-ghost {
    min-width: 110px;
    color: #475569;
    background: #f1f5f9;
}

.up-confirm-btn.is-ghost:hover {
    background: #e2e8f0;
}

@media (max-width: 575.98px) {
    .up-confirm-body {
        padding: 32px 18px 22px;
    }

    .up-confirm-icon-wrap {
        width: 80px;
        height: 80px;
        margin-bottom: 16px;
    }

    .up-confirm-icon {
        width: 52px;
        height: 52px;
    }

    .up-confirm-icon i {
        font-size: 28px;
    }

    .up-confirm-title {
        font-size: 18px;
    }

    .up-confirm-actions {
        flex-direction: column-reverse;
    }

    .up-confirm-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .up-confirm,
    .up-confirm::backdrop {
        transition: none;
    }

    .up-confirm[open] .up-confirm-icon-wrap,
    .up-confirm-icon-bg::before,
    .up-confirm-icon i {
        animation: none;
    }
}

/* ================================================================== mobile */
.up-mobile-top,
.up-rail,
.up-rail-overlay {
    display: none;
}

body.up-rail-open {
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .up-page {
        padding: 12px 0 24px;
    }

    /* phones show a single column, so the Bootstrap flex row is not needed here */
    .up-page .up-layout-row {
        display: block;
        width: auto;
        margin-left: 0;
        margin-right: 0;
    }

    .up-page .up-layout-row > [class*="col-"] {
        display: block;
        width: auto;
        max-width: none;
        flex: none;
        padding-left: 0;
        padding-right: 0;
    }

    .up-page .up-layout-row > .up-sidebar-column {
        display: none;
    }

    .up-sidebar-column {
        display: none;
    }

    /* short user card instead of the sidebar */
    .up-mobile-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-top: 12px;
        padding: 10px 12px;
        background: var(--up-card);
        border: 1px solid var(--up-border);
        border-radius: var(--up-r-card);
    }

    .up-mobile-user {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 9px;
    }

    .up-mobile-avatar {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        padding: 2px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--up-brand), var(--up-brand-2));
    }

    .up-mobile-user-info {
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .up-mobile-user-info strong {
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .up-mobile-user-info small {
        direction: ltr;
        text-align: right;
        font-size: 11px;
        color: var(--up-text-3);
    }

    .up-mobile-wallet {
        flex: none;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        padding: 6px 10px;
        color: var(--up-text);
        background: var(--up-brand-soft);
        border-radius: 12px;
    }

    .up-mobile-wallet:hover {
        color: var(--up-text);
    }

    .up-mobile-wallet small {
        font-size: 10px;
        color: var(--up-brand-dark);
    }

    .up-mobile-wallet strong {
        font-size: 13px;
        font-weight: 700;
        white-space: nowrap;
    }

    .up-mobile-wallet strong span {
        font-size: 10px;
        font-weight: 400;
        color: var(--up-text-3);
    }

    /* account menu rail on the right edge */
    .up-rail-overlay {
        position: fixed;
        inset: 0;
        z-index: 1048;
        display: block;
        visibility: hidden;
        opacity: 0;
        background: rgba(15, 15, 14, 0.46);
        transition: opacity 0.28s ease, visibility 0.28s ease;
    }

    .up-rail-overlay.is-visible {
        visibility: visible;
        opacity: 1;
    }

    /* fixed height, centred on the screen: on tall phones it no longer stretches into a long empty
       strip, and the items always scroll inside it */
    .up-rail {
        position: fixed;
        z-index: 1050;
        top: 50%;
        right: 0;
        height: min(440px, calc(100dvh - 120px));
        width: 74px;
        display: block;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--up-border);
        border-right: 0;
        border-radius: 18px 0 0 18px;
        box-shadow: -10px 0 35px rgba(20, 19, 16, 0.12);
        transform: translate(100%, -50%);
        transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    }

    .up-rail.is-open {
        transform: translate(0, -50%);
    }

    .up-rail-handle {
        position: absolute;
        top: 50%;
        left: -30px;
        width: 30px;
        height: 72px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--up-brand-dark);
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--up-border);
        border-right: 0;
        border-radius: 15px 0 0 15px;
        box-shadow: -7px 0 20px rgba(20, 19, 16, 0.08);
        transform: translateY(-50%);
        cursor: pointer;
    }

    .up-rail-handle i {
        font-size: 22px;
        transition: transform 0.3s ease;
    }

    .up-rail.is-open .up-rail-handle i {
        transform: rotate(180deg);
    }

    .up-rail-inner {
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 14px 6px;
        scrollbar-width: none;
        overscroll-behavior: contain;
        /* soft fade at both ends hints that the list scrolls */
        -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
        mask-image: linear-gradient(180deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
    }

    .up-rail-inner::-webkit-scrollbar {
        display: none;
    }

    .up-rail-item {
        position: relative;
        width: 62px;
        min-height: 58px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        margin-bottom: 3px;
        padding: 5px 2px;
        text-align: center;
        color: #858b94;
        border-radius: 13px;
    }

    .up-rail-item i {
        font-size: 21px;
        line-height: 1;
    }

    .up-rail-item span {
        display: block;
        width: 100%;
        overflow: hidden;
        font-size: 10px;
        font-weight: 500;
        line-height: 1.5;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .up-rail-item.active {
        color: var(--up-brand-dark);
        background: var(--up-brand-soft);
    }

    .up-rail-item.active::after {
        content: '';
        position: absolute;
        top: 12px;
        right: -6px;
        bottom: 12px;
        width: 3px;
        border-radius: 4px 0 0 4px;
        background: linear-gradient(180deg, var(--up-brand), var(--up-brand-2));
    }

    .up-rail-item.is-logout {
        color: var(--up-danger);
    }

    /* the measurement dialog opens as a bottom sheet */
    .up-dialog {
        width: 100%;
        max-width: none;
        max-height: 88vh;
        max-height: 88dvh;
        margin: auto 0 0;
        border-radius: 22px 22px 0 0;
    }

    .up-dialog-header {
        padding: 14px 16px;
    }

    .up-dialog-body {
        padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
    }
}

/* under 400px the page runs full width, the same as the product page */
@media (max-width: 399.98px) {
    .up-page .up-container {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .up-rail,
    .up-rail-handle i,
    .up-rail-overlay {
        transition: none !important;
    }
}

/* user comments (user/comments): cards after Ravand's comment card */
.up-comments {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.up-cmt {
    --up-cmt-brand: var(--primary-color, var(--up-brand));
    --up-cmt-brand-2: var(--primary-second-color, var(--up-brand-dark));

    position: relative;
    min-width: 0;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    padding: 14px;
    overflow: hidden;
    background: #fafbfc;
    border: 1px solid #edf0f2;
    border-radius: 14px;
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* accent bar on the right edge, grows on hover */
.up-cmt::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--up-cmt-brand), var(--up-cmt-brand-2));
    border-radius: 4px 0 0 4px;
    transition: height 0.3s ease;
}

/* soft circle in the bottom corner */
.up-cmt::after {
    content: '';
    position: absolute;
    left: -60px;
    bottom: -60px;
    width: 80px;
    height: 80px;
    background: color-mix(in srgb, var(--up-cmt-brand) 7%, transparent);
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.5s ease;
}

.up-cmt:hover {
    transform: translateY(-3px);
    background: #fff;
    border-color: color-mix(in srgb, var(--up-cmt-brand) 14%, #edf0f2);
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.07);
}

.up-cmt:hover::before {
    height: 100%;
}

.up-cmt:hover::after {
    transform: scale(1.7);
}

.up-cmt-top,
.up-cmt-post,
.up-cmt-body,
.up-cmt-footer {
    position: relative;
    z-index: 2;
}

.up-cmt-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 11px;
}

.up-cmt-status {
    min-height: 29px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    border-radius: 8px;
}

.up-cmt-status i {
    font-size: 13px;
}

.up-cmt-status.is-pending {
    color: #ae741d;
    background: rgba(190, 132, 40, 0.08);
}

.up-cmt-status.is-accepted {
    color: #168f5a;
    background: rgba(22, 143, 90, 0.08);
}

.up-cmt-status.is-rejected {
    color: #d15259;
    background: rgba(209, 82, 89, 0.08);
}

.up-cmt-icon {
    flex: 0 0 31px;
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--up-cmt-brand);
    background: color-mix(in srgb, var(--up-cmt-brand) 7%, #fff);
    border-radius: 9px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.up-cmt:hover .up-cmt-icon {
    color: var(--up-cmt-brand-2);
    transform: scale(1.07) rotate(-4deg);
}

/* what the comment was written on */
.up-cmt-post {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px 8px;
    margin-bottom: 10px;
    padding: 9px 10px;
    background: color-mix(in srgb, var(--up-cmt-brand) 4%, #fff);
    border-radius: 10px;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.up-cmt-post-label {
    grid-column: 1 / -1;
    font-size: 12px;
    color: var(--up-text-3);
}

.up-cmt-post strong {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    color: #4f575c;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.up-cmt-post > i {
    font-size: 13px;
    color: #a0a6aa;
    transition: color 0.25s ease, transform 0.25s ease;
}

a.up-cmt-post:hover {
    transform: translateX(-2px);
    background: color-mix(in srgb, var(--up-cmt-brand) 7%, #fff);
}

a.up-cmt-post:hover > i {
    color: var(--up-cmt-brand);
    transform: translate(-1px, -1px);
}

.up-cmt-post.is-missing strong {
    font-weight: 500;
    color: var(--up-text-3);
}

/* the comment text */
.up-cmt-body {
    flex: 1;
    padding: 10px 11px;
    background: #fff;
    border: 1px solid #edf0f2;
    border-radius: 10px;
}

.up-cmt-quote {
    position: absolute;
    top: 4px;
    left: 8px;
    font-size: 28px;
    color: color-mix(in srgb, var(--up-cmt-brand) 12%, transparent);
}

.up-cmt-body p {
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: 12px;
    line-height: 2.1;
    color: #626a6f;
    text-align: justify;
    overflow-wrap: anywhere;
}

.up-cmt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.up-cmt-footer time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--up-text-3);
}

.up-cmt-footer a {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: auto;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--up-cmt-brand);
    border-radius: 8px;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.up-cmt-footer a:hover {
    background: color-mix(in srgb, var(--up-cmt-brand) 6%, #fff);
    transform: translateX(-2px);
}

@media (max-width: 991.98px) {
    .up-comments {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767.98px) {
    .up-comments {
        gap: 8px;
    }

    .up-cmt {
        min-height: 190px;
        padding: 11px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .up-cmt-post strong {
        display: -webkit-box;
        white-space: normal;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

footer.main-footer{
    margin-top: 0px !important;
}
