.asdls-account-licenses,
.asdls-account-licenses * {
	box-sizing: border-box;
}

.asdls-account-licenses {
	container: asdls-license-directory / inline-size;
	color: #17283d;
	display: grid;
	gap: 20px;
	min-width: 0;
	width: 100%;
}

.asdls-account-licenses [hidden] {
	display: none !important;
}

/* The portfolio remains usable inside other themes as well as the AffStackDev workspace. */
.asdls-account-licenses .asdls-directory-views {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	border-bottom: 1px solid #c9d6e3;
	padding: 0 0 12px;
}

.asdls-account-licenses .asdls-directory-views a {
	background: #f0f5fa;
	border: 1px solid #b8cbdc;
	border-radius: 8px;
	color: #193a5a;
	display: inline-flex;
	align-items: center;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	min-height: 46px;
	padding: 10px 18px;
	text-decoration: none;
}

.asdls-account-licenses .asdls-directory-views a[aria-current="page"] {
	background: #143f67;
	border-color: #143f67;
	color: #fff;
}

.asdls-account-licenses .asdls-directory-views a:hover,
.asdls-account-licenses .asdls-directory-views a:focus-visible {
	box-shadow: 0 0 0 3px #a8d7f7;
}

.asdls-portfolio .asdls-account-metric {
	text-decoration: none;
	color: #193a5a;
}

.asdls-portfolio .asdls-account-metric:hover,
.asdls-portfolio .asdls-account-metric:focus-visible {
	border-color: #2477b6;
	box-shadow: 0 0 0 2px #bddcf3;
}

.asdls-portfolio .asdls-account-metric span {
	font-size: .9rem;
	line-height: 1.4;
}

.asdls-account-licenses .asdls-site-totals,
.asdls-account-licenses .asdls-scope-note,
.asdls-account-licenses .asdls-portfolio-note {
	font-size: .9rem;
	line-height: 1.55;
	margin: 0;
	color: #425b73;
}

.asdls-account-licenses .asdls-license-filters label {
	color: #243e58;
	font-size: .9rem;
}

.asdls-account-licenses .asdls-license-filters input:not([type="hidden"]),
.asdls-account-licenses .asdls-license-filters select {
	appearance: auto;
	background: #fff;
	border: 2px solid #8aa2b9;
	border-radius: 7px;
	color: #172d44;
	font-size: 1rem;
	height: auto;
	min-height: 46px;
	padding: 9px 11px;
}

.asdls-account-licenses .asdls-license-filters input:focus-visible,
.asdls-account-licenses .asdls-license-filters select:focus-visible {
	border-color: #096bb3;
	outline: 3px solid #bedff6;
	outline-offset: 2px;
}

.asdls-portfolio .asdls-portfolio-table {
	font-size: .95rem;
	table-layout: fixed;
}

.asdls-portfolio .asdls-portfolio-table th,
.asdls-portfolio .asdls-portfolio-table td {
	font-size: .95rem;
	line-height: 1.5;
	overflow-wrap: anywhere;
	vertical-align: top;
}

.asdls-portfolio .asdls-portfolio-table th:nth-child(1) { width: 24%; }
.asdls-portfolio .asdls-portfolio-table th:nth-child(2) { width: 18%; }
.asdls-portfolio .asdls-portfolio-table th:nth-child(3) { width: 25%; }
.asdls-portfolio .asdls-portfolio-table th:nth-child(4) { width: 17%; }
.asdls-portfolio .asdls-portfolio-table th:nth-child(5) { width: 16%; }

.asdls-portfolio .asdls-cell-note,
.asdls-portfolio .asdls-portfolio-table th > span {
	font-size: .85rem;
	line-height: 1.55;
}

.asdls-portfolio .asdls-license-id {
	color: #144d7c;
	font-weight: 800;
	margin-top: 7px;
}

.asdls-portfolio .asdls-site-host,
.asdls-portfolio .asdls-site-url,
.asdls-portfolio .asdls-deadline {
	display: block;
	overflow-wrap: anywhere;
	margin-top: 6px;
}

.asdls-portfolio .asdls-deadline { color: #825600; }
.asdls-portfolio .asdls-deadline--overdue { color: #a3262f; }
.asdls-portfolio .asdls-inline-link { display: inline-block; padding-block: 8px; font-weight: 700; }
.asdls-portfolio .asdls-portfolio-table .button { white-space: normal; }

@container asdls-license-directory (max-width: 980px) {
	.asdls-portfolio .asdls-portfolio-table { table-layout: auto; }
	.asdls-portfolio .asdls-portfolio-table th { width: auto; }
}

/* 0.11.0.7b (D-49): product, plan, license number and package line each on their own line, in every column. */
.asdls-license-identity > strong,
.asdls-license-identity > span {
	display: block;
}

/* Sites view (0.11.0.7b) and Licenses view (0.11.0.7c): one card per site or product that opens to its licenses. */
.asdls-site-list,
.asdls-product-list {
	display: grid;
	gap: 12px;
}

.asdls-site-card,
.asdls-product-card {
	background: #fff;
	border: 1px solid #ccd9e4;
	border-radius: 10px;
	overflow: clip;
}

.asdls-site-card[open],
.asdls-product-card[open] {
	border-color: #9cb8ce;
	box-shadow: 0 6px 20px rgba(23, 40, 61, .07);
}

.asdls-site-summary,
.asdls-product-summary {
	align-items: center;
	cursor: pointer;
	display: grid;
	gap: 10px 20px;
	grid-template-columns: minmax(200px, 1fr) auto;
	list-style-position: inside;
	padding: 16px 18px;
}

.asdls-site-summary:hover,
.asdls-product-summary:hover { background: #f7fafc; }

.asdls-site-card[open] > .asdls-site-summary,
.asdls-product-card[open] > .asdls-product-summary {
	background: #f2f7fb;
	border-bottom: 1px solid #ccd9e4;
}

.asdls-site-identity,
.asdls-product-identity { display: inline-block; vertical-align: middle; }

.asdls-site-summary .asdls-site-host,
.asdls-product-summary .asdls-product-name {
	display: inline;
	font-size: 1.05rem;
	margin: 0;
}

.asdls-site-summary .asdls-site-url,
.asdls-product-summary .asdls-product-plans {
	color: #60738a;
	display: block;
	font-size: .82rem;
	margin-top: 2px;
}

.asdls-site-counts,
.asdls-product-counts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-end;
}

.asdls-site-counts > span,
.asdls-product-counts > span {
	background: #e9f1f7;
	border-radius: 999px;
	color: #244968;
	display: inline-block;
	font-size: .74rem;
	font-weight: 800;
	line-height: 1.3;
	padding: 4px 8px;
	white-space: nowrap;
}

.asdls-site-counts > .asdls-site-count--muted,
.asdls-product-counts > .asdls-product-count--muted {
	background: #f1f3f5;
	color: #5b6672;
}

.asdls-site-body,
.asdls-product-body { padding: 12px 14px 14px; }
.asdls-portfolio .asdls-site-table .asdls-site-line { display: block; }
.asdls-portfolio .asdls-site-table .asdls-site-url { margin-top: 4px; }

@media (max-width: 640px) {
	.asdls-site-summary,
	.asdls-product-summary { grid-template-columns: 1fr; }
	.asdls-site-counts,
	.asdls-product-counts { justify-content: flex-start; }
}

.asdls-account-header {
	align-items: end;
	display: grid;
	gap: 12px 28px;
	grid-template-columns: minmax(220px, .75fr) minmax(280px, 1.25fr);
}

.asdls-account-header h2,
.asdls-account-header p,
.asdls-directory-heading h3,
.asdls-directory-heading p,
.asdls-one-time-key h3,
.asdls-one-time-key p {
	margin: 0;
}

.asdls-account-header h2 {
	font-size: clamp(1.7rem, 3vw, 2.35rem);
	line-height: 1.1;
}

.asdls-eyebrow {
	color: #087fb1;
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .09em;
	margin: 0 0 5px;
	text-transform: uppercase;
}

.asdls-account-metrics {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
}

.asdls-account-metric {
	background: #f5f9fc;
	border: 1px solid #d9e4ed;
	border-radius: 8px;
	min-width: 0;
	padding: 13px 15px;
}

.asdls-account-metric strong,
.asdls-account-metric span {
	display: block;
}

.asdls-account-metric strong {
	font-size: 1.45rem;
	line-height: 1.15;
}

.asdls-account-metric span {
	color: #52667d;
	font-size: .78rem;
	font-weight: 700;
	margin-top: 3px;
}

.asdls-license-filters {
	align-items: end;
	background: #f8fafc;
	border: 1px solid #d9e4ed;
	border-radius: 10px;
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding: 16px;
}

.asdls-license-filters > div {
	min-width: 0;
}

.asdls-license-filters label {
	display: block;
	font-size: .78rem;
	font-weight: 800;
	margin: 0 0 5px;
}

.asdls-license-filters input,
.asdls-license-filters select {
	background: #fff;
	border: 1px solid #aebdca;
	border-radius: 5px;
	font: inherit;
	height: 42px;
	margin: 0;
	max-width: none;
	min-width: 0;
	padding: 7px 10px;
	width: 100%;
}

.asdls-filter-search {
	grid-column: span 2;
}

.asdls-filter-actions {
	align-items: center;
	display: flex;
	gap: 12px;
	min-height: 42px;
}

.asdls-filter-actions .button {
	margin: 0;
}

.asdls-account-licenses .asdls-filter-actions .button,
.asdls-account-licenses .asdls-commerce-actions .button,
.asdls-account-licenses .asdls-commerce-form .button,
.asdls-account-licenses .asdls-license-action .button,
.asdls-account-licenses .asdls-key-copy-row .button {
	align-items: center;
	background: #086fb2;
	border: 1px solid #08639e;
	border-radius: 5px;
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 800;
	justify-content: center;
	line-height: 1.2;
	min-height: 40px;
	padding: 9px 14px;
	text-decoration: none;
}

.asdls-account-licenses .asdls-filter-actions .button:hover,
.asdls-account-licenses .asdls-filter-actions .button:focus,
.asdls-account-licenses .asdls-commerce-actions .button:hover,
.asdls-account-licenses .asdls-commerce-actions .button:focus,
.asdls-account-licenses .asdls-commerce-form .button:hover,
.asdls-account-licenses .asdls-commerce-form .button:focus,
.asdls-account-licenses .asdls-license-action .button:hover,
.asdls-account-licenses .asdls-license-action .button:focus,
.asdls-account-licenses .asdls-key-copy-row .button:hover,
.asdls-account-licenses .asdls-key-copy-row .button:focus {
	background: #07598d;
	border-color: #064b77;
	color: #fff;
}

.asdls-account-licenses .asdls-license-action .button:disabled,
.asdls-account-licenses .asdls-commerce-actions .button:disabled,
.asdls-account-licenses .asdls-commerce-form .button:disabled,
.asdls-account-licenses .asdls-key-copy-row .button:disabled {
	background: #60738a;
	border-color: #52667d;
	cursor: wait;
	opacity: .82;
}

.asdls-directory-heading {
	align-items: baseline;
	display: flex;
	gap: 20px;
	justify-content: space-between;
}

.asdls-directory-heading h3 {
	font-size: 1.25rem;
}

.asdls-directory-heading p {
	color: #60738a;
	font-size: .85rem;
}

.asdls-package-list {
	display: grid;
	gap: 12px;
}

.asdls-package-card {
	background: #fff;
	border: 1px solid #ccd9e4;
	border-radius: 10px;
	overflow: clip;
}

.asdls-package-card[open] {
	border-color: #9cb8ce;
	box-shadow: 0 6px 20px rgba(23, 40, 61, .07);
}

.asdls-package-summary {
	align-items: center;
	cursor: pointer;
	display: grid;
	gap: 12px 20px;
	grid-template-columns: minmax(220px, 1fr) auto;
	list-style-position: inside;
	padding: 17px 18px;
}

.asdls-package-summary:hover {
	background: #f7fafc;
}

.asdls-package-card[open] > .asdls-package-summary {
	background: #f2f7fb;
	border-bottom: 1px solid #ccd9e4;
}

.asdls-package-identity,
.asdls-package-identity strong,
.asdls-package-identity span {
	display: block;
}

.asdls-package-identity strong {
	font-size: 1rem;
	line-height: 1.35;
}

.asdls-package-identity span {
	color: #60738a;
	font-size: .82rem;
	margin-top: 3px;
}

.asdls-package-counts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-end;
}

.asdls-package-counts > span,
.asdls-key-state {
	background: #e9f1f7;
	border-radius: 999px;
	color: #244968;
	display: inline-block;
	font-size: .74rem;
	font-weight: 800;
	line-height: 1.3;
	padding: 4px 8px;
	white-space: nowrap;
}

.asdls-key-state--missing {
	background: #fff5d8;
	color: #6e4b00;
}

.asdls-package-body {
	padding: 14px 16px 16px;
}

.asdls-commerce-actions {
	align-items: center;
	background: #f8fafc;
	border: 1px solid #d9e4ed;
	border-radius: 8px;
	display: flex;
	gap: 14px;
	justify-content: space-between;
	margin: 0 0 14px;
	padding: 12px;
}

.asdls-commerce-actions span,
.asdls-commerce-details label {
	color: #52667d;
	display: block;
	font-size: .78rem;
	margin-top: 3px;
}

.asdls-commerce-actions form,
.asdls-commerce-form {
	margin: 0;
}

.asdls-commerce-details {
	border-top: 1px solid #e1e8ee;
	margin-top: 10px;
	padding-top: 9px;
}

.asdls-commerce-details summary {
	color: #086fb2;
	cursor: pointer;
	font-weight: 800;
}

.asdls-commerce-form {
	display: grid;
	gap: 8px;
	margin-top: 8px;
}

.asdls-commerce-form label {
	display: grid;
	gap: 5px;
	justify-items: start;
}

.asdls-commerce-form input[type="number"] {
	background: #fff;
	border: 1px solid #aebdca;
	border-radius: 5px;
	font: inherit;
	height: 42px;
	margin: 4px 0 0;
	max-width: 90px;
	padding: 7px 10px;
	width: 90px;
}

.asdls-commerce-actions .button,
.asdls-commerce-form .button {
	align-items: center;
	display: inline-flex;
	justify-self: start;
	justify-content: center;
	min-height: 42px;
}

@media (max-width: 680px) {
	.asdls-commerce-actions {
		align-items: stretch;
		flex-direction: column;
	}
}

/* 0.11.0.7h (D-82): the subdomain key panel of a purchase, under a product's licenses or inside its package. */
.asdls-product-body .asdls-subdomain-key {
	margin: 14px 0 0;
}

.asdls-subdomain-key code {
	display: inline-block;
	margin-right: 6px;
}

.asdls-package-note {
	background: #eef7ff;
	border-left: 4px solid #0a78bc;
	margin: 0 0 14px;
	padding: 9px 12px;
}

.asdls-license-table-wrap {
	max-width: 100%;
	overflow-x: auto;
}

.asdls-license-table {
	border: 0;
	border-collapse: collapse;
	font-size: .86rem;
	margin: 0;
	min-width: 760px;
	table-layout: fixed;
	width: 100%;
}

.asdls-license-table th,
.asdls-license-table td {
	background: transparent;
	border: 0;
	border-bottom: 1px solid #e1e8ee;
	padding: 12px 10px;
	text-align: left;
	vertical-align: top;
}

.asdls-license-table thead th {
	color: #52667d;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .045em;
	text-transform: uppercase;
}

.asdls-license-table tbody tr:last-child th,
.asdls-license-table tbody tr:last-child td {
	border-bottom: 0;
}

.asdls-license-table th:first-child {
	width: 14%;
}

.asdls-license-table td:nth-child(2) {
	width: 13%;
}

.asdls-license-table td:nth-child(3) {
	width: 21%;
}

.asdls-license-table td:nth-child(4) {
	width: 22%;
}

.asdls-license-table td:nth-child(5) {
	width: 30%;
}

.asdls-license-table th > span,
.asdls-cell-note {
	color: #60738a;
	display: block;
	font-size: .75rem;
	font-weight: 500;
	margin-top: 3px;
	overflow-wrap: anywhere;
}

.asdls-license-table code {
	background: #f0f3f5;
	border-radius: 3px;
	display: inline-block;
	font-size: .78rem;
	max-width: 100%;
	overflow-wrap: anywhere;
	padding: 3px 5px;
}

.asdls-license-status {
	border-radius: 999px;
	display: inline-block;
	font-size: .74rem;
	font-weight: 800;
	line-height: 1.3;
	padding: 4px 8px;
	white-space: nowrap;
}

.asdls-license-status--good {
	background: #e8f7ed;
	color: #145c2e;
}

.asdls-license-status--warning {
	background: #fff5d8;
	color: #6e4b00;
}

.asdls-license-status--error {
	background: #fce8ea;
	color: #8a2424;
}

.asdls-license-action {
	display: grid;
	gap: 8px;
	margin: 0;
}

.asdls-license-action[aria-busy="true"] {
	opacity: .82;
}

.asdls-license-action .button {
	justify-self: start;
	margin: 0;
	white-space: nowrap;
}

.asdls-confirm {
	display: flex;
	font-size: .75rem;
	font-weight: 700;
	gap: 6px;
	line-height: 1.35;
}

.asdls-confirm input[type="checkbox"] {
	flex: 0 0 auto;
	margin-top: 2px;
}

.asdls-reissue {
	margin: 0;
}

.asdls-reissue summary {
	color: #086fb2;
	cursor: pointer;
	font-weight: 800;
	text-decoration: underline;
}

.asdls-reissue p {
	font-size: .76rem;
	line-height: 1.4;
	margin: 8px 0;
}

.asdls-operation-result,
.asdls-one-time-key {
	scroll-margin-top: 28px;
}

.asdls-operation-result--error {
	background: #fce8ea;
	border: 2px solid #a12b34;
	border-radius: 10px;
	color: #68151b;
	font-weight: 700;
	padding: 16px 18px;
}

.asdls-operation-result:focus,
.asdls-one-time-key:focus {
	outline: 3px solid rgba(10, 120, 188, .35);
	outline-offset: 3px;
}

.asdls-one-time-key {
	background: #fff8df;
	border: 2px solid #a15c00;
	border-radius: 10px;
	display: grid;
	gap: 10px;
	padding: clamp(17px, 3vw, 25px);
}

.asdls-one-time-key label {
	font-weight: 800;
}

.asdls-one-time-key textarea {
	background: #fff;
	border: 1px solid #80511a;
	border-radius: 5px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .92rem;
	margin: 0;
	max-width: 100%;
	padding: 10px;
	resize: vertical;
	width: 100%;
}

.asdls-key-copy-row {
	align-items: center;
	display: flex;
	gap: 10px;
}

.asdls-key-copy-row [data-asdls-copy-status] {
	font-size: .82rem;
	font-weight: 800;
}

.asdls-copy-first-note {
	color: #80511a;
	font-weight: 800;
}

.asdls-license-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.asdls-license-pagination a,
.asdls-license-pagination span {
	border: 1px solid #c4d1dc;
	border-radius: 5px;
	display: inline-block;
	min-width: 38px;
	padding: 7px 10px;
	text-align: center;
	text-decoration: none;
}

.asdls-license-pagination .current {
	background: #17283d;
	border-color: #17283d;
	color: #fff;
}

/*
 * WooCommerce themes often keep My Account content narrow beside a fixed
 * navigation column even on a wide desktop. Respond to this directory's real
 * width, not only the browser viewport, so that narrow desktop columns receive
 * the same readable card layout as phones and tablets.
 */
@container asdls-license-directory (max-width: 900px) {
	.asdls-account-header {
		grid-template-columns: 1fr;
	}

	.asdls-license-filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.asdls-license-table-wrap {
		overflow-x: visible;
	}

	.asdls-license-table {
		display: block;
		min-width: 0;
	}

	.asdls-license-table thead {
		clip: rect(1px, 1px, 1px, 1px);
		clip-path: inset(50%);
		height: 1px;
		overflow: hidden;
		position: absolute;
		width: 1px;
	}

	.asdls-license-table tbody,
	.asdls-license-table tr,
	.asdls-license-table th,
	.asdls-license-table td {
		display: block;
		width: auto !important;
	}

	.asdls-license-table tr {
		background: #fff;
		border: 1px solid #d8e1e8;
		border-radius: 7px;
		margin-bottom: 10px;
		padding: 7px 10px;
	}

	.asdls-license-table th,
	.asdls-license-table td {
		border-bottom: 1px solid #edf1f4;
		padding: 9px 0;
	}

	.asdls-license-table th:last-child,
	.asdls-license-table td:last-child {
		border-bottom: 0;
	}

	.asdls-license-table [data-label]::before {
		color: #60738a;
		content: attr(data-label);
		display: block;
		font-size: .68rem;
		font-weight: 800;
		letter-spacing: .04em;
		margin-bottom: 4px;
		text-transform: uppercase;
	}
}

@container asdls-license-directory (max-width: 640px) {
	.asdls-license-filters {
		grid-template-columns: 1fr;
		padding: 13px;
	}

	.asdls-filter-search {
		grid-column: auto;
	}

	.asdls-commerce-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.asdls-directory-heading,
	.asdls-package-summary {
		align-items: start;
		display: grid;
		grid-template-columns: 1fr;
	}

	.asdls-package-counts {
		justify-content: flex-start;
		padding-left: 20px;
	}

	.asdls-package-body {
		padding: 10px 12px 14px;
	}

	.asdls-account-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 1024px) {
	.asdls-account-header {
		grid-template-columns: 1fr;
	}

	.asdls-license-filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.asdls-license-table {
		display: block;
		min-width: 0;
	}

	.asdls-license-table thead {
		clip: rect(1px, 1px, 1px, 1px);
		clip-path: inset(50%);
		height: 1px;
		overflow: hidden;
		position: absolute;
		width: 1px;
	}

	.asdls-license-table tbody,
	.asdls-license-table tr,
	.asdls-license-table th,
	.asdls-license-table td {
		display: block;
		width: auto !important;
	}

	.asdls-license-table tr {
		background: #fff;
		border: 1px solid #d8e1e8;
		border-radius: 7px;
		margin-bottom: 10px;
		padding: 7px 10px;
	}

	.asdls-license-table th,
	.asdls-license-table td {
		border-bottom: 1px solid #edf1f4;
		padding: 9px 0;
	}

	.asdls-license-table th:last-child,
	.asdls-license-table td:last-child {
		border-bottom: 0;
	}

	.asdls-license-table [data-label]::before {
		color: #60738a;
		content: attr(data-label);
		display: block;
		font-size: .68rem;
		font-weight: 800;
		letter-spacing: .04em;
		margin-bottom: 4px;
		text-transform: uppercase;
	}
}

@media screen and (max-width: 680px) {
	.asdls-license-filters {
		grid-template-columns: 1fr;
		padding: 13px;
	}

	.asdls-filter-search {
		grid-column: auto;
	}

	.asdls-directory-heading,
	.asdls-package-summary {
		align-items: start;
		display: grid;
		grid-template-columns: 1fr;
	}

	.asdls-package-counts {
		justify-content: flex-start;
		padding-left: 20px;
	}

	.asdls-package-body {
		padding: 10px 12px 14px;
	}

	.asdls-account-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
