/* Hakukone */
.kivi_hakukone {
    padding: 0 20px;
    border-radius: 3px;
    position: relative;
}

.kivi_hakukone .wb-md-3,
.kivi_hakukone .wb-md-6 {
    height: 100px;
}

.kivi_loader {
    padding: 20px;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    position: absolute;
    display: block;
    background-color: rgba(255,255,255,0.9);
    z-index: 9;
    opacity: 1;
}

.kivi_spinner {
    top: 30%;
    width: 200px;
    height: 200px;
    background-image: url('../img/ajax-loader.gif');
    background-repeat: no-repeat;
    background-position: center center;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -100px; /* Negative half of height. */
    margin-left: -100px; /* Negative half of width. */
}

h2.kivi_h2 {
    font-size: 19px !important;
    color: #222 !important;
    font-weight: 600 !important;
}

h3.kivi_h3 {
    font-size: 17px  !important;
    color: #555  !important;
    font-weight: 600 !important;
}

h4.kivi_h4 {
    font-size: 15px  !important;
    color: #666  !important;
    font-weight: 400 !important;
}

.kivi_select {
    width: 100%;
    padding: 10px 5px;
}

.kivi_input {
    width: 100%;
    margin-bottom: 5px;
    border-radius: 5px;
    padding: 5px;
}

#kivi_haku_btn,
#kivi_tyhjenna_btn {
    width: 100%;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    margin: 10px 0px;
    border-radius: 3px;
}

.kivi_item {
    padding: 15px 30px;
    margin-bottom: 15px !important;
}

.kivi_pagination {
    border: 1px solid #222;
    padding: 5px 10px;
    margin: 5px 5px 5px 0;
    display: block;
    float: left;
    cursor: pointer;
    text-align: center;
}

.kivi_img {
    cursor: pointer;
}

.kivi_img,
.kivi_img_single {
    height: 250px;
    background-size: cover;
    background-position: center center;
    margin-bottom: 0px;
}

.kivi_img_single {
    margin: 20px 0px;
}

.kivi_items_thumb img {
    max-height: 200px !important;
    width: auto !important;
    max-width: auto !important;
}

.kivi_thumb img {
    max-height: 150px !important;
    width: 100%;
    background-size: 100%;
    background-position: center center;
    cursor: pointer;
}

.kivi_lisatiedot_btn {
    cursor: pointer;
    width: 100%;
    margin: 30px 0px;
    padding: 10px;
    text-align: center;
}

/* Hakutulokset */
.kivi_hakutulokset_wrap {
    padding-top: 30px;
	background: #f4f4f4;
}

.kivi_item_content_details {
    padding: 30px 0px;
}

.kivi_detail {
    padding: 20px 20px 5px 20px;
}

.kivi_description {
    padding: 15px;
    white-space: pre-wrap; 
}

.kivi_takaisin_hakutuloksiin {
    margin: 10px 0px;
    cursor: pointer;
    display: none;
}

/* Hakutulokset sidebar */
.kivi_sidebar {
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 3px;
}

.kivi_sidebar_wrapper {
    margin-bottom: 30px;
}

#kivi_haku_btn,
.kivi_phone,
.kivi_email {
    padding: 10px;
    border-radius: 3px;
    margin-bottom: 5px;
    text-align: center;
	color: #fff;
}

.kivi_lisatiedot_btn,
#kivi_haku_btn,
.kivi_phone {
	background: #df2234;
	color: #fff;
}

.kivi_lisatiedot_btn:hover,
#kivi_haku_btn:hover,
.kivi_phone:hover,
.wpcf7-submit:hover {
	background: #b71d2c;
	color: #fff;
}

.kivi_link:hover {
    text-decoration: none;
}

#kivi_tyhjenna_btn,
.kivi_email {
	background: #717171;
	color: #fff;
}

#kivi_tyhjenna_btn:hover,
.kivi_email:hover {
	background: #585858;
	color: #fff;
}

.kivi_contact,
.kivi_contact a:link,
a.kivi_contact {
    text-decoration: none !important;
}

#kivi_kiitos_viestista {
    padding: 5px;
    border: 3px solid #5ca300;
    display: none;
}

.btn_kivi_odottaa {
    background: #999 !important;
    cursor: not-allowed !important;
}

#kivi_viesti_errors {
    margin: 10px 0px;
    padding: 5px;
    border: 5px solid #ff0000;
}

#kivi_viesti_errors,
#kivi_virhe_nimi,
#kivi_virhe_email,
#kivi_virhe_viesti {
    display: none;
}

/* Slick */
.hide_pagination {
    display: none !important;
}

.kivi_slick_wrap {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.slider-nav {
    margin: 0 auto;
    width: 90%;
}

.kivi_hakukone, .kivi_grey_bg, .kivi_sidebar {
	background: #f4f4f4;
}

.kivi_hakukone {
	background: #fff;
	padding: 10px 40px;
}



/* Shortcode */
#kivi_lang,
#kivi_view,
#kivi_singleid,
#kivi_items_nro,
#kivi_kohde_id,
#kivi_cpt {
    opacity: 0 !important;
}

#kivi_single_wrap {
    background:#fff;
}

h3.kivi-single-item-body-header {
    padding: 20px;
    background: #888 !important;
    color: #fff !important;
    margin-bottom: -5px;
    margin-top: 20px;
}

.slick-for-image {
    margin: 0 auto;
    max-height: 400px;
    width: auto;
}

.kivi-agent-image img {
    max-width: 100%;
}

.kivi_detail:nth-child(even){
    background: #eee;
}

.kivi_detail:nth-child(odd){
    background:#fff;
}

.kivi-img-container {
    padding: 0 32px;
}

.kivi_hakukone {
    background: #fff;
    padding: 40px 0px;
}

/* Checkboxit */
.container-checkbox-lkv {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.container-checkbox-lkv input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
}

/* On mouse-over, add a grey background color */
.container-checkbox-lkv:hover input ~ .checkmark {
  background-color: #999;
}

/* When the checkbox is checked, add a blue background */
.container-checkbox-lkv input:checked ~ .checkmark {
  background-color: #df2234;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.container-checkbox-lkv input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.container-checkbox-lkv .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.hakukone_input {
    padding: 10px;
    width: 100%;
    margin-bottom: 5px;
    border: 1px solid #999;
}

img.kotilkv_valittaja_img {
    max-width: 100%;
}