/*
Theme Name: Divi Child Theme
Theme URI: https://brownhillcreekcaravanpark.com.au
Description: Child Theme For Divi
Version: 1.0.0
Template: Divi
*/

.newbook-form,
.newbook-form * {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}
.newbook-form {
    display: flex;
    align-content: space-evenly;
    margin: 0 -.5em;
    flex-wrap: wrap;
}
.newbook-availability-form + .newbook-form {
    margin-top: 2em;
}
.newbook-form input:not([type=radio]):not([type=checkbox]),
.newbook-form select,
.newbook-form textarea {
    width: 100%;
}
.newbook-form .newbook-af-field,
.newbook-form .newbook-submit {
  flex: 0 0 50%;
    padding: 0 .5em 1em; 
}
.newbook-form .newbook-af-field[data-field="available_from"],
.newbook-form .newbook-af-field[data-field="available_to"] {
    flex: 1 1 100%;
}
.newbook-form .newbook-af-field[data-field="available_from"] input,
.newbook-form .newbook-af-field[data-field="available_to"] input {
    cursor: text;
}
.newbook-af-field:before {
    content: attr(data-label);
    font-size: .8em;
    display: none;
}
.newbook-form .newbook-submit {
   padding: 0 .5em .25em;
}



@media screen and (min-width: 768px) {
    .newbook-form {
        flex-direction: row;
        align-items: flex-end;
        flex-wrap: nowrap;
    }
    .newbook-form .newbook-af-field {
        flex: 1 1 100%;
    }
    .newbook-form .newbook-af-field:before {
        display: block;
    }
    .newbook-form .newbook-af-field,
    .newbook-form .newbook-submit {
        padding: 0 .5em .25em;
    }
    .newbook-category {
        flex-direction: row;
    }
    .newbook-category .category-images {
        flex: 0 0 40%;
        height: auto;
    }
    .newbook-category .category-image {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
    }
    .newbook-category .category-content {
        flex: 1 0 auto;
        width: 60%;
    }
    .newbook-form .newbook-submit {
        padding: 0 .5em .25em;
        flex: 0;
    }
}

/**
 * jQuery UI Datepicker CSS 
 *
 * Courtesy of -
 * https://github.com/stuttter/wp-datepicker-styling
 */
.ui-datepicker {
    padding: 0;
    margin: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    background-color: #fff;
    border: 1px solid #dfdfdf;
    border-top: none;
    -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.075);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.075);
    min-width: 17em;
    width: auto;
}

.ui-datepicker * {
    padding: 0;
    font-family: "Open Sans", sans-serif;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
}

.ui-datepicker table {
    font-size: 13px;
    margin: 0;
    border: none;
    border-collapse: collapse;
}

.ui-datepicker .ui-widget-header,
.ui-datepicker .ui-datepicker-header {
    background-image: none;
    border: none;
    color: #fff;
    font-weight: normal;
}

.ui-datepicker .ui-datepicker-header .ui-state-hover {
    background: transparent;
    border-color: transparent;
    cursor: pointer;
}

.ui-datepicker .ui-datepicker-title {
    margin: 0;
    padding: 10px 0;
    color: #fff;
    font-size: 14px;
    line-height: 14px;
    text-align: center;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    position: relative;
    top: 0;
    height: 34px;
    width: 34px;
}

.ui-datepicker .ui-state-hover.ui-datepicker-prev,
.ui-datepicker .ui-state-hover.ui-datepicker-next {
    border: none;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-prev-hover {
    left: 0;
}

.ui-datepicker .ui-datepicker-next,
.ui-datepicker .ui-datepicker-next-hover {
    right: 0;
}

.ui-datepicker .ui-datepicker-next span,
.ui-datepicker .ui-datepicker-prev span {
    display: none;
}

.ui-datepicker .ui-datepicker-prev {
    float: left;
}

.ui-datepicker .ui-datepicker-next {
    float: right;
}

.ui-datepicker .ui-datepicker-prev:before,
.ui-datepicker .ui-datepicker-next:before {
/*     font: normal 20px/34px 'dashicons'; */
	font-size: 34px;
    padding-left: 7px;
    color: #fff;
    speak: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 34px;
    height: 34px;
}

.ui-datepicker .ui-datepicker-prev:before {
/*     content: '\f341'; */
	content: '\002039';
}

.ui-datepicker .ui-datepicker-next:before {
/*     content: '\f345'; */
	content: '\00203A';
}

.ui-datepicker .ui-datepicker-prev-hover:before,
.ui-datepicker .ui-datepicker-next-hover:before {
    opacity: 0.7;
}

.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    width: 33%;
}

.ui-datepicker thead {
    color: #fff;
    font-weight: 600;
}

.ui-datepicker th {
    padding: 10px;
}

.ui-datepicker td {
    padding: 0;
    border: 1px solid #f4f4f4;
}

.ui-datepicker td.ui-datepicker-other-month {
    border: transparent;
}

.ui-datepicker td.ui-datepicker-week-end {
    background-color: #f4f4f4;
    border: 1px solid #f4f4f4;
}

.ui-datepicker td.ui-datepicker-today {
    background-color: #f0f0c0;
}

.ui-datepicker td.ui-datepicker-current-day {
    background: #bbdd88;
}

.ui-datepicker td .ui-state-default {
    background: transparent;
    border: none;
    text-align: center;
    text-decoration: none;
    width: auto;
    display: block;
    padding: 5px 10px;
    font-weight: normal;
    color: #444;
}

.ui-datepicker td.ui-state-disabled .ui-state-default {
    opacity: 0.5;
}

/* Default Color Scheme */
.ui-datepicker .ui-widget-header,
.ui-datepicker .ui-datepicker-header {
    background: #90be44;
}

.ui-datepicker thead {
    background: #32373c;
}

.ui-datepicker td .ui-state-hover {
    background: #abdc09;
    color: #000;
}




.newbook-form input:not([type=radio]):not([type=checkbox]), .newbook-form select, .newbook-form textarea {
    height: 36px;
	border-radius: 3px;
	border: 0;
	padding: 0 .5em;
}
.newbook-form input,
.newbook-form select {
	font-size: 14px;
}
input[type=submit],
button {
	background: #abdc09;
	color: #111111;
	font-family: inherit;
	text-transform: uppercase;
	font-weight: bold;
	padding: 0 1em !important;
	cursor: pointer;
	border-color: rgba(0,0,0,0);
	border-radius: 51px !important;
	letter-spacing: 1px;
	font-size: 15px;
}
input[type=submit]:hover,
button:hover {
	background: #98c308;
}
@media screen and (min-width: 768px) {
  .newbook-form {
      flex: 1;
  }
    .newbook-availability-form .newbook-availability-title h3 {
      margin: 0;
    }
  .newbook-availability-form {
      display: flex;
      align-items: center;
  }
  .newbook-availability-form .newbook-availability-title {
      flex: 0 0 auto;
      padding: 0 1em 0 0;
  }
  .home .newbook-af-field:before {
      display: none;
  }
}