/* Every screen: the price before the cart (price_html() in functionlist.php), the cart page below its lines
   (includes/cart.tpl), the store search's box, list and results (template/navigation.php, storesearch.js,
   includes/storesearch.tpl). mobile.css, loaded after this, adapts them to phones.
   css/style.css gives every span, small, dt, a... 14 px Arial of its own: the parts here take the size and face
   of what they are in. */

/* The price: the list price struck out, then the price with the 5% Return Customer Discount */
.price, .price s, .price b, .pricewhy { font-size: inherit; font-family: inherit; }
.price { white-space: nowrap; }
.price s { margin-right: 2px; color: #9c9588; font-weight: normal; }
.price b { color: #5fc04a; }
.pricewhy { font-size: 12px; font-weight: normal; color: #b9b09c; }

/* The cart page: Update under the lines; the coupon and UOTCash, each a field with its button, beside the sums */
#mainbody .formfieldcart { box-sizing: border-box; width: 100%; height: 34px; margin: 0; padding: 4px 9px; border: 1px solid #5a4325; border-radius: 5px;
  background: #1c140c; color: #f0e8d6; font: 14px Arial, Helvetica, sans-serif; }
#mainbody textarea.formfieldcart { height: 62px; resize: vertical; }
#mainbody .formfieldcart:focus, .cartform .formfieldsmall:focus { border-color: #dba843; outline: 0; box-shadow: 0 0 0 1px #dba843; }
#mainbody .formfieldcart::placeholder { color: #8a8070; }
.cartform .formfieldsmall { box-sizing: border-box; width: 38px; height: 30px; margin: 0; padding: 2px; border: 1px solid #5a4325; border-radius: 5px;
  background: #1c140c; color: #f0e8d6; text-align: center; }
.cartform > table td { padding: 4px 3px; }
.cartupdate { text-align: right; }
.cartfoot, .cartfoot label, .cartfoot small, .cartfoot dt, .cartfoot dd, .cartfoot button, .cartdetails label { font-size: inherit; font-family: inherit; }
.cartfoot { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; margin: 14px 6px 6px; }
.cartcodes { flex: 0 1 240px; }
.cartcode { margin-bottom: 12px; }
.cartcode label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: bold; color: #b9b09c; }
.cartcode small { display: block; margin-top: 4px; font-size: 12px; color: #b9b09c; }
.cartcode small.cartwarn { color: #f0a26a; }
.joinfield { display: flex; }
#mainbody .joinfield .formfieldcart { flex: 1 1 auto; min-width: 0; border-right: 0; border-radius: 5px 0 0 5px; }
.joinfield > button { flex: 0 0 auto; padding: 0 14px; border: 1px solid #dba843; border-radius: 0 5px 5px 0; background: #dba843; color: #1a1206;
  font-size: 13px; font-weight: bold; cursor: pointer; }
.joinfield > button:hover { background: #ecbb58; }
.joinfield > button:focus-visible { outline: 2px solid #6cc3da; outline-offset: 1px; }
.cartsums { flex: 0 1 250px; margin: 0; }
.cartsums > div { display: flex; justify-content: space-between; gap: 14px; padding: 3px 0; color: #d0d0d0; }
.cartsums dd { margin: 0; white-space: nowrap; }
.cartsums .sumsave { color: #5fc04a; }
.cartsums .sumtotal { margin-top: 5px; padding-top: 7px; border-top: 1px solid #5a4325; font-size: 18px; font-weight: bold; color: #fff; }

/* The details form: each label beside its field */
.cartdetails { display: block; max-width: 430px; margin: 12px 6px 0; }
.cartdetails #catname { display: block; margin-bottom: 10px; }
.cartfield { display: grid; grid-template-columns: 130px 1fr; align-items: center; margin-bottom: 8px; }
.cartfield label { color: #fff; }
.cartgo { margin: 16px 0 6px; text-align: center; }

/* The store search box, first in the left column: the field with its button, and under it the list of matches
   that storesearch.js fills as the customer types (wider than the column: it lies over the page) */
.sidesearch { padding-top: 8px; padding-bottom: 6px; }
.sidesearch form { margin: 0; }
.sidesearch .ssearch-box { position: relative; }
.sidesearch .formfield { flex: 1 1 auto; box-sizing: border-box; width: auto; min-width: 0; height: 32px; margin: 0; padding: 4px 8px; border: 1px solid #5a4325; border-right: 0;
  border-radius: 5px 0 0 5px; background: #1c140c; color: #f0e8d6; font: 14px Arial, Helvetica, sans-serif; -webkit-appearance: none; appearance: none; }
.sidesearch .formfield:focus { border-color: #dba843; outline: 0; }
.sidesearch .formfield::placeholder { color: #8a8070; }
.sidesearch .joinfield > button { padding: 0 11px; }
.sidesearch .ssearch-results { position: absolute; z-index: 300; top: 100%; left: 0; width: 400px; max-height: 70vh; margin-top: 6px; overflow-y: auto;
  border: 1px solid #5a4325; border-radius: 8px; background: #17110a; box-shadow: 0 14px 34px rgba(0, 0, 0, .7); text-align: left; }
.sidesearch .ssearch-results[hidden] { display: none; }
.sidesearch .ssearch-results * { font-size: inherit; font-family: inherit; }
.sidesearch .ss-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 14px; border-bottom: 1px solid #2a2014;
  color: #efe6d2; font-size: 14px; line-height: 1.3; text-decoration: none; }
.sidesearch .ss-row:hover, .sidesearch .ss-row:focus { background: #261c0f; outline: 0; }
.sidesearch .ss-row img { flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; }
.sidesearch .ss-name { flex: 1 1 auto; min-width: 0; color: #efe6d2; }
.sidesearch .ss-name b { color: #e7c77a; }
.sidesearch .ss-price { flex: 0 0 auto; font-weight: bold; color: #5fc04a; }
.sidesearch .ss-kind { flex: 0 1 auto; max-width: 48%; overflow: hidden; font-size: 12px; color: #a39881; text-overflow: ellipsis; white-space: nowrap; }
.sidesearch .ss-cat::before { content: ""; flex: 0 0 40px; height: 40px; border-radius: 8px;   /* where an item has its picture */
  background: #2a2014 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dba843' stroke-width='2'%3E%3Crect x='4' y='4' width='6.5' height='6.5' rx='1.5'/%3E%3Crect x='13.5' y='4' width='6.5' height='6.5' rx='1.5'/%3E%3Crect x='4' y='13.5' width='6.5' height='6.5' rx='1.5'/%3E%3Crect x='13.5' y='13.5' width='6.5' height='6.5' rx='1.5'/%3E%3C/svg%3E") 50% / 20px no-repeat; }
.sidesearch .ss-all { display: block; width: 100%; min-height: 44px; padding: 0 14px; border: 0; background: none; color: #6cc3da; font-size: 14px; font-weight: bold; text-align: left; cursor: pointer; }
.sidesearch .ss-all:hover, .sidesearch .ss-all:focus { background: #261c0f; outline: 0; }
.sidesearch .ss-note { margin: 0; padding: 14px; color: #cfc8ba; font-size: 14px; line-height: 1.45; }

/* The results page (includes/storesearch.tpl): its own field, the matching categories, what was found; the rows
   are the category list's */
.resultsearch { max-width: 380px; margin: 8px 6px 14px; }
.resultcats, .resultsay, .resultcats b, .resultcats a { font-size: inherit; font-family: inherit; }
.resultcats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 6px 12px; color: #b9b09c; font-size: 13px; }
.resultcats a { padding: 5px 11px; border: 1px solid #5a4325; border-radius: 999px; background: #1c140c; color: #efe6d2; text-decoration: none; }
.resultcats a:hover { border-color: #dba843; }
.resultsay { margin: 0 6px 12px; color: #d0d0d0; font-size: 14px; line-height: 1.45; }
