/**
 * Copyright 2014 Google Inc. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


$card-anim-time: 0;

@import 'base/_color';
@import 'base/_reset';
@import 'base/_typography';
@import 'base/_layout';
@import 'base/_shadow';
@import 'base/_buttons';

@import 'components/reg-form/_palette';
@import 'components/reg-form/_textfield';

#ef-content-body > br {
	display: none;
}

#ef-ticket-info > div,
#ef-my-tickets > div {
	padding: 16px;
	background: $color-primary;
	color: #FFF;
	width: 100%;
	font-size: 16px;
	font-weight: 500;
	position: relative;
}

#ef-ticket-info > div:first-of-type > span:nth-child(1),
#ef-my-tickets > div:first-of-type > span:nth-child(1) {

	font-weight: 400;
	line-height: 32px;

	font-size: 24px !important;
	display: block;
	margin: 1em 0 0.4em 0;
}

#ef-ticket-info > div > br,
#ef-my-tickets > div > br {
	display: none;
}

.ef-event-additional > div:first-of-type > span:last-of-type,
#ef-ticket-info > div:first-of-type > span:last-of-type,
#ef-my-tickets > div:first-of-type > span:last-of-type {
	font-family: 'Roboto',sans-serif;
	font-size: 16px;
	opacity: 0.54;
	letter-spacing: -0.02em;
	color: #FFF;
}

.ef-event-additional > div:last-of-type,
#ef-ticket-info > div:last-of-type,
#ef-my-tickets > div:last-of-type {
	padding: 0 16px 32px 16px;
	font-family: 'Roboto',sans-serif;
	font-weight: 700;
}

.ef-event-additional > div:last-of-type {
	padding: 16px 16px 32px 0;
}

.ef-event-additional > div:last-of-type > span,
#ef-ticket-info > div:last-of-type > span,
#ef-my-tickets > div:last-of-type > span {
	font-size: 14px !important;
}

fieldset {
	padding: 32px 16px;
	margin: 0;
	border: none;
}

#ef-custom-container {
	padding-bottom: 20px;
	max-width: 500px;
	@include shadow-z2();
	margin: 0 auto;
	background: #FFF;
}

.rsvp-pocket p,
.user-grouping p {
	position: relative;
	min-height: 64px;
	margin: 0;
}

.rsvp-pocket label,
.user-grouping label {
	@include typo-subhead();
	font-weight: 400;
	color: rgba(0,0,0,0.54);
	letter-spacing: 0;
	position: absolute;
	line-height: 16px;
	margin: 16px 0 8px 0;
	top: 0;
	left: 0;
	pointer-events: none;

	-webkit-transition: all 0.3s cubic-bezier(0.0, 0.0, 0.2, 1);
	transition: all 0.3s cubic-bezier(0.0, 0.0, 0.2, 1);

	-webkit-transform-origin: 0 0;
	transform-origin: 0 0;
	will-change: transform;
}

.rsvp-pocket p.dirty label,
.user-grouping p.dirty label {

	-moz-osx-font-smoothing: grayscale;

	-webkit-transform: scale(0.75) translateY(-25px);
	transform: scale(0.75) translateY(-25px);

	color: rgba(0,0,0,0.54);

}

.rsvp-pocket p.active.dirty label,
.user-grouping p.active.dirty label {
	color: $color-primary;
}

.rsvp-pocket a.close {
	display: none !important;
}

.rsvp-pocket.open {
	padding: 0 !important;
	background: #FFF !important;
}

.rsvp-pocket input[type='text'],
.user-grouping input[type='text'] {
	@include typo-subhead();
	font-weight: 400;
	background: none;
	margin: 15px 0 0 0;
	line-height: 16px;
	letter-spacing: 0;
	width: 100%;
	border: none;
	padding: 0 0 8px 0;
	color: #212121;
	border-bottom: 2px solid rgba(0,0,0,0.2);
	box-sizing: initial;
	height: 16px;
}

.rsvp-pocket input[type='text']:disabled {
	color: $color-accent;
}

.input-group label {
	display: block;
	position: relative;
	pointer-events: auto !important;
	margin: 2px 0 1em 0;
	padding: 2px 0 0 24px
}

.input-group input[type="radio"],
.input-group input[type="checkbox"] {
	clear: both;
	float: left;
}

// .input-group label.radio:before {
// 	content: '';
// 	width: 16px;
// 	height: 16px;
// 	border-radius: 50%;
// 	border: 2px solid #212121;
// 	position: absolute;
// 	left: 4px;
// 	top: -1px;
// 	box-sizing: border-box;
// }

// .input-group label.radio:after {
// 	content: '';
// 	width: 16px;
// 	height: 16px;
// 	border-radius: 50%;
// 	background: $color-accent;
// 	position: absolute;
// 	left: 4px;
// 	top: -1px;

// 	-webkit-transform: scale(0.2);
// 	transform: scale(0.2);

// 	-webkit-transition: all 0.3s cubic-bezier(0.0, 0.0, 0.2, 1);
// 	transition: all 0.3s cubic-bezier(0.0, 0.0, 0.2, 1);

// 	will-change: transform;
// }

// .input-group label.radio:checked:after {
// 	-webkit-transform: scale(1);
// 	transform: scale(1);
// }
// .input-group label.radio:checked {
// 	border: 1px solid red;
// }

.input-group {
	display: inline-block !important;
	width: 100%;
	margin: 10px 0 10px 0;
}

/**
 * Clearfix helper
 * Used to contain floats: h5bp.com/q
 */

.input-group::before {
  height: 40px;
}

.input-group::before,
.input-group::after {
  content: "";
  display: table;
}

.input-group::after {
  clear: both;
}

.event-question, .user-questions {
	clear: both;
	position: relative;
	display: block;
}

.event-question,
.user-questions {
	display: inline-block;
	width: 100%;
}

.rsvp-pocket p:after,
.user-grouping p:after {
	content: '';
	display: block;
	position: absolute;
	bottom: 23px;
	height: 2px;
	width: 0;
	left: 50%;
	background: $color-primary;
	-webkit-transform: translateX(-50%);
	transform: translateX(-50%);
	will-change: width;

	-webkit-transition: width 0.5s cubic-bezier(0.0, 0.0, 0.2, 1);
	transition: width 0.5s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.rsvp-pocket p.active:after,
.user-grouping p.active:after {
	width: 100%;
}

.rsvp-pocket input:focus,
.user-grouping input:focus {
	outline: none;
}

.rsvp-pocket ::-webkit-input-placeholder,
.user-grouping ::-webkit-input-placeholder {
	opacity: 0;
}

.rsvp-pocket :-moz-placeholder,
.user-grouping :-moz-placeholder {
	opacity: 0;
}

.rsvp-pocket ::-moz-placeholder,
.user-grouping ::-moz-placeholder {
	opacity: 0;
}

.rsvp-pocket :-ms-input-placeholder,
.user-grouping :-ms-input-placeholder {
	opacity: 0;
}

.select-replace {
	display: none;
}

select {
	margin-top: 40px;
	margin-bottom: 30px;
}

.overlay {
	display: none !important;
}

div#ef-content-body > div,
main {
	padding: 32px 16px;
	border-top: 60px solid $color-primary;
	@include typo-headline();
	opacity: 1;
	color: #666666;
	letter-spacing: 0;
	line-height: 1.4;
	font-size: 16px;
}

main.with-timer {
	padding: 0;
	border: none;
}

main > fieldset {
	padding: 16px 0;
}

.purchase-summary {
	width: 100%;
	margin-top: 20px;
	font-size: 14px;
}

.rsvp-form > header {
	font-family: 'Roboto',sans-serif;
	letter-spacing: 0;
	padding: 32px 16px 0 16px;
}

.rsvp-form > header h2 {
	font-size: 14px;
	opacity: 0.54;
}

.rsvp-form > header h2 em {
	font-style: normal;
}

.rsvp-form > header h1 {
	font-size: 24px;
	opacity: 0.87
}

.rsvp-form > header br {
	display: none;
}

#popup_overlay {
	position: fixed !important;
	z-index: 1000 !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	background: rgba(0,0,0,0.3) !important;

	opacity: 1 !important;
	-webkit-backface-visibility: hidden;
	pointer-events: none;

}

#popup_container {
	width: 100% !important;
	max-width: 300px !important;
	border-radius: 2px !important;
	background: #FFF !important;
	padding: 24px 24px 16px 24px !important;
	position: absolute !important;
	left: 50% !important;
	top: 50% !important;
	border: none !important;

	will-change: opacity, transform;
	-webkit-backface-visibility: hidden;

	-webkit-transform: translate(-50%, -50%) translateY(15px);
	transform: translate(-50%, -50%) translateY(15px);

	-webkit-transition: -webkit-transform 0.15s cubic-bezier(0.0, 0.0, 0.2, 1),
			opacity 0.15s cubic-bezier(0.0, 0.0, 0.2, 1);
	transition: transform 0.15s cubic-bezier(0.0, 0.0, 0.2, 1),
			opacity 0.15s cubic-bezier(0.0, 0.0, 0.2, 1);

	@include shadow-z4();
}

#popup_panel {
	height: 36px;
	line-height: 36px;
}

#popup_panel .button {
	@include button();
	@include typo-button();
	margin: 0;
	background: none;
	float: right;
	padding: 0.8em 1.6em !important;
}

#popup_panel .button {
	color: $color-accent;
	padding-right: 16px;
}

#popup_content {
	background-image: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

#popup_message {
	padding: 0 0 24px 0 !important;
	font-size: 14px !important;
}

#popup_title {
	@include typo-title();
	padding-bottom: 24px;
	letter-spacing: 0;
	text-align: left !important;
	color: #212121 !important;
	background: none !important;
	border: none !important;
}

@media(min-width: 356px) {
	#popup_container {
		min-width: initial !important;
		max-width: 320px !important;
	}
}

