/*
Theme Name: The7 Child - Groupe Kremer
Template: dt-the7
Author: Davi
Description: Child theme made for groupe-kremer.com by Davi
Version: 0.1
*/

/*
Indentation: tabs (in all files)
*/

/* ============================================================================
                                    Global
============================================================================ */

* {
	box-sizing: border-box;
}

body.modal-open {
	overflow: hidden;
}

.error {
	font-size: 0.9em;
	color: red;
	margin-left: 0.5em;
}

.required {
	color: red;
}

.overlay {
	position: fixed;
	top: 0;
	bottom: 0;
	width: 100%;
	z-index: 10000;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: rgba(0, 0, 0, 0.5);
}

.overlay .window {
	max-height: 100vh;
	overflow-y: auto;
}

.window {
	background-color: white;
	padding: 1.5em;
}

.window.closable {
	position: relative;
}

.close-button {
	position: absolute;
	top: 0.5em;
	right: 0.5em;
	width: 1.2em;
	height: 1.2em;
	cursor: pointer;
}

.close-button div {
	position: absolute;
	top: 40%;
	width: 100%;
	height: 20%;
	background-color: darkgrey;
}

.close-button:hover div {
	background-color: black;
}

.close-button div:first-of-type {
	transform: rotate(45deg);
}

.close-button div:nth-of-type(2) {
	transform: rotate(-45deg);
}

.shadow {
	box-shadow: 0 0 1em rgba(0, 0, 0, 0.2);
}

.flat {
	max-height: 0;
}

ul.full-width {
	grid-column-start: 1;
	grid-column-end: 3;
}

p.centered {
	text-align: center;
}

.hidden {
	display: none !important;
}

input[type="button"],
input[type="submit"],
input[type="submit"]:not([name="update_cart"]):not(.woocommerce-widget-layered-nav-dropdown__submit) {
	border: none;
	padding: 0.5em;
	line-height: normal;
}

.input-container {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 0.5em;
}

.input-container input,
.input-container input:not(.elementor-field):not(.searchform-s) {
	margin: 0;
}

.flex-container {
	display: flex;
	width: 100%;
	justify-content: space-between;
}

/* ============================================================================
                               Login / Sign up
============================================================================ */

#header-login {
	position: fixed;
	top: 44px;
	right: 1em;
	display: flex;
	justify-content: flex-end;
	padding-top: 2em;
	z-index: 9700;
}

#header-login form {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

#header-login label,
#sign-up-form label {
	font-size: 0.9em;
	line-height: 1.3;
}

#username,
#password {
	width: 100%;
}

#password-container {
	position: relative;
}

#forgot-password {
	font-size: 0.8em;
	margin-bottom: 0.5em;
}

#sign-up-button {
	margin-left: 1em;
}

#sign-up-overlay > .window {
	max-width: 700px;
}

#sign-up-form {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

#submit-sign-up {
	align-self: flex-end;
}

/* ============================================================================
                               Customer Area
============================================================================ */

.page-template-template-customer-area .page-info {
	margin-bottom: 2em;
}

.welcome-message {
	text-align: right;
	margin-bottom: 1em;
	margin-right: 1em;
}

h2.small-h2 {
	font-size: 26px;
	line-height: 36px;
	font-weight: bold;
}

.title-underline {
	border-style: solid;
	border-bottom-width: 4px;
	width: 50px;
	float: left;
}

.gk-category-preview {
	display: inline-block;
	width: 290px;
	height: 290px;
	padding: 20px;
}

/* ============================================================================
                                    Gallery
============================================================================ */

.page-template-template-gallery #main {
	background-color: rgba(0, 0, 0, 0.04);
}

.page-template-template-gallery #main .wf-container-main {
	display: block;
}

.gk-gallery {
	display: flex;
	justify-content: space-evenly;
	flex-wrap: wrap;
	width: 100%;
}

.gk-gallery-title {
	margin-bottom: 1em;
}

.gk-figure {
	position: relative;
	width: 180px;
	height: 180px;
	margin: 20px;
}

.gk-thumb {
	width: 100%;
	height: 100%;
}

.gk-caption {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 1em;
	background-color: rgba(0, 0, 0, 0.6);
	opacity: 0;
	color: lightgrey;
	cursor: pointer;
}

.gk-caption:hover {
	opacity: 1;
}

.gk-caption h3 {
	font-size: 1em;
	color: lightgrey;
	text-align: center;
	line-height: 1.2em;
}

.gk-slider {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: black;
}

.gk-slider-content {
	position: relative;
	max-height: 100%;
}

.gk-slider-content figure {
	max-height: 100vh;
}

.gk-slider-content img {
	height: 100%;
	max-height: 100vh;
	width: auto;
	max-width: 100vw;
}

.gk-slider-content figcaption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	background-color: rgba(0, 0, 0, 0.5);
	color: lightgrey;
	text-align: center;
}

.gk-slider-content figcaption h3 {
	color: white;
}

.gk-slider-controls {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-between;
}

.gk-close-slider {
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 1.2em;
	height: 1.6em;
	margin-top: 32px;
	padding: 0 0.5em;
	background-color: #EFA94780;
	color: #FFFFFFA0;
	cursor: pointer;
}

.gk-close-slider:hover {
	background-color: #EFA947;
	color: white;
}

.gk-previous,
.gk-next {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
	width: 20%;
	max-width: 100px;
	font-size: 6em;
	font-weight: bold;
	cursor: pointer;
}

.gk-previous:hover,
.gk-next:hover {
	color: white;
}

.gk-previous {
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.8), transparent);
}

.gk-next {
	background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.8));
}

.gk-previous .dashicons,
.gk-next .dashicons {
	font-size: 1em;
	width: auto;
	height: auto;
}

.gk-loading {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.gk-spinner {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border-top: 3px solid white;
	border-right: 3px solid transparent;
	border-bottom: 3px solid white;
	border-left: 3px solid transparent;
	animation: spin 2s linear infinite;
}


/* ============================================================================
                                  Animations
============================================================================ */

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* ============================================================================
                                  Media queries
============================================================================ */
@media (max-width: 768px) {
	#password-container::before {
		top: 9em;
		left: unset;
		right: unset;
	}
}
