/**
 * Frontend Css
 * WP Restaurant Manager Plugin
 *
 * @package     wprm
 * @copyright   Copyright (c) 2014, Alessandro Tesoro
 * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
*/

#wprm-booking-form label {
	display: block;
	font-weight: bold;
}
#wprm-booking-form .wprm-description {
	display: block;
	font-size: 0.9em;
	color: #999;
}
#wprm-booking-form input[type=text],
#wprm-booking-form input[type=email],
#wprm-booking-form textarea,
#wprm-booking-form select {
	margin-bottom: 10px;
}

/* Extended Fields Option */ 
#wprm-booking-form.extended input[type=text],
#wprm-booking-form.extended input[type=email],
#wprm-booking-form.extended textarea,
#wprm-booking-form.extended select {
	width: 100%;
}

/* Fix-Reset tables layout inside datepicker */
#wprm-booking-form.adjusted td, #wprm-booking-form.adjusted thead th {
	border-top: 0px;
	padding: initial !important;
	text-align: inherit;
	color: initial;
	font-size: initial;
	line-height: inherit;
	margin: inherit;
	width: inherit;
}

#wprm-booking-form.adjusted table {
 	margin-top: .75em;
 	border:0px;
}

#wprm-booking-form.adjusted li {
	margin: auto !important;
	list-style: none;
}

#wprm-booking-form.adjusted button {
	font-size: inherit;
}

#wprm-booking-form.split_column #wprm-date-wrap {
	float: left;
	width: 45%;
	margin-right: 5%;
}

#wprm-booking-form.split_column #wprm-time-wrap {
	width: 50%;
	float: left;
}

.wprm-clearfix {
	display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}

/* -------------------------------------------------------------------------------- */
/* Shortcode styling */
/* -------------------------------------------------------------------------------- */

.wprm_shortcode.wprm_single_menu_item ul {
	list-style: none;
	margin: 0 0 20px 0;
	overflow: hidden;
}

.wprm_shortcode.wprm_single_menu_item li {
	overflow: hidden;
	margin: 0 0 15px 0;
}

.wprm_shortcode.wprm_single_menu_item .wp-post-image {
	float: left;
	margin: 5px 20px 10px 0;
}

.wprm_shortcode.wprm_single_menu_item div {
	overflow: hidden;
}

.wprm_shortcode.wprm_single_menu_item ul p {
	margin: 0;
}

.wprm_shortcode.wprm_single_menu_item .head {
	margin-bottom: 5px;
}

.wprm_shortcode.wprm_single_menu_item .title {
	float: left;
	padding: 0 5px 0 0;
	text-transform: uppercase;
}

.wprm_shortcode.wprm_single_menu_item .price {
	float: left;
	padding: 0 0 0 5px;
}

.wprm_shortcode.wprm_single_menu_item .description {
	font-style: italic;
}

.wprm_shortcode.wprm_single_menu_item .labels {
	overflow: hidden;
	padding-top: 10px;
}

.wprm_shortcode.wprm_single_menu_item .labels span {
	float: left;
	margin-right: 10px;
	font-size: 11px;
}

/* classic style */

.wprm_shortcode.wprm_single_menu_item.minimal li div.head {
	background: url("../images/dot.png") repeat-x 0 16px;
}

.wprm_shortcode.wprm_single_menu_item.minimal .price {
	float: right;
}

.wprm_shortcode.wprm_single_menu_item.minimal .title,
.wprm_shortcode.wprm_single_menu_item.minimal .price {
	background: #FFFFFF;
}

.wprm_shortcode.wprm_category_menu.wprm_single_menu_item.minimal .wprm_category_title {
	margin-bottom: 5px;
}

table.nutritional_attributes {
  margin-bottom: 4.236em;
  border-spacing: 0;
  width: 100%;
  border: 1px solid #e5e5e5;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  background: #fafafa;
  border-collapse: separate;
}
table.nutritional_attributes td,
table.nutritional_attributes th {
  padding: .857em 1.387em;
  text-align: left;
  border-right: 1px dotted #e5e5e5;
  vertical-align: top;
}
table.nutritional_attributes td p:last-child,
table.nutritional_attributes th p:last-child {
  margin-bottom: 0;
}
table.nutritional_attributes thead th {
  font-size: .9em;
  color: #686868;
  background: #fff;
  border-right: 1px dotted #e9e9e9;
  border-bottom: 2px solid #e5e5e5;
  text-transform: uppercase;
  padding: 1.387em;
  vertical-align: middle;
}
table.nutritional_attributes thead th:first-child {
  -webkit-border-top-left-radius: 4px;
  -webkit-border-bottom-left-radius: 4px;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  -webkit-border-bottom-left-radius: 0;
  -webkit-border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}
table.nutritional_attributes thead th:last-child {
  -webkit-border-top-right-radius: 4px;
  -webkit-border-bottom-right-radius: 4px;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  -webkit-border-bottom-left-radius: 0;
  -webkit-border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}
table.nutritional_attributes tr th:last-child,
table.nutritional_attributes tr td:last-child {
  border-right: 0;
}
table.nutritional_attributes tbody th {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}
table.nutritional_attributes tbody tr:nth-child(2n) td {
  background: #fff;
  border-right: 1px dotted #e9e9e9;
}
table.nutritional_attributes tbody tr:nth-child(2n) td:last-child {
  border-right: 0;
}
table.nutritional_attributes tbody td {
  border-bottom: 1px solid #e5e5e5;
  -webkit-box-shadow: inset 0 1px 0 0 #fafafa, inset 0 -1px 0 #ffffff;
  box-shadow: inset 0 1px 0 0 #fafafa, inset 0 -1px 0 #ffffff;
}
table.nutritional_attributes tbody h2 {
  font-size: 1em;
  letter-spacing: normal;
  font-weight: normal;
}
table.nutritional_attributes tbody h2 a {
  font-weight: normal;
}
table.nutritional_attributes tbody tr:last-child td:first-child {
  -webkit-border-bottom-left-radius: 4px;
  -webkit-border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  -webkit-border-top-right-radius: 0;
  -webkit-border-bottom-right-radius: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}
table.nutritional_attributes tbody tr:last-child td:last-child {
  -webkit-border-bottom-left-radius: 4px;
  -webkit-border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  -webkit-border-top-left-radius: 0;
  -webkit-border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}
table.nutritional_attributes tbody tr:last-child td {
  border-bottom: 0;
}
table.nutritional_attributes tfoot tr:first-child th,
table.nutritional_attributes tfoot tr:first-child td {
  border-top: 1px solid #e5e5e5;
}
table.nutritional_attributes tfoot th,
table.nutritional_attributes tfoot td {
  background: #fff;
}

.wprm-chilly-level {
  padding: 3px 10px;
  font-size: 10px;
  text-transform: uppercase;
  border-radius: 3px;
  background: #000;
  color: #fff;
  margin-top: 5px;
  display: inline-block;
}

.wprm-chilly-level-1 {
  background: #668A0A
}
.wprm-chilly-level-2 {
  background: #737C0F;
}
.wprm-chilly-level-3 {
  background: #AC882B;
}
.wprm-chilly-level-4 {
  background: #DB9740;
}
.wprm-chilly-level-5 {
  background: #E24F4F;
}
.wprm-veg {
  padding: 3px 10px;
  font-size: 10px;
  text-transform: uppercase;
  border-radius: 3px;
  background: #479E25;
  color: #fff;
  margin-top: 5px;
  display: inline-block;
}

/* Error messages styles */ 
  
.wprm-booking-form-errors-wrapper {
  padding: 8px 14px 8px;
  margin-bottom: 18px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  background-color: #f8f2d3;
  border: 1px solid #f6e4c1;
  -webkit-border-radius: 2px;
  border-radius: 2px;
}

.wprm-success {
  padding: 8px 14px 8px;
  margin-bottom: 18px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  -webkit-border-radius: 2px;
  border-radius: 2px;
  background-color: #dff0d8;
  border: 1px solid #d6e9c6;
}

/* -------------------------------------------------------------------------------- */
/* Media queries */
/* -------------------------------------------------------------------------------- */

/*iPhone Landscape*/
@media screen and (max-width: 480px), screen and (max-device-width: 480px), screen and (max-width: 580px)  {
  #wprm-booking-form {
    padding-right: 10px;
  }
  #wprm-booking-form.split_column #wprm-date-wrap {
    float: none;
    width: 100%;
    margin-right: 0;
  }
  #wprm-booking-form.split_column #wprm-time-wrap {
    float: none;
    width: 100%;
  }
}

/*iPhone Portrait*/
@media screen and (max-width: 320px), screen and (max-device-width: 320px), screen and (max-width: 450px)  {
  #wprm-booking-form {
    padding-right: 10px;
  }
  #wprm-booking-form.split_column #wprm-date-wrap {
    float: none;
    width: 100%;
    margin-right: 0;
  }
  #wprm-booking-form.split_column #wprm-time-wrap {
    float: none;
    width: 100%;
  }
}

/* honeypot field */
.wprm-hnp {
  display: none;
}

/* -- Opening times widget -- */
ul#wprm-opening-times li {
  display: block;
  margin-bottom: 0.2em;
  border-bottom: 1px solid #ccc;
}