
/* ---------- Common Asteikko Auth styling ---------- */

*[class*="asauth-only-accesslevel-"] {
  display: none;
}
body.asauth-accesslevel-1 .asauth-only-accesslevel-1,
body.asauth-accesslevel-2 .asauth-only-accesslevel-2,
body.asauth-accesslevel-3 .asauth-only-accesslevel-3,
body.asauth-accesslevel-4 .asauth-only-accesslevel-4,
body.asauth-accesslevel-5 .asauth-only-accesslevel-5,
body.asauth-accesslevel-6 .asauth-only-accesslevel-6,
body.asauth-accesslevel-7 .asauth-only-accesslevel-7,
body.asauth-accesslevel-8 .asauth-only-accesslevel-8,
body.asauth-accesslevel-9 .asauth-only-accesslevel-9,
body.asauth-accesslevel-10 .asauth-only-accesslevel-10,
body.asauth-accesslevel-999 .asauth-only-accesslevel-999 {
  display: initial;
}
body.asauth-accesslevel-1 .asauth-not-accesslevel-1,
body.asauth-accesslevel-2 .asauth-not-accesslevel-2,
body.asauth-accesslevel-3 .asauth-not-accesslevel-3,
body.asauth-accesslevel-4 .asauth-not-accesslevel-4,
body.asauth-accesslevel-5 .asauth-not-accesslevel-5,
body.asauth-accesslevel-6 .asauth-not-accesslevel-6,
body.asauth-accesslevel-7 .asauth-not-accesslevel-7,
body.asauth-accesslevel-8 .asauth-not-accesslevel-8,
body.asauth-accesslevel-9 .asauth-not-accesslevel-9,
body.asauth-accesslevel-10 .asauth-not-accesslevel-10,
body.asauth-accesslevel-999 .asauth-not-accesslevel-999 {
  display: none;
}


/* ---------- Notification boxes / dialogs ---------- */

.asauth-notificationBox p {
	font-size: 13px;
	line-height: 18px;
}

.asauth-opaqueOverlay {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  background-color: #f9f9f9;
  z-index: 2000;
  -webkit-transform: translate3d(0,0,0); /* fixes an Android bug where elements don't honor z-index */
}

.asauth-notificationBox {
	overflow: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
	z-index: 20;
	width: 400px;
	max-width: 90%;
	max-height: 80%;
	background: #f8faf9;
	box-shadow: 0px 1px 5px rgba(0,0,0,.5);
}

#asauth-orderproduct {
  z-index: 9999;
}

.asauth-notificationBoxContent {
  overflow: hidden; /* for floated elements */
	padding: 25px;
}

.asauth-notificationBoxContent h2 {
	margin: 0 0 15px;
	padding: 0 0 5px;
	border-bottom: 2px solid #eee;
	color: #00acec;
	font-size: 20px;
}

.asauth-notificationBoxContent p {
	margin: 0 0 30px;
	color: #444;
}

.asauth-textButton {
  background: #c9c8ca;
  background: -moz-linear-gradient(top,  #c9c8ca 20%, #bcb6b6 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(20%,#c9c8ca), color-stop(100%,#bcb6b6));
  background: -webkit-linear-gradient(top,  #c9c8ca 20%,#bcb6b6 100%);
  background: -o-linear-gradient(top,  #c9c8ca 20%,#bcb6b6 100%);
  background: -ms-linear-gradient(top,  #c9c8ca 20%,#bcb6b6 100%);
  background: linear-gradient(to bottom,  #c9c8ca 20%,#bcb6b6 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c9c8ca', endColorstr='#bcb6b6',GradientType=0 );
  border-bottom: 2px solid #a59e9f;
  border-right: 1px solid #b8b7ba;
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

.asauth-textButton > span {
  color: #685e61;
  text-transform: uppercase;
  display: inline-block;
  padding: 7px 10px;
  min-height: 1.3em;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  line-height: 15px;
  letter-spacing: 1px;
}

@media only screen and (max-width: 420px) {
	.asauth-textButton {
		clear: both;
		width: 100%;
		margin: 10px 0;
	}
}

/* 'body' prepended to override 'body.asmag-active > *' */
body .asauth-dialog-wrapper {
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  display: -webkit-flex;
  display: -ms-flex;
  display: -moz-flex;
  justify-content: center;
  -webkit-justify-content: center;
  -ms-justify-content: center;
  -moz-justify-content: center;
  align-items: center;
  -webkit-align-items: center;
  -ms-align-items: center;
  -moz-align-items: center;
}

.asauth-dialog-close {
  position: absolute;
  top: 7px;
  right: 9px;
  font-size: 28px !important;
  cursor: pointer;
  opacity: 0.5;
  z-index: 10;
}

.asauth-paywall-contents .asauth-widget-login {
  display: none; /* Hide login by default in the paywall dialog */
}

.asauth-paywall-contents {
  margin-bottom: 0.8em;
}


/* ---------- Product widget ---------- */

.widget_asauth_widget_product {
  overflow: hidden;
}
.asauth-widget-producttitle {
  font-size: 14px;
  line-height: 16px;
  margin-bottom: 0.5em;
  font-weight: 700;
}
.asauth-widget-productdescription {
  font-size: 13px;
  line-height: 16px;
  margin-bottom: 1em;
}
.asauth-widget-productprice {
  float: left;
  font-weight: 700;
  font-size: 16px;
  margin-top: 8px;
}

.asauth-widget-buybutton {
  margin-top: 0em;
  margin-right: 1%;
  background: #c9c8ca;
  background: -moz-linear-gradient(top, #c9c8ca 20%, #bcb6b6 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(20%,#c9c8ca), color-stop(100%,#bcb6b6));
  background: -webkit-linear-gradient(top, #c9c8ca 20%,#bcb6b6 100%);
  background: -o-linear-gradient(top, #c9c8ca 20%,#bcb6b6 100%);
  background: -ms-linear-gradient(top, #c9c8ca 20%,#bcb6b6 100%);
  background: linear-gradient(to bottom, #c9c8ca 20%,#bcb6b6 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c9c8ca', endColorstr='#bcb6b6',GradientType=0 );
  border-bottom: 2px solid #a59e9f;
  border-right: 1px solid #b8b7ba;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  float: right;
}
.asauth-widget-buybutton span {
  color: #685e61;
  text-transform: uppercase;
  display: inline-block;
  padding: 0px;
  min-height: 1.3em;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  line-height: 15px;
  letter-spacing: 1px;
}

.orderproductreturn {
  font-family: sans-serif;
}


/* ---------- Paywall dialog ---------- */

.asauth-logged-in-paywall p {
  margin-bottom: 6px;
}
.asauth-orderbutton {
  float: right;
}
.asauth-logged-in-paywall .loader {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: none;
  background-color: rgba(255,255,255,0.7);
  z-index: 5;
}


/* ---------- Orders widget ---------- */

.asauth-widget-orders__order {
  margin-bottom: 10px;
}

