/**
 * Extra styles for Taxi Eder child theme (child of Zerif Lite).
 */

 @font-face {
	font-family: 'Lato';
	src:url('../fonts/lato/lato-regular.woff2') format('woff2'),
		url('../fonts/lato/lato-regular.woff') format('woff'),
		url('../fonts/lato/lato-regular.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'Lato';
	src:url('../fonts/lato/lato-bold.woff2') format('woff2'),
		url('../fonts/lato/lato-bold.woff') format('woff'),
		url('../fonts/lato/lato-bold.ttf') format('truetype');
	font-weight: bold;
	font-style: normal;
}

@font-face {
	font-family: 'Lato';
	src:url('../fonts/lato/lato-italic.woff2') format('woff2'),
		url('../fonts/lato/lato-italic.woff') format('woff'),
		url('../fonts/lato/lato-italic.ttf') format('truetype');
	font-weight: normal;
	font-style: italic;
}

@font-face {
	font-family: 'Lato';
	src:url('../fonts/lato/lato-light.woff2') format('woff2'),
		url('../fonts/lato/lato-light.woff') format('woff'),
		url('../fonts/lato/lato-light.ttf') format('truetype');
	font-weight: 300;
	font-style: normal;
}

@font-face {
	font-family: 'Montserrat';
	src:url('../fonts/montserrat/montserrat-regular.woff2') format('woff2'),
		url('../fonts/montserrat/montserrat-regular.woff') format('woff'),
		url('../fonts/montserrat/montserrat-regular.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'Montserrat';
	src:url('../fonts/montserrat/montserrat-bold.woff2') format('woff2'),
		url('../fonts/montserrat/montserrat-bold.woff') format('woff'),
		url('../fonts/montserrat/montserrat-bold.ttf') format('truetype');
	font-weight: bold;
	font-style: normal;
}

/**
 * Zerif Lite sets font-size of all elements to 16px - kills the "C" in CSS...
 */
body, html {
	font-size: 16px;
}
a, address, b, dd, div, dl, dt, em, i, p, small, span, strike, strong {
	font-size: inherit;
}

/**
 * "text-alignment: justify" should be used in justified situations...
 */
.entry-content p {
	text-align: left;
}

@media screen and (max-width: 480px) {
	.entry-content p {
		margin: 0 0 1em;
	}
	.entry-content p:last-child {
		margin-bottom: 0;
	}
	h2 {
		font-size: 26px !important; /* instead of 6.5vw !important */
	}
}

@media screen and (max-width: 767px) {
	footer {
		padding-top: 0;
	}
}


/** More vertical space to the lists */
.entry-content ol,
.entry-content ul {
	margin-bottom: 1em;
}

.entry-content li {
	margin-top: 0.5em;
}

/**
 * Contact Form 7 styling
 */
input[type="email"].wpcf7-form-control,
input[type="text"].wpcf7-form-control,
textarea.wpcf7-form-control {
    border-radius: 4px;
    padding: 8px 16px;
    width: 100%;
    margin: 0;
}

.form_body_wrap:after {
    content: "";
    display: table;
    clear: both;
}

.wpcf7-form .form_field_wrap:not(:last-child) {
    margin-bottom: 20px;
}

.wpcf7-form div.wpcf7-response-output {
    margin-top: 1em; /* default is 2em */
}

.wpcf7-form div.wpcf7-validation-errors {
    border-color: #cb4332;
}
/* Contact us section has rather dark background, so adapt response color. */
.contact-us div.wpcf7-response-output {
    color: #fff;
}


/**
 * Display "demo store" text at the bottom instead of top
 */
p.demo_store {
	top: auto;
	bottom: 0;
}


/**
 * Term (category) description text aligns to left
 */
.woocommerce-page .term-description {
	margin-top: 2em;
	text-align: left;
}


/**
 * Product loop item title - H3 has a lot of "unwanted" styling from Zerif Lite.
 */
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
	display: block;
	margin: 0;
	padding: 0.25em 0;
	color: inherit;
	font-family: 'Montserrat', sans-serif;
	font-size: 20px !important; /* sadly, Zerif Lite authors were so desperate, so we must too... */
	line-height: 1.5;
	text-transform: none;
}


/**
 * Keep price in anchor color
 */
.woocommerce ul.products li.product .price {
	color: inherit;
	float: none;
}


/**
 * Product loop item description
 */
.woocommerce-product-details__short-description {
	color: #000;
	float: none;
	text-align: center;
}
.woocommerce-product-details__short-description p {
	font-size: smaller;
	margin-bottom: 1em;
}
.woocommerce-product-details__short-description p * {
	font-size: inherit;
}


/**
 * Product loop item - center the text
 */
ul.products li.product {
	text-align: center;
}


/**
 * Single product - align text to left
 */
div.product {
	text-align: left;
}


/**
 * Single product wrapper - clear after (floated contents), apply some padding.
 */
div.product {
	padding-bottom: 2em;
}
div.product:after {
	display: table;
	content: '';
	clear: both;
}


/**
 * Single product page has two main sections:
 * (1) summary with product description and (optional) image
 * (2) booking form with calendar and booking button
 *
 * On small screens, summary is presented before booking form.
 * On large screens, summary is presented in left column, booking from in right.
 */
.woocommerce-page #content div.product div.entry-summary,
.ted-booking-form {
	float: none;
	width: 100%;
	padding: 0;
}
@media screen and (min-width: 768px) {
	.woocommerce-page #content div.product div.entry-summary {
		float: left;
		width: 47.5%;
	}
	.ted-booking-form {
		float: right;
		width: 47.5%;
	}
}
@media screen and (min-width: 1024px) {
	.woocommerce-page #content div.product div.entry-summary {
		width: 57.5%;
	}
	.ted-booking-form {
		width: 37.5%;
	}
}


/**
 * Reset top margin to product summary set by Zerif Lite
 */
@media screen and (max-width: 600px) {
	.woocommerce-page .product .entry-summary {
		margin-top: 0;
	}
}


/**
 */
.product_title {
	font-size: 24px;
	line-height: 1.5;
}


/**
 * Price and cart do not have to float...
 */
.woocommerce-page .product .price,
.woocommerce-page .product .cart {
	float: none;
}


/**
 * Images does not have to float, expand their bottom margin a bit.
 */
.woocommerce-page #content div.product div.images {
	float: none;
	width: 100%;
	margin-bottom: 3em;
}


/**
 * Reset styles set by Zerif Lite to .label
 */
.wc-bookings-date-picker span.label {
	padding: 0;
	color: inherit;
	font-size: inherit;
	font-weight: normal;
}


/**
 * Reset (vertical) padding to calendar table cells, it makes the calendar
 * excessively high.
 */
.wc-bookings-date-picker .ui-datepicker th {
	padding: 0;
}
.wc-bookings-date-picker .ui-datepicker td .ui-state-default {
	padding: 0;
}


/**
 * No need to display (identical) thumbnails in cart view.
 */
.woocommerce-cart table.cart .product-thumbnail {
	display: none;
}



.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
	margin-bottom: 2em;
}

/**
 */
.woocommerce-checkout dd p {
	margin: 0;
}


/**
 * Percentual horizontal padding on input fields... oh my!
 */
.woocommerce-page .woocommerce .checkout input,
.woocommerce-page .woocommerce .checkout textarea,
.woocommerce-page .woocommerce .checkout select {
	padding: 12px;
}

#order_comments {
	min-height: 8em;
}

#add_payment_method #payment div.payment_box:before,
.woocommerce-checkout #payment div.payment_box:before {
	display: none;
}

.woocommerce-page .woocommerce #payment div.payment_box {
	width: 100%;
	padding: 0.5em;
}

.woocommerce-page .woocommerce #payment div.payment_box p {
	text-align: left;
}

@media screen and (max-width: 360px) {
	.woocommerce-page .woocommerce #payment ul.payment_methods li {
		margin-left: 1em;
	}
	/**
     * Fix for default WooCommerce styles: let products in cross-sells section
     * occupy 100% width on small mobiles.
     */
	.woocommerce .cart-collaterals .cross-sells ul.products li,
	.woocommerce-page .cart-collaterals .cross-sells ul.products li {
		width: 100%;
	}
}

/**
 * Increase font-size of submit button (from 12px)
 */
.woocommerce-page .woocommerce input[type="submit"],
.woocommerce-page #content input.button,
.woocommerce input.button.alt,
.woocommerce-page #content input.button.alt,
.woocommerce-page input.button.alt {
	font-size: 14px;
}

@media screen and (max-width: 480px) {
	.woocommerce-page .woocommerce-error,
	.woocommerce-page .woocommerce-message,
	.woocommerce-page .woocommerce-error li,
	.woocommerce table.shop_table td,
	.woocommerce table.shop_table td span,
	.woocommerce table.shop_table td a,
	.woocommerce table.shop_table td strong,
	.woocommerce form .form-row label,
	.woocommerce table.shop_table td .amount,
	.woocommerce-page address,
	.woocommerce-cart .cart-collaterals .cart_totals table td,
	.woocommerce-cart .cart-collaterals .cart_totals table td span,
	.woocommerce-cart .cart-collaterals .cart_totals table td a	{
		font-size: inherit;
	}
	.woocommerce-page .woocommerce .product-name a {
		font-size: 14px;
		line-height: inherit;
		float: none; /* ! */
	}
	.woocommerce-page .woocommerce #payment div.payment_box p {
		font-size: 14px;
		line-height: 1.25;
	}
	.woocommerce table.shop_table th {
		font-size: 12px;
	}
}

/**
 * AGB stimmung :)
 */
.woocommerce-page .woocommerce .checkbox {
	float: none;
}


/**
 * Some fixes of default WooCommerce styles for small devices
 */
@media only screen and (max-width: 768px) {
	/**
	 * Do not limit width of action buttons (in German labels are really long)
	 */
	.woocommerce #content table.cart td.actions .button,
	.woocommerce #content table.cart td.actions .input-text,
	.woocommerce #content table.cart td.actions input,
	.woocommerce table.cart td.actions .button,
	.woocommerce table.cart td.actions .input-text,
	.woocommerce table.cart td.actions input,
	.woocommerce-page #content table.cart td.actions .button,
	.woocommerce-page #content table.cart td.actions .input-text,
	.woocommerce-page #content table.cart td.actions input,
	.woocommerce-page table.cart td.actions .button,
	.woocommerce-page table.cart td.actions .input-text,
	.woocommerce-page table.cart td.actions input {
		width: auto;
	}
	/**
	 * More space between Terms and "Pay" button
	 */
	.woocommerce #payment .terms, .woocommerce-page #payment .terms {
		margin-bottom: 1em;
	}
}