/**
 * Downloads Suite account.
 */

.downloads-suite-account {
	--ds-account-accent: #45b7dc;
	--ds-account-accent-dark: #176983;
	--ds-account-ink: #202635;
	--ds-account-muted: #687083;
	--ds-account-line: #e5e9f0;
	--ds-account-soft: #f6f9fc;
	--ds-account-card: #fff;
	--ds-account-radius: 14px;
	display: block;
	width: 100%;
	color: var(--ds-account-ink);
}

.downloads-suite-account .downloads-suite-account__nav {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: stretch;
	gap: 0;
	margin: 0 0 22px;
	padding: 0 16px;
	overflow-x: auto;
	border: 1px solid var(--ds-account-line);
	border-radius: var(--ds-account-radius);
	background: var(--ds-account-soft);
	box-shadow: none;
	backdrop-filter: none;
	scrollbar-width: thin;
}

.downloads-suite-account__nav-title {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	margin-right: 12px;
	padding: 0 18px 0 2px;
	border-right: 1px solid var(--ds-account-line);
	color: var(--ds-account-muted);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.downloads-suite-account .downloads-suite-account__nav a {
	position: relative;
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	min-height: 56px;
	padding: 0 16px;
	border: 0;
	border-bottom: 3px solid transparent;
	border-radius: 0;
	color: var(--ds-account-ink);
	background: transparent;
	font-size: .95rem;
	font-weight: 700;
	text-decoration: none;
	transform: none;
}

.downloads-suite-account .downloads-suite-account__nav a::before {
	display: none;
}

.downloads-suite-account .downloads-suite-account__nav a:hover {
	color: var(--ds-account-accent-dark);
	background: rgba(255, 255, 255, .65);
	transform: none;
}

.downloads-suite-account .downloads-suite-account__nav a:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--ds-account-accent) 35%, transparent);
	outline-offset: 2px;
}

.downloads-suite-account .downloads-suite-account__nav a[aria-current="true"] {
	color: var(--ds-account-accent-dark);
	border-bottom-color: var(--ds-account-accent);
	background: var(--ds-account-card);
}

.downloads-suite-account__content {
	min-width: 0;
	width: 100%;
}

.downloads-suite-account .downloads-suite-account__section {
	margin: 0 0 24px;
	padding: clamp(20px, 3vw, 34px);
	border: 1px solid var(--ds-account-line);
	border-radius: var(--ds-account-radius);
	background: var(--ds-account-card);
	box-shadow: none;
	scroll-margin-top: 92px;
}

.downloads-suite-account__section-header {
	margin-bottom: 22px;
	padding-bottom: 17px;
	border-bottom: 1px solid var(--ds-account-line);
}

.downloads-suite-account .downloads-suite-account__eyebrow {
	margin: 0 0 5px;
	color: var(--ds-account-accent-dark);
	font-size: .7rem;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.downloads-suite-account .downloads-suite-account__section h2 {
	display: block;
	margin: 0;
	color: var(--ds-account-ink);
	font-size: clamp(1.35rem, 2.3vw, 1.8rem);
	line-height: 1.2;
}

.downloads-suite-account .downloads-suite-account__section h2::after {
	display: none;
}

.downloads-suite-account table.edd-table,
.downloads-suite-account #edd_user_history {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	border-radius: 12px;
	background: #fff;
}

.downloads-suite-account table.edd-table th,
.downloads-suite-account #edd_user_history th {
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid var(--ds-account-line);
	color: var(--ds-account-muted);
	background: var(--ds-account-soft);
	font-size: .73rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-align: left;
	text-transform: uppercase;
}

.downloads-suite-account table.edd-table td,
.downloads-suite-account #edd_user_history td {
	padding: 15px 14px;
	border: 0;
	border-bottom: 1px solid var(--ds-account-line);
	color: var(--ds-account-ink);
	vertical-align: middle;
}

.downloads-suite-account table.edd-table tr:last-child td,
.downloads-suite-account #edd_user_history tr:last-child td {
	border-bottom: 0;
}

.downloads-suite-account .edd_download_file + .edd_download_file {
	margin-top: 7px;
}

.downloads-suite-account .edd_download_file_link,
.downloads-suite-account .edd_purchase_details a {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 8px;
	color: var(--ds-account-accent-dark);
	background: color-mix(in srgb, var(--ds-account-accent) 11%, white);
	font-size: .86rem;
	font-weight: 750;
	text-decoration: none;
}

.downloads-suite-account .edd_download_file_link:hover,
.downloads-suite-account .edd_purchase_details a:hover {
	background: color-mix(in srgb, var(--ds-account-accent) 18%, white);
}

.downloads-suite-account .downloads-suite-account__empty,
.downloads-suite-account .edd-no-downloads,
.downloads-suite-account .edd-no-purchases {
	margin: 0;
	padding: 20px;
	border: 1px dashed #cfd7e3;
	border-radius: 12px;
	color: var(--ds-account-muted);
	background: var(--ds-account-soft);
	text-align: center;
}

.downloads-suite-membership__status {
	margin: 0 0 8px;
	color: var(--ds-account-ink);
	font-size: 1.05rem;
	font-weight: 800;
}

.downloads-suite-membership__status--active {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 11px;
	border-radius: 999px;
	color: #17643a;
	background: #e8f7ee;
	font-size: .83rem;
}

.downloads-suite-membership__status--active::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #28a660;
}

.downloads-suite-membership__offer {
	padding: 12px 14px;
	border-left: 3px solid var(--ds-account-accent);
	color: var(--ds-account-accent-dark);
	background: var(--ds-account-soft);
}

.downloads-suite-membership__perks {
	display: grid;
	gap: 8px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.downloads-suite-membership__perks li {
	position: relative;
	padding-left: 25px;
}

.downloads-suite-membership__perks li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--ds-account-accent-dark);
	font-weight: 900;
}

.downloads-suite-account #edd_profile_editor_form fieldset {
	margin: 0 0 24px;
	padding: 0;
	border: 0;
}

.downloads-suite-account #edd_profile_editor_form legend {
	display: block;
	width: 100%;
	margin: 0 0 14px;
	padding: 0 0 9px;
	border-bottom: 1px solid var(--ds-account-line);
	color: var(--ds-account-ink);
	font-size: .9rem;
	font-weight: 800;
	letter-spacing: .02em;
	text-align: left;
	text-transform: none;
}

.downloads-suite-account #edd_profile_editor_form legend::before,
.downloads-suite-account #edd_profile_editor_form legend::after {
	display: none;
}

.downloads-suite-account #edd_profile_editor_form p {
	margin: 0 0 16px;
}

.downloads-suite-account #edd_profile_editor_form label {
	display: block;
	margin: 0 0 6px;
	color: var(--ds-account-muted);
	font-size: .74rem;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.downloads-suite-account input[type="text"],
.downloads-suite-account input[type="email"],
.downloads-suite-account input[type="password"],
.downloads-suite-account select,
.downloads-suite-account textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 9px 12px;
	border: 1px solid #ced5df;
	border-radius: 10px;
	color: var(--ds-account-ink);
	background: #fff;
	font: inherit;
}

.downloads-suite-account input:focus,
.downloads-suite-account select:focus,
.downloads-suite-account textarea:focus {
	outline: 3px solid color-mix(in srgb, var(--ds-account-accent) 22%, transparent);
	outline-offset: 1px;
	border-color: var(--ds-account-accent);
	box-shadow: none;
}

.downloads-suite-account .edd-submit,
.downloads-suite-account input[type="submit"],
.downloads-suite-account button {
	min-height: 43px;
	padding: 9px 16px;
	border: 0;
	border-radius: 10px;
	color: #062f3d;
	background: var(--ds-account-accent);
	font-weight: 800;
	box-shadow: none;
	cursor: pointer;
}

.downloads-suite-account .edd-submit:hover,
.downloads-suite-account input[type="submit"]:hover,
.downloads-suite-account button:hover {
	filter: brightness(.96);
	transform: none;
}

.downloads-suite-account--logged-out {
	display: block;
	max-width: 560px;
	margin-inline: auto;
}

@media (max-width: 760px) {
	.downloads-suite-account .downloads-suite-account__nav {
		gap: 6px;
		margin-bottom: 18px;
		padding: 8px;
		overflow-x: auto;
		border-radius: 14px;
		scrollbar-width: thin;
	}

	.downloads-suite-account__nav-title {
		display: none;
	}

	.downloads-suite-account .downloads-suite-account__nav a {
		flex: 0 0 auto;
		min-height: 42px;
		padding: 0 12px;
		white-space: nowrap;
	}

	.downloads-suite-account .downloads-suite-account__nav a::before {
		display: none;
	}

	.downloads-suite-account .downloads-suite-account__section {
		padding: 19px 16px;
		scroll-margin-top: 112px;
	}

	.downloads-suite-account table.edd-table,
	.downloads-suite-account table.edd-table tbody,
	.downloads-suite-account table.edd-table tr,
	.downloads-suite-account table.edd-table td,
	.downloads-suite-account #edd_user_history,
	.downloads-suite-account #edd_user_history tbody,
	.downloads-suite-account #edd_user_history tr,
	.downloads-suite-account #edd_user_history td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.downloads-suite-account table.edd-table thead,
	.downloads-suite-account #edd_user_history thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.downloads-suite-account table.edd-table tr,
	.downloads-suite-account #edd_user_history tr {
		margin-bottom: 12px;
		padding: 10px 12px;
		border: 1px solid var(--ds-account-line);
		border-radius: 11px;
	}

	.downloads-suite-account table.edd-table td,
	.downloads-suite-account #edd_user_history td {
		padding: 7px 0;
		border: 0;
	}
}
