/* FW Food Menu Custom Styles */


#fw-admin::before,
#fw-admin::after {
	content: none;
}

h1.page-title .icon-generic::before {
    content: "\f2e7";
}
.fwcss .fwa-sidebar ul li.active a, 
.fwcss .fwa-sidebar ul li a:hover {
    color: #ee7b33;
    background: #fcf0e1;
}
#fw-admin .fwa-sidebar-right-btn.active .badge {
    color: #fff;
    background: #ff250d;
}

@media (max-width: 767px) {
    #fw-admin .fwa-sidebar-right {
        background: rgba(245, 116, 4, 0.95);
    }
}
.fwcss #fwa-toast-stack .toast-header {
	background: #f57504;
    background: -webkit-linear-gradient(to bottom, #f57504, #FFD372);
    background: linear-gradient(-45deg, #FFD372 0%, #f57504 100%);
}

/* CSS Custom Editor fixes */
#fwfm-foodmenu-css p.label {
    display: none;
}
#fwfm-foodmenu-css .CodeMirror-lines {
    color: #555;
    background: #fdfdfd;
}
/* dev */
#fwfm-quick-meals textarea,
#fwfm-quick-categories textarea {
	height: 200px;
}

/* batch upload */
#fwg-batch-uploader-wrapper {
	background: #eee;
	padding:10px;
	width:300px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	margin-bottom: 10px;
}
#fwg-batch-uploader-drop-zone {
	font-weight: normal;
	text-align:center;
	border:1px dashed #ccc;
	height:200px;
	overflow:auto;
	background:url('../images/drag.png') 28% 50% no-repeat;
	line-height: 200px;
	text-shadow: 0 1px 0 #FFFFFF;
	font-weight: bold;
}

.fwg-drag-over {
    background: #ddd;
    border-color: #aaa;
}

.fwcss table.fwfm-meal-pricing span {
    margin-right: .5rem;
    font-size: 90%;
    text-decoration: line-through;
}

.fwshop-item .card-item-details {
    position: absolute;
    bottom: .5rem;
    right: .5rem;
    padding: .25rem .5rem;
    font-size: .7rem;
    text-transform: uppercase;
    font-weight: 500;
    background: rgba(255,255,255,.95);
    border-radius: 50%;
    overflow: hidden;
    transition: all .25s linear;
}
.fwshop-item:hover .card-item-details {
    border-radius: .25rem;
}
.fwshop-item .card-item-details span {
    display: inline-block;
    position: absolute;
    margin-left: 0;
    left: 300px;
}
.fwshop-item:hover .card-item-details span {
    position: relative;
    left: 0;
    margin-left: .25rem;
}

.fwshop-item-badges {
    position: absolute;
    top: .7rem;
    right: .75rem;
}
.fwshop-item-badges .badge {
    font-size: 1.1rem;
    margin-left: .25rem;
    padding: 0;
}
.fwshop-item-badges .badge-hot {
    color:  #F25500;
}
.fwshop-item-badges .badge-new {
    color:  #448d21;
}
.fwshop-item-badges .badge-recommended {
    color:  #ffc300;
}
.fwshop-item-badges .badge-updated {
    color:  #3e8391;
}

.fwshop-item.type-deal span.badge-discount {
    right: 10px;
    text-transform: lowercase;
}
.fwshop-item.type-deal span.badge {
    color: #fff;
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 7px 10px 5px;
    font-weight: 400;
    text-transform: uppercase;
    background: #00c400;
    border-radius: 3px;
}

table .fwshop-item .fwshop-item-type {
    position: relative;
    top: 0;
    left: 0;
    padding: .35rem .5rem;
    display: inline-block;
}

#fw-admin .fws-extensions-item-info {
    color: #212121;
    margin: -1rem;
    padding: 1rem;
    font-size: .8rem;
    display: flex;
    background: #f2f8e8;
    border-bottom: .5px solid #DEDEDE;
}
#fw-admin .fws-extensions-item-info img {
    max-width: 6rem;
}
#fw-admin .fws-extensions-item-info a {
    color: #5d8125;
}
#fw-admin .fws-ext-item-text-wrapper {
    display: flex;
}
#fw-admin .fws-ext-item-text-wrapper > div {
    flex-shrink: 0;
    flex-basis: 100%;
}
#fw-admin .fws-ext-stats > div {
    margin-bottom: .35rem;
}
#fw-admin .fws-extensions-item-info .fws-ext-name {
    line-height: 1;
    margin-bottom: .8rem !important;
    font-size: 1.15rem;
    font-weight: 500;
}
#fw-admin .fws-extensions-item-info .fws-ext-links > div {
    margin-bottom: .75rem;
}
#fw-admin .fws-ext-update {
    margin-top: .75rem;
    margin-bottom: 0 !important;
}
#fw-admin .fws-ext-update-info {
    padding: .4rem .7rem;
    margin-top: .35rem;
    margin-bottom: 0;
    line-height: 1.35;
    font-size: .85rem;
}

#fw-admin .card-spread-love p {
    line-height: 1.5;
}

#fw-admin td div.fwfm-color {
    display: inline-block;
    width: 16px;
    height: 16px;
}
.modal-footer .fwfm-quick-progress {
    position:absolute;
    left:20px;
    text-align:left;
}

/* Fix for Joomla! file upload dialog */
#bs2.col-7 .control-group,
#bs2.col-7 .control-group .input-prepend,
#bs2.col-7 .control-group .input-append {
    margin: 0;
}
#bs2.col-7 .control-group .control-label {
    display: none;
}


#fwg-menu-category-design .fwa-main-body .fwa-mb-cardbox {
    flex-direction: row;
    align-items: flex-start;
}
#fwg-menu-category-design .fwa-main-body .card {
    min-width: calc(50% - 2rem);
    max-width: calc(50% - 2rem);
}
/* status change badge */
.fwcss td.font-weight-bold span.badge {
    cursor: pointer;
}
/* images */
#fwfm-images-wrapper:after {
    content:"";
    clear:both;
    display: table;
}
.fwfm-images-thumb {
    float: left;
    width: 23%;
    position: relative;
}
.img-thumbnail {
    max-width: 100%;
}
#fwfm-images-wrapper .fwfm-images-thumb button.btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background-color: white;
}
/* sorting */
#fwfm-images-wrapper > div {
	cursor: move;
	margin: 2px;
}
body.dragging, body.dragging * {
  cursor: move !important;
}
.dragged {
  position: absolute;
  opacity: 0.5;
  z-index: 2000;
}
#fwfm-images-wrapper div.placeholder {
  position: relative;
  /** More li styles **/
}
#fwfm-images-wrapper div.placeholder:before {
  position: absolute;
  /** Define arrowhead **/
}
td.fwfm-image a {
    display: block;
    position: relative;
}
td.fwfm-image span.badge {
    color: #fff;
    position: absolute;
    right: 0;
    bottom: 0;
    background: #999;
}


/* Order list design */
#fw-admin .fwfm-admin-orders tr {
    cursor: pointer;
}
#fwfm-order-details .card a,
#fw-admin .fwfm-admin-orders tr td > div a {
    color: #212529;
    text-decoration: underline;
}
#fw-admin .fwfm-admin-orders tr.fwfm-order-selected.order-status-pending,
#fw-admin .fwfm-admin-orders tr.order-status-pending:hover {
    background: rgba(223, 96, 113,.25);
}
#fw-admin .fwfm-admin-orders tr.fwfm-order-selected.order-status-confirmed,
#fw-admin .fwfm-admin-orders tr.fwfm-order-selected.order-status-prepared,
#fw-admin .fwfm-admin-orders tr.order-status-confirmed:hover,
#fw-admin .fwfm-admin-orders tr.order-status-prepared:hover {
    background: rgba(178, 90, 140,.25);
}
#fw-admin .fwfm-admin-orders tr.fwfm-order-selected.order-status-shipped,
#fw-admin .fwfm-admin-orders tr.fwfm-order-selected.order-status-delivered,
#fw-admin .fwfm-admin-orders tr.order-status-shipped:hover,
#fw-admin .fwfm-admin-orders tr.order-status-delivered:hover {
    background: rgba(120, 90, 143,.25);
}
#fw-admin .fwfm-admin-orders tr.fwfm-order-selected.order-status-completed,
#fw-admin .fwfm-admin-orders tr.order-status-completed:hover {
    background: rgba(70, 85, 122,.25);
}
#fw-admin .fwfm-admin-orders tr.fwfm-order-selected.order-status-cancelled,
#fw-admin .fwfm-admin-orders tr.order-status-cancelled:hover {
    background: rgba(138, 139, 142,.25);
}
#fw-admin .fwfm-admin-orders tr td > div {
    font-weight: 300;
    margin-bottom: .35rem;
}
#fw-admin .fwfm-admin-orders tr td > div:nth-child(3) {
    margin-top: .65rem;
}
#fw-admin .fwfm-admin-orders tr td > div:last-child {
    margin-bottom: 0;
}
/* #fw-admin .fwfm-admin-orders .order-item-date,
#fwfm-order-details .fwfm-order-details-date {
    color: #777;
} */
#fw-admin .fwfm-admin-orders .order-item-items,
#fw-admin .fwfm-admin-orders .order-item-status {
    font-weight: 400;
}
#fw-admin .fwfm-admin-orders .order-item-num,
#fw-admin .fwfm-admin-orders .order-item-payment-total,
#fw-admin .fwfm-admin-orders .order-item-client {
    font-weight: bold;
}
#fw-admin .fwfm-admin-orders .order-item-timing {
    text-transform: lowercase;
}
#fw-admin ul.nav-tabs .order-status-pending,
#fwfm-order-details .fwfm-order-details-status-current.order-status-pending,
#fw-admin .fwfm-admin-orders .order-item-status.order-pending {
    /* color: #52B04D; */
    color: #DF6071;
}
#fw-admin ul.nav-tabs .order-status-confirmed,
#fw-admin ul.nav-tabs .order-status-prepared,
#fwfm-order-details .fwfm-order-details-status-current.order-status-confirmed,
#fwfm-order-details .fwfm-order-details-status-current.order-status-prepared,
#fw-admin .fwfm-admin-orders .order-item-status.order-confirmed,
#fw-admin .fwfm-admin-orders .order-item-status.order-prepared {
    color: #B25A8C;
}
#fw-admin ul.nav-tabs .order-status-shipped,
#fw-admin ul.nav-tabs .order-status-delivered,
#fwfm-order-details .fwfm-order-details-status-current.order-status-shipped,
#fwfm-order-details .fwfm-order-details-status-current.order-status-delivered,
#fw-admin .fwfm-admin-orders .order-item-status.order-shipped,
#fw-admin .fwfm-admin-orders .order-item-status.order-delivered {
    color: #785A8F;
}
#fw-admin ul.nav-tabs .order-status-completed,
#fwfm-order-details .fwfm-order-details-status-current.order-status-completed,
#fw-admin .fwfm-admin-orders .order-item-status.order-completed {
    color: #46557A;
}
#fw-admin ul.nav-tabs .order-status-cancelled,
#fwfm-order-details .fwfm-order-details-status-current.order-status-cancelled,
#fw-admin .fwfm-admin-orders .order-item-status.order-cancelled {
    color: #8a8b8e;
}
#fwfm-order-details .order-item-payment-status,
#fw-admin .fwfm-admin-orders .order-item-payment-status {
    display: inline-block;
    margin-left: .75rem;
    padding: .2rem .3rem;
    line-height: 1;
    font-size: .7rem;
    font-weight: 400;
    text-transform: uppercase;
    background: #E5E5E5;
}
#fwfm-order-details .order-item-payment-status.status-paid,
#fw-admin .fwfm-admin-orders .order-item-payment-status.status-paid {
    color: #2B7100;
    font-weight: 600;
    background: #E1FCCC;
}
#fwfm-order-details .order-item-payment-status.status-notpaid,
#fw-admin .fwfm-admin-orders .order-item-payment-status.status-notpaid {
    color: #712200;
    font-weight: 600;
    background: #FCCCCC;
}
#fw-admin .fwfm-admin-orders .order-item-actions {
    vertical-align: middle;
}
#fwfm-order-details button.btn-mark-paid,
#fw-admin .fwfm-admin-orders .order-item-actions button {
    color: #fff;
    padding: .75rem 1rem;
    font-size: .8rem;
    line-height: 1;
    text-transform: uppercase;
    border-radius: .5rem;
    border: 0;
}
#fw-admin .fwfm-admin-orders .order-item-actions button.btn-pending {
    /* background: #52B04D; */
    background: #DF6071;
}
#fw-admin .fwfm-admin-orders .order-item-actions button.btn-confirmed,
#fw-admin .fwfm-admin-orders .order-item-actions button.btn-prepared {
    background: #B25A8C;
}
#fw-admin .fwfm-admin-orders .order-item-actions button.btn-shipped,
#fw-admin .fwfm-admin-orders .order-item-actions button.btn-delivered {
    background: #785A8F;
}
#fwfm-order-details button.btn-mark-paid {
    float: right;
    font-weight: 400;
    background: #52B04D;
}

#fw-admin .fwfm-admin-orders .order-item-actions a {
    display: inline-block;
    padding: .3rem .5rem;
    margin-top: .75rem;
    font-size: .7rem;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
}
#fw-admin .fwfm-admin-orders .order-item-actions-text > div:first-child {
    font-size: .7rem;
    text-transform: uppercase;
    font-weight: 600;
}
/* #fw-admin .fwfm-admin-orders .order-item-delivery-address,
#fw-admin .fwfm-admin-orders .order-item-client-email,
#fw-admin .fwfm-admin-orders .order-item-client-phone {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
} */

/* Order list Details design */
#fwfm-order-details .card {
    color: #46557A;
    margin: 0;
    padding: 0;
    border-radius: 0;
    border-color: #46557A;
}
#fwfm-order-details .card-header {
    color: #fff;
    background: #46557A;
    border-radius: 0;
}
#fwfm-order-details .card-title {
    color: #fff;
    margin: 0;
    /* display: inline-block; */
    font-size: .9rem;
    text-transform: uppercase;
    text-align: center;
}
#fwfm-order-details .fwfm-order-details-created {
    float: right;
}
#fwfm-order-details .card-body {
    font-weight: 300;
}
#fwfm-order-details .card-body hr {
    margin: 1.5rem -1.25rem;
    border-color: #b8c1d8;
}
#fwfm-order-details .fwfm-order-details-client > div > div,
#fwfm-order-details .fwfm-order-details-delivery > div {
    margin-bottom: .35rem;
}
#fwfm-order-details .fwfm-order-details-status-current {
    font-weight: 400;
    text-align: right;
}
#fwfm-order-details .fwfm-order-details-status-timeline {
    width: 100%;
    display: flex;
    align-content: stretch;
    position: relative;
}
#fwfm-order-details .fwfm-order-details-status-timeline::before {
    content: '';
    height: 2px;
    width: 80%;
    top: 20px;
    left: 10%;
    position: absolute;
    background: #46557A;
}
#fwfm-order-details .order-status-timeline-item {
    color: #46557A;
    text-align: center;
    flex-grow: 1;
}
#fwfm-order-details .order-status-timeline-item i {
    position: relative;
    background: #fff;
    z-index: 10;
}
#fwfm-order-details .order-status-timeline-item small {
    display: block;
    margin-top: .25rem;
}
#fwfm-order-details .fwfm-order-details-section {
    margin: 1rem 0 .5rem;
    font-size: 1rem;
    font-weight: 400;
}
#fwfm-order-details .fwfm-order-details-name {
    font-size: 1rem;
    font-weight: 600;
}
#fwfm-order-details .fwfm-order-details-num {
    font-weight: 400;
}
#fwfm-order-details .fwfm-order-details-total .order-item-payment-status {
    font-size: 1.1rem;
}
#fwfm-order-details .fwfm-order-items-table {
    margin: 1rem 0;
    border-color: #A8B0C3;
}
#fwfm-order-details .fwfm-order-items-table td {
    padding-top: .6rem;
    padding-bottom: .6rem;
    border-color: #A8B0C3;
}
#fwfm-order-details .fwfm-order-items-table td > div {
    color: #8995b0;
    font-size: 85%;
    line-height: 1.3;
}

.fwfm-orders-list {
    position: relative;
    min-height: 80vh;
}
.fwfm-nav-fixed {
    position: fixed;
    top: 30px;
	z-index: 100;
}

/* Switch style */
.switch {
	position: relative;
	display: block;
	vertical-align: top;
	width: 40px;
	height: 20px;
	border-radius: 18px;
	box-shadow: inset 0 -1px white, inset 0 1px 1px rgba(0, 0, 0, 0.05);
	cursor: pointer;
	box-sizing:content-box;
}
.switch-input {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	box-sizing:content-box;
}
.switch-label {
	position: relative;
	display: block;
	height: inherit;
	font-size: 8px;
	text-transform: uppercase;
	background: #eceeef;
	border-radius: inherit;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0 2px rgba(0, 0, 0, 0.15);
	box-sizing:content-box;
}
.switch-label:before, .switch-label:after {
	position: absolute;
	top: 50%;
	margin-top: -.5em;
	line-height: 1;
	-webkit-transition: inherit;
	-moz-transition: inherit;
	-o-transition: inherit;
	transition: inherit;
	box-sizing:content-box;
}
.switch-input:checked ~ .switch-label {
	background: #75c656;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15), inset 0 0 3px rgba(0, 0, 0, 0.2);
}
.switch-handle {
	position: absolute;
	top: 1px;
	left: 1px;
	width: 18px;
	height: 18px;
	background: linear-gradient(to bottom, #FFFFFF 40%, #f0f0f0);
	background-image: -webkit-linear-gradient(top, #FFFFFF 40%, #f0f0f0);
	border-radius: 100%;
	box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}
.switch-handle:before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -6px 0 0 -6px;
	width: 12px;
	height: 12px;
	background: linear-gradient(to bottom, #eeeeee, #FFFFFF);
	background-image: -webkit-linear-gradient(top, #eeeeee, #FFFFFF);
	border-radius: 6px;
	box-shadow: inset 0 1px rgba(0, 0, 0, 0.02);
}
.switch-input:checked ~ .switch-handle {
	left: 20px;
	box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.2);
}
 
/* Switch Transition
========================== */
.switch-label, .switch-handle {
	transition: All 0.3s ease;
	-webkit-transition: All 0.3s ease;
	-moz-transition: All 0.3s ease;
	-o-transition: All 0.3s ease;
}

.fwfm-menu-list-wrapper {
    box-shadow: 0 0 .5rem #aaa;
    border-radius: .35rem;
}
.fwfm-menu-list-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #ddd;
}
.fwfm-menu-list-search input {
    padding: .25rem 1.5rem .25rem .75rem;
    border-radius: 2rem !important;
}
.fwfm-menu-list-search{
    position: relative;
    flex-grow: 2;
}
.fwfm-menu-list-search::before {
    color: #ccc;
    content: "\f002";
    font-family: "Font Awesome 5 Pro";
    font-weight: light;
    position: absolute;
    top: .5rem;
    right: .75rem;
}
.fwfm-menu-list-header .btn > i {
    margin-right: .3rem;
}
.fwfm-menu-list-header .btn {
    margin-left: .75rem;
}
.fwfm-menu-list-item {
    line-height: 20px;
    padding: .75rem 1rem;
    border-bottom: 1px solid #ddd;
}
.fwfm-menu-list-item > i {
    color: #333;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: .5rem;
    line-height: 1.25rem;
    text-align: center;
    background: #eee;
    border-radius: .25rem;
}
.fwfm-menu-list-item .dropdown {
    float: right;
    margin-left: 1rem;
}
.fwfm-menu-list-item .dropdown > .btn {
    padding: .2rem .75rem;
}
.fwfm-menu-list-footer {
    padding: 1rem;
    background: #f6f6f6;
}

.fwfm-delivery-zones thead th {
    white-space: normal !important;
    line-height: 1.3;
}


@media (max-width: 1300px) {
    .fwfm-orders-list .col-lg-9 {
        width: 100%;
        min-width: 100%;
    }
    .fwfm-orders-list .col-lg-3 {
        display: none;
    }
}
@media (max-width: 992px) {
    .fwfm-orders-list table.fwfm-admin-orders > tbody > tr {
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-evenly;
        margin-bottom: .75rem;
        padding-bottom: .75rem;
        border-bottom: 1px solid #eee;
    }
    .fwfm-orders-list table.fwfm-admin-orders > tbody > tr > td {
        display: block;
        min-width: 10rem;
        padding: .5rem 1rem;
        border: 0;
    }
    .fwfm-orders-list table.fwfm-admin-orders > tbody > tr:last-child > td {
        padding-bottom: 1rem;
    }
    .fwfm-orders-list table.fwfm-admin-orders > tbody > tr > td:first-child {
        max-width: 1.5rem;
        min-width: auto;
        align-self: center;
    }
    .fwfm-orders-list table.fwfm-admin-orders > tbody > tr > td:nth-child(2) {
        min-width: calc(100% - 2rem);
    }
    .fwfm-orders-list table.fwfm-admin-orders > tbody > tr > td:nth-child(2) > div {
        display: inline-block;
        margin-right: .5rem;
    }
    .fwfm-orders-list table.fwfm-admin-orders > tbody > tr > td:last-child {
        text-align: center;
        align-self: center;
    }
    .fwfm-orders-list table.fwfm-admin-orders > tbody > tr.fwfm-selected-order-details,
    .fwfm-orders-list table.fwfm-admin-orders > tbody > tr.fwfm-selected-order-details > td {
        min-width: 100%;
        text-align: left;
        padding: 0;
    }
}
@media (max-width: 480px) {
    #fwfm-order-details .order-status-timeline-item i {
        font-size: 2rem !important;
    }
    #fwfm-order-details .fwfm-order-details-status-timeline::before {
        top: 16px;
    }
}
/* dev */
.fwcss .fwfm-badge-image {
    width: 32px;
    height: 32px;
}
.fwcss .fwfm-svg-image {
    width: 32px;
    height: 32px;
    display: inline-block;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
}
.fwcss .fwfm-badge {
    width: 20px;
    height: 20px;
    margin: 0 .25rem;
    display: inline-block;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
    vertical-align: middle;
}
.fwfm-badges-list > .col-4 {
    margin-bottom: .75rem;
}
.fwfm-badges-list > .col-4 input {
    vertical-align: text-top;
}