/* The cart sheet (the mini cart): #myModal.cartsheet, printed by floathead.php, filled by getFullCart()
   (functionfile.php), kept current by js/uoitems.js. Here: a drawer on the right edge, on every screen.
   mobile.css turns it into a sheet that rises from the foot of the screen on phones. */
.cartsheet { z-index: 5100; }                               /* above the fixed header (5000) */
body.cartsheet-open .modal-backdrop { z-index: 5050; }      /* the header dims with the page */
.cartsheet.fade .modal-dialog { position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 100%; margin: 0;
  -webkit-transform: translateX(100%); transform: translateX(100%); transition: transform .22s ease-out; }
.cartsheet.in .modal-dialog { -webkit-transform: none; transform: none; }
.cartsheet .modal-content { display: flex; flex-direction: column; height: 100%; border: 0; border-radius: 0;
  box-shadow: -10px 0 30px rgba(28, 51, 68, .22); }
.cartsheet .modal-header { flex: 0 0 auto; padding: 14px 16px; border-bottom: 1px solid #dde3e8; }
.cartsheet .modal-title { font-size: 18px; font-weight: bold; color: #1c3344; }
.cartsheet .close { width: 32px; height: 32px; margin: -4px -6px 0 0; font-size: 28px; line-height: 28px; opacity: .6; }
.cartsheet .modal-body { flex: 1 1 auto; overflow-y: auto; padding: 0 16px 16px; color: #26333f; }
#minicartbody.busy { opacity: .5; pointer-events: none; }

.mc-lines { list-style: none; margin: 0; padding: 0; }
.mc-line { display: grid; grid-template-columns: 1fr auto 30px; grid-template-areas: "name name del" "qty price price";
  gap: 8px 10px; align-items: center; padding: 14px 0; border-bottom: 1px solid #e6eaee; }
.mc-name { grid-area: name; font-size: 15px; font-weight: bold; line-height: 1.3; color: #1c3344; }
.mc-qty { grid-area: qty; display: inline-flex; align-items: center; width: -webkit-max-content; width: max-content;
  border: 1px solid #c5ced6; border-radius: 8px; overflow: hidden; color: #1c3344; }
.mc-qty .mc-step { width: 40px; height: 40px; padding: 0; border: 0; background: #fff; font-size: 20px; line-height: 1; color: #1c3344; }
.mc-qty .mc-step:hover { background: #eef2f5; }
.mc-qty input[type=text] { width: 44px; height: 40px; padding: 0; border: 0; border-left: 1px solid #c5ced6; border-right: 1px solid #c5ced6;
  border-radius: 0; text-align: center; font-size: 16px; color: #1c3344; }
.mc-price { grid-area: price; justify-self: end; font-size: 16px; font-weight: bold; color: #1c3344; }
.mc-line .miniremoveitem { grid-area: del; justify-self: end; width: 30px; height: 30px; border-radius: 50%; font-size: 24px;
  line-height: 28px; text-align: center; text-decoration: none; color: #6b7a88; }
.mc-line .miniremoveitem:hover { background: #eef2f5; color: #1c3344; }

.mc-sums { margin: 14px 0 16px; }
.mc-sums > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 15px; color: #4a5a68; }
.mc-sums dt { font-weight: normal; }
.mc-sums dd { margin: 0; white-space: nowrap; }
.mc-sums .mc-save { color: #1a7a3c; }
.mc-sums .mc-total { margin-top: 8px; padding-top: 12px; border-top: 1px solid #c5ced6; font-size: 19px; font-weight: bold; color: #1c3344; }
.mc-sums .mc-total dt { font-weight: bold; }
.mc-checkout { display: block; padding: 14px; border-radius: 10px; background: #1a7f3e; color: #fff; font-size: 17px; font-weight: bold;
  text-align: center; text-decoration: none; }
.mc-checkout:hover, .mc-checkout:focus { background: #156a33; color: #fff; text-decoration: none; }
.mc-keep { display: block; width: 100%; margin-top: 6px; padding: 12px; border: 0; background: none; font-size: 15px; color: #38627b; }
.mc-keep:hover { text-decoration: underline; }
.mc-empty { padding: 48px 8px; text-align: center; font-size: 15px; color: #4a5a68; }
.mc-empty p:first-child { font-size: 18px; font-weight: bold; color: #1c3344; }
.mc-step:focus-visible, .mc-qty input:focus-visible, .miniremoveitem:focus-visible, .mc-checkout:focus-visible, .mc-keep:focus-visible {
  outline: 2px solid #38627b; outline-offset: 2px; }
.btn.added, .btn.added:hover, .btn.added:focus { background: #1c3344; border-color: #1c3344; background-image: none; color: #fff; }  /* an Add To Cart button just used */
@media (prefers-reduced-motion: reduce) { .cartsheet.fade .modal-dialog { transition: none; } }
