/* Wave 2 phone baseline: search page, orders table, login popup close button, cart tap targets, error links.
   Functional and accessibility fixes only; colours and fonts come from the existing theme. */

/* Search page header (views/search/index.php) */
.dcSearchHead{max-width:960px;margin:0 auto;padding-top:20px;padding-bottom:10px}
.dcSearchPageForm{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.dcSearchPageForm label{flex:0 0 100%;margin:0;font-weight:700}
.dcSearchPageForm input[type=search]{flex:1 1 200px;min-width:0;min-height:44px;padding:0 12px;font-size:16px;border:1px solid rgba(26,26,26,.3);background:#fff;color:#1a1a1a}
.dcSearchPageForm input[type=search]::placeholder{color:#5a5a5a;opacity:1}
.dcSearchPageForm button{min-height:44px;min-width:44px;padding:0 20px;cursor:pointer;background:#fff;color:#1a1a1a;border:1px solid #fff;font-weight:700}
.dcSearchPageForm button:hover,.dcSearchPageForm button:focus{background:#e4e4e4}
/* #887: the page is dark grey with light text (.dcSearchHead below); the field and the button inherited that light text on their own light backgrounds, so typed words and the Search label were unreadable. They now set their own colours. */
.dcSearchHead,.dcSearchHead label,.dcSearchCount,.dcSearchNote{color:#fefefe}
.dcSearchCount{margin:12px 0 0;font-weight:700}
.dcSearchNote{margin:12px 0 0}
.dcSearchNote a{color:#fefefe;text-decoration:underline}
.dcSearchNote a:hover,.dcSearchNote a:focus{color:#fff}
.esresultDisplay,.esresultDisplay .noMatches{color:#1a1a1a}
.esresultDisplay .noMatches{padding:10px;grid-column:1 / -1}

/* Orders table (views/order/orderhistory.php): scroll inside the table, never the page */
.dcTableRegion{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.dcTableRegion:focus{outline:2px solid #5369d9;outline-offset:2px}
.dcTableRegion table{margin-bottom:0}
/* Cause of the sideways page scroll at 390px: the Detail icon (.eye-solid3.icon) is position:absolute and its containing
   block was the page, not the scrolling region, so overflow-x:auto did not clip it and it stuck out 44px past the screen.
   Making the region and its cells the containing block keeps it inside the scroller. */
.dcTableRegion{position:relative}
.dcTableRegion th,.dcTableRegion td{position:relative}

/* Login popups (views/site/_popupclose.php) */
.loginPopup .loginCnt .dcPopupClose{position:absolute;top:0;right:0;width:44px;height:44px;padding:0;border:0;background:transparent;color:#1a1a1a;font-size:28px;line-height:44px;text-align:center;cursor:pointer}
.loginPopup .loginCnt .dcPopupClose:focus{outline:2px solid #5369d9;outline-offset:-2px}

/* Error pages (views/site/_errorlinks.php) */
.dcErrorLinks a{text-decoration:underline}

/* Cart lines (views/cart/viewcart.php) */
.cartListWrap ul li .titleLink{overflow-wrap:anywhere;word-break:break-word;white-space:normal}
/* Product names are shown in full and wrap, in the cart, the availability list and the checkout summary (#140) */
.cartListWrap ul li.cartDesc{min-width:0;overflow-wrap:anywhere}
.cartSummaryWrap>li ul li{overflow-wrap:anywhere;word-break:break-word;vertical-align:top}
/* A refused coupon is always the error colour, whatever else the span carries (#140) */
#couponmsg.couponmsg.notvalid{color:#e01352}
#couponmsg.couponmsg.valid:not(.notvalid){color:#12b38f}
/* the code typed in the coupon box turns the error colour when the code is refused (it is green by default) */
.couponWrap input[type=text].notvalid{color:#e01352}
.dcMoneyRaw{display:none}
.cartListWrap ul li.cartQty button.qtyBtn{height:44px;width:44px;display:inline-block;padding:0;cursor:pointer;background:transparent;border:1px solid rgba(26,26,26,.1);text-align:center;line-height:42px;font-size:inherit;color:inherit}
.cartListWrap ul li.cartQty input{height:44px;width:36px;top:-2px}
/* Minimum-quantity note (#156): its own full-width row under the - input + controls, never a flex sibling that squeezes them */
.cartListWrap ul li.cartQty{flex-wrap:wrap}
.cartListWrap ul li.cartQty button.qtyBtn,.cartListWrap ul li.cartQty input{flex:0 0 auto}
.cartListWrap ul li.cartQty span.limitBelowofmoq{flex:0 0 100%;width:100%;position:static;margin-top:4px;line-height:1.3}
/* 44px tap area around the 16px icons: padding grows the box, the sprite stays in the content box */
.cartListWrap ul li.cartAction button{box-sizing:content-box;padding:14px;height:16px;width:16px;margin:0;background-origin:content-box;background-clip:content-box}
.cartListWrap ul li.cartAction{flex-wrap:wrap}
.cartListWrap ul li button:focus-visible{outline:2px solid #5369d9;outline-offset:2px}
@media (max-width:480px){
  .cartListWrap ul li.cartQty{flex-basis:60%}
  .cartListWrap ul li.cartAction{flex-basis:40%;justify-content:center}
  .cartListWrap ul li.cartUnitPrice,.cartListWrap ul li.cartPrice{flex-basis:50%}
}

/* Digital invoice (views/invoice/digitalindex.php, Issue #359): the print page was a fixed 210mm (794px) wide, so a 390px phone scrolled sideways.
   Fluid below 794px; long words wrap; the PDF button and the item rows stay inside the screen. A4 print width is unchanged on a wide screen. */
.dcInvoiceFluid{max-width:100%}
@media (max-width:793px){
  .dcInvoiceFluid.printWrap{width:auto;max-width:100%;box-sizing:border-box;padding-left:8px;padding-right:8px}
  .dcInvoiceFluid .printInvoice{max-width:100%;overflow-wrap:anywhere;word-wrap:break-word}
  .dcInvoiceFluid .printInvoice img{max-width:100%;height:auto}
  .dcInvoiceFluid .dcInvTitle{text-align:left}
}
/* Phone invoice (Issue #440): under 768px long text wraps (company address, headings, the thank-you banner) and only the line-items table scrolls
   sideways inside its own box, with a visible 'scroll' line above it. Not while the PDF is drawn (.dcPrintA4) and not on print or desktop. */
.dcInvScrollHint{display:none}
@media screen and (max-width:767px){
  .dcInvoiceFluid:not(.dcPrintA4) .printInvoice h4,.dcInvoiceFluid:not(.dcPrintA4) .printInvoice h5,.dcInvoiceFluid:not(.dcPrintA4) .printInvoice h6,.dcInvoiceFluid:not(.dcPrintA4) .printInvoice address,.dcInvoiceFluid:not(.dcPrintA4) .printInvoice p{white-space:normal;overflow-wrap:anywhere;word-break:break-word}
  .dcInvoiceFluid:not(.dcPrintA4) .printInvoice h4.pfd{font-size:18px}
  .dcInvoiceFluid:not(.dcPrintA4) .dcInvScroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .dcInvoiceFluid:not(.dcPrintA4) .dcInvTable{min-width:480px}
  .dcInvoiceFluid:not(.dcPrintA4) .dcInvScrollHint{display:block;margin:0 0 6px;font-size:12px;color:#666}
}
/* PDF download (printreceipt() adds .dcPrintA4 while drawing) and Ctrl+P keep the A4 layout, whatever the screen width:
   210mm wide and the original column widths, so the phone layout above never reaches the PDF */
.dcInvoiceFluid.dcPrintA4{width:210mm !important;max-width:none !important;padding-left:0;padding-right:0}
.dcPrintA4 .dcInvTitle{text-align:right;width:25% !important}
.dcPrintA4 .dcInvLogo,.dcPrintA4 .dcInvSno{width:8.3333% !important}
.dcPrintA4 .dcInvHead{width:66.6667% !important}
.dcPrintA4 .dcInvMeta{width:25% !important}
.dcPrintA4 .dcInvBill{width:50% !important}
.dcPrintA4 .dcInvBillIn{width:83.3333% !important}
.dcPrintA4 .dcInvProd{width:41.6667% !important}
@media print{
  .dcInvoiceFluid.printWrap{width:210mm;max-width:none;padding-left:0;padding-right:0}
  .dcInvoiceFluid .dcInvTitle{text-align:right;width:25%}
  .dcInvoiceFluid .dcInvLogo,.dcInvoiceFluid .dcInvSno{width:8.3333%}
  .dcInvoiceFluid .dcInvHead{width:66.6667%}
  .dcInvoiceFluid .dcInvMeta{width:25%}
  .dcInvoiceFluid .dcInvBill{width:50%}
  .dcInvoiceFluid .dcInvBillIn{width:83.3333%}
  .dcInvoiceFluid .dcInvProd{width:41.6667%}
}
/* Download File button in My orders detail (views/order/orderdetailforbuyer.php): a phone-sized tap target */
.dcDownloadBtn{display:inline-block;min-height:44px;line-height:44px;padding:0 20px;margin:8px 0}
/* Shop landing (views/shop/index.php): the promotion banner titles are h2 (the page has one h1; Issue #194 R1-41), styled as the h1 they were */
.bannerWithTxt li.descWrap .desCnt h2{font-family:"Libre Baskerville";text-transform:capitalize;font-size:1.5em;letter-spacing:0.033em;padding:0;line-height:1.5}
