/* Tablets (less than 860px) */
@media (min-width: 0px) and (max-width: 860px) {
    body { font-size: 14px; }
    h4 { font-size: 17px; }
    th, td { padding: 10px 2px 10px 2px; }
    button#basket-button { padding: 2p 4px; margin-top: 20px; }
    button#timeout, button#contact { padding: 1px 4px; }
    .break-desktop { display: none; }
    #modal-box { width: 75%; }

    /* CONTENT BOXES */
    #wide-content { padding: 10px; }

    /* HEADER/NAV/FOOTER */
    #header { height: 90px; }
    #header.sticky { height: 75px; padding: 0px 10px 0px 10px; }
    #nav-box { top: 90px; height: 40px; }
    #nav-box.sticky { top: 75px; }
    li.nav a, .dropbtn { padding: 0px 10px; }
    #placeholder { height: 130px; }
    
    #footer-box { background-color: #FFF; width: 95%; }
    #paypal-footer-logo { height: 30px; }
    .break-tablet { display: block; height: 7px; }

    /* INFORMATION */
    .info-image { width: 100%; }
    .info-image-sml { width: 150px; margin: 0px 0px 15px 15px; }

    /* HOME */
    .home-flex-left, .home-flex-right { width: 100%; margin-left: auto; margin-right: auto; } 
    .home-flex-left, .home-flex-right { padding: 15px; height: unset; }
    .promo-heading { font-size: 40px; }
    .promo-heading-small { font-size: 30px; }
    .promo-text { font-size: 26px; }
    .home-box { background-color: #f0f0f0; padding: 0px; line-height: 30px; font-size: 18px; }
    .text-bg-home { background-color: #F0F0F0; padding: 20px; }

    /* SHOP */
    .controls-inner { margin: 0px 10px; }
    #filters-outer { display: none; float: none; margin: 10px auto 0px auto; padding: 10px; width: 100%; background-color: #FAFAFA; border: none; border-top: 1px solid #DFDFDF; }
    #mobile-filters-button { display: inline-block; }
    #mobile-filters-button button { background-color: #EFEFEF; outline: none; border-radius: 4px; font-size: 14px; height: 24px; font-weight: normal; padding: 0px 5px 0px 5px; }
    #mobile-filters-button button:hover { background-color: #EFEFEF; }

    select.item-sort { background-color: #EFEFEF; border: 1px solid #EFEFEF; }
    select.item-sort:hover { background-color: #DDD; }

    .current-page { border: 1px solid #EFEFEF; background-color: #EFEFEF; }

    #filter-title { text-align: left; padding-left: 0px; }
    #close-mobile-filters { display: block; float: right; }
    #close-mobile-filters:hover { cursor: pointer; }

    .filter-grid { display: grid; grid-template-columns: 1fr 1fr; text-align: left; } /* sorts mobile filters into a 2 column grid */

    .mobile-filter-heading { display: block; }
    .filter-heading-shown, .filter-heading-hidden { display: none; }
    .filter-group-shown { padding-top: 10px; padding-bottom: 10px; border-top: 1px solid #CCC; }
    .filter-group-hidden { padding-top: 10px; padding-bottom: 10px; border-top: 1px solid #CCC; }
 
    .filter-value { width: 100%; display: block; font-size: 14px; line-height: 25px; background-color: #FAFAFA; }
    .filter-value:hover { background-color: #F3F3F3; cursor: pointer; }
    input.checkbox { margin: 0px; }
    input.amount { background-color: #FAFAFA; }
    
    #shop-products-wrapper { width: 100%; margin: auto; }
    #shop-title-box { margin: 0px auto 10px auto; width: 100%; padding: 0px 10px; }
    .title-banner { font-size: 32px; }
    .shop-row { margin: auto; width: 100%; }
    #end-shop-row { margin: auto; width: 100%; }
    
    .product-title { font-size: 20px; }
    .old-price { font-size: 16px; }
    .current-price { font-size: 18px;}

    /* SHOP & ITEM */
    .ladda-button { background-color: #C33; height: 40px; font-size: 16px; }
    .add-to-basket { width: 150px; }
    .shop-image { width: 30%; }
    .shop-title, .shop-details, .shop-pricing { width: 70%; }
    .item-image { width: 35%; }
    .item-title, .item-details, .item-pricing { width: 65%; }

    /* vw = 0.95 x 40% x (600/800) x 100% / 3 = 9.5%. Max-height = 860 x 0.95 x 40% x (600/800) / 3 = 81.7px */
    /*.item-title { height: 8vw; }
    .item-details { height: 6vw; }
    .item-pricing { height: 14.5vw; }*/

    /* BASKET */
    #timeline { width: 100%; }
    .stage { height: 30px; line-height: 30px; font-size: 16px; }
    .stage-number { font-size: 18px; }
  
    #basket-box { width: 100%; float: none; margin: auto; }
    th#item, td.item { width: 40%; }

    .basket-image { width: 125px; }
    .thicker { padding-top: 10px; padding-bottom: 10px; }

    .basket-row, .basket-headings { width: 100%; }
    .remove-item { display: none; }

    #total-box { width: 100%; float: none; margin: auto; padding-left: 0px; font-size: 15px; }
    #paypal-box { margin: auto; width: 100%; max-width: 400px; }

    /* CHECKOUT */
    #paypal-info { margin: 0px auto 25px auto; overflow: initial; }
    #address { padding: 15px; }
    #payment-method { padding: 15px; }

    /* COMPLETE */
    #timeline-complete { width: 100%; margin: 0px auto 25px auto; }
    #complete-box-1, #complete-box-2, #complete-box-2a, #complete-box-3, #complete-box-4, #complete-box-5 { 
        width: 100%; }

    /* CONTACT */
    #narrow-content, #narrow-content { width: 100%; }


}

/* Small tablets */
@media (min-width: 0px) and (max-width: 680px) {
  .shop-image { width: 35%; }
  .shop-title, .shop-details, .shop-pricing { width: 65%; }
  .item-image { width: 40%; }
  .item-title, .item-details, .item-pricing { width: 60%; }

  /* vw = 0.95 x 40% x (600/800) x 100% / 3 = 9.5%. Max-height = 860 x 0.95 x 40% x (600/800) / 3 = 81.7px */
}

/* Large mobile phones */
@media (min-width: 0px) and (max-width: 500px) {
    .mobile-only { display: inline; }
    #modal-box { width: 90%; }

    /* HEADER/NAV/FOOTER */
    #nav-box { display: block; }
    #nav-box .nav-group { display: none; }
    .break-mobile { display: block; height: 7px; }

    #burger-icon { display: block; float: left; margin-top: 2px; }
    #burger-icon:hover { cursor: pointer; }
    .burger-strip { width: 30px; height: 4px; background-color: white; margin: 6px 0px 0px 6px; }
    
    #burger-basket { display: block; float: right; margin: 0 5px; padding: 0px 6px; line-height: 40px; text-decoration: none; font-weight: bold; }
    #burger-basket a { color: white; }
    #basket-nav-icon { height: 30px; margin: 0px; }

    #burger-nav-box { display: none; position: fixed; width: 100%; top: 130px; padding: 10px; background-color: #EEE; font-size: 15px;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); transition: top 0.3s; -webkit-transition: top 0.3s; -moz-transition: top 0.3s; z-index: 9998; }
    #burger-nav-box.sticky { top: 115px; }
    ul#burger-nav-group { list-style-type: none; margin: 0; padding: 0; }
    ul#burger-nav-group li { margin: 0px; line-height: 40px; border-bottom: 1px solid #CCC; }

    #burger-inner-dropdown { display: none; } 
    #burger-inner-dropdown li { padding-left: 10px; line-height: 40px; }
    
    /* ********************************************************************************************
    Format of home text styles is home-size-[sale/discount selector no.]-[line no.]
    ********************************************************************************************** */
    .home-size-0-1 { font-size: 30vw; line-height: 30vw; font-weight: bold; margin-top: 10px; margin-bottom: 50px; }
    .home-size-0-2 { font-size: 20vw; line-height: 20vw; font-weight: bold; margin-bottom: 50px; }
    .home-size-0-3 { font-size: 18px; line-height: 18px; }
    .home-size-0-4 { font-size: 28px; line-height: 28px; }
    
    .home-size-1-1 { font-size: 27.5vw; line-height: 27.5vw; font-weight: bold; margin-top: 10px; margin-bottom: 40px; }
    .home-size-1-2 { font-size: 15vw; line-height: 15vw; margin-bottom: 40px; }
    .home-size-1-3 { font-size: 6vw; line-height: 6vw; margin-bottom: 15px; }
    .home-size-1-4 { font-size: 28px; line-height: 28px; }
    
    .home-size-2-1  { font-size: 27.5vw; line-height: 27.5vw; font-weight: bold; margin-top: 10px; margin-bottom: 40px; }
    .home-size-2-2 { font-size: 17vw; line-height: 17vw; margin-bottom: 40px; }
    .home-size-2-3 { font-size: 9vw; line-height: 9vw; margin-bottom: 15px; }
    .home-size-2-4 { font-size: 28px; line-height: 28px; }
    
    .home-size-3-1 { font-size: 14vw; line-height: 14vw; font-weight: bold; margin-top: 10px; margin-bottom: 40px; }
    .home-size-3-2 { font-size: 27.5vw; line-height: 27.5vw; font-weight: bold; margin-bottom: 40px; }
    .home-size-3-3 { font-size: 6.5vw; line-height: 6.5vw; margin-bottom: 15px; }
    .home-size-3-4 { font-size: 28px; line-height: 28px; }
    
    .home-size-4-1 { font-size: 13vw; line-height: 13vw; font-weight: bold; margin-top: 10px; margin-bottom: 50px; }
    .home-size-4-2 { font-size: 27.5vw; line-height: 27.5vw; font-weight: bold; margin-bottom: 50px; }
    .home-size-4-3 { font-size: 7vw; line-height: 7vw; margin-bottom: 15px; }
    .home-size-4-4 { font-size: 28px; line-height: 28px; }
    
    .home-size-5-1 { font-size: 25vw; line-height: 25vw; font-weight: bold; margin-top: 10px; margin-bottom: 50px;  }
    .home-size-5-2 { font-size: 13vw; line-height: 13vw; font-weight: bold; margin-bottom: 50px; }
    .home-size-5-3 { font-size: 11vw; line-height: 11vw; margin-bottom: 15px; }
    .home-size-5-4 { font-size: 28px; line-height: 28px; }
    /* ********************************************************************************************
    ********************************************************************************************** */

    .home-info-box-line-1 { font-size: 44px; }
    .home-info-box-line-2 { font-size: 32px; }

    /* SHOP */
    .price, .stock-level { display: inline-block; }

    /* SHOP & ITEM */
    .shop-image, .item-image { margin-bottom: 0px; }
    .close-modal { color: #FFF; opacity: 1; font-size: 42px; }
    .extra-info-title { width: 35%; font-weight: bold; }
    .extra-info { width: 65%; padding: 0px 10px; }
    .item-details-flex { display: flex; margin: 5px 0px; }
    .item-details-title { width: 33%; font-weight: bold; }
    .item-details-value { width: 67%; }

    .shop-image, .shop-title, .shop-details, .shop-pricing, .item-image, .item-title, .item-details, .item-pricing
    { float: none; display: block; width: 100%; }
    .shop-image, .item-image { border: 1px solid #DFDFDF; margin: 10px 0px; }
    .shop-image img, .item-image img { width: 80%; margin: auto; display: block; }
    .shop-title, .shop-details, .shop-pricing, .item-title, .item-details, .item-pricing { padding: 0px 0px; }

    /* BASKET */
    .basket-row { border-top: 1px solid #CCC; }
    .left { flex-basis: 125px; }
    .image img { width: 125px; }
    .info, .qty, .subtotal { box-sizing: border-box; padding: 2px; }
    .info { width: 75%; }
    .quantity { width: 25%; } 
    .quantity img { display: inline; margin-top: 3px; }
    .subtotal { width: 100%; text-align: left; }
    .basket-headings { display: none; }
    .qty-label { display: none; }
    .qty-label-remove { display: none;}
    .qtyminus, .qtyplus { display: none; }
    input.qty { width: 100%; }

    /* BASKET, CHECKOUT, COMPLETE */
    .stage-name { font-size: 14px; }
}

@media (min-width: 0px) and (max-width: 250px) {
    /* BASKET, CHECKOUT, COMPLETE */
    .stage-number { display: none; }
    h1.home-size-1-1 { font-size: 60px; }
    .home-info-box-line-1 { font-size: 38px; }
    .home-info-box-line-2 { font-size: 30px; }
    .item-details-value { text-align: right; }
    .add-to-basket { width: 100%; }
}