/* Root scope so nothing leaks */
.pos .pos-card {
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.06);
  padding: 12px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.pos .pos-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.10);
}

/* Use CSS Grid to visually reorder (no DOM changes) */
.pos .pos-card .shop-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-auto-rows: auto;
  grid-row-gap: 10px;
}

/* Image block – sits on top, spans both columns */
.pos .pos-card .shop-item-image {
  grid-column: 1 / -1;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

/* 4:3 media block with safe fallback */
.pos .pos-card .shop-item-image::before {
  content: "";
  display: block;
  padding-top: 75%; /* 3/4 = 75% (for old browsers) */
}
.pos .pos-card .shop-item-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Title (left) and variant select (right) on the same row */
.pos .pos-card .shop-item-title {
  grid-column: 1 / 2;
  align-self: center;
  margin: 0;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  color: #0f172a;
  text-align: left;         /* override original center */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* keep underline-free title link */
.pos .pos-card .shop-item-title .title-link { text-decoration: none; }
.pos .pos-card .shop-item-title .text { color: inherit !important; }

/* Price dropdown on the right */
.pos .pos-card select.product-variants {
  grid-column: 2 / 3;
  align-self: start;
  margin: 0;               /* overrides mt-4 visual gap */
  min-width: 140px;
  max-width: 200px;
  height: 38px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: #fff;
  color: #0f172a;
}

/* CTA row below spans both columns */
.pos .pos-card .shop-item-details {
  grid-column: 1 / -1;
}

/* Full-width Add to Cart button, brand colors */
.pos .pos-card .shop-item-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 0;
  background: #5160aa;     /* brand pink */
  color: #ffffff;          /* brand white text as requested */
  transition: filter .16s ease, transform .02s ease;
}

/* Leading "+" without changing button text in JS */
.pos .pos-card .shop-item-button::before {
  content: "+";
  display: inline-block;
  font-weight: 700;
  margin-right: 10px;
  transform: translateY(-1px);
}

/* Hover/active feedback */
.pos .pos-card .shop-item-button:hover { filter: brightness(0.96); }
.pos .pos-card .shop-item-button:active { transform: scale(0.995); }

/* Minor polish */
.pos .pos-card .title-overlay { display: none !important; } /* existing overlay hidden */
.pos .text-center.col-lg-4 { text-align: initial; } /* let our layout control alignment */
.pos .pos-card .shop-item-image   { grid-row: 1; }
.pos .pos-card .shop-item-title,
.pos .pos-card select.product-variants { grid-row: 2; }
.pos .pos-card .shop-item-details { grid-row: 3; }

/* Put title and select on the same vertical center */
.pos .pos-card .shop-item { 
  align-items: center;            /* center items in each grid row */
}

/* Title cell: turn into flex to vertically center the link/text */
.pos .pos-card .shop-item-title {
  display: flex;                  /* <-- key fix */
  align-items: center;            /* center the text vertically */
  height: 40px;                   /* same visual height as the select */
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ensure the anchor inside behaves nicely */
.pos .pos-card .shop-item-title .title-link {
  display: block;
  line-height: 3;
  text-decoration: none;
}

/* Normalize the select to align with the title */
.pos .pos-card select.product-variants {
  margin: 0 !important;           /* override Bootstrap's mt-4 from markup */
  height: 40px;
  line-height: 40px;
  padding: 4px 10px;
  align-self: center;
}

/* Let the left column shrink so text can ellipsize */
.pos .pos-card .shop-item {
  grid-template-columns: minmax(0, 1fr) auto;  /* key fix */
  grid-column-gap: 12px;
}

/* Allow overflow rules to take effect in grid */
.pos .pos-card .shop-item-title { 
  min-width: 0;                                   /* key fix */
}

/* Truncate long titles cleanly on one line */
.pos .pos-card .shop-item-title .title-link {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 40px;                               /* aligns with select height */
}

/* Keep the select compact and aligned */
.pos .pos-card select.product-variants {
  height: 40px;
  line-height: 40px;
  padding: 4px 10px;
  width: auto;                                     /* no unnecessary stretching */
}

/* Keep the price dropdown compact so the title has space */
.pos .pos-card select.product-variants {
  /* Choose one of the two approaches below */

  /* A) Fixed, compact width (simple & reliable) */
  width: 9.5ch;             /* fits e.g., "BHD 13.2" */
  min-width: 9ch;
  max-width: 12ch;

  /* B) Or: hard cap instead of ch-based
     width: 120px;
     max-width: 120px; */

  font-size: 14px;
  padding: 4px 10px;
  text-align: right;
  text-align-last: right;    /* align selected value to the right */
  margin: 0 !important;
  height: 40px;
  line-height: 40px;
}

/* On narrow screens, let it wrap below and go full width if needed */
@media (max-width: 576px) {
  .pos .pos-card .shop-item {
    grid-template-columns: 1fr;   /* stack title and select */
  }
  .pos .pos-card select.product-variants {
    width: 100%;
    max-width: 100%;
    text-align: left;
    text-align-last: left;
  }
}

/* === Price dropdown under the title (stacked layout) === */

/* Make the card body a single column so rows stack clearly */
.pos .pos-card .shop-item {
  display: grid;
  grid-template-columns: 1fr;      /* stack rows */
  grid-row-gap: 10px;
  align-items: initial;            /* let rows size naturally */
}

/* Order the sections (image → title → price → button) */
.pos .pos-card .shop-item-image   { grid-row: 1; }
.pos .pos-card .shop-item-title   { grid-row: 2; min-width: 0; }
.pos .pos-card select.product-variants {
  grid-row: 3;
  grid-column: 1 / -1;            /* span full width */
  justify-self: end;              /* sit on the right edge */
}

/* Visual polish for the dropdown pill */
.pos .pos-card select.product-variants {
  margin: 0 !important;
  height: 40px;
  line-height: 40px;
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid rgba(16,24,40,.12);
  background: #fff;
  box-shadow: 0 2px 6px rgba(16,24,40,.06);
  width: auto;                    /* shrink to fit content */
  max-width: 60%;                 /* guardrail so it never dominates */
  text-align: right;
  text-align-last: right;
}

/* Button moves one row down automatically */
.pos .pos-card .shop-item-details { grid-row: 4; }

/* Title truncation remains clean */
.pos .pos-card .shop-item-title .title-link {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.pos .pos-card .shop-item{
  display: grid;
  grid-template-columns: minmax(0,1fr) auto; /* left flexes, right fits select */
  grid-row-gap: 8px;
}

.pos .pos-card .shop-item-image  { grid-column: 1 / -1; grid-row: 1; }
.pos .pos-card .shop-item-title  { grid-column: 1 / -1; grid-row: 2; min-width: 0; }

.pos .pos-card .pos-card-meta    { grid-column: 1 / 2;  grid-row: 3; align-self: center; }
.pos .pos-card select.product-variants {
  grid-column: 2 / 3;  grid-row: 3;
  justify-self: end;   align-self: center;
  width: 130px;        height: 38px; line-height: 38px;
  padding: 4px 10px;
  margin: 0 !important;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(16,24,40,.06);
}

.pos .pos-card .shop-item-details { grid-column: 1 / -1; grid-row: 4; }

/* --- Chips --- */
.pos .pos-card .chip{
  display:inline-flex; align-items:center;
  height: 24px; padding: 0 10px;
  border-radius: 999px;
  background: #f8f9fb;
  border: 1px solid rgba(16,24,40,.08);
  font-size: 12.5px; color:#475467;
}
.pos .pos-card .chip--category{
  background: rgba(243,175,189,.12);           /* subtle brand tint */
  border-color: rgba(243,175,189,.35);
  color: #7a3447;                               /* readable over tint */
}

/* Title: two lines max (stable height) */
.pos .pos-card .shop-item-title .title-link{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  min-height: calc(1.3em * 2);
}


/* Let the price select expand to show the full value */
.pos .pos-card select.product-variants{
  width: fit-content;           /* modern browsers */
  width: -moz-fit-content;      /* Firefox fallback */
  min-width: 10ch;              /* safety for very short values */
  max-width: none;              /* remove previous 120–130px cap */
  padding: 6px 14px;            /* a bit more breathing room */
  white-space: nowrap;          /* keep value on one line */
  text-align: right;
  text-align-last: right;
}


/* Align the category chip with the title's left edge */
.pos .pos-card .pos-card-meta{
  grid-column: 1 / 2;   /* left column */
  justify-self: start;  /* pin to left edge of the column */
  align-self: start;
  margin: 0;            /* remove any accidental offset */
  padding: 0;
}

/* Ensure the title itself has no hidden left offset */
.pos .pos-card .shop-item-title,
.pos .pos-card .shop-item-title .title-link{
  margin: 0;
  padding: 0;
}

/* ========== Right Panel (Summary) ========== */
.pos .pos-summary {
  position: sticky;   /* keep on screen */
  top: 16px;
  border: 1px solid rgba(16,24,40,.08);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(16,24,40,.06);
  overflow: hidden;
}

.pos .pos-summary__title {
  padding: 14px 16px;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid rgba(16,24,40,.06);
  background: #fff;
}

/* Tighten default spacing inside the section */
.pos .pos-summary .content-section { padding: 12px 14px 16px; }

/* ========== Cart Items (inside .cart-items) ========== */
.pos .cart-items { margin-top: 6px; }

/* Make each item a soft card */
.pos .cart-items .container.pos-cart {
  background: #fff;
  border: 1px solid rgba(16,24,40,.08);
  border-radius: 12px;
  padding: 10px;
  margin: 10px 0;
  box-shadow: 0 2px 8px rgba(16,24,40,.05);
}

/* Re-layout the inner row as a grid (keep your classes) */
.pos .cart-items .container.pos-cart .row {
  display: grid !important;
  grid-template-columns: 64px 1fr auto auto; /* thumb | title | qty | remove */
  align-items: center;
  column-gap: 12px;
  margin: 0; /* override bootstrap row margins */
}

/* Make bootstrap columns transparent to our grid */
.pos .cart-items .container.pos-cart [class*="col-"] { 
  padding: 0 !important; 
}

/* Thumbnail */
.pos .pos-summary .cart-image { 
  width: 64px; height: 64px; border-radius: 10px; overflow: hidden; 
}
.pos .pos-summary .cart-image img { width: 100%; height: 100%; object-fit: cover; }

/* Title + price stack in the middle area */
.pos .pos-summary .cart-item-title {
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 2px 0;
  color: #0f172a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pos .pos-summary .cart-price {
  display: inline-block;
  font-size: 13px;
  color: #475467;
}

/* Qty controls → compact pill */
.pos .pos-summary .input-group-prepend {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f8f9fb;
  border: 1px solid rgba(16,24,40,.12);
  border-radius: 999px; padding: 2px;
}
.pos .pos-summary .cart-quantity-input {     /* +/- buttons */
  width: 28px; height: 28px; 
  border-radius: 50%;
  border: 0; background: #fff;
  box-shadow: 0 1px 3px rgba(16,24,40,.08);
  font-weight: 700;
}
.pos .pos-summary .cart-quantity-input-new { /* center number */
  width: 44px; height: 28px; 
  border: 0; background: transparent;
  font-weight: 600; font-size: 13px;
}

/* Remove button to the far right */
.pos .pos-summary .remove-cart-item {
  width: 36px; height: 36px;
  border-radius: 10px; border: 1px solid rgba(16,24,40,.12);
  background: #fff;
}

/* ========== Totals ========== */
.pos .totals-block { 
  background: #fff; border: 1px solid rgba(16,24,40,.08);
  border-radius: 12px; padding: 12px; margin-top: 10px;
}
.pos .totals-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; padding: 6px 0;
  border-bottom: 1px dashed rgba(16,24,40,.12);
}
.pos .totals-row:last-child { border-bottom: 0; }
.pos .totals-row .label { color: #475467; }
.pos .totals-row .value { font-weight: 600; color: #0f172a; }

/* Total (final) */
.pos .grand-total {
  display:flex; justify-content:space-between; align-items:center;
  font-weight: 700; font-size: 16px; padding: 10px 0 0;
}

/* Shipping input polish (keep functionality) */
.pos #shipping_charge {
  height: 38px; border-radius: 10px;
  border: 1px solid rgba(16,24,40,.12);
  padding: 6px 10px; width: 140px; text-align: right;
}

/* ========== Form controls on panel ========== */
.pos .pos-summary select.form-control,
.pos .pos-summary textarea.form-control,
.pos .pos-summary input.form-control {
  border-radius: 10px; border: 1px solid rgba(16,24,40,.12);
}

/* Place Order button – brand */
.pos .pos-summary #place_order_btn {
  display: block; width: 100%;
  height: 46px; border: 0;
  background: #5160aa; color: #fff; 
  border-radius: 12px;
  font-weight: 700;
}

/* Clear Cart – make it a subtle text button */
.pos .pos-summary #clear_cart_btn {
  background: transparent; border: 0; color: #475467; 
  text-decoration: underline; padding: 0;
}

/* First cart column = thumb + title side-by-side */
.pos .cart-items .container.pos-cart .col-md-4{
  display: grid !important;
  grid-template-columns: 64px 1fr;
  align-items: center;
  column-gap: 12px;
}

/* Keep the image fixed, let title take the rest */
.pos .pos-summary .cart-image{ grid-column: 1; }
.pos .pos-summary .cart-item-title{
  grid-column: 2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  color: #0f172a;
}

/* Make the trash icon visible on white */
.pos .pos-summary .remove-cart-item{
  background: #fff !important;
  border: 1px solid rgba(16,24,40,.12);
  color: #ef4444 !important;   /* text/icon color */
}
.pos .pos-summary .remove-cart-item i{
  color: inherit !important;
}

/* If you also have an edit icon button, do the same idea: */
.pos .pos-summary .edit-cart-item,
.pos .pos-summary .edit-cart-item i{
  color: #334155 !important;   /* dark gray */
}

/* 1) Hide product name entirely */
.pos .pos-summary .cart-item-title { display: none !important; }

/* 2) Map the row to: thumb | price | qty | trash */
.pos .cart-items .container.pos-cart .row{
  display: grid !important;
  grid-template-columns: 64px 1fr auto auto;
  align-items: center;
  column-gap: 12px;
}
.pos .cart-items .container.pos-cart [class*="col-"]{ padding:0 !important; }
.pos .pos-summary .cart-image{ width:64px; height:64px; border-radius:10px; overflow:hidden; }
.pos .pos-summary .cart-image img{ width:100%; height:100%; object-fit:cover; }

/* 3) Make +/- clearly visible */
.pos .pos-summary .input-group-prepend{
  display:inline-flex; align-items:center; gap:6px;
  background: transparent; border:0; padding:0;   /* remove the pale pill bg */
}

.pos .pos-summary .cart-quantity-input{          /* +/- buttons */
  width:32px; height:32px; padding:0;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:50%;
  border:1px solid rgba(16,24,40,.18);
  background:#ffffff;
  color:#0f172a;             /* visible glyph */
  font-size:18px; font-weight:700; line-height:1;
  box-shadow: 0 1px 2px rgba(16,24,40,.06);
}

.pos .pos-summary .cart-quantity-input:active{
  transform: scale(.98);
}

.pos .pos-summary .cart-quantity-input-new{      /* number in the middle */
  width:48px; height:32px; text-align:center; padding:0;
  border:1px solid rgba(16,24,40,.18);
  border-radius:999px;
  background:#f8fafc;
  color:#0f172a; font-weight:700; font-size:14px; line-height:32px;
  -moz-appearance: textfield;
}
.pos .pos-summary .cart-quantity-input-new::-webkit-outer-spin-button,
.pos .pos-summary .cart-quantity-input-new::-webkit-inner-spin-button{
  -webkit-appearance: none; margin:0;
}

/* 4) Keep trash icon visible on white */
.pos .pos-summary .remove-cart-item{
  width:36px; height:36px; border-radius:10px;
  border:1px solid rgba(16,24,40,.12); background:#fff; color:#ef4444 !important;
}
.pos .pos-summary .remove-cart-item i{ color: inherit !important; }


/* Header uses the exact grid as the item rows */
.pos .cart-header{
  display: grid !important;
  grid-template-columns: 64px 1fr auto auto; /* thumb | price | qty | trash */
  align-items: center;
  column-gap: 12px;
  padding: 6px 0 8px;
  color: #475467;
  font-weight: 600;
  font-size: 13px;
}

/* Place each label over its column */
.pos .cart-header .hdr-thumb   { grid-column: 1; }
.pos .cart-header .hdr-price   { grid-column: 2; }
.pos .cart-header .hdr-qty     { grid-column: 3; text-align: center; }
.pos .cart-header .hdr-actions { grid-column: 4; justify-self: end; }

/* Align "Item / Price / Quantity" with the cart rows */
.pos .cart-header{
  padding-left: 15px;   /* 15px (.container) + 10px (card inner pad) */
  padding-right: 14px;  /* match section right pad */
}

/* Customer block */
.pos .pos-customer{
  background:#fff; border:1px solid rgba(16,24,40,.08);
  border-radius:12px; padding:14px; margin-top:12px;
}
.pos .pos-customer__head{
  display:flex; justify-content:space-between; align-items:center; margin-bottom:8px;
}
.pos .pos-customer__head span{ font-weight:600; font-size:14px; }
.pos .pos-link-btn{
  background:transparent; border:0; color:#475467; text-decoration:underline; padding:0; font-size:13px;
}

/* Search pill with icon */
.pos .pos-input-with-icon{ position:relative; }
.pos .pos-input-with-icon i{
  position:absolute; left:12px; top:50%; transform:translateY(-50%);
  font-size:16px; color:#98a2b3; pointer-events:none;
}
.pos .pos-input-with-icon .form-control{
  height:44px; border-radius:10px; border:1px solid rgba(16,24,40,.12);
  padding-left:40px;
}

/* Divider */
.pos .pos-divider{
  display:flex; align-items:center; gap:10px; margin:10px 0; color:#98a2b3; font-size:12px;
}
.pos .pos-divider::before, .pos .pos-divider::after{
  content:""; flex:1; height:1px; background:rgba(16,24,40,.08);
}

/* Outline pink button */
.pos .btn-outline-pink{
  border:1px solid #5160aa; color:#7a3447; background:#fff;
  border-radius:10px; height:40px; padding:0 14px; font-weight:600;
}
.pos .btn-outline-pink:hover{ background:rgba(243,175,189,.08); }

/* Center the "Register" text perfectly */
.pos .btn-outline-pink{
  display: inline-flex;              /* was inline/block */
  align-items: center;               /* vertical center */
  justify-content: center;           /* horizontal center */
  height: 40px;
  line-height: 40px;                 /* extra safety */
  padding: 0 14px;                   /* keep width comfy */
  border: 1px solid #5160aa;
  color: #7a3447;
  background: #fff;
  border-radius: 10px;
  font-weight: 600;
}

/* optional: prevent baseline wobble next to text */
.pos .btn-outline-pink { vertical-align: middle; }

/* ===== Register Modal (scoped to POS) ===== */
.pos .pos-modal{
  border:1px solid rgba(16,24,40,.08);
  border-radius:16px;
  box-shadow:0 18px 40px rgba(16,24,40,.18);
  overflow:hidden;
  background:#fff;
}

/* Header */
.pos .pos-modal .modal-header{
  border:0;
  padding:16px 18px 8px;
}
.pos .pos-modal .modal-title{
  font-weight:700;
  font-size:18px;
  color:#0f172a;
}
.pos .pos-modal .close{
  font-size:28px;
  line-height:1;
  color:#475467;
  opacity:.6;
}
.pos .pos-modal .close:hover{ opacity:1; }

/* Body */
.pos .pos-modal .modal-body{ padding:8px 18px 6px; }
.pos .pos-modal label{
  font-weight:600;
  font-size:13px;
  color:#475467;
}
.pos .pos-modal .form-control{
  height:44px;
  border-radius:10px;
  border:1px solid rgba(16,24,40,.12);
  box-shadow:none;
}
.pos .pos-modal .form-control:focus{
  border-color:#5160aa;
  box-shadow:0 0 0 3px rgba(243,175,189,.25);
}

/* Submit + result */
.pos .pos-modal .btn-pink{
  display:block;
  width:100%;
  height:44px;
  border:0;
  border-radius:12px;
  background:#5160aa;
  color:#fff;
  font-weight:700;
}
.pos .pos-modal #save-register-result{
  margin-top:10px;
  font-size:13px;
}

/* Footer */
.pos .pos-modal .modal-footer{
  border:0;
  padding:10px 18px 16px;
}
.pos .pos-modal .btn-secondary{
  background:#fff;
  color:#334155;
  border:1px solid rgba(16,24,40,.18);
  border-radius:10px;
  height:40px;
}
.pos .pos-modal .btn-secondary:hover{
  background:#f8f9fb;
}

/* Stronger target so we beat Bootstrap defaults */
.modal-content.pos-modal{
  border:1px solid rgba(16,24,40,.08) !important;
  border-radius:16px !important;
  box-shadow:0 18px 40px rgba(16,24,40,.18) !important;
  overflow:hidden !important;
  background:#fff !important;
}

/* Header */
.modal-content.pos-modal .modal-header{
  border:0 !important;
  padding:16px 18px 8px !important;
}
.modal-content.pos-modal .modal-title{
  font-weight:700; font-size:18px; color:#0f172a;
}
.modal-content.pos-modal .close{
  font-size:28px; line-height:1; color:#475467; opacity:.6;
}
.modal-content.pos-modal .close:hover{ opacity:1; }

/* Body & fields */
.modal-content.pos-modal .modal-body{ padding:8px 18px 6px !important; }
.modal-content.pos-modal label{
  font-weight:600; font-size:13px; color:#475467;
}
.modal-content.pos-modal .form-control{
  height:44px; border-radius:10px; border:1px solid rgba(16,24,40,.12);
  box-shadow:none;
}
.modal-content.pos-modal .form-control:focus{
  border-color:#5160aa; box-shadow:0 0 0 3px rgba(243,175,189,.25);
}

/* Pink submit */
.btn.btn-pink{
  display:block; width:100%; height:44px;
  border:0; border-radius:12px;
  background:#5160aa; color:#fff !important; font-weight:700;
}

/* Footer */
.modal-content.pos-modal .modal-footer{
  border:0 !important; padding:10px 18px 16px !important;
}
.modal-content.pos-modal .btn.btn-secondary{
  background:#fff; color:#334155;
  border:1px solid rgba(16,24,40,.18);
  border-radius:10px; height:40px;
}
.modal-content.pos-modal .btn.btn-secondary:hover{ background:#f8f9fb; }

/* two buttons, same row */
.pos .pos-actions{
  display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:10px;
}
@media (max-width:768px){ .pos .pos-actions{ grid-template-columns:1fr; } }

/* clear = subtle */
.pos #clear_cart_btn{
  height:46px; border-radius:12px; border:1px solid rgba(16,24,40,.18);
  background:#fff; color:#344054; font-weight:700;
}
.pos #clear_cart_btn:hover{ background:#f8f9fb; }

/* place order = brand pink */
.pos #place_order_btn{
  height:46px; border-radius:12px; border:0;
  background:#5160aa; color:#fff; font-weight:700;
}
.pos #place_order_btn:hover{ filter:brightness(.96); }

/* Buttons row */
.pos .pos-actions{
  display:flex; gap:12px; margin-top:12px;
}
.pos .pos-actions .btn{
  flex:1; height:44px; border-radius:12px; font-weight:700;
}

/* Clear vs Place styles */
.pos .btn-clear_cart{
  background:#fff; border:1px solid #ef4444; color:#ef4444;
}
.pos .btn-clear_cart:hover{ background:#fff5f5; }

.pos .btn-purchase{
  background:#5160aa; border:0; color:#fff;
}
.pos .btn-purchase:hover{ filter:brightness(.96); }

@media (max-width:576px){
  .pos .pos-actions{ flex-direction:column; }
}

/* Highlight the entire right panel on hover/focus */
@media (hover: hover) {
  .pos .pos-summary{
    transition: box-shadow .2s ease, border-color .2s ease, transform .02s ease;
  }
  .pos .pos-summary:hover,
  .pos .pos-summary:focus-within{
    border-color: #5160aa;
    box-shadow:
      0 10px 28px rgba(16,24,40,.16),   /* stronger drop shadow */
      0 0 0 3px rgba(243,175,189,.25);   /* soft pink ring */
    transform: translateY(-1px);         /* tiny lift */
  }
}

/* (Optional) slightly soften the default, so the hover feels more noticeable */
.pos .pos-summary{
  box-shadow: 0 4px 18px rgba(16,24,40,.06);
  border: 1px solid rgba(16,24,40,.08);
  border-radius: 14px;
  background: #fff;
}

/* POS toolbar — light, soft card */
.pos .pos-toolbar{
  background:#fff !important;           /* override bg-dark */
  color:#0f172a !important;              /* override navbar-dark */
  border:1px solid rgba(16,24,40,.08);
  border-radius:12px;
  box-shadow:0 4px 18px rgba(16,24,40,.06);
  padding:10px 12px;
}

/* Title */
.pos .pos-toolbar__title{
  font-weight:700;
  font-size:16px;
  color:#0f172a;
}

/* Controls row */
.pos .pos-toolbar__controls{ gap:10px; }

/* Inputs with leading icons (works for select + input) */
.pos .pos-input-with-icon{ position:relative; }
.pos .pos-input-with-icon i{
  position:absolute; left:12px; top:50%; transform:translateY(-50%);
  font-size:14px; color:#98a2b3; pointer-events:none;
}
.pos .pos-input-with-icon .form-control{
  height:40px;
  border-radius:10px;
  border:1px solid rgba(16,24,40,.12);
  padding-left:36px;                      /* room for icon */
  min-width:220px;
  box-shadow:none;
}
.pos .pos-input-with-icon .form-control:focus{
  border-color:#5160aa;
  box-shadow:0 0 0 3px rgba(243,175,189,.22);
}

/* Responsive tightening */
@media (max-width: 768px){
  .pos .pos-input-with-icon .form-control{ min-width:160px; }
  .pos .pos-toolbar__controls{ width:100%; justify-content:space-between; margin-top:8px; }
}

/* Main panel title */
.pos .pos-summary__title{
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .2px;
  padding: 14px 16px 18px;
  position: relative;
}
.pos .pos-summary__title::after{
  content:"";
  position:absolute;
  left:16px; bottom:8px;
  width:44px; height:3px;
  background:#5160aa;           /* brand pink bar */
  border-radius:2px;
}

/* Section headings */
.pos .pos-section-title{
  margin: 14px 0 8px;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color:#475467;                 /* muted, distinct from content */
  display:flex; align-items:center; gap:8px;
}

/* subtle accent dot to tie with brand color */
.pos .pos-section-title::before{
  content:"";
  width:6px; height:6px; border-radius:50%;
  background:#5160aa;
  box-shadow: 0 0 0 3px rgba(243,175,189,.18);
}

/* Cart title */
.pos .cart-title{
  text-align:center;
  font-size:20px;
  font-weight:800;
  letter-spacing:.2px;
  margin: 6px 0 10px;
  color:#0f172a;
  position:relative;
}
.pos .cart-title::after{
  content:"";
  position:absolute;
  left:50%; transform:translateX(-50%);
  bottom:-6px; width:42px; height:3px;
  background:#5160aa; border-radius:2px;
}

/* Empty cart pill */
.pos .cart-empty{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(243,175,189,.10);
  border: 1px solid rgba(243,175,189,.35);
  color:#7a3447;
  font-weight:700;
  font-size:14px;
}
.pos .cart-empty::before{
  content:"•";
  color:#5160aa;
  font-size:16px;
  line-height:1;
}

/* Make each label look like a selectable chip/card */
.pos .cash_payment label,
.pos .card_payment label,
.pos .online_payment label{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  margin:8px 0;
  background:#fff;
  border:1px solid rgba(16,24,40,.12);
  border-radius:12px;
  cursor:pointer;
  user-select:none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  font-weight:700;                  /* bold like your mock */
  color:#0f172a;
}

/* nicer native radio color */
.pos .cash_payment input[type="radio"],
.pos .card_payment input[type="radio"],
.pos .online_payment input[type="radio"]{
  width:18px; height:18px;
  accent-color:#5160aa;            /* modern browsers */
}

/* hover/active */
.pos .cash_payment label:hover,
.pos .card_payment label:hover,
.pos .online_payment label:hover{
  border-color:#d0d5dd;
}

/* selected state using :has() */
.pos .cash_payment label:has(input:checked),
.pos .card_payment label:has(input:checked),
.pos .online_payment label:has(input:checked){
  border-color:#5160aa;
  box-shadow:0 0 0 3px rgba(243,175,189,.22);
  background:#fff;
  color:#7a3447;                    /* brand tint when selected */
}

/* small screen spacing */
@media (max-width:576px){
  .pos .cash_payment label,
  .pos .card_payment label,
  .pos .online_payment label{ padding:10px; }
}

/* Lighter payment labels */
.pos .cash_payment label,
.pos .card_payment label,
.pos .online_payment label{
  font-weight: 500;                 /* was 700 */
  color: #475467;                   /* softer gray */
}

/* Selected state: tint, but still light */
.pos .cash_payment label:has(input:checked),
.pos .card_payment label:has(input:checked),
.pos .online_payment label:has(input:checked){
  color: #7a3447;                   /* brand tint */
  font-weight: 600;                 /* still lighter than before */
  border-color: #5160aa;
  box-shadow: 0 0 0 3px rgba(243,175,189,.18);
}

/* Optional: slightly lighter radio accent */
.pos .cash_payment input[type="radio"],
.pos .card_payment input[type="radio"],
.pos .online_payment input[type="radio"]{
  accent-color: #eeb2c0;            /* softer pink */
}

/* 1) Remove the group highlight around the whole row */
.pos .transaction_id,
.pos .transaction_id:focus-within{
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* 2) Highlight the INPUT only */
.pos #transaction_id.form-control{
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(16,24,40,.12);
  transition: box-shadow .15s ease, border-color .15s ease;
}

.pos #transaction_id.form-control:focus{
  border-color: #5160aa !important;
  box-shadow: 0 0 0 3px rgba(243,175,189,.25) !important;
  outline: 0;
}


/* Product title – refined, 2-line clamp, brand hover */
.pos .pos-card .shop-item-title{
  margin: 10px 0 6px;
}

.pos .pos-card .shop-item-title .title-link{
  display: -webkit-box;                 /* clamp to 2 lines */
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: .2px;

  color: #0f172a;                       /* neutral dark */
  text-decoration: none;
  transition: color .15s ease, background-size .15s ease;
  background-image: linear-gradient(#5160aa,#5160aa);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;              /* subtle underline on hover */
}

/* remove the old hacky tall line-height if present */
.pos .pos-card .shop-item-title .title-link { line-height: 1.25 !important; }

/* override Bootstrap’s .text-dark that’s inside your <b class="text text-dark"> */
.pos .pos-card .shop-item-title .text.text-dark{ color:#0f172a !important; font-weight:700; }

/* hover / focus: brand tint + underline grows */
.pos .pos-card .shop-item-title .title-link:hover,
.pos .pos-card .shop-item-title .title-link:focus{
  color:#7a3447 !important;             /* brand ink */
  background-size: 100% 2px;
}

/* keep spacing tight before the meta (category + price row) */
.pos .pos-card .pos-card-meta{ margin-top: 2px; }

/* POS pagination – brand styled */
.pos .pagination {
  gap: 6px;                      /* space between pills */
}

.pos .pagination .page-link {
  color: #7a3447;                /* brand ink */
  background: #fff;
  border: 1px solid rgba(16,24,40,.12);
  border-radius: 10px;
  padding: 6px 12px;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(16,24,40,.06);
}

.pos .pagination .page-link:hover {
  color: #7a3447;
  background: rgba(243,175,189,.08);
  border-color: #5160aa;
  text-decoration: none;
}

.pos .pagination .page-link:focus {
  box-shadow: 0 0 0 3px rgba(243,175,189,.22);
}

.pos .pagination .page-item.active .page-link {
  color: #fff;
  background: #5160aa;
  border-color: #5160aa;
  box-shadow: 0 0 0 3px rgba(243,175,189,.22);
}

.pos .pagination .page-item.disabled .page-link {
  color: #98a2b3;
  background: #f9fafb;
  border-color: rgba(16,24,40,.08);
  box-shadow: none;
  cursor: not-allowed;
}

/* Optional: shrink the ellipsis pill a bit */
.pos .pagination .page-item.disabled .page-link span {
  padding: 0 4px;
}
  #customizeModal .form-check-input { position: static; margin-right: .5rem; }
  #customizeModal .form-check-label { font-size: .95rem; font-weight: 400; }