/**
 * Theme Name: Bake King
 * Theme URI: https://bakeking.com.sg
 * Author: Jiaxi Linn
 * Author URI: https://jiaxi.dev
 * Description: Custom theme for Bake King Sales Team
 * Version: 1.0
 * License: GNU General Public License
**/
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Libre+Franklin:wght@400;700&display=swap");
* {
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	margin: 0;
}

html,
body {
	margin: 0;
	padding: 0;
	width: 100%;
	min-height: 100%;
	font-family: "Inter", sans-serif;
	font-size: 16px;
	color: #3C3C3C;
	background: #FBFBFB;
	-webkit-font-smoothing: antialiased;
}

h1 {
	font-family: "Libre Franklin", sans-serif;
	font-size: 40px;
	font-weight: 700;
	margin-bottom: 28px;
	line-height: 42px;
}

h2 {
	font-family: "Inter", sans-serif;
	font-size: 26px;
	font-weight: 700;
	margin-bottom: 18px;
}

p {
	font-family: "Inter", sans-serif;
	line-height: 23px;
}

hr {
	margin: 40px -16px 35px;
	background: #EBEBEB;
	border: 0;
	height: 1px;
}
@media only screen and (min-width: 668px) {
	hr {
		margin: 40px -40px 35px;
	}
}

button, input[type=submit], .button {
	-webkit-appearance: none;
	   -moz-appearance: none;
	        appearance: none;
	width: 100%;
	padding: 13px 15px;
	text-align: center;
	font-family: "Libre Franklin", sans-serif;
	font-size: 16px;
	font-weight: 400;
	border-radius: 4px;
	text-decoration: none;
	display: inline-block;
}

.button-primary, input[type=submit] {
	background: #004684;
	color: #fff;
}
.button-secondary {
	background: transparent;
	border: 1px solid #004684;
}
.button-tertiary {
	background: transparent;
	border: none;
}

label {
	display: block;
	width: 100%;
	margin-bottom: 11px;
	margin-top: 2px;
}
label span:not(.brand) {
	color: #B40000;
}
label small {
	color: #808080;
	font-size: 14px;
	line-height: 18px;
}
label[for=upload_images] {
	padding: 8px 10px;
	font-size: 12px;
	background: transparent;
	border: 1px solid #004684;
	border-radius: 4px;
	color: #004684;
	width: auto;
	margin-bottom: 0;
	margin-top: 0;
	display: inline-block;
}
label[for=upload_images] .icon {
	width: 11px;
	height: 11px;
}

input,
select,
.select2-container--default .select2-selection--single,
textarea {
	width: 100%;
	background: #fff;
	border: 1px solid #EBEBEB;
	border-radius: 5px;
	padding: 12px 14px;
	color: #808080;
	font-family: "Inter", sans-serif;
	font-size: 16px;
	line-height: 23px;
	position: relative;
}
input:disabled,
select:disabled,
.select2-container--default .select2-selection--single:disabled,
textarea:disabled {
	background: transparent;
	color: #808080;
	opacity: 1;
}
input.invalid,
select.invalid,
.select2-container--default .invalid.select2-selection--single,
textarea.invalid {
	border-color: #B40000;
}
input.invalid ~ span.msg-error,
select.invalid ~ span.msg-error,
.select2-container--default .invalid.select2-selection--single ~ span.msg-error,
textarea.invalid ~ span.msg-error {
	display: inline-block;
}

input:not(.hasDatepicker)[type=text]:-moz-read-only {
	background: transparent;
	color: #808080;
}

input:not(.hasDatepicker)[type=text]:read-only {
	background: transparent;
	color: #808080;
}
input[type=file] {
	display: none;
}
input[type=checkbox] {
	-webkit-appearance: none;
	   -moz-appearance: none;
	        appearance: none;
	margin: 0;
	padding: 0;
	border: 1px solid #EBEBEB;
	border-radius: 2px;
	width: 18px;
	height: 18px;
	position: relative;
	background: #fff;
}
input[type=checkbox]:checked {
	border-color: #004684;
	background: #004684;
}
input[type=checkbox]:checked:after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	        transform: translate(-50%, -50%);
	width: 12px;
	height: 8px;
	background: url(./assets/images/icon-check.svg) no-repeat center/cover;
}
input[name^=timestamp]:nth-of-type(2), input[name^=timestamp]:nth-of-type(3) {
	margin-top: 10px;
	width: calc((100% - 10px) / 2);
}
input.datepicker {
	background: #fff url(./assets/images/icon-calendar.svg) no-repeat calc(100% - 10px) 50%/15px 16px;
}

select, .select2-container--default .select2-selection--single {
	-webkit-appearance: none;
	   -moz-appearance: none;
	        appearance: none;
	background: #fff url(./assets/images/icon-chevron-down.svg) no-repeat calc(100% - 15px) 50%/11px 6px;
}

textarea {
	height: 120px;
	resize: none;
	margin-top: 10px;
}

fieldset {
	padding: 0;
	border: none;
	width: 100%;
	max-width: 500px;
	margin: 0 auto 40px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
	    -ms-flex-direction: row;
	        flex-direction: row;
	-webkit-box-pack: justify;
	    -ms-flex-pack: justify;
	        justify-content: space-between;
}

.form-group {
	width: 100%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
	    -ms-flex-direction: row;
	        flex-direction: row;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
	-webkit-box-pack: justify;
	    -ms-flex-pack: justify;
	        justify-content: space-between;
}
.form-group:not(:last-child) {
	margin-bottom: 35px;
}
.form-group:has(+ .hide) {
	margin-bottom: 0;
}

.select2-container--default .select2-selection--single {
	position: static;
	height: auto;
}
select.invalid + .select2-container--default .select2-selection--single, .select2-container--default .invalid.select2-selection--single + .select2-container--default .select2-selection--single {
	border-color: #B40000;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
	color: inherit;
	line-height: inherit;
	padding: 0;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
	display: none;
}

.dropdown {
	width: 100%;
	position: relative;
}

.select2-container--default .select2-dropdown {
	border: 1px solid #EBEBEB;
	padding: 15px;
	color: #808080;
}
.select2-container--default .select2-search--dropdown {
	padding: 0;
	position: relative;
}
.select2-container--default .select2-search--dropdown:before {
	content: "";
	position: absolute;
	top: 50%;
	left: 15px;
	-webkit-transform: translateY(-50%);
	        transform: translateY(-50%);
	width: 13px;
	height: 13px;
	background: url(./assets/images/icon-search.svg) no-repeat center/contain;
	z-index: 1;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
	padding: 18px 15px 18px 36px;
	background: #F3F3F3;
	border: 1px solid #EBEBEB;
	border-radius: 5px;
}
.select2-container--default .select2-results__option {
	padding: 15px 0;
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
	background: transparent;
	color: inherit;
}

.select2-rendered__match {
	font-weight: 600;
	color: #004684;
}

.msg-error {
	display: none;
	width: 100%;
	margin-top: 4px;
	color: #B40000;
}
.msg-error.form-error {
	margin-bottom: 20px;
	text-align: center;
}

label.invalid {
	display: none !important;
}

img {
	width: 100%;
	height: auto;
	-o-object-fit: contain;
	   object-fit: contain;
}

header {
	text-align: center;
	margin: 40px 0 20px;
}
header a {
	display: block;
	width: 117px;
	margin: 0 auto;
	font-size: 0;
}
@media only screen and (min-width: 668px) {
	header a {
		width: 150px;
	}
}

main {
	padding: 0 16px 50px;
}
@media only screen and (min-width: 668px) {
	main {
		padding: 0 40px 50px;
	}
}

.products {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}
.products:not(:last-child) {
	margin-bottom: 40px;
}
.products th,
.products td {
	border: 1px solid #EBEBEB;
	padding: 5px 10px;
	font-size: 12px;
	line-height: 16px;
	color: #808080;
	width: 33.3333333333%;
	vertical-align: middle;
}
.products th:first-child,
.products td:first-child {
	padding-left: 15px;
}
.products th {
	border-style: solid solid none none;
}
.products th:first-child {
	font-family: "Libre Franklin", sans-serif;
	font-size: 16px;
	line-height: 23px;
	font-weight: 400;
	text-align: left;
	padding-left: 0;
	border: none;
}
.products th:not(:first-child) {
	font-weight: 400;
	border-top-style: solid;
	background: #fff;
}
.products th:nth-child(2) {
	border-left-style: solid;
	border-top-left-radius: 5px;
}
.products th:last-child {
	border-top-right-radius: 5px;
}
.products tbody td {
	border-style: solid none none solid;
	background: #fff;
}
.products tbody td:first-child {
	border-left-style: solid;
}
.products tbody td:not(:first-child) {
	text-align: center;
}
.products tbody td:last-child {
	border-right-style: solid;
}
.products tbody tr:first-child td:first-child {
	border-top-style: solid;
	border-top-left-radius: 5px;
}
.products tbody tr:last-child td {
	border-bottom-style: solid;
}
.products tbody tr:last-child td:first-child {
	border-bottom-left-radius: 5px;
}
.products tbody tr:last-child td:last-child {
	border-bottom-right-radius: 5px;
}
.products tbody tr.checked td {
	background: #F7F5FF;
}
.products input {
	vertical-align: middle;
}
.products input:not([type=checkbox]) {
	font-size: 12px;
	line-height: 19px;
	padding: 8px 10px;
}
.products .form-group {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
	    -ms-flex-direction: row;
	        flex-direction: row;
	-webkit-box-pack: justify;
	    -ms-flex-pack: justify;
	        justify-content: space-between;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	margin-bottom: 10px;
}
.products .form-group:last-of-type {
	margin-bottom: 15px;
}
.products .form-group label {
	width: calc((100% - 10px) / 3);
	margin-bottom: 0;
	line-height: 16px;
}
.products .form-group input,
.products .form-group .msg-error {
	width: calc((100% - 10px) * 0.6666666667);
	margin-bottom: 0;
	margin-left: auto;
}

.page h1 {
	text-align: center;
}

.set-expiring td {
	padding: 15px;
}
.set-expiring td > div:not(:last-of-type) {
	border-bottom: 1px solid #EBEBEB;
	margin-bottom: 15px;
}
.set-expiring td button, .set-expiring td .button, .set-expiring td input[type=submit] {
	background: transparent;
	border: 1px solid #004684;
	color: #004684;
	font-family: "Libre Franklin", sans-serif;
	font-size: 12px;
	line-height: 16px;
	padding: 8px 10px;
	border-radius: 4px;
	display: block;
	margin-left: auto;
	width: auto;
}
.set-expiring td button .icon, .set-expiring td .button .icon, .set-expiring td input[type=submit] .icon {
	width: 9px;
	height: 9px;
}

.gallery {
	width: 100%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
	    -ms-flex-direction: row;
	        flex-direction: row;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
	margin-bottom: 15px;
	position: relative;
}
.gallery:empty {
	display: none;
}
.gallery .image {
	position: relative;
	width: calc(25% - 2px);
	margin: 1px;
	font-size: 0;
}
@media only screen and (min-width: 668px) {
	.gallery .image {
		width: calc(25% - 4px);
		margin: 2px;
	}
}
.gallery .image:before {
	content: "";
	display: block;
	padding-top: 100%;
}
.gallery .image img {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	-o-object-fit: cover;
	   object-fit: cover;
}
.gallery .image button, .gallery .image .button, .gallery .image input[type=submit] {
	-webkit-appearance: none;
	   -moz-appearance: none;
	        appearance: none;
	background: rgba(0, 0, 0, 0.6);
	border-radius: 50%;
	width: 15px;
	height: 15px;
	padding: 4px;
	font-size: 0;
	line-height: 0;
	border: 0;
	position: absolute;
	top: 5px;
	right: 5px;
}
@media only screen and (min-width: 668px) {
	.gallery .image button, .gallery .image .button, .gallery .image input[type=submit] {
		width: 18px;
		height: 18px;
		top: 8px;
		right: 8px;
	}
}
.gallery .image button .icon, .gallery .image .button .icon, .gallery .image input[type=submit] .icon {
	width: 100%;
	height: 100%;
}
.gallery .image-more {
	position: absolute;
	right: 0;
	width: calc(25% - 2px);
	height: calc(100% - 2px);
	margin: 1px;
	color: #fff;
	background: rgba(0, 0, 0, 0.6);
	font-size: 14px;
	line-height: 18px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	font-family: "Libre Franklin", sans-serif;
	text-align: center;
	z-index: 9;
}
@media only screen and (min-width: 668px) {
	.gallery .image-more {
		width: calc(25% - 4px);
		height: calc(100% - 4px);
		margin: 2px;
	}
}
.gallery .image:nth-child(n+6) {
	display: none;
}

span.icon {
	display: inline-block;
	vertical-align: baseline;
	margin-right: 8px;
}
span.icon-plus {
	background: url(./assets/images/icon-plus.svg) no-repeat center/contain;
}
span.icon-upload {
	background: url(./assets/images/icon-upload.svg) no-repeat center/contain;
}
span.icon-close {
	background: url(./assets/images/icon-close.svg) no-repeat center/contain;
}
span.icon-trash {
	background: url(./assets/images/icon-trash.svg) no-repeat center/contain;
}

.lightbox {
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.6);
	-webkit-backdrop-filter: blur(5px);
	        backdrop-filter: blur(5px);
	display: none;
}
.lightbox-header, .lightbox-footer {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
	    -ms-flex-direction: row;
	        flex-direction: row;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
}
.lightbox .gallery-carousel {
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
	height: calc(100% - 55px - 55px);
	overflow: hidden;
}
.lightbox .carousel {
	height: 100%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
}
.lightbox .carousel-count {
	width: 100%;
	color: #fff;
	font-size: 14px;
	line-height: 18px;
	font-family: "Libre Franklin", sans-serif;
	text-align: center;
	margin-left: 60px;
}
.lightbox button, .lightbox .button, .lightbox input[type=submit] {
	width: auto;
	padding: 20px 16px;
	line-height: 0;
	margin-left: auto;
}
.lightbox button .icon, .lightbox .button .icon, .lightbox input[type=submit] .icon {
	width: 16px;
	margin-right: 0;
}
.lightbox button .icon-close, .lightbox .button .icon-close, .lightbox input[type=submit] .icon-close {
	height: 16px;
}
.lightbox button .icon-trash, .lightbox .button .icon-trash, .lightbox input[type=submit] .icon-trash {
	height: 19px;
}
.lightbox .owl-stage {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
}
.lightbox .owl-nav {
	display: none;
}

.hide {
	display: none;
}

.content {
	width: 100%;
	max-width: 500px;
	margin: 40px auto 0;
	text-align: center;
}

@-webkit-keyframes spinner {
	0% {
		-webkit-transform: rotate(0deg);
		        transform: rotate(0deg);
	}
	100% {
		-webkit-transform: rotate(360deg);
		        transform: rotate(360deg);
	}
}

@keyframes spinner {
	0% {
		-webkit-transform: rotate(0deg);
		        transform: rotate(0deg);
	}
	100% {
		-webkit-transform: rotate(360deg);
		        transform: rotate(360deg);
	}
}
.loading {
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	text-align: center;
	background: rgba(251, 251, 251, 0.95);
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
}
.loading img {
	width: 50px;
	height: 50px;
	-webkit-animation: spinner 1.5s linear infinite;
	        animation: spinner 1.5s linear infinite;
}
.loading p {
	margin-top: 10px;
	color: #808080;
}
.loading p.progress {
	font-size: 0.7em;
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	-webkit-transform: translateY(-3.3em);
	        transform: translateY(-3.3em);
	font-weight: 700;
	color: #004684;
	text-align: center;
}
.loading:not(.active) {
	display: none;
}

.page-success .content,
.page-fail .content {
	margin-top: 25px;
}
@media only screen and (min-width: 668px) {
	.page-success .content,
	.page-fail .content {
		margin-top: 80px;
	}
}
.page-success .content h1,
.page-fail .content h1 {
	margin: 7px 0;
}
.page-success .content p,
.page-fail .content p {
	margin: 15px 0;
}
.page-success .content a,
.page-fail .content a {
	margin-top: 35px;
	display: block;
}
.page-success .content img,
.page-fail .content img {
	width: 65px;
	height: 65px;
}
@media only screen and (min-width: 668px) {
	.page-success .content img,
	.page-fail .content img {
		width: 80px;
		height: 80px;
	}
}

.error404 .content {
	margin-top: 75px;
}
.error404 h1 {
	margin: 0;
	color: #282828;
}
.error404 h2 {
	font-size: 28px;
	margin: -2px 0 10px;
}
@media only screen and (min-width: 668px) {
	.error404 h2 {
		margin: -2px 0 13px;
	}
}
.error404 a {
	margin-top: 35px;
	display: block;
}