body.client-mobile {
    --client-accent: #3b5ea8;
    --client-accent-strong: #2f4b86;
    --client-card-bg: #edf2ff;
    background:
        radial-gradient(circle at top left, rgba(79, 131, 182, 0.2), transparent 36%),
        radial-gradient(circle at bottom right, rgba(59, 94, 168, 0.16), transparent 44%),
        #172039;
    color: #142433;
}

body.client-mobile .container {
    max-width: 760px;
}

body.client-mobile .client-brand-bar {
    background: #172039;
    border-bottom: 1px solid rgba(213, 227, 242, 0.16);
}

body.client-mobile .client-brand-bar .container {
    display: flex;
    justify-content: center;
}

body.client-mobile .client-brand-logo {
    display: block;
    height: 34px;
    width: auto;
}

body.client-mobile .client-header {
    backdrop-filter: blur(12px);
    background: rgba(23, 32, 57, 0.94);
    border-bottom: 1px solid rgba(152, 177, 235, 0.24);
}

body.client-mobile .client-header .client-title {
    color: #f3f7ff;
}

body.client-mobile .client-header .text-body-secondary {
    color: rgba(225, 234, 251, 0.78) !important;
}

body.client-mobile .client-header .btn-outline-secondary {
    color: #e7efff;
    border-color: rgba(200, 216, 248, 0.5);
    background: rgba(231, 239, 255, 0.06);
}

body.client-mobile .client-header .btn-outline-secondary:hover,
body.client-mobile .client-header .btn-outline-secondary:focus {
    color: #fff;
    border-color: rgba(214, 227, 252, 0.78);
    background: rgba(214, 227, 252, 0.18);
}

body.client-mobile .client-title {
    font-size: 1.22rem;
    letter-spacing: -0.01em;
}

body.client-mobile .client-point-of-sale-title {
    color: #f3f7ff;
}

body.client-mobile .client-card {
    background: var(--client-card-bg);
    border: 1px solid rgba(59, 94, 168, 0.34);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(12, 34, 56, 0.06);
}

body.client-mobile .client-card.is-selected {
    border-color: var(--client-accent);
    box-shadow: 0 0 0 2px rgba(59, 94, 168, 0.18), 0 10px 26px rgba(12, 34, 56, 0.08);
}

body.client-mobile .client-card.is-disabled {
    opacity: 0.58;
}

body.client-mobile .client-card > .card-body {
    padding: 6px 12px;
}

body.client-mobile .client-product-media {
    width: 56px;
    flex: 0 0 56px;
}

body.client-mobile .client-product-modal-trigger {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    padding: 0;
}

body.client-mobile .client-product-media-button {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 8px;
}

body.client-mobile .client-product-media-button:focus-visible,
body.client-mobile .client-product-title-button:focus-visible {
    outline: 2px solid var(--client-accent);
    outline-offset: 3px;
}

body.client-mobile .client-product-title-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    display: inline;
    font: inherit;
    padding: 0;
}

body.client-mobile .client-product-actions {
    min-width: 112px;
    flex: 0 0 112px;
}

body.client-mobile .client-add-btn {
    width: 2.45rem;
    height: 2.45rem;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    line-height: 1;
    border-color: var(--client-accent);
    color: var(--client-accent);
}

body.client-mobile .client-add-btn:hover,
body.client-mobile .client-add-btn:focus {
    border-color: var(--client-accent);
    background: var(--client-accent);
    color: #fff;
}

body.client-mobile .client-qty-btn {
    padding-top: 0.36rem;
    padding-bottom: 0.36rem;
    font-size: 1rem;
    line-height: 1.15;
}

body.client-mobile .client-product-thumb,
body.client-mobile .client-product-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: block;
}

body.client-mobile .client-product-thumb {
    object-fit: cover;
    border: 1px solid #dce6f0;
    background: #f1f5fa;
}

body.client-mobile .client-product-placeholder {
    border: 1px dashed #c9d6e6;
    background:
        linear-gradient(135deg, rgba(59, 94, 168, 0.1), rgba(59, 94, 168, 0.03)),
        #eef3f9;
}

body.client-mobile .client-product-modal {
    position: fixed;
    inset: 0;
    z-index: 1085;
}

body.client-mobile .client-product-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 13, 25, 0.56);
}

body.client-mobile .client-product-modal-shell {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 1rem;
}

body.client-mobile .client-product-modal-panel {
    position: relative;
    width: min(100%, 560px);
    max-height: 75dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
    background: #edf2ff;
    box-shadow: 0 24px 58px rgba(4, 11, 24, 0.32);
}

body.client-mobile .client-product-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    border-radius: 8px;
    background-color: rgba(237, 242, 255, 0.88);
}

body.client-mobile .client-product-modal-scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

body.client-mobile .client-product-modal-image-wrap {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    max-height: 28dvh;
    background: #dce6f0;
}

body.client-mobile .client-product-modal-image-wrap.has-image::before {
    content: "";
    position: absolute;
    inset: -18px;
    background-image: var(--product-modal-image-bg);
    background-size: cover;
    background-position: center;
    filter: blur(18px);
    transform: scale(1.06);
}

body.client-mobile .client-product-modal-image,
body.client-mobile .client-product-modal-placeholder {
    width: 100%;
    height: min(28dvh, 220px);
    min-height: 150px;
    display: block;
}

body.client-mobile .client-product-modal-image {
    position: relative;
    z-index: 1;
    object-fit: contain;
    background: transparent;
}

body.client-mobile .client-product-modal-placeholder {
    border-bottom: 1px dashed rgba(59, 94, 168, 0.28);
    background:
        linear-gradient(135deg, rgba(59, 94, 168, 0.12), rgba(59, 94, 168, 0.03)),
        #eef3f9;
}

body.client-mobile .client-product-modal-content {
    padding: 1rem 1rem 1.15rem;
}

body.client-mobile .client-product-modal-description {
    color: rgba(20, 36, 51, 0.82);
}

body.client-mobile .client-product-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(59, 94, 168, 0.18);
    background: rgba(237, 242, 255, 0.98);
}

body.client-mobile .client-product-modal-actions .badge {
    flex: 1 1 auto;
    text-align: center;
}

body.client-mobile .client-product-modal-actions .btn {
    border-radius: 8px;
}

body.client-mobile .client-total-bar {
    border-top: 1px solid rgba(59, 94, 168, 0.24);
    background: rgba(237, 242, 255, 0.96);
    backdrop-filter: blur(14px);
}

body.client-mobile .client-total-bar .text-body-secondary {
    color: rgba(29, 43, 74, 0.75) !important;
}

body.client-mobile .client-total-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "summary action"
        "legal legal";
    column-gap: 0.8rem;
    align-items: center;
}

body.client-mobile .client-total-summary {
    grid-area: summary;
    min-width: 0;
}

body.client-mobile .client-total-legal {
    grid-area: legal;
    margin: 0.35rem 0 0;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(59, 94, 168, 0.18);
    color: rgba(29, 43, 74, 0.68);
    font-size: 0.68rem;
    line-height: 1.22;
}

body.client-mobile .client-total-legal a {
    color: inherit;
    font-weight: 700;
}

body.client-mobile .client-total-action {
    grid-area: action;
    display: flex;
    justify-content: flex-end;
    align-self: center;
}

body.client-mobile .client-payment-summary {
    padding: 0.9rem 1rem;
    border: 1px solid rgba(59, 94, 168, 0.16);
    border-radius: 14px;
    background: rgba(59, 94, 168, 0.05);
}

body.client-mobile .client-payment-summary__groups {
    display: grid;
    gap: 0.85rem;
}

body.client-mobile .client-payment-summary__group {
    display: grid;
    gap: 0.18rem;
}

body.client-mobile .client-payment-summary__count {
    font-size: 0.98rem;
    font-weight: 600;
    color: #1d2b4a;
}

body.client-mobile .client-payment-summary__pickup {
    font-size: 0.84rem;
    color: rgba(29, 43, 74, 0.72);
}

body.client-mobile .client-payment-summary__total {
    margin-top: 0.95rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(59, 94, 168, 0.16);
    font-size: 1rem;
    font-weight: 700;
    color: #142433;
}

body.client-mobile .btn-primary {
    background: var(--client-accent);
    border-color: var(--client-accent);
}

body.client-mobile .btn-primary:hover,
body.client-mobile .btn-primary:focus,
body.client-mobile .btn-primary:active {
    background: var(--client-accent-strong);
    border-color: var(--client-accent-strong);
}

body.client-orders .client-title {
    color: #f3f7ff;
}

body.client-orders .text-secondary {
    color: rgba(225, 234, 251, 0.78) !important;
}

body.client-orders #menu-btn.btn-outline-secondary {
    color: #e7efff;
    border-color: rgba(200, 216, 248, 0.5);
    background: rgba(231, 239, 255, 0.06);
}

body.client-orders #menu-btn.btn-outline-secondary:hover,
body.client-orders #menu-btn.btn-outline-secondary:focus {
    color: #fff;
    border-color: rgba(214, 227, 252, 0.78);
    background: rgba(214, 227, 252, 0.18);
}

body.client-orders #orders > .text-secondary {
    color: rgba(225, 234, 251, 0.78) !important;
}

body.client-mobile .client-section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5f7288;
    font-weight: 700;
}

body.client-mobile .client-status {
    min-height: 1.25rem;
}

body.client-mobile .client-code {
    letter-spacing: 0.1em;
}

body.client-mobile .btn {
    border-radius: 12px;
    font-weight: 600;
}

body.client-mobile .btn-lg {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

body.client-mobile .form-control {
    border-radius: 12px;
    border-color: #d0dbe8;
}

body.client-mobile .client-filter-scroll {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

body.client-mobile .client-filter-scroll::-webkit-scrollbar {
    height: 6px;
}

body.client-mobile .client-filter-scroll::-webkit-scrollbar-thumb {
    background: rgba(59, 94, 168, 0.4);
    border-radius: 999px;
}

body.client-mobile .client-filter-pill {
    flex: 0 0 auto;
    border-radius: 999px;
    border: 1px solid rgba(170, 191, 236, 0.42);
    background: rgba(240, 245, 255, 0.18);
    color: #e9f1ff;
    padding: 0.4rem 0.85rem;
    white-space: nowrap;
}

body.client-mobile .client-filter-pill:hover {
    background: rgba(224, 236, 255, 0.28);
    border-color: rgba(188, 208, 248, 0.68);
}

body.client-mobile .client-filter-pill.is-active,
body.client-mobile .client-filter-pill.is-active:hover {
    background: var(--client-accent);
    border-color: var(--client-accent);
    color: #fff;
    box-shadow: 0 6px 14px rgba(47, 75, 134, 0.38);
}

body.client-mobile .badge {
    border-radius: 999px;
    padding: 0.42em 0.68em;
}

@media (max-width: 576px) {
    body.client-mobile .container {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    body.client-mobile .client-title {
        font-size: 1.1rem;
    }
}

@media (min-width: 768px) {
    body.client-mobile .client-product-modal-shell {
        align-items: center;
    }
}
