/*
 * Lock the admin chrome to the viewport while POS is open.
 */
body:has(.pos-page) {
    overflow: hidden !important;
    height: 100dvh;
    max-height: 100dvh;
    background-color: #f4f7fa; /* Premium soft background */
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
body:has(.pos-page) .page {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0 !important;
    overflow: hidden;
    justify-content: flex-start;
}
body:has(.pos-page) .footer {
    display: none !important;
}
body:has(.pos-page) .main-content.app-content {
    flex: none !important;
    height: calc(100dvh - 4.25rem) !important;
    max-height: calc(100dvh - 4.25rem) !important;
    min-height: 0 !important;
    margin-block-start: 4.25rem !important;
    margin-block-end: 0 !important;
    padding-block: 0 !important;
    display: flex !important;
    flex-direction: column;
    overflow: hidden !important;
    box-sizing: border-box;
}
body:has(.pos-page) .main-content.app-content > .container-fluid {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-block: 0 !important;
}
body:has(.pos-page) .admin-page {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-block: 1rem !important;
    padding-inline: 1.25rem;
    box-sizing: border-box;
    background: #f4f7fa; /* Matches body */
}
body:has(.pos-page) .admin-page > * {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pos-page.admin-page-shell {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    margin-bottom: 0;
}
.pos-page .admin-page-header {
    flex-shrink: 0;
    margin-bottom: 0.75rem;
    background: transparent;
}
.pos-page .admin-breadcrumb {
    flex-shrink: 0;
    margin-bottom: 0.2rem;
}
.pos-page .admin-page-title { margin-bottom: 0; font-size: 1.5rem; font-weight: 800; color: #1e293b; letter-spacing: -0.02em; }
.pos-page .admin-page-subtitle { margin-bottom: 0; font-size: 0.9rem; color: #64748b; font-weight: 500; }

.pos-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

/* Custom Scrollbar for POS */
.pos-product-grid::-webkit-scrollbar,
.pos-lines::-webkit-scrollbar {
    width: 8px; /* Slightly wider to be more prominent */
}
.pos-product-grid::-webkit-scrollbar-track,
.pos-lines::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.6); /* Visible track */
    border-radius: 10px;
}
.pos-product-grid::-webkit-scrollbar-thumb,
.pos-lines::-webkit-scrollbar-thumb {
    background-color: rgba(100, 116, 139, 0.7); /* More opaque thumb */
    border-radius: 10px;
    border: 2px solid rgba(226, 232, 240, 0.6); /* Creates a padded effect */
}
.pos-product-grid::-webkit-scrollbar-thumb:hover,
.pos-lines::-webkit-scrollbar-thumb:hover {
    background-color: rgba(71, 85, 105, 0.9);
}

/* Toasts */
.pos-toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    animation: slideInDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.pos-toast-success { background: linear-gradient(135deg, #059669 0%, #10b981 100%); }
.pos-toast-error { background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%); }
.pos-toast-icon {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: grid; place-items: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

/* Checkout Bar */
.pos-checkout-bar {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: stretch;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
    position: relative;
    z-index: 5;
}

.pos-checkout-bar-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    border-right: 1px solid #f1f5f9;
    padding-right: 1.25rem;
}

.pos-checkout-bar-right {
    min-width: 0;
    display: flex;
    align-items: center;
    position: relative;
}

.pos-mode-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.6rem;
}
.pos-mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.pos-mode-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    border: 2px solid transparent;
    background: #f8fafc;
    text-align: left;
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    margin-bottom: 0;
}
.pos-mode-btn:hover { background: #f1f5f9; }
.pos-mode-btn.is-active {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}
.pos-mode-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.pos-mode-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
}
.pos-mode-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
}
.pos-mode-btn.is-active .pos-mode-radio {
    border-color: #3b82f6;
    background: #3b82f6;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}
.pos-mode-btn.is-active .pos-mode-radio::after {
    background: #fff;
}
.pos-mode-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}
.pos-mode-text strong { font-size: 0.9rem; font-weight: 700; color: #0f172a; }
.pos-mode-text small { font-size: 0.75rem; color: #64748b; font-weight: 500; }

/* Guest Banner */
.pos-guest-banner {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    color: #334155;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.5);
}
.pos-guest-banner > i { color: #64748b; font-size: 1.5rem; }

/* Lookup */
.pos-lookup { width: 100%; position: relative; }
.pos-lookup-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    width: 100%;
}
.pos-lookup-row .btn {
    border-radius: 12px;
    height: 48px;
    min-width: 6rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
    transition: all .2s ease;
}
.pos-lookup-row .btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(59, 130, 246, 0.3);
}
.pos-lookup-error {
    margin-top: 0.5rem;
    color: #e11d48;
    font-size: 0.85rem;
    font-weight: 500;
}
.pos-lookup-search .form-control {
    height: 48px;
    border-radius: 12px;
    background: #f8fafc;
    border: 2px solid transparent;
    padding-left: 2.75rem;
    font-size: 0.95rem;
    transition: all .2s ease;
}
.pos-lookup-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none;
}
.pos-lookup-search .form-control:focus {
    background: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.pos-lookup-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.5rem);
    max-height: min(300px, 40vh);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15);
    z-index: 20;
}
.pos-lookup-item {
    text-align: left;
    border: 1px solid transparent;
    background: #fff;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all .15s ease;
}
.pos-lookup-item:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
}
.pos-lookup-item-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 600;
}
.pos-lookup-item-meta {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.2rem;
}

/* Customer Card */
.pos-customer-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border: 1px solid #bfdbfe;
    min-width: 0;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.7);
}
.pos-customer-avatar {
    width: 48px; height: 48px; border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 800; font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}
.pos-customer-info { flex: 1; min-width: 0; }
.pos-customer-name {
    font-weight: 800;
    color: #0f172a;
    font-size: 1.1rem;
}
.pos-type-badge {
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.35rem 0.6rem;
}
.pos-customer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.85rem;
    font-size: 0.8rem;
    color: #475569;
    margin-top: 0.35rem;
    font-weight: 500;
}
.pos-customer-meta i { margin-right: 0.25rem; opacity: 0.8; }
.pos-meta-sep { color: #cbd5e1; }
.pos-wallet { color: #059669; font-weight: 700; background: #d1fae5; padding: 0.15rem 0.5rem; border-radius: 6px; }

.pos-price-chip {
    flex-shrink: 0;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* Layout */
.pos-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 1.25rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.pos-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.02);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    height: 100%;
}

.pos-panel-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
    flex-shrink: 0;
}

/* Search */
.pos-search {
    position: relative;
    flex: 1;
    min-width: 0;
}
.pos-search > i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 1.1rem;
}
.pos-search .form-control {
    padding-left: 2.75rem;
    border-radius: 12px;
    border: 2px solid transparent;
    background: #f8fafc;
    height: 48px;
    font-size: 0.95rem;
    transition: all .2s ease;
}
.pos-search .form-control:focus {
    background: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Product Grid */
.pos-product-grid {
    padding: 1.25rem;
    overflow-y: scroll; /* ALWAYS SCROLL AS REQUESTED */
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

.product-tile {
    width: 100%;
    height: 100%;
    text-align: left;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all .25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.product-tile:hover:not(:disabled) {
    transform: translateY(-4px) scale(1.01);
    border-color: #93c5fd;
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.15), 0 8px 10px -6px rgba(37, 99, 235, 0.1);
}
.product-tile:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}
.product-tile:disabled,
.product-tile.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(100%);
}
.product-tile-img {
    height: 120px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    color: #cbd5e1;
    font-size: 2rem;
    border-bottom: 1px solid #f1f5f9;
}
.product-tile-img img {
    max-height: 100px;
    max-width: 85%;
    object-fit: contain;
    transition: transform .3s ease;
}
.product-tile:hover:not(:disabled) .product-tile-img img {
    transform: scale(1.05);
}
.product-tile-body { padding: 1rem; }
.product-tile-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.6em; /* 2 lines */
}
.product-tile-sku {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    font-weight: 500;
}
.product-tile-prices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}
.price-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.4rem 0.2rem;
    transition: all .2s ease;
}
.price-item.is-active {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}
.price-label { 
    font-weight: 800; 
    font-size: 0.65rem; 
    color: #94a3b8; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    margin-bottom: 0.15rem;
}
.price-item.is-active .price-label { color: #1d4ed8; }
.price-val { 
    font-weight: 700; 
    font-size: 0.8rem; 
    color: #475569; 
    text-align: center;
}
.price-val small {
    font-size: 0.6rem;
    color: #94a3b8;
    font-weight: 600;
}
.price-item.is-active .price-val { 
    color: #1e3a8a; 
    font-weight: 800;
}
.price-item.is-active .price-val small { color: #3b82f6; }

.product-tile-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.75rem;
}
.product-tile-pv {
    font-size: 0.8rem;
    font-weight: 800;
    color: #059669;
    display: flex;
    align-items: center;
}
.stock-pill {
    min-width: 2.5rem;
    text-align: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
.stock-pill.is-low { background: #fef3c7; color: #b45309; }

/* Cart */
.pos-cart { background: #fff; }
.pos-cart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 0.75rem;
    flex-shrink: 0;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}
.pos-cart-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}
.pos-cart-sub {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.pos-lines {
    flex: 1 1 auto;
    overflow-y: scroll; /* Add scroll here as well for large carts */
    min-height: 0;
    background: #f8fafc;
}
.pos-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: #94a3b8;
    height: 100%;
}
.pos-empty i { font-size: 3rem; margin-bottom: 1rem; color: #cbd5e1; }
.pos-empty-cart { min-height: 0; }

.pos-line-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pos-line {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    transition: background .2s ease;
}
.pos-line:hover { background: #f8fafc; }
.pos-line-info { min-width: 0; }
.pos-line-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}
.pos-line-sku { font-size: 0.75rem; color: #64748b; font-weight: 500; margin-top: 0.1rem; }
.pos-line-total {
    font-weight: 800;
    font-size: 0.95rem;
    color: #0f172a;
    min-width: 4.5rem;
    text-align: right;
}
.pos-line-remove {
    border: 0;
    background: #f1f5f9;
    color: #94a3b8;
    width: 32px; height: 32px;
    border-radius: 8px;
    display: grid; place-items: center;
    cursor: pointer;
    transition: all .2s ease;
}
.pos-line-remove:hover { background: #fee2e2; color: #e11d48; }

.pos-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.pos-qty button {
    width: 30px; height: 32px;
    border: 0; background: #f8fafc;
    color: #475569; font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .2s ease;
}
.pos-qty button:hover { background: #e2e8f0; color: #0f172a; }
.pos-qty input {
    width: 36px; height: 32px;
    border: 0; border-left: 1px solid #e2e8f0; border-right: 1px solid #e2e8f0;
    text-align: center; font-size: 0.9rem; font-weight: 700; color: #0f172a;
    outline: none;
}
.pos-qty input:focus { background: #eff6ff; }

.pos-cart-foot {
    padding: 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    flex-shrink: 0;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.02);
}
.pos-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
}
.pos-total-main {
    color: #0f172a;
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #cbd5e1;
}
.pos-total-main small {
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
}

.pos-pay { margin-bottom: 1rem; }
.pos-pay-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.5rem;
}
.pos-pay-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.pos-pay-toggle.is-member {
    grid-template-columns: 1fr 1fr;
}
.pos-pay-toggle .pos-pay-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #cbd5e1 !important;
    background: #ffffff !important;
    border-radius: 12px;
    padding: 0.7rem 0.45rem;
    font-weight: 700;
    font-size: 0.88rem;
    color: #0f172a !important;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: none !important;
}
.pos-pay-toggle .pos-pay-btn i {
    color: inherit !important;
    opacity: 1 !important;
}
.pos-pay-toggle .pos-pay-btn:hover:not(:disabled):not(.is-active) {
    border-color: #94a3b8 !important;
    background: #f1f5f9 !important;
    color: #0f172a !important;
}
.pos-pay-toggle .pos-pay-btn:disabled,
.pos-pay-toggle .pos-pay-btn.is-disabled {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
    opacity: 1;
}
.pos-pay-toggle .pos-pay-btn.is-active,
.pos-pay-toggle .pos-pay-btn.is-active:hover:not(:disabled) {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.28) !important;
}
.pos-pay-toggle .pos-pay-btn.is-active i {
    color: #ffffff !important;
}
.pos-pay-hint {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: #64748b;
}
.pos-pay-hint.is-warn { color: #b45309; }
.pos-gift-input {
    margin-top: 0.5rem;
}
.pos-gift-input .form-control {
    border-radius: 10px;
    height: 40px;
    border-color: #e2e8f0;
}

.pos-checkout-btn {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 1rem;
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
    cursor: pointer;
    transition: all .2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.pos-checkout-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}
.pos-checkout-btn:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 0 5px 10px -5px rgba(37, 99, 235, 0.4);
}
.pos-checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    background: #94a3b8;
}

@media (max-width: 1100px) {
    .pos-checkout-bar { grid-template-columns: 1fr; }
    .pos-layout {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) minmax(16rem, 45%);
    }
}
