/*
Theme Name: HYMA apteekit
Author: Timi Antere - Pharmarent Oy
Author URI: http://pharmarent.fi/
Description: Hyvän Mielen Apteekit - apteekkien sivujen teema.
Version: 5.1
*/

@import url('https://fonts.googleapis.com/css?family=Quicksand:300,400');
body {
	font-family: 'Quicksand', sans-serif;
}
.navbar, .navbar-collapse {
	background: #8c85c9;
}
#nav-logo {
	width: 100%;
	margin: 0 auto;
	text-align: center;
}
#nav-logo img {
	max-width: 100%;
	margin: 0 auto;
}
.custom-toggler.navbar-toggler {
	border: none;
}
.custom-toggler .navbar-toggler-icon {
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 1)' stroke-width='5' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
	width: 2em;
	height: 2em;
}
.navbar-toggler {
	margin-top: 20px;
	margin-bottom: 20px;
	padding: 9px 10px !important;
}

@media (min-width: 768px) {
	.navbar-collapse > li > a {
		padding-top: 25px;
		padding-bottom: 25px;
		line-height: 27px;
	}
}
.nav-item {
	font-size: 1.4em;
}
.navbar-brand img, .navbar-collapse img {
	width: 100% !important;
}

@media (min-width: 576px) and (max-width: 767px) {
	.navbar-brand {
		width: 400px;
	}
}

@media (max-width: 575px) {
.navbar-toggler {
		position: absolute;
		top: 0 !important;
		margin-top: 10px !important;
	}
	.navbar-brand {
		max-width: 70%;
	}
}
h1 {
	color: #8D85CA;
	font-weight: 400;
	margin: 1em 0;
}
h2 {
	color: #6E6E6E;
	font-weight: 400;
	font-size: 2em;
	margin: .8em 0;
}
h3 {
	color: #8D85CA;
	font-weight: 400;
	font-size: 1.2em;
	margin: .6em 0;
}
h4 {
	color: #8D85CA;
	font-weight: 400;
	font-size: 1em;
	margin: .6em 0;
}
.footer h4 {
	color: #6E6E6E;
	font-size: 1.6em;
	margin: 10px 0;
}
.top-mobile-header {
	padding: 30px 0 0 0;
}
.sub-navbar-wrap {
	width: 100%;
	background-color: #8c85c9;
}
.sub-navbar > div > div {
	margin: 0;
	padding: 0;
}
.sub-navbar > div > div > a {
	padding: 8px;
}
.sub-navbar a {
	text-decoration: none;
	display: block;
	text-transform: uppercase;
	color: #fff;
	font-size: 1em;
}

@media (max-width: 576px) {
	.sub-navbar a {
		font-size: 0.9em;
	}
}
.sub-navbar .sub-link-selected {
	color: #333333 !important;
}
.sub-navbar .kauneus {
	background: #e6bfc4;
	color: #333333;
}
.sub-navbar .terveys {
	background: #f4f4f4;
	color: #333333;
}
.sub-navbar .hyvinvointi {
	background: #e1d8b7;
	color: #333333;
}
.sub-navbar .etu {
	background: #ffffff;
	color: #333333;
}
.sub-navbar .sydanystava {
	background: #B5D0D1;
	color: #333333;
}
.header-container {
	background: #8c85c9;
}
.navbar-toggler:hover {
	cursor: pointer!important;
}
#mainNav {
	margin-left: 20px;
}
.header-mobile {
	margin: 15px;
}
.footer {
	margin: 0;
	padding: 20px;
	background: #E5E5E5;
}
.container-tarjoukset {
	margin: 0;
	padding: 0 10px 0 10px;
	box-sizing: border-box;
}
.tarjous-img-sm {
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}
.tarjous-hinta-sm {
	font-size: 1.6em;
	color: #8c85c9;
	padding-top: 5px;
	font-weight: 700;
	text-align: center;
	white-space: nowrap;
}
.tarjous-shinta-sm {
	font-size: 1.2em;
	color: #848484;
	text-align: center;
}
.tarjous-tuotenimi-sm {
	font-size: 1.1em;
	color: #6E6E6E;
	font-weight: 600;
}
.tarjous-seloste-sm {
	font-size: 1em;
	color: #848484;
}
.carousel-inner>.item {
	width: 100%;

}
.carousel-caption {
	position: relative!important;
}
.carousel-caption {
	color: #000!important;
	left: 0!important;
	right: 0!important;
}
.carousel-indicators li {
	background-color: #000!important;
}
.carousel-caption h2, .carousel-caption h3, .carousel-caption h4, .carousel-caption h5 {
	text-align: center;
}

.carousel-control-prev-icon {
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E") !important;
}
.carousel-control-next-icon {
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E") !important;
}
.carousel-control-next, .carousel-control-prev {
	z-index: 99 !important;
}
img.alignright {
	float: right;
	margin: 0 0 1em 1em
}
img.alignleft {
	float: left;
	margin: 0 1em 1em 0
}
img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto
}
a img.alignright {
	float: right;
	margin: 0 0 1em 1em
}
a img.alignleft {
	float: left;
	margin: 0 1em 1em 0
}
a img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto
}
.btn-outline-primary {
	color: #8c85c9;
	background-color: transparent;
	background-image: none;
	border-color: #8c85c9;
}
.btn-outline-primary:hover {
	color: #fff;
	background-color: #8c85c9;
	border-color: #8c85c9;
}
.post-content, .page-content {
	margin-bottom: 3em;
}
.page-content img, .post-content img {
	max-width: 100%;
	height: auto;
}
.apteekki-banner {
	max-height: 600px;
	overflow: hidden;
}
.apteekki-banner img {
	height: auto;
	width: 100%;
}
.apteekki-content {
	margin-bottom: 2em;
}
.news-content img {
	max-width: 100%;
	height: auto;
}
.content-box-news {
	border-bottom: 1px solid #8c85c9;
	margin-top: 1em;
}

@media (min-width: 768px) {
	.content-row {
		margin: 30px 0;
	}
	.attachment-featured-img-page {
		float: right;
		margin: 0 0 20px 20px;
	}
	.cff-item {
		box-sizing: border-box !important;
		border: 1px solid #d1d1d1 !important;
		padding: 20px 10px 5px !important;
	}
}
@media (max-width: 991px) {
	.apteekki-top-boxes h3 {
		text-align: center;
		font-size: 2em;
	}
	.apteekki-top-boxes table {
		text-align: center;
		margin: 0 auto;
	}
	.apteekki-top-boxes-container {
		margin-bottom: 3em;
	}
	.apteekki-top-boxes {
		border-bottom: 1px solid #8c85c9;
		/*padding: 2em;*/
	}
	.apteekki-top-boxes iframe {
		max-width: 100%;
	}
}
@media (min-width: 768px) and (max-width: 991px) {
	.alignright img, .alignleft img {
		max-width: 300px;
	}
	.attachment-featured-img-page {
		max-width: 400px !important;
	}
}
@media (min-width: 992px) {
	.alignright img, .alignleft img {
		max-width: 500px;
	}
	.attachment-featured-img-page {
		max-width: 500px !important;
	}
}
@media (max-width: 767px) {
	.attachment-featured-img-page {
		min-width: 100%;
		height: auto;
		padding-bottom: 20px;
	}
	.apteekki-content {
		margin-bottom: 2em;
	}

	.apteekki-sidebar div {

		margin-bottom: 20px;
	}
	.apteekki-sidebar h2, .apteekki-sidebar h3, .apteekki-sidebar h4, .apteekki-sidebar h5 {
		text-align: center;
	}
	.apteekki-sidebar h3 {
		font-size: 2em;
	}

	.apteekki-sidebar {
		border-top: 1px solid #8c85c9;
	}
	.apteekki-sidebar-inner {
		margin: 30px 0 30px;
	}
	.alignright, .alignleft {
		margin: 0 !important;
	}
	.alignright img, .alignleft img {
		float: none;
		width: 100%;
		height: auto;
	}
}

@media (min-width: 768px) {
	.apteekki-sidebar-inner {
		border-left: 1px solid #D3D3D3;
		padding-left: 25px!important;
	}
}
.apteekki-sidebar-div {
	width: 100%;
	margin-bottom: 20px;
}
.apteekki-sidebar iframe {
	max-width: 100%;
}
.apteekki-top-boxes iframe {
	width: 100%;
}
.apteekki-top-boxes div {
	width: 100%;
}
.apteekki-sidebar ul {
	list-style: none;
	margin-left: -15px;
}
#subNav {
	margin: auto 0;
	text-align: center;
}
#subNav ul {
	list-style-type: none;
}
#subNav ul > li a:hover {
	text-decoration: none;
	color: #000;
}
#subNav ul > li {
	display: inline-block;
	text-align: center;
	padding: 15px 30px 15px;
	font-size: 1.3em;
}
#subNav ul > li a {
	padding: 5px;
	text-decoration: none;
	color: #6E6E6E;
}
#subNav ul > li.menu_accent_red a {
	color: #FF0000;
}

@media (max-width: 767px) {
	#subNav ul > li {
		display: inline-block;
		text-align: center;
		padding: 10px 10px 10px;
		font-size: 1.1em;
	}
	#subNav ul > li a {
		padding: 5px;
		text-decoration: none;
		color: #6E6E6E;
	}
}
.news-content {
	margin: 0;
	padding: 1em;
}
.news-content h2 {
	margin: 0 0 1em;
}
.news-content a:link {
	display: inline-block;
	margin: 1.5em 0 0;
}
.news-thumb {
	margin: 0;
	padding: 15px;
}
.attachment-featured-img-post-thumb {
	max-width: 100%;
	height: auto;
}
.apteekki-alareuna {
	margin-top: 20px;
	padding-top: 20px;
	padding-bottom: 30px;
	border-top: 1px solid #8c85c9;
}
.apteekki-alareuna div, .apteekki-alareuna iframe {
	width: 100%;
}
.apteekki-footer {
	padding: 30px;
}
.apteekki-footer div, .apteekki-footer iframe {
	width: 100%;
}
h1.centered {
	text-align: center;
}
.op-table .highlighted {
	font-weight: bold;
}

/* Opening times widget */

.today {
	color: green;
	font-weight: bold;
}

.closed > .hours {
	color: red;
}

@media screen and (max-width:767px) {
	.op-table, .opening-hours {
		width: 100%;
		font-size: 1.2em;
	}
	.op-cell, .day-name, .hours {
		padding: .75em;
		border-top: 1px solid #dee2e6;
	}
}

@media screen and (min-width:768px) and (max-width:991px) {
	.op-table, .opening-hours {
		width: 100%;
		font-size: 1em;
	}
	.op-cell, .day-name, .hours {
		padding: .60em;
		border-top: 1px solid #dee2e6;
	}
}

@media screen and (min-width:992px) and (max-width:1199px) {
	.op-table, .opening-hours {
		width: 100%;
		margin-left: 5px;
		font-size: 1em;
	}
	.op-cell, .day-name, .hours {
		padding: .75em;
		border-top: 1px solid #dee2e6;
	}
}

@media screen and (min-width:1200px) {
	.op-table, .opening-hours {
		width: 100%;
		margin-left: 5px;
		font-size: 1em;
	}
	.op-cell, .day-name, .hours {
		padding: .75em;
		border-top: 1px solid #dee2e6;
	}
}


.wp-block-quote {
	margin-left: 1em;
	margin-right: 1em;
	font-style: italic;
}
cite {
	color: #666666;
	font-style: italic;
	font-size: .9em;
}
.wp-block-media-text {
	margin-bottom: 2em;
}
.wp-block-image {
	width: 100%;
	height: auto;
}
.wp-block-image figcaption {
	text-align: center;
}

.not-found-content {
	padding: 0 2em 10em;
}

.wp-block-media-text__media img, .wp-block-media-text__media video {
	width: 100%;
	height: auto;
}

.wp-block-pullquote {
    border-top: 2px solid;
    border-bottom: 2px solid;
    margin-bottom: 1.75em;
    color: #8c85c9;
}
.margin-vertical-1em {
	margin: 1em 0 1em;
}
.margin-vertical-2em {
	margin: 2em 0 2em;
}
.margin-bottom-2em {
	margin: 0 0 2em;
}


/*    Kauneuspisteen hinnaston tyylit     */

.kauneuspiste h2, h2.kauneuspiste {
	border-bottom: 2px solid #E3BAC0;
	padding-bottom: 0.5em;
}
.kauneuspiste div {
	padding: 0 0.8em 0.5em;
}

.menu_item_wrap {
	margin-left: 15px;
	margin-right: 15px;
}
@media screen and (max-width:575px) {
	.menu_item_wrap {
		margin-left: 0;
		margin-right: 0;
	}
}

.menu_item_price {
	white-space: nowrap !important;
}

li.text-color-laventeli a {
	color: #8c85c9 !important;
}
li.text-color-laventeli a:hover {
	text-decoration: none;
	color: #000!important;
}



/**************************/
/*  Vanhat tarjoustyylit  */
/*                        */
/* Poista kun ei tarvita  */
/**************************/

.tarjous-single {
	margin: 30px;
}
#single-offer-post-imgwrap {
	border: solid #E6E6E6 1px;
	padding: 10px;
	text-align: center;
}
#single-offer-post-imgwrap img {
	max-width: 100%;
	height: auto;
}
#single-offer-post-price {
	margin: 10px 5px;
	padding: 0;
	text-align: center;
	font-size: 2em;
	font-weight: bold;
	color: #8c85c9;
}
#single-offer-post-normalprice {
	margin: 10px 0 5px 0;
	padding: 0;
	text-align: center;
	font-size: 1em;
	color: #000;
}
