/*
 * WowRSVP My Account Navigation
 *
 * Separate stylesheet for the WooCommerce My Account menu.
 * QR Seating functionality is NOT contained here.
 */

/* =========================================================
   NAVIGATION RESET
   ========================================================= */

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0 0 3px !important;
	padding: 0 !important;
	list-style: none !important;
}

/* =========================================================
   NAVIGATION ITEMS
   ========================================================= */

.woocommerce-account .woocommerce-MyAccount-navigation li > a {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	min-height: 44px !important;
	box-sizing: border-box !important;
	padding: 9px 13px 9px 46px !important;
	border-radius: 7px !important;
	background: transparent !important;
	color: #17212b !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	line-height: 1.25 !important;
	text-decoration: none !important;
	transition:
		background .18s ease,
		color .18s ease,
		transform .18s ease !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li > a:hover {
	background: #f4f5f7 !important;
	color: #111827 !important;
	transform: translateX(1px) !important;
}

/* =========================================================
   ACTIVE ENDPOINT — BLACK / WHITE
   ========================================================= */

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active > a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--is-active > a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active > a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--is-active > a:hover {
	background: #000000 !important;
	background-color: #000000 !important;
	border-color: #000000 !important;
	color: #ffffff !important;
	font-weight: 700 !important;
	box-shadow: none !important;
	transform: none !important;
}

/* Active icon */
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active > a::before,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--is-active > a::before {
	color: #ffffff !important;
	opacity: 1 !important;
}

/* Remove old gray active indicator */
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active > a::after,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--is-active > a::after {
	background: #ffffff !important;
}

/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--wowrsvp-wedding-heading,
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--wowrsvp-account-heading {
	margin: 18px 0 6px !important;
	padding: 0 10px !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--wowrsvp-wedding-heading > a,
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--wowrsvp-account-heading > a {
	min-height: 0 !important;
	padding: 8px 0 6px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #7a8491 !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: .11em !important;
	line-height: 1.3 !important;
	text-transform: uppercase !important;
	pointer-events: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--wowrsvp-wedding-heading > a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--wowrsvp-account-heading > a:hover {
	background: transparent !important;
	transform: none !important;
}

/* =========================================================
   ICONS
   ========================================================= */

.woocommerce-account .woocommerce-MyAccount-navigation li > a::before {
	position: absolute !important;
	left: 14px !important;
	top: 50% !important;
	width: 20px !important;
	transform: translateY(-50%) !important;
	color: currentColor !important;
	text-align: center !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--dashboard > a::before {
	content: "⌂";
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--orders > a::before {
	content: "▣";
}

/* =========================================================
   PROOFS ICON
   ========================================================= */

.woocommerce-account .woocommerce-MyAccount-navigation
li.woocommerce-MyAccount-navigation-link--proofs > a::before {
	content: "▧" !important;
	display: block !important;
	color: currentColor !important;
	opacity: 1 !important;
	font-family: Arial, sans-serif !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--my-wedding > a::before {
	content: "♡";
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--rsvp-responses > a::before {
	content: "♧";
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--qr-seating > a::before {
	content: "⌗";
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--downloads > a::before {
	content: "☁";
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-address > a::before {
	content: "⌖";
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--payment-methods > a::before {
	content: "▤";
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-account > a::before {
	content: "♙";
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--wishlist > a::before {
	content: "♡";
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout > a::before,
.woocommerce-account .woocommerce-MyAccount-navigation-link--logout > a::before {
	content: "→";
}

/* Never show icons beside section headings. */
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--wowrsvp-wedding-heading > a::before,
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--wowrsvp-account-heading > a::before {
	content: none !important;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

	.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 7px !important;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation li {
		margin: 0 !important;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation li > a {
		min-height: 48px !important;
		padding: 9px 8px 9px 38px !important;
		border: 1px solid #e5e7eb !important;
		border-radius: 5px !important;
		background: #fff !important;
		font-size: 14px !important;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation li > a::before {
		left: 10px !important;
		width: 19px !important;
		font-size: 17px !important;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation li.is-active > a::after,
	.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--is-active > a::after {
		left: 0 !important;
		top: 5px !important;
		bottom: 5px !important;
		width: 3px !important;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--wowrsvp-wedding-heading,
	.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--wowrsvp-account-heading {
		grid-column: 1 / -1 !important;
		margin: 10px 0 0 !important;
		padding: 3px 4px 0 !important;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--wowrsvp-wedding-heading > a,
	.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--wowrsvp-account-heading > a {
		min-height: 0 !important;
		padding: 8px 0 4px !important;
		border: 0 !important;
		background: transparent !important;
		font-size: 10px !important;
		letter-spacing: .12em !important;
	}
  
  /* =========================================================
   ACTIVE MY ACCOUNT MENU ITEM
   ========================================================= */

.woocommerce-account .woocommerce-MyAccount-navigation
ul li.is-active > a,
.woocommerce-account .woocommerce-MyAccount-navigation
ul li.is-active > a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation
ul li.is-active > a:focus {

    background: #000000 !important;
    color: #ffffff !important;

    border-color: #000000 !important;

    font-weight: 600 !important;

    box-shadow: none !important;
}


/* Active icon */
.woocommerce-account .woocommerce-MyAccount-navigation
ul li.is-active > a svg,
.woocommerce-account .woocommerce-MyAccount-navigation
ul li.is-active > a i {

    color: #ffffff !important;
    fill: #ffffff !important;
}


/* Make sure pseudo-element icons also become white */
.woocommerce-account .woocommerce-MyAccount-navigation
ul li.is-active > a::before,
.woocommerce-account .woocommerce-MyAccount-navigation
ul li.is-active > a::after {

    color: #ffffff !important;
}
}


/* =========================================================
   WOWRSVP PROOFS — STABLE ICON CLASS
   ========================================================= */

/*
 * Proofs is provided by another part of the site, so its original
 * WooCommerce endpoint class is not reliable. The PHP/JS file adds
 * .wowrsvp-proofs-item to the correct menu item.
 */
.woocommerce-account .woocommerce-MyAccount-navigation
li.wowrsvp-proofs-item > a::before {
	content: "▧" !important;
	display: block !important;
	position: absolute !important;
	left: 14px !important;
	top: 50% !important;
	width: 20px !important;
	transform: translateY(-50%) !important;
	color: currentColor !important;
	opacity: 1 !important;
	font-family: Arial, sans-serif !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	text-align: center !important;
}

/* Mobile position for the Proofs icon */
@media (max-width: 767px) {
	.woocommerce-account .woocommerce-MyAccount-navigation
	li.wowrsvp-proofs-item > a::before {
		left: 10px !important;
		width: 19px !important;
		font-size: 17px !important;
	}
}


/* =========================================================
   FINAL ACTIVE STATE — BLACK / WHITE
   ========================================================= */

.woocommerce-account .woocommerce-MyAccount-navigation
li.is-active > a,
.woocommerce-account .woocommerce-MyAccount-navigation
li.woocommerce-MyAccount-navigation-link--is-active > a,
.woocommerce-account .woocommerce-MyAccount-navigation
li.is-active > a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation
li.woocommerce-MyAccount-navigation-link--is-active > a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation
li.is-active > a:focus,
.woocommerce-account .woocommerce-MyAccount-navigation
li.woocommerce-MyAccount-navigation-link--is-active > a:focus {
	background: #000000 !important;
	background-color: #000000 !important;
	border-color: #000000 !important;
	color: #ffffff !important;
	font-weight: 700 !important;
	box-shadow: none !important;
	transform: none !important;
}

/* Active pseudo-element icons */
.woocommerce-account .woocommerce-MyAccount-navigation
li.is-active > a::before,
.woocommerce-account .woocommerce-MyAccount-navigation
li.woocommerce-MyAccount-navigation-link--is-active > a::before {
	color: #ffffff !important;
	opacity: 1 !important;
}

/* Do not allow the theme's active marker to create another visible color. */
.woocommerce-account .woocommerce-MyAccount-navigation
li.is-active > a::after,
.woocommerce-account .woocommerce-MyAccount-navigation
li.woocommerce-MyAccount-navigation-link--is-active > a::after {
	background: #ffffff !important;
}

/* Center My Account heading on mobile */
@media (max-width: 767px) {
    .woocommerce-MyAccount-title.entry-title {
        text-align: center !important;
    }
}