@charset "UTF-8";


.right {
	text-align: right;
}

.left {
	text-align: left;
}

.center {
	text-align: center;
}

/** Decorated panel **/

.decorated {
	background: #ccc;
	border: 1px solid gray;
	border-radius: 3px;
	padding: 1em;
}

.decorated.panel {
	padding: .5em;
}

.decorated h2 {
	margin: 0 0 .3em 0;
	padding: .2em;
	background: rgba(0, 0, 0, .3);
	text-align: center;
	border-radius: 3px;
	color: rgba(255, 255, 255, .9);
}

/** Decorated ovrlayed parts **/

.decorated .overlay {
	padding: 1em;
	background: #eee;
	border: 1px solid gray;
	border-radius: 3px;
}

/** Decorated form **/

.form-centered {
    text-align: center;
    padding: 1em 0;
}
.form-centered .form-container {
    display: inline-block;
    text-align: left;
    max-width: 75%;
}

form.decorated {
	padding: 1em .5em;
}

form.decorated *:invalid,
form.decorated .invalid {
	outline: 1px solid red;
}

form.decorated h2 {
	font-size: 19px;
}

form.decorated h3 {
	font-size: 17px;
}

form.simple-layout {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

form.simple-layout .grid-row {
	display: flex;
	width: 100%;
	max-width: 100%;
	flex-flow: row wrap;
	justify-content: stretch;
	align-items: center;
	margin-bottom: .2em;
}

form.simple-layout .grid-row > * {
	flex-grow: 1;
	min-width: 18em;
}

form.simple-layout .grid-row > *:first-child {
	flex-grow: 0;
	width: 1em;
	min-width: 7.5em;
}

form.simple-layout .field,
form.simple-layout .subfield
 {
	display: flex;
	flex-direction: row;
	width: 100%;
	justify-content: stretch;
	align-items: baseline;
}

form.simple-layout .field {
	flex-wrap: wrap;
}



form.simple-layout .subfield {
	flex-wrap: nowrap;
}

form.simple-layout .field > *,
form.simple-layout .subfield > * {
	margin-bottom: .3em;
	flex-grow : 1;
	flex-shrink: 1;
}

form.simple-layout .field > .subfield {
	margin-bottom: 0;
}

form.simple-layout .field > label,
form.simple-layout .subfield > label {
	box-sizing: border-box;
	padding-left: .5em;
	max-width: 7em;
	min-width: 7em;
	white-space: nowrap;
}

form.decorated label {
	white-space: nowrap;
	font-weight: bold;
}

form.simple-layout .submits {
	text-align: right;
}

button.standout-button,
input[type="submit"].standout-button,
input[type="button"].standout-button,
input[type="reset"].standout-button,
a.button.standout-button {
	font-weight: bold;
	background: #393;
	font-size: 13px;
	color: white;
}

button.standout-button:hover,
input[type="submit"].standout-button:hover,
input[type="button"].standout-button:hover,
input[type="reset"].standout-button:hover,
a.button.standout-button:hover,
button.standout-button:focus,
input[type="submit"].standout-button:focus,
input[type="button"].standout-button:focus,
input[type="reset"].standout-button:focus,
a.button.standout-button:focus {
	background: #4a4;
}

button.standout-button:active,
input[type="submit"].standout-button:active,
input[type="button"].standout-button:active,
input[type="reset"].standout-button:active,
a.button.standout-button:active {
	background: #282;
	color: #aca;
}

button.standout-button:disabled,
input[type="submit"].standout-button:disabled,
input[type="button"].standout-button:disabled,
input[type="reset"].standout-button:disabled,
a.button.standout-button:disabled {
	filter: grayscale(70%);
}

/* START MESSAGES */

.messages {
	
}

.messages p {
	margin: .2em 0;
	padding: .5em;
				
	font-weight: bold;
	text-align: center;
    color: #fee;
    
	border-radius: .5em;
	border: 1px solid #ccc;
	box-shadow: inset -3px 3px 5px 0 rgba(255, 255, 255, .7),
				inset 3px -3px 5px 0 rgba(0, 0, 0, .3);
}

.messages .error {
	background: #d55;
}

.messages .success {
    background: #009412;
}

.messages .warning {
	background: #f8db14;
	color: #806411;
}

.messages.demo-mode .title {
	text-align: center;
	font-size: 20px;
}

.messages.demo-mode .one-line {
	display: block;
}

/** Disclaimer **/

.disclaimer {
	background: #eee;
	font-size: 13px;
	font-style: italic;
	padding: .5em;
	margin-bottom: 1em;
}

.disclaimer p {
/* 	background: #ddd; */
	color: #555;
	text-align: center;
	margin: 0;
	padding: .5em;
}

.disclaimer p + p {
	margin-top: .5em;
}

.disclaimer p.attention {
	text-transform: uppercase;
}

.shout {
	background: #f2ecd0;
	color: #806411;
	border: 1px solid #cfb870;
	border-radius: 3px;
	padding: 1em;
	margin: 1em 0;
}

.shout.louder {
	text-align: left;
	border: 1px solid red;
}

.shout p {
	margin: 0;
}

.shout *+p {
	margin-top: .5em;
}

.smalltext {
	font-size: 15px;
	font-style: italic;
}

.decorated .errors {
	margin-bottom: 1em;
}

.explain {
	font-size: .8em;
	padding: .25em .5em;
	margin: .5em 0;
	font-style: italic;
	text-align: justify;
}

/* END MESSAGES */ 

form .fake-input, form.decorated label.fake-input {
	border: 1px solid black;
	font-weight: normal;
	padding: .2em;
	overflow: auto;
	text-overflow: ellipsis;
}

form + .form-options {
	display: flex;
    flex-flow: row nowrap;
    justify-content: space-around;
    align-items: center;
}

.form-options a {
	font-size: 10.5px;
	text-decoration: underline;
	color: black;
}

.form-options a:hover,
.form-options a:focus {
	color: #033590;
	text-decoration: underline;
}

.error a,
.warning a,
.success a {
	color: inherit;
	font-weight: normal;
}

form.decorated .submits {
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-end;
	align-items: center;
}

form.simple-layout.decorated .submits {
	text-align: left;
	text-align: initial;
}

form.decorated .submits > * {
	margin-left: .5em;	
}

form.decorated .submits > *:first-child {
	margin-left: 0;
}

form.decorated .submits input,
form.decorated .submits button,
form.decorated .submits .button
{
	font-size: 13px;	
}

form.decorated .submits .conds {
	flex-grow: 1;
	flex-shrink: 1;
	display: flex;
	align-items: center;
	flex-flow: row nowrap;
}

form.decorated .submits .conds input {
	margin-right: .5em;
}

form.decorated .submits .conds label {
	white-space: normal;
}

/** Data tables (cart, order, ...) **/

table.data {
	border-collapse: collapse;
 	width: 100%;
	background-color: white;
}

table.data th,
table.data td {
	border: 1px solid #ddd;
  	padding: 8px;
}

table.data th {
	background-color: #eee;
	padding-top: 12px;
  	padding-bottom: 12px;
  	text-align: center;
}

table.data.double-row tr:nth-child(2n) {
	background-color: inherit;
}

table.data tr:nth-child(2n),
table.data.double-row tr:nth-child(4n),
table.data.double-row tr:nth-child(4n-1)
 {
	background-color: #eee;
}

table.data tbody > tr:hover,
table.data.double-row tbody > tr:hover {
	background-color: #eaeaea;
}

table.data tfoot {
	font-weight: bold;
	font-style: italic;
	text-transform: uppercase;
	background-color: #eee;
}

table.data tfoot td {
	text-align: right;
}

table.data tr.narrow-screen {
	display: none;
}

/** Sub-layout with submenu **/

.submenu-wrapper {
	flex-grow: 1;
	flex-shrink: 1;
	display: flex;
	flex-flow: row nowrap;
	height: 100%;
    align-self: stretch;
}

.submenu {
	display: flex;
	flex-flow: column nowrap;
	text-align: center;
	align-items: stretch;
	align-content: center;
	justify-content: flex-start;
    min-width: 10em;
	max-width: 17%;
	margin-left: .2em;
	margin-right: .5em;
	padding: 0 .3em;
	background: #eee;
	border-radius: .2em .2em 0 0;
}

.submenu-page {
	flex-grow: 1;
	flex-shrink: 1;
	display: flex;
    flex-flow: column nowrap;
    justify-content: center;
}

.submenu h4 {
	margin: 0 -.3em;
	padding: .2em;
	background: gray;
	border-radius: .2em .2em 0 0;
	color: #eee;
	font-variant: small-caps;
	text-transform: capitalize;
}

.submenu a {
	margin-top: .4em;
	padding: .2em 1.2em;
	background: #ccc;
	border-radius: .2em;
	color: DimGray;
	text-decoration: none;
}

.submenu a:focus,
.submenu a:hover {
	background-color: #ddd;
	color: Black;
}

.submenu a.selected {
	background-image: url('../img/arrow-right.png');
	background-position: center right .4em;
	background-size: .4em .7em;
	background-repeat: no-repeat;
	color: #533;
}

.submenu .separator {
	margin-top: .4em;
	border-top: 1px solid #999;
	border-bottom: 1px solid #ccc;
}

/* User account */

#orderExpress-page h2,
#useraccount-page h2,
#adminaccount-page h2 {
	padding: .2em;
	background: rgba(0, 0, 0, .3);
	border-radius: 3px;
	color: rgba(255, 255, 255, .9);
}

#orderExpress-page article,
#useraccount-page article,
#adminaccount-page article {
    flex-grow: 1;
	flex-shrink: 1;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
}

/* Admin order details */
#adminaccount-page #orderdetails,
#adminaccount-page #createAdmin-page, 
#useraccount-page #orderdetails {
	align-self: stretch;
}

/* password complexity indicators (created in js) */

/* form .password-check {
	display: inline-flex;
	flex-flow: column nowrap;
	align-items: stretch;
}

form .password-check .indicator-wrapper {
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	align-content: center;
}

form .password-check .indicator {
	position: relative;
	margin-top: 1px;
	height: .7em;
	background: linear-gradient(90deg, rgba(255,0,0,1) 0%, rgba(255,209,0,1) 75%, rgba(0,255,0,1) 100%);
	border: 1px solid gray;
	min-width: 7em;
	flex-grow: 1;
	flex-shrink: 1;
}

form .password-check .indicator-mask {
	position: absolute;
	top: 0;
	right: 0;
	width: 50%;
	height: 100%;
	background: black;
	opacity: .7;
}

form .password-check .indicator-result {
	width: 7em;
	flex-grow: .1;
	flex-shrink: 1;
	text-align: center;
	margin: 0;
	padding: 0;
	font-size: 70%;
	line-height: .7em;
	color: gray;
}

.password-check .indicator-result.verypoor {
	color: red;
}

.password-check .indicator-result.poor {
	color: #ff5c00;
}

.password-check .indicator-result.fair {
	color: #aa7705;
}

.password-check .indicator-result.good {
	color: green;
}

.password-check .indicator-result.better,
.password-check .indicator-result.best {
	color: #24b024;
} */

form .create-password .password-inputs {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

form .create-password .indicator-wrapper {
    display: none;
    flex-flow: row wrap;
    align-items: center;
    align-content: center;
}

form .create-password .password-field {
    margin-bottom: 2px;
}

form .create-password .indicator-wrapper.jsready {
    display: flex;
}

form .create-password .indicator-mask {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: .7;
}

form .create-password .indicator {
    position: relative;
    margin-bottom: 2px;
    height: .7em;
    background: linear-gradient(90deg, rgba(255,0,0,1) 0%, rgba(255,209,0,1) 75%, rgba(0,255,0,1) 100%);
    border: 1px solid gray;
    min-width: 7em;
    flex-grow: 1;
    flex-shrink: 1;
}

form .create-password .indicator-result {
    width: 7em;
    flex-grow: .1;
    flex-shrink: 1;
    text-align: center;
    margin: 0;
    padding: 0;
    font-size: 70%;
    line-height: .7em;
    color: black;
}

/* ui dialog */
.ui-dialog.wait .ui-dialog-titlebar-close {
  	display: none;
}

.ui-dialog.wait .ui-dialog-titlebar {
	display: none;
}

.ui-dialog.wait .ui-dialog-content {
	text-align: center;
	min-height: 0 !important;
	color: gray;
	font-style: italic;
}

.dialogmessage {
	margin-top: 1em;
}
/* end ui-dialog */

/* MEDIA QUERIES */

@media screen and (max-width: 768px) {
	table.data tr.narrow-screen {
		display: table-row;
	}
	
	table.data td.normal-screen,
	table.data th.normal-screen,
	table.data tfoot tr.normal-screen {
		display: none;
	}
	
	table.data.double-row tr:nth-child(4n-1) {
		background-color: #eee;
	}
	
	/* SUB MENU */
	.submenu-wrapper {
		flex-flow: column nowrap;
		width: 100%;
		height: auto;
	}
	
	.submenu {
		flex-flow: row wrap;
		max-width: none;
		margin: 0 -.5em;
		padding: .2em;
		border-radius: 0;
		align-items: center;
		justify-content: space-around;
		align-content: center;
	}
	
	.submenu h4 {
		margin: .1em .2em;
		border-radius: .2em;
		padding: .2em .4em;
	}
	
	.submenu a {
		margin: .1em .2em;
	}
	
	.submenu a.selected {
		background-image: url('../img/arrow-right.png'), url('../img/arrow-left.png');
		background-position: center right .4em, center left .4em;
		background-size: .4em .7em, .4em .7em;
	}
	
	.submenu .separator {
		margin: .1em .2em;
		height: 1em;
		width: 0;
		background: black;
		padding: .2em 0;
		border: none;
		border-left: 1px solid #999;
		border-right: 1px solid #ccc;
	}
}


@media only screen and (max-device-width : 560px) , screen and (max-width: 560px) {
	
	/* SubMenu */
	
	.submenu {
		font-size: 13px;
	}

}


@media only screen and (max-device-width : 400px), screen and (max-width: 400px) {
	
	table.data {
		font-size: 13px;
	}
	
}