/* Footer style rules.

	* Table of contents

	- Subscribe form
	- Footer logo
	- Social media icons
	- Contact data
	- Footer menus
	- Payment methods
	- Copyright

 */

.site-footer {
	font-size: 1.2rem;
	line-height: 1.5;
	color: var( --ct-color-black );
	border-top: 1px solid var( --ct-color-middle-gray );
	background-color: var( --ct-color-light-gray );
}

.single-product .site-footer {
	z-index: 20;
}

.footer-content {
	display: grid;
	gap: 30px;
	grid-template-columns: 1fr;
	grid-template-areas:
		"sb"
		"lg"
		"sm"
		"cd"
		"ms"
		"pm";
	max-width: 450px;
	margin: 30px auto 20px;
}

.footer-content__title {
	margin-bottom: 15px;
	font-weight: 900;
	line-height: 1.5;
}

@media screen and ( min-width: 768px ) {
	.site-footer {
		font-size: 1.4rem;
	}

	.footer-content {
		grid-template-columns: 1fr 335px;
		grid-template-areas:
		"lg sb"
		"sm sb"
		"pm sb"
		"cd cd"
		"ms ms";
		max-width: unset;
		margin-bottom: 0;
	}
}

@media screen and ( min-width: 1024px ) {
	.site-footer {
		font-size: 1.6rem;
	}
}

@media screen and ( min-width: 1140px ) {
	.footer-content {
		gap: 15px 50px;
		grid-template-columns: auto 1fr 335px;
		grid-template-areas:
		"lg cd sb"
		"sm cd sb"
		"pm cd sb"
		"ms ms ms";
		align-items: start;
	}
}

@media screen and ( min-width: 1680px ) {
	.site-footer .wrap {
		max-width: unset;
	}

	.footer-content {
		grid-template-columns: auto 1fr 335px;
		grid-template-areas:
			"lg ms sb"
			"sm ms sb"
			"pm ms sb"
			"cd ms sb";
	}
}

@media screen and ( min-width: 1920px ) {
	.footer-content {
		gap: 15px 100px;
	}
}

/* Subscribe form
------------------------------------------------------------------------------------------------- */

.footer-subscribe__wrap {
	grid-area: sb;
}

/* Footer logo
------------------------------------------------------------------------------------------------- */

.footer-logo__wrap {
	grid-area: lg;
	justify-self: center;
	height: 38px;
}

.footer-logo__wrap img {
	max-height: 100%;
}

@media screen and ( min-width: 768px ) {
	.footer-logo__wrap {
		justify-self: start;
	}
}

/* Social media icons
------------------------------------------------------------------------------------------------- */

.social-media__wrap {
	grid-area: sm;
	justify-self: center;
	display: flex;
	align-items: center;
	gap: 10px;
	column-gap: 10px;
}

.social-media {
	display: block;
	height: 17px;
}

.social-media svg {
	max-height: 100%;
	width: auto;
	height: 100%;
}

@media screen and ( min-width: 480px ) {
	.social-media {
		height: 24px;
	}
}

@media screen and ( min-width: 768px ) {
	.social-media__wrap {
		justify-self: start;
	}
}

/* Contact data
------------------------------------------------------------------------------------------------- */

.contact-data__container {
	grid-area: cd;
	padding-bottom: 0;
	/* force grid's gap */
	margin-bottom: -30px;
	border-top: 1px solid var( --ct-color-middle-gray );
	transition: padding-bottom .3s;
}

.contact-data__container.active {
	padding-bottom: 25px;
}

.contact-data__container .footer-content__title {
	position: relative;
	margin-bottom: 0;
	line-height: 35px;
	overflow: hidden;
}

.contact-data__container .footer-content__title::after {
	content: url( ../images/icons/menu-plus.svg );
	position: absolute;
	top: 0;
	left: 0;
	transform: rotate(0deg);
	transition: .3s transform;
}

.contact-data__container.active .footer-content__title::after {
	transform: rotate(45deg);
}

.footer-contact-data__wrap {
	display: none;
}

.contact-data__wrap,
.contact-data {
	display: grid;
	gap: 10px;
	grid-template-columns: auto 1fr;
}

.contact-data__icon {
	width: 30px;
	text-align: center;
}

.contact-data__icon svg {
	vertical-align: middle;
}

.contact-data__title {
	font-weight: 700;
}

.footer-content .contact-data__data {
	justify-self: end;
}

@media screen and ( min-width: 768px ) {
	.footer-content .contact-data__data {
		justify-self: start;
	}

	/* force .wrap */
	.contact-data__container {
		padding-right: 10px;
		padding-left: 10px;
		margin-right: -10px;
		margin-left: -10px;
	}
}

@media screen and ( min-width: 1024px ) {
	/* force .wrap */
	.contact-data__container {
		padding-right: 30px;
		padding-left: 30px;
		margin-right: -30px;
		margin-left: -30px;
	}

	.contact-data__wrap {
		gap: 15px 25px;
	}
}

@media screen and ( min-width: 1140px ) {
	.contact-data__container {
		margin-bottom: 0;
		border-top: none;
		/* deforce .wrap */
		padding-right: 0;
		padding-left: 0;
		margin-right: 0;
		margin-left: 0;
	}

	.contact-data__container.active {
		padding-bottom: 0;
	}

	.contact-data__container .footer-content__title::after {
		display: none;
	}

	.footer-contact-data__wrap {
		display: block !important;
	}
}

@media screen and ( min-width: 1140px ) and ( max-width: 1679px ) {
	.contact-data__container {
		justify-self: center;
	}
}

/* Footer menus
------------------------------------------------------------------------------------------------- */

.footer-menu__container {
	grid-area: ms;
	border-top: 1px solid var( --ct-color-middle-gray );
}

.footer-menu__wrap {
	border-bottom: 1px solid var( --ct-color-middle-gray );
}

.footer-menu__title {
	position: relative;
	line-height: 35px;
	overflow: hidden;
}

.footer-menu__title::after {
	content: url( ../images/icons/menu-plus.svg );
	position: absolute;
	top: 0;
	left: 0;
	transform: rotate(0deg);
	transition: .3s transform;
}

.footer-menu__wrap.active .footer-menu__title::after {
	transform: rotate(45deg);
}

.footer-menu {
	display: none;
}

.footer-menu ul {
	padding: 0;
	margin: 0;
}

.footer-menu li {
	list-style-type: none;
}

.footer-menu__items {
	padding-bottom: 15px;
}

.footer-menu__items a {
	display: block;
	padding-top: 10px;
	padding-bottom: 10px;
}

@media screen and ( min-width: 768px ) {
	/* force .wrap */
	.footer-menu__container,
	.footer-menu__wrap {
		padding-right: 10px;
		padding-left: 10px;
		margin-right: -10px;
		margin-left: -10px;
	}

	.footer-menu__wrap:last-child {
		border-bottom: none;
	}
}

@media screen and ( min-width: 1024px ) {
	/* force .wrap */
	.footer-menu__container,
	.footer-menu__wrap {
		padding-right: 30px;
		padding-left: 30px;
		margin-right: -30px;
		margin-left: -30px;
	}
}

@media screen and ( max-width: 1679px ) {
	.footer-menu__title {
		margin-bottom: 0;
	}
}

@media screen and ( min-width: 1680px ) {
	/* deforce .wrap */
	.footer-menu__container,
	.footer-menu__wrap {
		padding-right: 0;
		padding-left: 0;
		margin-right: 0;
		margin-left: 0;
	}

	.footer-menu__container {
		display: flex;
		justify-content: space-around;
		border-top: none;
	}

	.footer-menu__wrap {
		border-bottom: none;
	}

	.footer-menu__title {
		line-height: 1.5;
	}

	.footer-menu__title::after {
		display: none;
	}

	.footer-menu {
		/* force possible inline display:none */
		display: block !important;
	}

	.footer-menu__items {
		display: flex;
		flex-direction: column;
		row-gap: 15px;
		gap: 15px;
		padding-bottom: 0;
	}

	.footer-menu__items a {
		padding-top: 0;
		padding-bottom: 0;
	}
}

/* Payment methods
------------------------------------------------------------------------------------------------- */

.footer-payment__wrap {
	grid-area: pm;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px;
	column-gap: 15px;
	margin-top: -10px;
}

.footer-payment__icon {
	width: 29px;
}

@media screen and ( min-width: 480px ) {
	.footer-payment__icon {
		width: 42px;
	}
}

@media screen and ( min-width: 768px ) {
	.footer-payment__wrap {
		justify-content: start;
	}
}

@media screen and ( min-width: 1024px ) {
	.footer-payment__wrap {
		column-gap: 10px;
		gap: 10px;
		justify-content: start;
		margin-top: 0;
	}
}

/* Copyright
------------------------------------------------------------------------------------------------- */

.footer-copyright {
	direction: ltr;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 60px;
	border-top: 1px solid var( --ct-color-middle-gray );
}

.footer-copyright__separator {
	margin-right: 5px;
	margin-left: 5px;
}

.footer-copyright > .footer-copyright__separator {
	display: none;
}

.footer-copyright__separator::before {
	content: '|';
}

@media screen and ( min-width: 480px ) {
	/* force .wrap */
	.footer-copyright {
		margin-right: -10px;
		margin-left: -10px;
	}
}

@media screen and ( min-width: 1024px ) {
	.footer-copyright {
		flex-direction: row;
		font-size: 1.4rem;
		/* force .wrap */
		margin-right: -30px;
		margin-left: -30px;
	}

	.footer-copyright__separator {
		margin-right: 15px;
		margin-left: 15px;
	}

	.footer-copyright > .footer-copyright__separator {
		display: initial;
	}
}

@media screen and ( min-width: 1680px ) {
	.footer-copyright {
		margin-top: 30px;
		/* deforce .wrap */
		margin-right: 0;
		margin-left: 0;
	}
}