/* Gemensam */
.kfs_advert_buttons h1, .kfs_advert_buttons form {
	flex: 1;
}
.kfs_advert_buttons a.button {
	margin: 0 0 10px 10px;
}
.advert-placeholder {
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgba(0,0,0,0.07);
	border: 1px solid #e4e4e4;
	height: 150px;
}
form.kfs-advert div.column input, form.kfs-advert div.column select, form.kfs-advert div.column textarea {
	width: 80%;
}
p.input-field {
	display: flex;
	margin-bottom: 10px;
	align-items: center;
}
p.input-field span.help {
	cursor: help;
	font-weight: bold;
	height: 24px;
	line-height: 24px;
	text-align: center;
	width: 23px;
	background: var(--global--color-primary);
	color: #FFF;
	font-size: 20px;
	border-radius: 14px;
	padding-left: 1px;
	margin-left: 10px;
}
.ui-tooltip {
	width: 250px;
	background: #F9F9F9;
	padding: 10px;
	font-size: 0.9em;
	line-height: 1.25em;
    border: 1px inset rgba(0, 0, 0, 0.08);
    border-radius: 3px;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1) outset;	
}
.ui-helper-hidden-accessible {
	display: none;
}
/* Visa en annons */
.kfs_advert_single { 
	border:3px solid #fff;
	-moz-box-shadow: 1px 1px 4px #4e4e4e;
	-webkit-box-shadow: 1px 1px 4px #4e4e4e;
	box-shadow: 1px 1px 4px #4e4e4e; 
	padding:4px;
	display: -webkit-flex;
	display: flex;
	width: 100%;
	box-sizing: border-box;
	min-height: 380px;
}
.kfs_advert_single > div {
	width: 50%;
	overflow:hidden;
}
.kfs_advert_single .main_image {
	margin-right: 10px;
    background: none repeat scroll 0 0 white;
    position: relative;	
}
.kfs_advert_single .main_image .inner {
    -webkit-align-items: center;
    align-items: center;
    border: medium none;
    bottom: 0;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    left: 0;
    /*position: absolute;*/
    right: 0;
    top: 0;
}
.kfs_advert_single .main_image .inner img {
	height: auto;
	width: 100%;
	max-width: none;
}
.kfs_advert_single .main_content {
	display:-webkit-flex;
	display:flex;
	-webkit-flex-direction: column;
	flex-direction: column;
	-webkit-justify-content: space-between;
	justify-content: space-between;
}
.kfs_advert_single .price {
	margin: 0;
}
.kfs_advert_single .data {
	line-height: 1.4em;
	font-size: 0.8em;
	float: right;
	width: 33.3%
}

/* Visa lista */
.kfs_advert_list td {
	vertical-align: top;
	height: 120px;
	padding: 10px;
	border: none;
	border-top: 1px solid #e4e4e4;
}
.kfs_advert_list td.location {
	width: 160px;
	text-align: right;
} 
.kfs_advert_list h2 { 
	margin:0
}
.kfs_advert_list p { 
	padding:0
}
.kfs_advert_list .v-center {
	vertical-align: middle;
	text-align: center;
}
.kfs_advert_list h2 {
	font-size: 1.5rem;
}
.kfs_advert_list time {
	display: block;
	font-size: 0.8rem;
}
.category-link {
	text-decoration: none;
	font-size: 0.8rem;
	background: #5b6e71;
	padding: 4px;
	border-radius: 15px;
	color: #d1e4dd;
	padding: 2px 8px;
	text-transform: uppercase;
}
.category-link:hover {
	color: white;
	opacity: 0.8;
}
.category-link:focus {
	background: #5b6e71;
	opacity: 0.6;
}
.kfs_advert_list h2 a {
	font-weight: bold;
}
.kfs_advert_list h2 a:hover {
	color:inherit!important;
}
.kfs_advert_list td.main_image {
	padding: 10px 0 10px 0;
	width: 240px;
}
.kfs_advert_list td.main-text {
	width: 58%;
}
.kfs_advert_list td.main_image .inner{
	display: block;
}
.kfs_advert_list td.main_image img {
	display: block;
	object-fit: cover;
	min-height: 135px;	
	border: 1px solid #e4e4e4;
}
.kfs_advert_list div.excerpt {
	line-height: 20px;
	height: 40px;
	overflow: hidden;
}
.kfs_advert_list tr.nav td {
	height: auto;
}
tr.nav ul {
	list-style-type:none;
	display: -webkit-flex;
	display: flex;
	-webkit-justify-content: center;
	justify-content: space-between;
	padding-left: 0;
}
nav ul li {
	list-style-type:none;
}
/* Skapa ny */
.kfs_advert_buttons .input-field {
	float: left;
}
.kfs_advert_buttons p.input-field span.help {
    right: -30px;
    top: 19px;
}
.kfs-advert input.button {
	margin: 12px 0;
}

.kfs-advert input[disabled] {
	opacity: 0.7;
	cursor: not-allowed;
	filter: grayscale(1);
}

textarea.kfs {
	width: 360px;
	height: 135px;
}
div.preview {
	clear: both;
}
input.invalid, textarea.invalid, select.invalid {
	/* 80% yellow */
	background: #fafac7!important;
}
/* Buttons */
a.contact.button {
	display: inline-block;
}
/* Fixes */
.kvkText + .post-edit-link {
	display: none;
}
@media (min-width: 652px) {
	.kfs_advert_buttons {
		display: flex;
		justify-content: flex-end;
	}
	form.kfs-advert div.columns {
		display: flex;
	}
	form.kfs-advert div.column {
		width: 50%;
	}
	div.column.with-bottom {
		display: flex;
		flex-direction: column;
		justify-content: space-between;		
	}
}