/**
 * FoodCoopShop - The open source software for your foodcoop
 *
 * Licensed under the GNU Affero General Public License version 3
 * For full copyright and license information, please see LICENSE
 * Redistributions of files must retain the above copyright notice.
 *
 * @since         FoodCoopShop 1.0.0
 * @license       https://opensource.org/licenses/AGPL-3.0
 * @author        Mario Rothauer <office@foodcoopshop.com>
 * @copyright     Copyright (c) Mario Rothauer, https://www.rothauer-it.com
 * @link          https://www.foodcoopshop.com
 */
@media only screen and (max-device-width: 850px) {

    #responsive-header a:not(.btn-camera),
    body.self_services #responsive-header i.fa-circle-notch,
    :not(button)> i.fas
    :not(.fa-arrow-cycle-right)
    :not(.fa-arrow-cycle-left)
    :not(.fa-star)
    :not(.fa-circle-notch)
    :not(.fa-tags)
    :not(.fa-shopping-bag)
    :not(.fa-minus-circle)
    :not(.fa-plus-circle) {
        color: var(--theme-color) ! important;
    }
    body.self_services #responsive-header a.btn:not(.btn-flash-message),
    body.self_services #responsive-header a.btn:not(.btn-flash-message) i.ok {
        color: #fff ! important;
    }
    body:not(.admin) .sb-right h3 {
        background-color: var(--theme-color) ! important;
    }
    .sb-left li.header,
    .sb-left a:hover,
    .sb-left a.active,
    .sb-left a:hover i.far,
    .sb-left a:hover i.fas:not(.gold):not(.fa-moon):not(.fa-sun),
    .sb-left a.active i.fas:not(.gold):not(.fa-pencil-alt) {
        background-color: var(--theme-color);
        color: #fff ! important;
    }
    .sb-right .inner {
        border-color: var(--theme-color) ! important;
    }

    /* START chrome pull refresh fix */
    html {
        overflow-y: scroll;
    }
    body, [canvas=container] {
        overflow: visible;
    }
    /* END chrome pull refresh fix */

    body {
        margin: 0 ! important;
        overflow: scroll; /* prevents jumping to top when bootstrap 5 modal is opened */
    }
    .btn-outline-light:hover {
        background-color: #fff ! important;
        border-color: #ccc ! important;
    }
    a.sb-toggle-left:hover,
    a.sb-toggle-left:visited {
        text-decoration: none ! important;
    }
    #container {
        min-height: initial ! important;
        overflow: hidden ! important; /* avoids iphone scrolling bug */
    }
    #responsive-header .responsive-cart {
        float: right ! important;
        margin-right: 5px ! important;
        margin-top: 12px ! important;
    }
    #responsive-header .shopping-limit-reached-info {
        width: 75px;
        text-align: center;
        margin-right: 1px;
        font-size: 11px;
        float: right;
        line-height: 12px;
        margin-top: 8px;
    }
    #responsive-header .responsive-cart span {
        font-size: 16px ! important;
    }
    #flashMessage {
        right: auto ! important;
        left: 50% ! important;
        margin-left: -150px ! important;
        top: 11px ! important;
        width: 300px ! important;
        z-index: 100000 ! important;
        transform: inherit ! important;
    }
    #flashMessage img {
        height: 100px;
    }
    .sb-left {
      -webkit-box-shadow: 5px 0 5px -2px #888;
      box-shadow: 5px 0 5px -2px #888;
    }
    .sb-left a,
    .sb-left li.header,
    .sb-left li.footer {
        color: #fff ! important;
        padding: 4px 5px;
        display: block;
        border-bottom: 1px solid #dfdfdf;
    }
    .sb-left li.footer {
        word-break: break-word;
    }
    .sb-left li.header {
        padding-left: 10px;
    }
    .sb-slidebar {
        width: 55% ! important;
        z-index: 99990;
        margin-top: 54px;
        height: calc(100% - 54px);
    }
    .sb-left a i {
        padding-left: 0;
    }
    .sb-left a:not(.btn),
    .sb-left li.header,
    .sb-left a:not(.btn),
    .sb-left li.footer {
        color: #000 ! important;
    }
    .sb-slidebar {
        background-color: #fff;
    }
    .sb-left li {
        float: left;
        width: 100%;
    }
    .sb-left li a.color-mode-toggle,
    .sb-left li a.color-mode-toggle i {
        background-color: transparent ! important;
    }
    .sb-left li a.color-mode-toggle i {
        color: var(--theme-color) ! important;
    }
    .sb-left li.header, .sb-left a:hover, .sb-left a.active {
        color: #fff ! important;
    }
    .sb-left li.home a {
        float: left;
    }
    .sb-left li.home a:nth-of-type(1) {
        width: 85%;
    }
    .sb-left li.home a:nth-of-type(2) {
        width: 15%;
        text-align: right;
    }
    .sb-left .product-search-form-wrapper {
        position: static ! important;
        float: left;
        width: 100%;
    }
    .sb-left .product-search-form-wrapper input {
        padding-left: 8px ! important;
        width: 100% ! important;
        padding-right: 14%;
    }
    .sb-left .product-search-form-wrapper .btn-success {
        border-color: transparent ! important;
    }
    .sb-left .product-search-form-wrapper .btn-success.submit {
        position: absolute;
        top: 0;
        right: 0;
    }
    .sb-left .product-search-form-wrapper .btn-success.reset {
        position: absolute;
        top: 0;
        right: 35px;
    }
    .sb-left .product-search-form-wrapper select {
        width: 100% ! important;
    }
    .sb-left .product-search-form-wrapper input,
    .sb-left .product-search-form-wrapper select {
        color: #333;
        background-color: #fff;
    }
    li ul li a {
        font-size: 12px;
        padding-left: 10px ! important;
    }
    li ul li a {
        padding-left: 15px ! important;
    }
    li ul li ul li a {
        padding-left: 25px ! important;
    }
    .sb-left a i:before {
        padding-right: 5px;
    }
    #modal-image .modal-body {
        min-height: auto;
    }
    #modal-image .modal-dialog img {
        max-width: 100%;
    }
    .modal-dialog .block {
        width: 100%;
    }
    .modal-dialog .block-a {
        margin-right: auto;
    }
    .modal-dialog .block hr:last-of-type {
        display: block;
    }
}