/* MPI Bookstore look on top of Responsive Classic.
   Loaded last from common/html_header.php so it overrides stylesheet*.css and responsive_*.css. */

body {font-size:76%;color:#000;background:#fff;}
#mainWrapper {background:#fff;}

a:link, a:visited, #navEZPagesTOC ul li a {color:#3300ff;text-decoration:none;}
a:hover, #navEZPagesTOC ul li a:hover, #navSupp ul li a:hover {color:#f00;text-decoration:underline;}
a:active {color:#00f;}

/* ---- header: 750x90 logo, left, over a tiling gradient; links on a blue tab under it */
#headerWrapper {position:relative;display:flex;flex-direction:column;}
#logoWrapper {order:-1;background:url(../images/header_bg.jpg) repeat-x;}
#logo {float:none;margin:0;text-align:left;}
#logo img {display:block;margin:0;max-width:100%;height:auto;}
#navMainWrapper {background:#3a3af0 url(../images/header_06.gif) repeat-x;background-size:auto 100%;font-weight:bold;font-size:100%;padding:0.4em 0;}
#navMain ul li a, #navMain ul li a:visited {color:#fff;text-decoration:none;}
#navMain ul li a:hover {color:#ff0;text-decoration:underline;}
#navMain ul li {border:none;}

@media (min-width:1000px) {
  #headerWrapper {min-height:126px;}
  #logoWrapper {height:90px;}
  /* stock height:1% (old IE hack) would shrink the absolute tab to 1% of the header */
  #navMainWrapper {position:absolute;top:90px;left:0;width:auto !important;height:auto;padding:0.5em 0.3em;}
  /* stock fixes #navMain top-right of the viewport and floats the list, leaving the blue tab empty */
  #navMain {position:static;}
  #navMain, #navMain ul {float:none;width:auto;margin:0;padding:0;text-align:left !important;white-space:nowrap;}
  #navMain ul li a {padding:0 0.5em;}
  /* tablets get the header search too, but it overlaps the banner; the right column has one */
  #navMainSearch, #navMainSearch1 {display:none;}
}
@media (max-width:999px) {
  /* narrow desktop window: links in a full-width bar under the banner instead of fixed top-right */
  #navMain {position:static;float:none;width:100%;}
  #navMain ul {float:none;width:100%;padding:0;text-align:center !important;}
}

/* ---- columns */
#navColumnOne, #navColumnTwo, #navColumnOneWrapper, #navColumnTwoWrapper {background:transparent;}
#navColumnOneWrapper, #navColumnTwoWrapper {margin:0 0.5em;}
#contentMainWrapper, .centerColumn, #contentColumnMain {background:#fff;}

/* ---- side boxes: plain bold headings, black rule between boxes */
.leftBoxContainer, .rightBoxContainer {margin:1.5em 0 0;border:none;border-bottom:1px solid #000;box-shadow:none;}
.rightBoxHeading, .leftBoxHeading, .centerBoxHeading {background:none;padding:0.5em 0.2em;text-align:center;}
h3.leftBoxHeading, h3.leftBoxHeading a, h3.rightBoxHeading, h3.rightBoxHeading a, h2.centerBoxHeading {font-size:1em;font-weight:bold;color:#000;text-decoration:none;}
h3.leftBoxHeading a:hover, h3.rightBoxHeading a:hover {color:#f00;text-decoration:underline;}
.sideBoxContent {background:#fff;padding:0.4em;margin-bottom:0;}
.sideBoxContent a {font-size:1em;padding:0;text-decoration:none;}
.sideBoxContentItem:hover {background:transparent;}
ul.list-links li a, ol.list-links li a {padding:0.15em 0.4em;}
ul.list-links li:hover, ol.list-links li:hover, .sideBoxContent li {background:transparent;}
#bestsellersContent ol {margin-left:2.2em;padding:0;}

/* categories box */
a.category-top, a.category-top:visited, a.category-links, a.category-links:visited {font-size:1.1em;color:#000;text-decoration:none;}
a.category-subs, a.category-products, a.category-subs:visited, a.category-products:visited {font-size:1.1em;color:#f00;text-decoration:none;}
a.category-top:hover, a.category-links:hover, a.category-subs:hover, a.category-products:hover {color:#f00;text-decoration:underline;}
span.category-subs-parent, span.category-subs-selected {font-weight:bold;}

/* ---- centre */
h1 {color:#9a9a9a;font-size:1.5em;}
#productDescription {border:1px solid #000;padding:0.5em;}
/* product grids (new/featured/specials) at normal text size, as before */
.specialsListBoxContents, .centerBoxContentsSpecials, .centerBoxContentsFeaturedCategories, .centerBoxContentsAlsoPurch, .centerBoxContentsFeatured, .centerBoxContentsNew {font-size:1em;padding:0.5em 0;margin:0.5em 0;}
.specialsListBoxContents a, .centerBoxContentsAlsoPurch a, .centerBoxContentsFeatured a, .centerBoxContentsSpecials a, .centerBoxContentsFeaturedCategories a, .centerBoxContentsNew a {font-size:1em;margin:0.2em auto;text-decoration:none;}
.centerBoxContentsNew .productBasePrice, .centerBoxContentsFeatured .productBasePrice, .centerBoxContentsSpecials .productBasePrice {color:#000;}

/* product listings: stock uses floats and a fixed 40px bar height, which overflow into the
   first product as soon as the result count or pager wraps at this font size */
#cat-top, #cat-left {float:none;width:auto;display:flow-root;}
#cat-left {text-align:left;}
#productListHeading {margin-bottom:0.5em;}
#filter-wrapper {display:flex;flex-wrap:wrap;align-items:center;gap:0.5em 1.5em;clear:both;}
#filter-wrapper form {display:flex;flex-wrap:wrap;align-items:center;gap:0.4em;margin:0;}
#filter-wrapper .inputLabel {float:none;width:auto;margin:0;padding:0;}
#filter-wrapper select {width:auto;max-width:100%;}
.prod-list-wrap {height:auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0.5em 1em;padding:0.6em 1em;}
.prod-list-wrap > div {float:none;width:auto;margin:0;}
/* stock positions the result count with per-page ID rules (width:25%;margin-left:-74%, some !important) */
#contentMainWrapper .prod-list-wrap > div {float:none !important;width:auto !important;margin:0 !important;clear:none !important;}
#contentMainWrapper .prod-list-wrap > .navSplitPagesResult {text-align:left;}
.prod-list-wrap .navSplitPagesResult {order:1;}
.prod-list-wrap .navSplitPagesLinks {order:2;}
.prod-list-wrap .button-top {order:3;}
/* pager fills the space between the result count and the button, links spread across it.
   Stock pulls .pagination up 10px and pads links 1.2em, which pokes out of the bar in Firefox */
#contentMainWrapper .prod-list-wrap > .navSplitPagesLinks {flex:1 1 18em;min-width:0;}
#contentMainWrapper .prod-list-wrap > .button-top {flex:0 1 auto;max-width:100%;overflow:visible;text-align:center;}
#contentMainWrapper .prod-list-wrap .pagination {margin:0 !important;padding:0;overflow:visible;}
#contentMainWrapper .prod-list-wrap ul.pagination {display:flex;width:100%;font-size:1em;} /* stock sets 0 for inline-block gaps */
#contentMainWrapper .prod-list-wrap ul.pagination li {flex:1 1 auto;display:block;margin:0;font-size:1em;line-height:1.3;text-align:center;}
#contentMainWrapper .prod-list-wrap ul.pagination li a, #contentMainWrapper .prod-list-wrap ul.pagination .current {display:block;padding:0.6em 0.3em;white-space:nowrap;}
/* stock button-top has width:25% / margin-right:15px / margin-top:-10px variants; the input gets 20px side padding */
#contentMainWrapper .prod-list-wrap .button-top input, #contentMainWrapper .prod-list-wrap .button-top input:hover {float:none;width:auto !important;max-width:100%;margin:0 !important;padding:0.5em 1em !important;font-size:1.2em;line-height:1.3;white-space:normal;}

/* ---- footer */
#navSuppWrapper, #navSupp {background:#fff;}
#navSupp li, #navSupp ul li:last-child {border:none;}
#navSupp ul li a, #navSupp ul li a:visited {color:#000;font-weight:bold;text-decoration:none;}
#siteinfoLegal {background:#fff;border:none;color:#000;}
#siteinfoLegal a {color:#3300ff;}

/* ---- phones: the 200x420 banner iframe would sit above the page content */
@media (max-width:767px) {
  #blanksidebox {display:none;}
}
