html, body {
    overflow: auto !important;
}
body {
  background-image: none;
  background-color: #1f2428;
  width: auto;
  margin: 0;
}

#headwrap {
  background-image: none;
  height: auto;
  width: auto;
}

#contentwrap {
  border-top: var(--red-border);
}

#headwrap img {
  margin: 0 auto;
  width: 60%;
  height: auto;
}

#headwrap label, #headwrap label:before, #headwrap label:after {
    display: block;
    background-color: #fff;
    width: 20px;
    height: 3px;
}

#headwrap label:before, #headwrap label:after {
    content: '';
    position: absolute;
    margin: -7px 0 0;
}

#headwrap label:after {
    margin: 7px 0 0;
}

#headwrap label {
    position: absolute;
    top: 43px;
    left: 20px;
}

#headwrap input#mobilemenu:checked ~ #nav {
  max-height: 700px;
}

#nav {
  width: 100%;
  padding: 0px;
  max-height: 0;
  transition: 1s;
}

div.allwrap {
  margin: 0;
  width: auto;
  clear: both;
}

#nav ul {
  height: auto;
  width: 100%;
  padding: 0;
  margin: 0;
  clear: both;
}

#nav li {
  width: 100%;
  height: auto;
  padding: 0;
}

#nav a, #nav a:link, #nav a:visited {
  text-shadow: none;
  background-color: #181818;
  font-family: "Droid Sans", Arial, Helvetica, sans-serif;
  font-size: 14px;
  text-align: center;
  border: solid 1px #a20f13;
  margin: 0;
  padding: 8px;
}

#nav li.home {
  display: none;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

#contentwrap {
  background-image: none;
  background-color: #1f2428;
  width: 100%;
  padding: 0px;
  min-height: auto;
}

#content {
  box-sizing: border-box;
  width: 100%;
  padding: 15px;
  padding-top: 20px;
  margin: 0;
  font-size: 20px;
  line-height: 28px;
}

h1 {
  font-size: 36px;
  line-height: 44px;
}

h2 {
  font-size: 28px;
}

#content-left {
  width: 100%;
  clear: both;
  margin-bottom: 15px;
}

#footerwrap {
    width: 100%;
}

#footer {
  width: auto;
}

#sidebar {
  float: none;
  clear: both;
  width: auto;
  margin-top: 15px;
}

ul#news {
  font-size: 16px;
  height: auto;
}
ul#news li {
  height: auto;
}
ul#news li a, ul#news li a:link, ul#news li a:visited {
  padding: 5px;
}
ul#news.catalogue li a, ul#news.catalogue li a:link, ul#news.catalogue li a:visited {
  height: auto;
}

ul#news h3 {
  float: none;
  padding: 0;
  font-size: 18px;
  width: 100%;
  height: auto;
  line-height: 24px;
}

ul#news div.newsdate {
  padding-left: 0px;
  float: none;
  font-size: 16px;
}

div.newsimg {
  margin-right: 12px;
}

input.text, select, .powermail_text, .powermail_textarea, .powermail_date {
  box-sizing: border-box;
  /*background-color: #eee;
  color: #333;*/
  font-size: 20px;
  padding: 8px 8px;
  margin: 0 10px 15px 0;
  float: none;
  width: 100%;
  height: 33px;
}
select {
  width: 100%;
  float: none;
  height: auto;
}

#search-results {
  box-sizing: border-box;
  width: 100%;
}

#search-results ul {
  width: auto;
}

#search-results ul li {
  overflow: visible;
  width: auto;
}
#search-results li span {
  box-sizing: border-box;
}

#search-results li span.modeltype {
  font-size: 15px;
  margin-left: 10px;
}

#search-results li a, #search-results li a:link, #search-results li a:visited {
  width: 100%;
  font-size: 16px;
  padding: 5px 0;
}

#search-results span.model {
  width: 50%;
  word-wrap: break-word;
}
#search-results span.remark {
  width: 15%;
  color: #eee;
  font-size: 12px;
}
#search-results span.country {
  width: 15%
}
#search-results span.year {
  width: 19%;
  clear: right;
  display: block;
  color: #eee;
}
#search-results li.manufacturer {
  padding: 6px 0px 6px 12px;
  line-height: auto;
}
#search-results h4 {
  font-size: 17px;
  text-transform: uppercase;
  padding-top: 5px;
}

td.title h3 {
  font-size: 28px;
  padding: 15px 0;
}


tr.headers {
  font-size: 18px;
}

tr.data {
  font-size: 18px;
}

table.sprocket-test col.image {
  width: auto;
  display: none;
}

/* Remove elements for better mobile experience */

/* Homepage random content (large image) */

.tx-t3sjslidernews-pi1 { display: none;}

.csc-textpic-imagewrap {
  max-width: 100% !important;
}


/* MM prods */

.mm_product_templates_product {
  padding: 15px 24px;
  color: #eeeeee;
  font-family: "Trebuchet MS", sans-serif;
  height: auto;
  margin-bottom: 12px;
  background-repeat: no-repeat;
}

.mm_product_templates_product h2 {
  font-size: 18px;
  font-weight: normal;
  margin: 0 0 4px 0;
  clear: both;
}

.mm_product_templates_product p {
  width: 100%;
  height: auto;
  font-size: 14px;
  line-height: 20px;
  margin: 0;
  clear: both;
  text-shadow: 0px 0px 3px #000;
}

div.mm_product_templates_thumbs {
  clear: both;
}

div.mm_product_templates_thumbs a, div.mm_product_templates_thumbs a:link, div.mm_product_templates_thumbs a:visited {
  float: left;
  margin-top: 10px;
  margin-right: 15px;
}

div.mm_product_templates_thumbs:last-child:after {
  content:"";
  clear: both;
  display: block;
  float: none;
}

div.part a.jt-drawing img, div.part div.empty-image img {
  height: 110px;
}

div.part.buyers div.info span.label {
  display: inline;
}
div.part div.info p {
  display: block;
  margin-right: 0px;
  font-size: 18px;
}
div.buyers div.part div.info span.label {
  display: block;
}
div.model h2 {
  line-height: 32px;
}
div.part h2 {
  font-size: 20px;
}
div.parts h3 {
  font-size: 20px;
}
div.part h4 {
  margin-bottom: 10px;
}
div.searchform input, div.searchform select {
  width: 100%;
}
div.searchform button {
  font-size: 20px;
  width: 100%;
  padding: 10px;
  height: auto;
}
div.searchform select:hover, div.searchform input.text:hover {
  background-color: #fff;
}

img#lightboxImage {
  height: auto !important;
  width: auto !important;
}

#lightbox #outerImageContainer, #lightbox #imageDataContainer {
  max-width: 100% !important;
  height: auto !important;
}

.pdfembed iframe {
  width: 85%;
  border: 0;
  max-height:500px;
}

div.gearratio {
  overflow-x: scroll;
}

/* JT Braking styles */

.brakingcontainer .body {
  padding-top: 520px !important;
  background-position: center 20px;
}

.brakingcontainer .intro, .brakingcontainer .body {
  width: auto;
  padding: 20px;
}

.brakingcontainer .body p {
  width: auto;
}

/* JT Belts styles */

.beltscontainer .body {
  background-position: center 20px;
}

.beltscontainer .intro, .beltscontainer .body {
  width: auto;
  padding: 20px;
}

.beltscontainer .body p, .beltscontainer .body li {
  width: auto;
}

.beltscontainer .maxkvr, .beltscontainer .premium {
  background-color: #fff;
  padding: 15px;
  max-width: 70%;
}

.beltscontainer .maxkvr {
  top: 200px;
}

.beltscontainer .maxkvr img {
  width: 100%;
}


.beltscontainer .premium {
  top: 550px;
  left: 15%;
}


/* Chain table styles */

div.tablescroll {
  overflow-x: scroll;
}

div.chain-specs-tables tbody td {
  white-space: nowrap;
}

.chgrade .chphoto {
  float: none;
}

.chgrade .chapps {
  overflow-x: scroll;
}
.chgrade .chapps th, .chgrade .chapps td {
  white-space: nowrap;
} 

.chain-specs-tables.legend div.clink {
  display: block;
  margin-bottom: 10px;
}
.chain-specs-tables.legend dl.linkref {
  display:  block;
}

.chain-specs-tables.legend dl.linkref dd, .chain-specs-tables.legend dl.linkref dt  {
  display: block;
  float: none;
}

.chgrade dd.csc-textpic-caption {
  margin-bottom: 5px;
}

.ce-right.ce-intext .ce-gallery, .align_right {
  float: none;
  margin: 0 auto 20px;
  text-align: center;
  width: 100%;
}

form.layout2 input, form.layout2 select, form.layout2 textarea {
  width: 100%;
  box-sizing: border-box;
  font-size: 20px;
}
div.caddress {
  height: auto;
  width: auto;
  float: none;
  padding: 10px;
  display: block;
  margin-bottom: 15px;
}

div.caddress img
{
  width: 100%;
}

div.fieldwrapper
{
  overflow: visible;
}

.ce-right.ce-intext .ce-gallery, .ce-left.ce-intext .ce-gallery {
  float: none;
  margin-left: 0;
}

div.home-product div
{
  margin-left:  0;
  margin-top: 20px;
  width:  auto;
}

div#spgallery img
{
  width: 100%;
}
div#spgallery .thumb
{
  display: block;
}
