@font-face {
    font-family: 'Roboto';
    src: url("../fonts/Roboto-Regular.327362a7c8d4.ttf") format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url("../fonts/Roboto-Regular.327362a7c8d4.ttf") format('truetype');
    font-weight: 500;
    font-style: normal;
}

/* Tema 992-1280px oralig'ida menyu ko'rinib turgan bo'lsa ham kontentni faqat 60px pastga suradi */
@media (min-width: 992px) and (max-width: 1280px) {
    .page-wrapper {
        margin-top: 120px;
    }
}

/* ---------------- Kassa ---------------- */

:root {
    --pos-cart-width: 420px;
}

.pos-products {
    margin-right: var(--pos-cart-width);
}

.pos-product {
    position: relative;
    height: 100%;
    margin-bottom: 0;
    cursor: pointer;
    transition: transform .1s;
}

.pos-product:hover,
.pos-product:focus {
    transform: translateY(-2px);
    outline: 2px solid rgb(255 255 255 / 40%);
}

.pos-product .card-img-top {
    height: 110px;
    object-fit: contain;
    background: rgb(255 255 255 / 6%);
}

.pos-product .card-body {
    padding: .6rem;
}

.pos-product-name {
    min-height: 2.5em;
    margin-bottom: .4rem;
    font-size: .9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pos-product-out {
    opacity: .55;
}

.pos-product-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 14px;
    background: #0d6efd;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

.pos-cart {
    position: fixed;
    top: 120px;
    right: 0;
    bottom: 0;
    z-index: 8; /* menyu dropdown'lari (z-index: 9) savat ustida ochilsin */
    width: var(--pos-cart-width);
    display: flex;
    flex-direction: column;
    background: #111314;
    border-left: 1px solid rgb(255 255 255 / 15%);
    color: #fff;
}

.pos-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
}

.pos-cart-title {
    font-size: 18px;
    font-weight: bold;
}

.pos-cart-subtitle {
    font-size: 13px;
    color: rgb(255 255 255 / 60%);
}

.pos-cart-lines {
    flex: 1;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #555 #111314;
}

.pos-cart-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: rgb(255 255 255 / 50%);
    text-align: center;
}

.pos-cart-line {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 8px;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #2a2a2a;
}

.pos-cart-line.flash {
    animation: pos-flash .6s;
}

@keyframes pos-flash {
    from { background: rgb(13 110 253 / 45%); }
    to { background: transparent; }
}

.pos-cart-line-over .pos-qty-input {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgb(220 53 69 / 50%);
}

.pos-cart-line-name {
    font-size: 15px;
    word-break: break-word;
}

.pos-cart-line-meta {
    font-size: 12px;
    color: rgb(255 255 255 / 60%);
}

.pos-qty {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pos-qty-btn {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 6px;
    background: #333;
    color: #fff;
    font-size: 18px;
    line-height: 1;
}

.pos-qty-input {
    width: 64px;
    padding: 4px 6px;
    border: 1px solid #555;
    border-radius: 6px;
    background: #fff;
    color: #000;
    text-align: center;
}

.pos-qty-unit {
    font-size: 13px;
    color: rgb(255 255 255 / 60%);
}

.pos-cart-line-sum {
    min-width: 76px;
    font-weight: bold;
    text-align: right;
}

.pos-cart-line-remove {
    padding: 0;
    border: 0;
    background: none;
    color: #ff4d4f;
    font-size: 26px;
    line-height: 1;
}

.pos-cart-footer {
    padding: 12px 16px 16px;
    border-top: 1px solid #333;
}

.pos-cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: bold;
}

.pos-cart-toggle,
.pos-cart-close {
    display: none;
}

.pos-pay-total {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
}

.pos-change {
    font-size: 20px;
    font-weight: bold;
}

/* Chek chop etiladigan yashirin iframe */
.pos-receipt-frame {
    position: fixed;
    left: -10000px;
    top: 0;
    width: 400px;
    height: 600px;
    border: 0;
}

@media (max-width: 1199.98px) {
    .pos-products {
        margin-right: 0;
    }

    .pos-cart {
        z-index: 1035;
        width: min(var(--pos-cart-width), 100%);
        transform: translateX(100%);
        transition: transform .2s;
    }

    .pos-cart.open {
        transform: none;
    }

    .pos-cart-close {
        display: inline-block;
    }

    /* Ochiq savatning "Tasdiqlash" tugmasini to'sib qo'ymasin */
    .pos-cart.open ~ .pos-cart-toggle {
        display: none !important;
    }

    .pos-cart-toggle {
        position: fixed;
        right: 16px;
        bottom: 16px;
        z-index: 1036;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 10px 16px;
        border: 0;
        border-radius: 30px;
        background: #0d6efd;
        color: #fff;
        font-size: 24px;
        box-shadow: 0 .3rem .6rem rgba(0, 0, 0, .3);
    }

    .pos-cart-toggle-count {
        font-size: 16px;
        font-weight: bold;
    }
}

@media (max-width: 991.98px) {
    .pos-cart {
        top: 60px;
    }
}
