/*! Client Dashboard widget (v1.1.0) */

.avd-cd {
	--cd-accent: var(--avd-blue);
	--cd-tint: #EEF3FF;
	--cd-green: #22C55E;
	--cd-dark: #0A0A0A;
	--cd-line: #EEF1F5;
	--cd-text: #0A0A0A;
	--cd-body: #3D4654;
	--cd-muted: #5B6573;
	--cd-side: 280px;
	--cd-gap: 28px;
	color: var(--cd-body);
}

.avd-cd__grid {
	display: grid;
	grid-template-columns: var(--cd-side) minmax(0, 1fr);
	gap: var(--cd-gap);
	align-items: start;
}

.avd-cd__card {
	min-width: 0;
	padding: clamp(20px, 2.4vw, 28px);
	border: 1px solid var(--avd-border);
	border-radius: 24px;
	background: #FFFFFF;
}

/* Sidebar */
.avd-cd__side {
	position: sticky;
	top: calc(24px + var(--wp-admin--admin-bar--height, 0px));
	min-width: 0;
}

.avd-cd__card--side {
	padding: 20px;
}

.avd-cd__prof {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--cd-line);
}

.avd-cd__avatar {
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--cd-accent), var(--avd-cyan));
	color: #FFFFFF;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.avd-cd__who {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.avd-cd__name {
	font-size: 18px;
	font-weight: 600;
	color: var(--cd-text);
}

.avd-cd__email {
	font-size: 14px;
	color: var(--cd-muted);
	overflow-wrap: anywhere;
}

.avd-cd__since {
	font-size: 13px;
	color: #8792A2;
}

.avd-cd__nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-top: 14px;
}

.avd-cd__tab {
	min-height: 48px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 14px;
	border: 0;
	border-radius: 14px;
	background: transparent;
	color: var(--cd-body);
	font-size: 16px;
	font-weight: 600;
	text-align: left;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.avd-cd__tab .ico {
	color: #8792A2;
}

.avd-cd__tab:hover {
	background: var(--avd-gray);
	color: var(--cd-text);
}

.avd-cd__tab[aria-selected="true"] {
	background: var(--cd-tint);
	color: var(--cd-accent);
}

.avd-cd__tab[aria-selected="true"] .ico {
	color: var(--cd-accent);
}

.avd-cd__tab[aria-busy="true"] {
	opacity: 0.6;
	cursor: progress;
}

.avd-cd__extra {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 10px;
	padding-top: 12px;
	border-top: 1px solid var(--cd-line);
}

.avd-cd__extra .avd-cd__tab {
	min-height: 44px;
	font-size: 15px;
}

/* Panels */
.avd-cd__main {
	min-width: 0;
}

.avd-cd__panel {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.avd-cd__panel[hidden] {
	display: none;
}

.avd-cd__panel:focus {
	outline: none;
}

.avd-cd__panel:focus-visible {
	outline: 3px solid var(--avd-cyan);
	outline-offset: 6px;
	border-radius: 24px;
}

.avd-cd__two {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
	gap: 20px;
}

.avd-cd__two:empty {
	display: none;
}

.avd-cd__stack {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.avd-cd__stack--lg {
	gap: 26px;
}

.avd-cd__stack--sm {
	gap: 14px;
}

.avd-cd__stack--fill {
	height: 100%;
}

.avd-cd__top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px 20px;
}

.avd-cd__titles {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.avd-cd__eyebrow {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--cd-muted);
}

.avd-cd__eyebrow--accent {
	color: var(--avd-cyan);
}

.avd-cd__h {
	margin: 0;
	font-family: var(--avd-font-heading);
	font-size: clamp(22px, 2vw, 26px);
	font-weight: var(--avd-fw-heading, 700);
	line-height: 1.2;
	letter-spacing: -0.01em;
	word-spacing: normal;
	color: var(--cd-text);
}

.avd-cd__h--xl {
	font-size: 30px;
}

.avd-cd__h small {
	font-family: var(--avd-font-body);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--cd-muted);
}

.avd-cd__pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.avd-cd__pill--blue {
	background: var(--cd-tint);
	color: var(--cd-accent);
}

.avd-cd__pill--green {
	background: #E8F8EE;
	color: #15803D;
}

.avd-cd__pill--amber {
	background: #FFF4E5;
	color: #B45309;
}

.avd-cd__pill--gray {
	background: #F1F3F6;
	color: var(--cd-muted);
}

.avd-cd__pill--red {
	background: #FDECEC;
	color: #B91C1C;
}

.avd-cd__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

/* Tracker */
.avd-cd__trk {
	margin: 0;
	padding: 0;
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	list-style: none;
}

.avd-cd__stage {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 0 4px;
	text-align: center;
}

.avd-cd__stage::before {
	content: "";
	position: absolute;
	top: 17px;
	left: -50%;
	width: 100%;
	height: 3px;
	background: var(--avd-border);
}

.avd-cd__stage:first-child::before {
	display: none;
}

.avd-cd__stage--done::before,
.avd-cd__stage--cur::before {
	background: var(--cd-green);
}

.avd-cd__sdot {
	position: relative;
	z-index: 1;
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--avd-border-input);
	border-radius: 50%;
	background: #FFFFFF;
	color: #8792A2;
	font-size: 14px;
	font-weight: 700;
}

.avd-cd__stage--done .avd-cd__sdot {
	border-color: var(--cd-green);
	background: var(--cd-green);
	color: #FFFFFF;
}

.avd-cd__stage--cur .avd-cd__sdot {
	border-color: var(--cd-accent);
	background: var(--cd-accent);
	color: #FFFFFF;
	box-shadow: 0 0 0 6px rgba(0, 87, 255, 0.15);
}

.avd-cd__stxt {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.avd-cd__slbl {
	font-size: 15px;
	font-weight: 600;
	color: var(--cd-text);
}

.avd-cd__stage--todo .avd-cd__slbl {
	color: var(--cd-muted);
}

.avd-cd__stage--cur .avd-cd__slbl {
	color: var(--cd-accent);
}

.avd-cd__ssub {
	font-size: 13px;
	color: var(--cd-muted);
}

.avd-cd__now {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
	padding: 18px 20px;
	border-radius: 18px;
	background: var(--avd-gray);
}

.avd-cd__tile {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: var(--cd-tint);
	color: var(--cd-accent);
}

.avd-cd__tile--lg {
	width: 56px;
	height: 56px;
	border-radius: 16px;
}

.avd-cd__tile--white {
	background: #FFFFFF;
}

.avd-cd__now-text {
	flex: 1 1 320px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--cd-body);
}

.avd-cd__now-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--cd-text);
}

/* To-do */
.avd-cd__count {
	font-size: 14px;
	font-weight: 600;
	color: var(--cd-muted);
}

.avd-cd__bar {
	height: 8px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--cd-line);
}

.avd-cd__bar span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--cd-green);
}

.avd-cd__todos {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	list-style: none;
}

.avd-cd__todos li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 0;
	border-top: 1px solid var(--cd-line);
}

.avd-cd__todos li:first-child {
	padding-top: 4px;
	border-top: 0;
}

.avd-cd__tick {
	width: 26px;
	height: 26px;
	flex-shrink: 0;
	margin-top: 1px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.avd-cd__tick--ok {
	background: var(--cd-green);
	color: #FFFFFF;
}

.avd-cd__tick--no {
	border: 2px solid var(--avd-border-input);
}

.avd-cd__todo-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.avd-cd__todo-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--cd-text);
}

.avd-cd__todo-sub {
	font-size: 14px;
	color: var(--cd-muted);
}

.avd-cd__foot {
	margin-top: auto;
	padding-top: 6px;
}

.avd-cd__foot--row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
}

/* Buttons and links */
.avd-cd__btn {
	min-height: 50px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--cd-accent);
	color: #FFFFFF;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.15s ease, border-color 0.15s ease;
}

.avd-cd__btn:hover {
	color: #FFFFFF;
	filter: brightness(1.12);
}

.avd-cd__btn--ghost {
	border-color: var(--avd-border-input);
	background: #FFFFFF;
	color: var(--cd-text);
}

.avd-cd__btn--ghost:hover {
	border-color: var(--cd-text);
	color: var(--cd-text);
	filter: none;
}

.avd-cd__btn--sm {
	min-height: 46px;
	padding: 0 20px;
	font-size: 15px;
}

.avd-cd__btn--full {
	width: 100%;
	min-height: 54px;
}

.avd-cd__btn[aria-busy="true"] {
	opacity: 0.7;
	cursor: progress;
}

.avd-cd__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--cd-accent);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.avd-cd__link:hover {
	color: var(--cd-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Package card */
.avd-cd__price {
	margin: 0;
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.avd-cd__price strong {
	font-size: 32px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--cd-text);
}

.avd-cd__price span {
	font-size: 14px;
	color: var(--cd-muted);
}

.avd-cd__checks {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	list-style: none;
	font-size: 15px;
	line-height: 1.45;
	color: var(--cd-body);
}

.avd-cd__checks li {
	display: flex;
	gap: 10px;
}

.avd-cd__checks .ico {
	margin-top: 1px;
	color: var(--cd-green);
}

.avd-cd__checks--cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 20px;
	font-size: 16px;
}

.avd-cd__kv {
	margin: 0;
	display: grid;
	grid-template-columns: minmax(96px, 128px) minmax(0, 1fr);
	font-size: 15px;
}

.avd-cd__kv dt,
.avd-cd__kv dd {
	margin: 0;
	padding: 11px 0;
	border-top: 1px solid var(--cd-line);
}

.avd-cd__kv dt {
	color: var(--cd-muted);
}

.avd-cd__kv dd {
	font-weight: 600;
	color: var(--cd-text);
	overflow-wrap: anywhere;
}

.avd-cd__kv dt:first-of-type,
.avd-cd__kv dt:first-of-type + dd {
	padding-top: 2px;
	border-top: 0;
}

.avd-cd__kv--box {
	padding: 4px 16px;
	border-radius: 16px;
	background: var(--avd-gray);
}

.avd-cd__kv--box dt:first-of-type,
.avd-cd__kv--box dt:first-of-type + dd {
	padding-top: 11px;
}

/* Lines */
.avd-cd__line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid var(--cd-line);
	font-size: 15px;
	color: var(--cd-body);
}

.avd-cd__lines .avd-cd__line:first-child {
	border-top: 0;
}

.avd-cd__r {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--cd-text);
	white-space: nowrap;
}

.avd-cd__line--inc .avd-cd__r,
.avd-cd__line--promo .avd-cd__r {
	gap: 6px;
	color: #15803D;
}

.avd-cd__line--tot {
	font-size: 16px;
	font-weight: 600;
	color: var(--cd-text);
}

.avd-cd__line--tot .avd-cd__r {
	font-size: 18px;
	font-weight: 700;
}

.avd-cd__line--month {
	color: var(--cd-muted);
}

.avd-cd__plan {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.avd-cd__plan strong {
	font-weight: 600;
	color: var(--cd-text);
}

.avd-cd__plan span {
	font-size: 13px;
}

.avd-cd__small {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--cd-muted);
}

.avd-cd__muted {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--cd-body);
}

/* Package header */
.avd-cd__hero {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 28px 40px;
	padding: clamp(24px, 3vw, 36px);
	overflow: hidden;
	border-radius: 24px;
	background: var(--cd-dark);
	color: #F4F6F8;
}

.avd-cd__hero-glow {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 50% 90% at 90% 0%, rgba(0, 87, 255, 0.45), rgba(10, 10, 10, 0) 70%);
	pointer-events: none;
}

.avd-cd__hero-main {
	position: relative;
	flex: 1 1 320px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.avd-cd__hero-title {
	margin: 0;
	font-family: var(--avd-font-heading);
	font-size: clamp(34px, 3.4vw, 46px);
	font-weight: var(--avd-fw-heading, 700);
	line-height: 1.05;
	letter-spacing: -0.01em;
	word-spacing: normal;
	color: #FFFFFF;
}

.avd-cd__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.avd-cd__chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(0, 87, 255, 0.22);
	color: #9DBBFF;
	font-size: 13px;
	font-weight: 600;
}

.avd-cd__hero .avd-cd__pill--green {
	background: rgba(34, 197, 94, 0.16);
	color: #4ADE80;
}

.avd-cd__hero .avd-cd__pill--amber {
	background: rgba(245, 158, 11, 0.16);
	color: #FCD34D;
}

.avd-cd__hero-text {
	margin: 0;
	max-width: 440px;
	font-size: 16px;
	line-height: 1.6;
	color: #B8C2D0;
}

.avd-cd__hero-kv {
	position: relative;
	flex: 0 1 300px;
	margin: 0;
	display: grid;
	grid-template-columns: auto 1fr;
	align-content: start;
	gap: 12px 20px;
	font-size: 15px;
}

.avd-cd__hero-kv dt {
	color: #8792A2;
}

.avd-cd__hero-kv dd {
	margin: 0;
	font-weight: 600;
}

.avd-cd__hero-kv dd.is-big {
	font-size: 24px;
	font-weight: 700;
	color: #FFFFFF;
}

.avd-cd__upsell {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	padding: 22px 24px;
	border: 1px solid #D6E2FF;
	border-radius: 24px;
	background: var(--cd-tint);
}

.avd-cd__upsell-main {
	flex: 1 1 320px;
	display: flex;
	align-items: center;
	gap: 14px;
}

.avd-cd__upsell-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 15px;
	color: var(--cd-body);
}

.avd-cd__upsell-text strong {
	font-size: 17px;
	font-weight: 600;
	color: var(--cd-text);
}

/* Billing */
.avd-cd__paycard {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px;
	border-radius: 18px;
	background: linear-gradient(135deg, var(--cd-dark), #13213F);
	color: #F4F6F8;
}

.avd-cd__paycard-ico {
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--avd-cyan);
}

.avd-cd__paycard-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 14px;
	color: #9AA5B4;
}

.avd-cd__paycard-text strong {
	font-size: 17px;
	font-weight: 600;
	color: #F4F6F8;
}

.avd-cd__tbl {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.avd-cd__tbl th {
	padding: 0 12px 12px 0;
	border: 0;
	background: transparent;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-align: left;
	text-transform: uppercase;
	color: var(--cd-muted);
}

.avd-cd__tbl td {
	padding: 16px 12px 16px 0;
	border: 0;
	border-top: 1px solid var(--cd-line);
	background: transparent;
	color: var(--cd-text);
	vertical-align: middle;
}

.avd-cd__td-amt {
	font-weight: 600;
	white-space: nowrap;
}

.avd-cd__td-rec {
	text-align: right;
}

/* Forms */
.avd-cd__form {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.avd-cd__fgrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 16px;
}

.avd-cd__fld {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--cd-text);
}

.avd-cd__opt {
	font-weight: 400;
	color: var(--cd-muted);
}

.avd-cd__inp {
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--avd-border-input);
	border-radius: 12px;
	background: #FFFFFF;
	color: var(--cd-text);
	font-size: 16px;
	line-height: 1.2;
	box-shadow: none;
}

.avd-cd__inp::placeholder {
	color: #9AA5B4;
	opacity: 1;
}

.avd-cd__inp:focus {
	outline: none;
	border-color: var(--cd-accent);
	box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.15);
}

.avd-cd__fld[data-err="true"] .avd-cd__inp {
	border-color: #DC2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.avd-cd__err {
	display: none;
	font-size: 13px;
	font-weight: 600;
	color: #DC2626;
}

.avd-cd__fld[data-err="true"] .avd-cd__err {
	display: block;
}

.avd-cd__pw {
	position: relative;
	display: block;
}

.avd-cd__pw .avd-cd__inp {
	padding-right: 56px;
}

.avd-cd__eye {
	position: absolute;
	top: 50%;
	right: 6px;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--cd-muted);
	cursor: pointer;
}

.avd-cd__eye:hover,
.avd-cd__eye[aria-pressed="true"] {
	background: var(--avd-gray);
	color: var(--cd-text);
}

.avd-cd__save {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
}

.avd-cd__saved {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	color: #15803D;
}

.avd-cd__saved:empty {
	display: none;
}

.avd-cd__status {
	margin: 0;
	padding: 12px 16px;
	border: 1px solid #FECACA;
	border-radius: 12px;
	background: #FEF2F2;
	font-size: 14px;
	line-height: 1.5;
	color: #B91C1C;
}

.avd-cd__status[hidden] {
	display: none;
}

.avd-cd__status--ok {
	border-color: #BFDBFE;
	background: #EFF6FF;
	color: #1E3A8A;
}

.avd-cd__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Empty state */
.avd-cd__empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.avd-cd__note-box {
	margin: 0;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 12px;
	background: #FFF4E5;
	font-size: 15px;
	line-height: 1.5;
	color: #92400E;
}

/* Milestone orders: the balance card and the result of a payment. */
.avd-cd__flash {
	margin: 0 0 var(--cd-gap);
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 18px;
	border-radius: 14px;
	font-size: 15px;
	line-height: 1.5;
}

.avd-cd__flash .ico {
	flex: none;
	margin-top: 1px;
}

.avd-cd__flash--ok {
	background: #E8F8EE;
	color: #14532D;
}

.avd-cd__flash--warn {
	background: #FFF4E5;
	color: #92400E;
}

.avd-cd__due {
	margin-bottom: var(--cd-gap);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 32px;
	border-color: #F3D9A4;
	background: #FFFBF2;
}

.avd-cd__due.is-asked {
	border-color: var(--cd-accent);
	background: var(--cd-tint);
}

.avd-cd__due-main {
	display: flex;
	flex: 1 1 320px;
	min-width: 0;
	flex-direction: column;
	gap: 8px;
}

.avd-cd__due-title {
	margin: 0;
	font-size: clamp(22px, 2.2vw, 26px);
	line-height: 1.2;
	color: var(--cd-text);
}

.avd-cd__due-text {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
	color: var(--cd-body);
}

.avd-cd__due-side {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.avd-cd__due-lbl {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--cd-muted);
}

.avd-cd__due-amt {
	font-size: clamp(30px, 3vw, 38px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--cd-text);
}

.avd-cd__due-safe {
	font-size: 13px;
	color: var(--cd-muted);
}

/* Login card */
.avd-cd--login {
	max-width: 560px;
	margin: 0 auto;
}

.avd-cd__login {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: clamp(24px, 4vw, 40px);
	box-shadow: 0 30px 60px rgba(10, 10, 10, 0.06);
}

.avd-cd__login[hidden] {
	display: none;
}

.avd-cd__back {
	margin: 0;
	text-align: center;
}

.avd-cd__back .avd-cd__link {
	font-size: 15px;
}

.avd-cd__login-head {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.avd-cd__login-title {
	margin: 0;
	font-family: var(--avd-font-heading);
	font-size: clamp(28px, 3vw, 36px);
	font-weight: var(--avd-fw-heading, 700);
	line-height: 1.1;
	letter-spacing: -0.01em;
	word-spacing: normal;
	color: var(--cd-text);
}

.avd-cd__login-text {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--cd-body);
}

.avd-cd__login-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.avd-cd__chk {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	color: var(--cd-body);
	cursor: pointer;
}

.avd-cd__chk input {
	position: absolute;
	width: 22px;
	height: 22px;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.avd-cd__bx {
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid #C9D1DB;
	border-radius: 6px;
	color: transparent;
}

.avd-cd__chk input:checked + .avd-cd__bx {
	border-color: var(--cd-accent);
	background: var(--cd-accent);
	color: #FFFFFF;
}

.avd-cd__chk input:focus-visible + .avd-cd__bx {
	outline: 3px solid var(--avd-cyan);
	outline-offset: 3px;
}

.avd-cd__or {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 14px;
	color: #8792A2;
}

.avd-cd__or::before,
.avd-cd__or::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--avd-border);
}

.avd-cd__help {
	margin: 0;
	font-size: 14px;
	color: var(--cd-muted);
	text-align: center;
}

.avd-cd__help a {
	font-weight: 600;
	color: var(--cd-accent);
}

@media (max-width: 1080px) {
	.avd-cd__grid {
		grid-template-columns: min(var(--cd-side), 240px) minmax(0, 1fr);
		gap: min(var(--cd-gap), 20px);
	}
}

@media (max-width: 900px) {
	.avd-cd__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.avd-cd__side {
		position: static;
	}

	.avd-cd__prof {
		flex-direction: row;
		align-items: center;
		padding-bottom: 14px;
	}

	.avd-cd__avatar {
		width: 48px;
		height: 48px;
		font-size: 17px;
	}

	.avd-cd__nav {
		flex-direction: row;
		gap: 6px;
		padding: 14px 2px 2px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.avd-cd__nav::-webkit-scrollbar {
		display: none;
	}

	.avd-cd__nav .avd-cd__tab {
		min-height: 44px;
		background: var(--avd-gray);
	}

	.avd-cd__nav .avd-cd__tab[aria-selected="true"] {
		background: var(--cd-tint);
	}

	.avd-cd__extra {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
	}

	.avd-cd__since {
		display: none;
	}
}

@media (max-width: 700px) {
	.avd-cd__fgrid,
	.avd-cd__checks--cols {
		grid-template-columns: minmax(0, 1fr);
	}

	.avd-cd__trk {
		display: flex;
		flex-direction: column;
	}

	.avd-cd__stage {
		flex-direction: row;
		align-items: center;
		gap: 14px;
		padding: 0 0 18px;
		text-align: left;
	}

	.avd-cd__stage:last-child {
		padding-bottom: 0;
	}

	.avd-cd__stage::before {
		top: -18px;
		left: 16.5px;
		width: 3px;
		height: 18px;
	}

	.avd-cd__tbl thead {
		display: none;
	}

	.avd-cd__tbl,
	.avd-cd__tbl tbody,
	.avd-cd__tbl tr,
	.avd-cd__tbl td {
		display: block;
		width: 100%;
	}

	.avd-cd__tbl tr {
		display: grid;
		grid-template-columns: 1fr auto;
		gap: 6px 12px;
		padding: 14px 0;
		border-top: 1px solid var(--cd-line);
	}

	.avd-cd__tbl td {
		padding: 0;
		border: 0;
	}

	.avd-cd__tbl .avd-cd__td-desc {
		grid-column: 1 / -1;
		order: -1;
		font-weight: 600;
	}

	.avd-cd__td-rec {
		text-align: left;
	}

	.avd-cd__hero-kv {
		flex-basis: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.avd-cd__tab,
	.avd-cd__btn {
		transition: none;
	}
}

/* v1.1.0: websites switcher, upgrades, orders added later */
.avd-cd__projects {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin-bottom: 20px;
}

.avd-cd__projects-lbl {
	margin-right: 4px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cd-muted);
}

.avd-cd__proj {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid var(--avd-border);
	border-radius: 999px;
	background: #FFFFFF;
	font-size: 15px;
	line-height: 1.4;
	color: var(--cd-body);
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.avd-cd__proj strong {
	font-weight: 600;
	color: var(--cd-text);
}

.avd-cd__proj span {
	font-size: 13px;
	color: var(--cd-muted);
}

.avd-cd__proj:hover {
	border-color: var(--cd-accent);
	color: var(--cd-body);
}

.avd-cd__proj[aria-current="page"] {
	border-color: var(--cd-accent);
	background: var(--cd-tint);
}

.avd-cd__proj[aria-current="page"] strong {
	color: var(--cd-accent);
}

.avd-cd__ups {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: 16px;
}

.avd-cd__up {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	padding: 22px;
	border: 1px solid var(--avd-border);
	border-radius: 20px;
	background: #FFFFFF;
}

.avd-cd__up.is-featured {
	border-color: var(--cd-accent);
	box-shadow: 0 0 0 1px var(--cd-accent);
}

.avd-cd__up-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.avd-cd__up-name {
	margin: 0;
	font-family: var(--avd-font-heading);
	font-size: 22px;
	font-weight: var(--avd-fw-heading, 700);
	line-height: 1.2;
	color: var(--cd-text);
}

.avd-cd__chip--soft {
	background: var(--cd-tint);
	color: var(--cd-accent);
}

.avd-cd__lines--sm .avd-cd__line {
	padding: 9px 0;
	font-size: 14px;
}

.avd-cd__up .avd-cd__foot {
	margin-top: auto;
}

.avd-cd__note-box--info {
	background: var(--cd-tint);
	color: #1E3A8A;
}

.avd-cd__note-box .ico {
	flex: none;
	margin-top: 2px;
}

.avd-cd__kids {
	display: flex;
	flex-direction: column;
}

.avd-cd__kid {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 0;
	border-top: 1px solid var(--cd-line);
}

.avd-cd__kid:first-child {
	padding-top: 0;
	border-top: 0;
}

.avd-cd__kid-top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px 16px;
}

.avd-cd__kid-top .avd-cd__r {
	gap: 14px;
}

.avd-cd__kid-lines {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
	color: var(--cd-muted);
}

.avd-cd__kid-lines li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.avd-cd__link--sm {
	font-size: 14px;
	font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
	.avd-cd__proj {
		transition: none;
	}
}

/* Custom invoices waiting for payment (Billing). */
.avd-cd__line--invoice {
	flex-wrap: wrap;
}

.avd-cd__line--invoice > span:first-child {
	flex: 1 1 220px;
	min-width: 0;
}

.avd-cd__line--invoice .avd-cd__plan strong {
	overflow-wrap: anywhere;
}
