@charset "UTF-8";

:root {
	
	/* color */
	--breadcrumb-selected-dist-bg: var(--orange-base);
	--breadcrumb-selected-dist-border-color: var(--white-semi-transparent);
	--breadcrumb-selected-dist-website-hover-color: var(--blue-medium);
	--sub-dist-search-border: var(--blue-dark2);
	--coming-soon-link-bg: var(--blue-washed-light);
	--distributor-choice-link-bg: var(--blue-washed);
	
	--dist-name-border-color: var(--gray-medium);
	--dist-logo-border: var(--gray-medium);
    --dist-logo-bg: var(--white);
	
	/* url */
	--search-help-dist-bg-img: url('../img/home-search-bg.jpg');
	--search-help-dist-i-info: url('../img/i-information.svg');
	--map-icon-url: url('../img/map-icon.png');

}


/*-----------------------------------------
|               SEARCH-HELP                |
 -----------------------------------------*/

main .search-help {
	width: 100%;
	min-height: 400px;
	
    background-image: var(--search-help-dist-bg-img);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    box-sizing: border-box;
    
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
}

.search-help #i-information {
	width: 128px;
	height: 128px;
	margin: 0 3em 2em 1em;
	
	background-image: var(--search-help-dist-i-info);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
    
    box-sizing: border-box;
}

.search-help #empty-element-for-centering {
	width: 128px;
	height: 128px;
    margin: 2em 0 0 3em;
}

.search-help .search-help-contents {
	padding: .5em;
	max-width: 650px;
}

.search-help .search-help-contents h2,
.search-help .search-help-contents h3,
.search-help .search-help-contents #opening-hours {
	color: var(--blue-dark2);
}

.search-help .search-help-contents h2,
.search-help .search-help-contents h3 {
	font-weight: blod;
	font-weight: 800;
	margin: .5em 0;
}

.search-help .search-help-contents h2 {
	font-size: 36px;
}

.search-help .search-help-contents h3 {
	font-size: 28px;
	margin-bottom: .2em;
	white-space: pre-wrap;
}

.search-help .search-help-contents h3 > span {
	white-space: nowrap;
}

.search-help .search-help-contents #opening-hours {
	font-size: 24px;
	margin: .2em 0;
}

.search-help .search-help-contents .search-help-separator {
	height: 4px;
	width: 100%;
	background-color: var(--white);
	border-radius: .5em;
}

/*-----------------------------------------
|          SEARCH-CONTAINER           |
 -----------------------------------------*/

main #search-container {
	width: 100%;
	display: flex;
	flex-flow: column;
	justify-content: flex-start;
	padding: 0 .5em;
	box-sizing: border-box;
}

/*-----------------------------------------
|               SEARCH-INFO                |
 -----------------------------------------*/

.search-info {
	max-width: 1200px;
	margin: 1em auto;
	padding: .5em;
	border: 2px solid var(--gray-medium);
	border-radius: 2px;
	background-color: var(--white);
	box-sizing: border-box;
}

.search-info h3 {
	text-align: center;
	margin: .5em auto;
}

.search-info > p {
	padding: .2em 1.5em;
	margin-bottom: 0;
	font-size: 14px;
}

.search-info .field.area {
	display: flex;
	flex-flow: row nowrap;
}

.search-info input[type="submit"] {
	margin-left: .5em;
}

/*-----------------------------------------
|            DIST-SEARCH-FORM              |
 -----------------------------------------*/

main .form-container {
	display: flex;
	flex-flow: column nowrap;
	justify-content: flex-start;
	align-items: center;
	padding: 0 .5em;
	box-sizing: border-box;
} 

.form-container > p {
	font-weight: blod;
	font-weight: 700;
}

#dist-search-form {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    min-width: 500px;
    color: var(--black);
    border-bottom: 0;
    position: relative;
}

#dist-search-form .field {
	display: flex;
	flex-flow: column nowrap;
	justify-content: flex-start;
	align-items: stretch;
	padding: 0 .5em .5em .5em;
}

#dist-search-form .field > label {
	font-weight: blod;
	font-weight: 700;
	color: var(--black);
}

#dist-search-form #address-label {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
 
#dist-search-form #address-label #map-icon{
    height: 32px;
    padding: 18px;
    
    background-color: var(--white);
    background-image: var(--map-icon-url);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100% auto;
}

#dist-search-form .field > input {
    font-weight: normal;
    color: var(--black);
}

#dist-search-form .submits {
	display: flex;
	justify-content: flex-end;
	align-items: flex-end;
	padding: 0 .5em;
}

#dist-search-form #searchInfo,
#dist-search-form #addressResult {
	margin: 0 0 .5em .5em;
	font-size: 14px;
}

/* no result with js */

.no-result,
#no-result-container {
	width: 100%;
	max-width: 1200px;
	margin: 1em auto;
	box-sizing: border-box;
}

#no-result-container .no-result {
	margin: 0;
}

/*-----------------------------------------
|          SELECTED-DIST-CONTAINER         |
 -----------------------------------------*/

.selected-dist-container {
	width: 100%;
	display: flex;
	flex-flow: row nowrap;
	justify-content: center;
	background-color: var(--breadcrumb-selected-dist-bg);
}

.selected-dist {
	width: 100%;

	background-color: var(--transparent);
	display: flex;
	flex-flow: row nowrap;
	justify-content: center;
	padding: 1em;
}

.selected-dist.no-choice {
	min-height: 0;
}

.selected-dist > * {
	border-right: 2px solid var(--breadcrumb-selected-dist-border-color);
}

.selected-dist .choice-header {
	font-size: 16px;
	font-weight: bold;
	font-weight: 700;
	text-transform: uppercase;
	white-space: nowrap;
}

.selected-dist .info {
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-around;
}

.selected-dist .info > * {
	margin: 0;
	border-right: 2px solid var(--breadcrumb-selected-dist-border-color);
}

.selected-dist > *:last-child,
.selected-dist .info > *:last-child {
	border: 0;
}

.selected-dist .info .name {
	min-width: 140px;
}

.selected-dist .info .address {
	padding-left: .5em;
}

.selected-dist .info .address > * {
	max-width: 280px;
	box-sizing: border-box;
}

.selected-dist .info .address .website-link {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis; 
	text-decoration: none;
	color: var(--black);
}

.selected-dist .info .address .website-link:hover {
	color: var(--breadcrumb-selected-dist-website-hover-color);
	text-decoration: underline;
}

.selected-dist .info .address .city {
	margin-bottom: .3em;
}

.selected-dist .distLogo {
	width: 11em;
	height: 4em; /* need to define a height value, for the change of flex-flow on narrow-screen */
	max-height: 5em;
    flex-grow: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    border: 2px solid var(--dist-logo-border);
    background-color: var(--dist-logo-bg);
    padding: .3em;
}

.selected-dist .distLogo .logo {
	display: block;
	width: 100%;
	height: 100%;
	
	background-size: contain;
	background-position: center center;
	background-repeat: no-repeat;
}

.selected-dist .choice-header,
.selected-dist .info .name,
.selected-dist .info .address > *,
.selected-dist .no-choice {
	padding: .5em 2em 0 2em;
}

.selected-dist.no-choice .choice-header, 
.selected-dist.no-choice div.no-choice {
	padding: 1em 1.5em;
}

.selected-dist .distLogo {
	margin-left: 2em;
}

.selected-dist .delivery {
	margin: 0 1em;
}
.selected-dist .delivery h4 {
	margin: 0;
	margin-top: .5em;
}

/*-----------------------------------------
|              SEARCH-RESULT               |
 -----------------------------------------*/


.distributor-search #search-result,
.distributor-search #search-result > .no-result {
	width: 100%;
	display: flex;
	flex-flow: column nowrap;
	justify-content: flex-start;
	align-items: center;
}

#search-result .distributor {
	width: 100%;
	max-width: 1200px;
	display: flex;
	flex-flow: column nowrap;
	justify-content: flex-start;
	
	padding: .5em;
	margin: 10px 0; 
	
    color: var(--black);
    background-color: var(--transparent);
    border: 2px solid var(--gray-medium);
    box-sizing: border-box;
    
    position: relative;
}

.distributor .dist-infos-container {
	width: 100%;
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-start;
	align-items: flex-start;
}

.distributor .distLogo {
	width: 14em;
	height: 7em;
 	flex-grow: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    border: 2px solid var(--dist-logo-border);
    background-color: var(--dist-logo-bg);
    padding: 4px;
    margin-right: 2em;
	
}

.distributor .logo {
	display: block;
	width: 100%;
	height: 100%;
	
	background-size: contain;
	background-position: center center;
	background-repeat: no-repeat;
}

.distributor .info {
	align-self: stretch;
	
	display: flex;
	flex-flow: column nowrap;
	justify-content: space-between;
	align-items: stretch;

	width: 100%;
	padding: 0 1em;
	box-sizing: border-box;
}

.distributor .info .name {
	margin: 0 0 .5em 0;
    padding: 0;
    font-size: 20px;
    border-bottom: 2px solid var(--dist-name-border-color);
}


.distributor .addr-distance {
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
}

.distributor .address {
	max-width: 80%;
}

.distributor .addr-distance .website-link {
	display: block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

.distributor .info .distance {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 1.8em;
    height: 100%;
    box-sizing: border-box;
}

.distributor .info .distance > span {
	font-weight: bold;
	font-weight: 700;
}

.distributor .distributor-choice-form {
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-end;
	align-items: center;
	width: 100%;
	margin: 0;
}

.distributor .coming-soon,
.distributor .distributor-choice {
	width: 240px;
/* 	min-height: 2em; */
	max-width: 100%;
	margin: .2em 0 0 .2em;
	align-self: flex-end;
    padding: .2em;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--white);
	text-decoration: none;
}

.distributor .coming-soon {
    background-color: var(--coming-soon-link-bg);
    text-align: center;
    text-transform: none; 
	font-weight: bold;
	font-weight: 700;
    border-radius: .2em;
}


/*-----------------------------------------
|               KN OPTION                  |
 -----------------------------------------*/

.distributor#kap-negoces {
	box-sizing: border-box;
	min-height: 125px;
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-start;
	background: url(../img/content-topper-bg.jpg) no-repeat center left;
	background-color: var(--background-blue-gray);
	background-size: auto 100%;
	color: var(--white);
}

.distributor#kap-negoces .info,
.distributor#kap-negoces .logo-button {
	display: flex;
	flex-flow: column nowrap;
	justify-content: space-between;
}

.distributor#kap-negoces .info {
	color: var(--white);
	margin-left: 8em;
}

.distributor#kap-negoces .info #title {
	font-weight: bold;
	font-size: 22px;
	text-transform: uppercase; 
	text-align: center;
	margin: .2em 0 1em 0;
}

.distributor#kap-negoces .info #any-dist,
.distributor#kap-negoces .info #delivery {
	text-align: center;
}

.distributor#kap-negoces .logo-button .distLogo {
	box-sizing: border-box;
	width: 1px;
	min-width: 240px;
    height: 3em;

	border: none;
	background-color: var(--transparent);
	margin: 0;
	padding: 0;
	margin-right: 1em;
}

.distributor#kap-negoces .logo-button .distributor-choice-form {
	width: auto;
}

.distributor#kap-negoces .logo-button .distributor-choice-form button[type="submit"] {
	min-height: 0;
	height: 1.5em;
	box-sizing: border-box;
	margin-right: 1em;
	padding: .2em;
}

/*-----------------------------------------
|                 DIALOGS                  |
 -----------------------------------------*/

.ui-widget.wait  {
	height: 160px !important;
	box-shadow: 0px 4px 10px #777;
}

.ui-dialog-content {
	display: flex;
	flex-flow: column;
	justify-content: center;
	align-items: center;
	height: 100% !important;
	width: 100% !important;
	box-sizing: border-box;
}

.ui-dialog-content .refreshing-loader {
	order:2;
}

.ui-dialog-content .dialogmessage {
	order: 1;
	padding: .5em;
	margin-bottom: 1em;
}

/*-----------------------------------------
|             IFRAME IN CART               |
 -----------------------------------------*/

.distributor-search.in-iframe #search-result,
.distributor-search.in-iframe #search-result > .no-result {
    box-sizing: border-box;
	align-items: center;
    padding: 0 2.5%;
}

/*-----------------------------------------
|              MEDIA QUERIES               |
 -----------------------------------------*/

@media only screen and (max-device-width: 1024px), screen and (max-width: 1024px) {

	.selected-dist .choice-header,
	.selected-dist .info .name,
	.selected-dist .info .address > * {
		padding: .5em .5em 0 .5em;
	}

	.selected-dist .distLogo {
		margin-left: .5em;
	}
}

@media only screen and (max-device-width: 860px), screen and (max-width: 860px) {

	.selected-dist .info {
		flex-flow: column nowrap;
	} 
	.selected-dist .info .name {
		border: 0;
	}
	.selected-dist .info .address > * {
		padding: .5em .2em 0 0;
	}
}

@media only screen and (max-device-width: 768px), screen and (max-width: 768px) {

	.distributor#kap-negoces {
		background-image: none;
	}
	.distributor#kap-negoces .info {
		margin-left: 0;
	}

	.distributor .info {
		padding: 0 .2em;
	}

	.selected-dist {
		flex-flow: column nowrap;
		justify-content: center;
		align-items: center;
		padding: 0.3em;
	}

	.selected-dist.no-choice .choice-header, 
	.selected-dist.no-choice div.no-choice {
		padding: .5em;
	}

	.selected-dist .choice-header {
		font-size: 18px;
	}

	.selected-dist .info {
		text-align: left;
	}

	.selected-dist > *,
	.selected-dist .info > * {
		border: 0;
	}

	.selected-dist .info .name {
		padding-left: 0; 
	}

	.selected-dist .info .address {
		padding-left: 0;
		margin-bottom: .5em;
		font-size: 14px;
	}
	.selected-dist .info .address > * {
		padding: .2em .2em 0 0;
	}
	.selected-dist .info .address .city {
		margin-bottom: 0;
	}
}

/* Only for .distributor#kap-negoces */
@media only screen and (max-device-width: 680px), screen and (max-width: 680px) {
	
	.distributor#kap-negoces {
		flex-flow: column;
		justify-content: center;
		align-items: stretch;
	}

	.distributor#kap-negoces .info #title {
		margin-bottom: .5em;
	}

	.distributor#kap-negoces .logo-button {
		flex-flow: row;
		justify-content: space-around;
		align-items: flex-end;
		height: 4em;
	}

	.distributor#kap-negoces .logo-button .distLogo {
		min-width: 165px;
	}
	.distributor#kap-negoces .logo-button .distributor-choice-form button[type="submit"] {
		width: auto;
    	padding: .25em 2em;
	}
}

@media only screen and (max-device-width: 650px), screen and (max-width: 650px) {
	
	.search-info #noscript-dist-search .field.area {
		flex-flow: column;
	}
	
	.search-info #noscript-dist-search input[type="submit"] {
		align-self: flex-end;
		margin-left: 0;
		margin-top: 1em; 
	}

	.distributor .dist-infos-container {
		flex-flow: column nowrap;
		justify-content: flex-start;
		align-items: center;
	}

	.distributor .info .name {
		margin-top: .5em;
	}

	.distributor .distLogo {
		margin-right: 0;
		width: 12em;
		height: 6em;
	}

	.distributor .coming-soon,
	.distributor .distributor-choice {
		margin: .5em auto 0 auto;
	}
}

@media only screen and (max-device-width: 560px), screen and (max-width: 560px) {
	
	#dist-search-form {
		min-width: 0;
	}
	
	#dist-search-form .field-container {
		flex-flow: column;
	}

	.distributor#kap-negoces .logo-button .distLogo {
    	min-width: 90px;
	}

	.search-info > p {
		text-align: justify;
	}

	.search-info #dist-search-form #address-label {
		flex-flow: column;
		justify-content: flex-start;
		align-items: center;
	}
	.search-info #dist-search-form #address-label #info {
		text-align: center;
		order: 2;
		width: 100%;
		margin-bottom: .3em;
	}
	.search-info #dist-search-form #address-label #map-icon {
		order: 1;
	}
}

@media only screen and (max-device-width: 460px), screen and (max-width: 460px) {
	
	.search-info #noscript-dist-search .fields-area-ctn {
		display: flex;
		flex-flow: column;
		justify-content: flex-start;
	}

	.search-info #noscript-dist-search .fields-area-ctn > * {
		margin-top: .5em; 
	}

	#dist-search-form #searchInfo {
		margin-top: .3em;
	}
}