/**
 * My Account primary navigation.
 * Desktop (>= 960px): the wrap stays in the page and the links sit in one row.
 * Mobile (< 960px): the wrap is off-screen until the Menú button opens the side panel, with the links stacked.
 * Open state: .checkoutflow-account-nav--open on .checkoutflow-account-navigation-wrap.
 */

.woocommerce-account .entry-title {
	font-size: 25px !important;
	padding-right: 50px !important;
}

.checkoutflow-account-navigation-wrap {
	position: relative;
}

.woocommerce-account .checkoutflow-account-navigation-wrap .woocommerce-MyAccount-navigation {
	float: none;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.woocommerce-account .checkoutflow-account-navigation-wrap ~ .woocommerce-MyAccount-content {
	float: none;
	width: 100%;
	max-width: none;
	clear: both;
	position: relative;
}

.woocommerce-account .checkoutflow-account-navigation-wrap .woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-account .checkoutflow-account-navigation-wrap .woocommerce-MyAccount-navigation li {
	display: block;
	width: auto;
	margin: 0;
	border: 0;
	float: none;
}

.woocommerce-account .checkoutflow-account-navigation-wrap .woocommerce-MyAccount-navigation a {
	display: inline-block;
	padding: 0.45rem 0.8rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 999px;
	text-decoration: none;
	color: inherit;
	line-height: 1.3;
	white-space: nowrap;
}

.checkoutflow-account-navigation-wrap .woocommerce-MyAccount-navigation a:hover,
.checkoutflow-account-navigation-wrap .woocommerce-MyAccount-navigation a:focus {
	background: rgba(0, 0, 0, 0.04);
}

.checkoutflow-account-navigation-wrap .woocommerce-MyAccount-navigation li.is-active a {
	font-weight: 600;
	background: rgba(0, 0, 0, 0.06);
}

.checkoutflow-account-nav-open-dots {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.22rem;
	line-height: 0;
}

.checkoutflow-account-nav-open-dot {
	display: block;
	width: 0.25rem;
	height: 0.25rem;
	border-radius: 50%;
	background-color: currentColor;
	flex-shrink: 0;
	opacity: 0.9;
}

#checkoutflow-account-nav-title {
	margin: 0 !important;
}

.woocommerce table.shop_table_responsive tr,
.woocommerce-page table.shop_table_responsive tr {
	margin-bottom: 30px !important;
}

.woocommerce .woocommerce-order-details {
	border: none !important;
}

.woocommerce-account .woocommerce-Button,
.woocommerce .woocommerce-button {
	border-radius: 20px !important;
	font-size: 14px !important;
}

@media screen and (min-width: 960px) {
	.checkoutflow-account-navigation-wrap {
		display: block;
		margin: 0 0 1.25rem;
	}

	.checkoutflow-account-nav-offcanvas {
		position: static;
		inset: auto;
		z-index: auto;
		width: 100%;
		max-width: none;
		max-height: none;
		transform: none;
		box-shadow: none;
		overflow: visible;
		background: transparent;
	}

	.checkoutflow-account-nav-panel-header,
	.checkoutflow-account-nav-backdrop,
	.checkoutflow-account-nav-open {
		display: none !important;
	}
}

@media screen and (max-width: 959px) {
	.checkoutflow-account-nav-offcanvas {
		position: fixed;
		inset: 0 auto 0 0;
		z-index: 99900;
		width: min(20rem, 88vw);
		max-height: 100vh;
		background: #fff;
		box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 12px 40px rgba(0, 0, 0, 0.12);
		transform: translateX(-105%);
		transition: transform 0.28s ease;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.checkoutflow-account-navigation-wrap.checkoutflow-account-nav--open .checkoutflow-account-nav-offcanvas {
		transform: translateX(0);
	}

	.checkoutflow-account-nav-panel-inner {
		display: flex;
		flex-direction: column;
		min-height: 100%;
	}

	.checkoutflow-account-nav-panel-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem;
		padding: 0.85rem 1rem;
		border-bottom: 1px solid rgba(0, 0, 0, 0.08);
		flex-shrink: 0;
	}

	.checkoutflow-account-nav-panel-title {
		margin: 0;
		font-size: 1rem;
		font-weight: 600;
	}

	.woocommerce-account .checkoutflow-account-navigation-wrap .woocommerce-MyAccount-navigation ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0.35rem 0;
	}

	.woocommerce-account .checkoutflow-account-navigation-wrap .woocommerce-MyAccount-navigation li {
		border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	}

	.woocommerce-account .checkoutflow-account-navigation-wrap .woocommerce-MyAccount-navigation li:last-child {
		border-bottom: 0;
	}

	.woocommerce-account .checkoutflow-account-navigation-wrap .woocommerce-MyAccount-navigation a {
		display: block;
		padding: 0.65rem 1rem;
		border: 0;
		border-radius: 0;
		white-space: normal;
	}

	.checkoutflow-account-nav-close {
		display: inline-flex;
		align-items: center;
		gap: 0.35rem;
		cursor: pointer;
		font-size: 0.9rem;
		font-weight: 600;
		margin: 0;
		border: none;
		padding: 0.25rem 0;
		font-family: inherit;
		background: none !important;
		color: #000 !important;
		box-shadow: none !important;
	}

	.checkoutflow-account-nav-close-icon {
		font-size: 1.35rem;
		line-height: 1;
	}

	.checkoutflow-account-nav-backdrop {
		position: fixed;
		inset: 0;
		z-index: 99890;
		background: rgba(15, 23, 42, 0.45);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.28s ease;
		cursor: pointer;
		margin: 0;
		width: 100%;
		height: 100%;
		padding: 0;
		border: 0;
		appearance: none;
	}

	.checkoutflow-account-navigation-wrap.checkoutflow-account-nav--open .checkoutflow-account-nav-backdrop {
		opacity: 1;
		pointer-events: auto;
	}

	.checkoutflow-account-nav-open {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.45rem;
		box-sizing: border-box;
		min-height: 2.5rem;
		margin: 0 0 1rem;
		padding: 0.35rem 0.75rem;
		border-radius: 0.5rem;
		border: 1px solid rgba(0, 0, 0, 0.12);
		background: #fff;
		cursor: pointer;
		color: inherit;
		font: inherit;
		font-weight: 600;
		line-height: 1;
		box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	}

	.checkoutflow-account-nav-open-label {
		font-size: 0.95rem;
	}

	@media screen and (max-width: 782px) {
		.admin-bar .checkoutflow-account-nav-offcanvas {
			top: 46px;
			max-height: calc(100vh - 46px);
		}

		.admin-bar .checkoutflow-account-nav-backdrop {
			top: 46px;
		}
	}

	@media screen and (min-width: 783px) {
		.admin-bar .checkoutflow-account-nav-offcanvas {
			top: 32px;
			max-height: calc(100vh - 32px);
		}

		.admin-bar .checkoutflow-account-nav-backdrop {
			top: 32px;
		}
	}
}
