/* My account style rules.

	* Table of contents

	- Login and Registration forms
	- Menu
	- Personal information
	- Change password form
	- Orders table

 */

.woocommerce-account .entry-header {
	display: none;
}

/* Login and Registration forms
------------------------------------------------------------------------------------------------- */

body.woocommerce-login .breadcrumb__wrap,
body.woocommerce-login .site-inner,
body.woocommerce-lost-password .breadcrumb__wrap,
body.woocommerce-lost-password .site-inner {
	background-color: var( --ct-color-easy-gray );
}

body.woocommerce-login .site-inner,
body.woocommerce-lost-password .site-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	padding-bottom: 60px;
	margin-bottom: 0;
}

body.woocommerce-login .site-inner > .wrap,
body.woocommerce-lost-password .site-inner > .wrap {
	max-width: 420px;
	width: 100%;
	background-color: var( --ct-color-white );
}

.woocommerce #customer_login {
	position: relative;
	overflow-x: hidden;
}

body.woocommerce-lost-password .woocommerce,
.woocommerce #customer_login .u-column1,
.woocommerce #customer_login .u-column2 {
	float: none;
	clear: both;
	width: 100%;
	padding: 40px 50px;
	background-color: var( --ct-color-white );
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}

.woocommerce #customer_login .u-column1 {
	position: relative;
	left: 0;
	-webkit-transition: left 350ms ease;
	-moz-transition: left 350ms ease;
	transition: left 350ms ease;
}

.woocommerce #customer_login .u-column2 {
	position: absolute;
	top: 0;
	right: -100%;
	-webkit-transition: right 350ms ease;
	-moz-transition: right 350ms ease;
	transition: right 350ms ease;
}

.register-active .woocommerce #customer_login .u-column1 {
	left: -100%;
}

.register-active .woocommerce #customer_login .u-column2 {
	right: 0;
}

.u-columns__title {
	margin-bottom: 20px;
	font-size: 3rem;
	line-height: 1.5;
	text-align: center;
}

.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.reset-form {
	width: 300px;
	margin: 0 auto;
	border: none;
}

.woocommerce form.login,
.woocommerce form.register {
	padding: 0;
}

.woocommerce form.login p,
.woocommerce form.register p,
.woocommerce form.reset-form p {
	margin-bottom: 0;
}

.woocommerce .woocommerce-form-login .woocommerce-form-login__rememberme {
	font-size: 1.4rem;
}

.woocommerce .woocommerce-form-login .woocommerce-form-login__submit {
	float: unset;
	margin-left: 0;
}

.woocommerce .woocommerce-form-login .woocommerce-form-login__submit,
.woocommerce-form-register__submit,
.lost_reset_password .woocommerce-Button {
	width: 100%;
	height: 40px;
	font-size: 1.4rem;
	line-height: 1.5;
}

#customer_login .woocommerce-LostPassword,
#customer_login .open-register-form,
#customer_login .open-login-form,
.facebook-entry {
	text-align: center;
	line-height: 1.5;
}

#customer_login .woocommerce-LostPassword {
	margin: 0;
	font-size: 1.2rem;
}

#customer_login .woocommerce-LostPassword a {
	color: var( --ct-color-dark-gray );
}

#customer_login .open-register-form,
#customer_login .open-login-form,
.facebook-entry {
	font-size: 1.3rem;
}

.facebook-entry {
	margin-bottom: -10px;
}

#customer_login .open-register-form:hover,
#customer_login .open-login-form:hover {
	cursor: pointer;
}

@media screen and ( min-width: 1024px ) {
	body.woocommerce-login .site-inner,
	body.woocommerce-lost-password .site-inner {
		padding-top: 50px;
		padding-bottom: 130px;
		margin-bottom: 0;
	}

	body.woocommerce-login .site-inner > .wrap,
	body.woocommerce-lost-password .site-inner > .wrap {
		padding-right: 0;
		padding-left: 0;
	}
}

/* Menu
------------------------------------------------------------------------------------------------- */

.woocommerce-account .woocommerce-MyAccount-navigation {
	padding: 10px;
	margin-bottom: 40px;
	border-bottom: 1px solid var( --ct-color-middle-gray );
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}

.woocommerce-MyAccount-navigation ul {
	padding: 0;
	margin: 0;
}

.woocommerce-MyAccount-navigation-link {
	margin-top: 30px;
	margin-bottom: 30px;
	list-style-type: none;
}

.woocommerce-MyAccount-navigation-link a {
	display: block;
	border: 1px solid var( --ct-color-middle-gray );
	border-radius: var( --ct-bd-specific-radius );
	color: var( --ct-color-dark-gray );
	font-weight: 500;
	line-height: 40px;
	text-align: center;
}

.woocommerce-MyAccount-navigation-link.is-active a,
.woocommerce-MyAccount-navigation-link a:hover {
	background-color: var( --ct-color-btn-dark );
	border-color: var( --ct-color-btn-dark );
	color: var( --ct-color-btn-light );
}

@media screen and ( min-width: 768px ) {
	.woocommerce-account .woocommerce-MyAccount-navigation {
		width: 100%;
		padding: 0 0 40px;
	}

	.woocommerce-MyAccount-navigation ul {
		display: flex;
		column-gap: 20px;
		gap: 20px;
		justify-content: space-between;
	}

	.woocommerce-MyAccount-navigation-link {
		flex: 1;
		max-width: 230px;
		margin-top: 0;
		margin-bottom: 0;
	}

	.woocommerce-account .woocommerce-MyAccount-content {
		/* force WC styles */
		width: 100%;
		margin-bottom: 40px;
	}
}

/* Personal information
------------------------------------------------------------------------------------------------- */

.my-account-fields,
.my-account-fields__actions {
	padding: 30px 20px;
}

.my-account-fields {
	border-bottom: 1px solid var( --ct-color-middle-gray );
}

.woocommerce form .my-account-fields .form-row-first,
.woocommerce form .my-account-fields .form-row-last,
.woocommerce-page form .my-account-fields .form-row-first,
.woocommerce-page form .my-account-fields .form-row-last {
	float: unset;
	width: auto;
}

.my-account-fields__actions {
	display: flex;
	row-gap: 20px;
	gap: 20px;
	flex-direction: column;
}

.my-account-fields__actions .btn {
	width: 100%;
	height: 40px;
	font-size: 1.4rem;
}

@media screen and ( min-width: 480px ) {
	.my-account-fields__actions {
		flex-direction: row;
	}
}

@media screen and ( min-width: 1024px ) {
	.my-account-fields__wrapper {
		display: flex;
		margin-bottom: 5px;
	}

	.my-account-fields,
	.my-account-fields__actions {
		border: 1px solid var( --ct-color-middle-gray );
	}

	.my-account-fields {
		flex: 1;
		padding: 60px 30px;
	}

	.my-account-fields:last-child {
		border-left-width: 0;
	}

	.my-account-fields__actions {
		justify-content: space-between;
		padding: 20px 30px;
		margin-bottom: 30px;
	}

	.my-account-fields__actions .btn {
		width: 160px;
	}
}

@media screen and ( min-width: 1280px ) {
	.my-account-fields {
		padding-right: 60px;
		padding-left: 60px;
	}
}

@media screen and ( min-width: 1680px ) {
	.my-account-fields {
		padding-right: 100px;
		padding-left: 100px;
	}
}

/* Change password form
------------------------------------------------------------------------------------------------- */

.change-password-form .btn {
	width: 100%;
	height: 40px;
	font-size: 1.4rem;
}

@media screen and ( min-width: 1024px ) {
	.change-password-form-container {
		width: 50%;
		margin-right: auto;
		margin-left: auto;
	}

	.change-password-form-container .my-account-fields:last-child {
		border-left-width: 1px;
	}
}

/* Orders table
------------------------------------------------------------------------------------------------- */

@media screen and ( max-width: 767px ) {
	.woocommerce table.shop_table_responsive tr td.order-date,
	.woocommerce-page table.shop_table_responsive tr td.order-date {
		position: relative;
		font-weight: 700;
		font-size: 1.4rem;
	}

	.woocommerce table.shop_table_responsive tr td.order-date::before,
	.woocommerce-page table.shop_table_responsive tr td.order-date::before {
		content: url( ../images/icons/chevron__down.svg );
		position: absolute;
		right: 0;
		top: 50%;
		display: inline-block;
		transform: translateY( -50% );
		transition: transform .3s;
	}

	.woocommerce table.shop_table_responsive tr.active td.order-date::before,
	.woocommerce-page table.shop_table_responsive tr.active td.order-date::before {
		transform: translateY( -50% ) rotate(180deg);
	}

	.woocommerce table.shop_table_responsive tr:not( .active ) td.order-number,
	.woocommerce-page table.shop_table_responsive tr:not( .active ) td.order-number,
	.woocommerce table.shop_table_responsive tr:not( .active ) td.order-total,
	.woocommerce-page table.shop_table_responsive tr:not( .active ) td.order-total,
	.woocommerce table.shop_table_responsive tr:not( .active ) td.order-status,
	.woocommerce-page table.shop_table_responsive tr:not( .active ) td.order-status,
	.woocommerce table.shop_table_responsive tr:not( .active ) td.order-additional-status,
	.woocommerce-page table.shop_table_responsive tr:not( .active ) td.order-additional-status,
	.woocommerce table.shop_table_responsive tr:not( .active ) td.order-actions,
	.woocommerce-page table.shop_table_responsive tr:not( .active ) td.order-actions {
		height: 0;
		padding: 0;
		border-width: 0;
		overflow: hidden;
	}
}

.woocommerce table.shop_table_responsive tr.product-items td::before,
.woocommerce-page table.shop_table_responsive tr.product-items td::before,
.woocommerce table.shop_table_responsive tr.product-items .order-items__wrap {
	display: none;
}

.woocommerce table.shop_table tr.product-items th,
.woocommerce table.shop_table tr.product-items td {
	padding: 0;
}

.order-items__wrap {
	padding-top: 15px;
	padding-bottom: 15px;
	background-color: var( --ct-color-light-gray );
}

.order-item {
	display: grid;
	gap: 10px 30px;
	grid-template-columns: 100px 1fr;
	margin-bottom: 20px;
}

.order-item:last-child {
	margin-bottom: 0;
}

.order-item__img {
	grid-row: span 4;
}

.order-item__name,
.order-item__attrs,
.order-item__price,
.order-item__quantity {
	grid-column: 2;
}

.order-item__attrs {
	display: flex;
}

.color-attr,
.size-attr {
	width: 50%;
}

.order-item__attrs .color-image img {
	border-radius: 50%;
}

@media screen and ( min-width: 768px ) {
	.order-items__wrap {
		padding-top: 5px;
		padding-bottom: 5px;
	}

	.order-item {
		grid-template-columns: 46px repeat( 4, auto );
		align-items: center;
		font-size: 1.6rem;
	}

	.order-item__img {
		grid-row: unset;
	}

	.order-item__name,
	.order-item__attrs,
	.order-item__price,
	.order-item__quantity {
		grid-column: unset;
	}

	.order-item__name {
		font-size: 2rem;
	}

	.order-item__attrs {
		column-gap: 30px;
		gap: 30px;
	}

	.order-item__attrs .color-title,
	.order-item__attrs .size-title {
		margin-right: 10px;
	}
}