.adlr-progress-host {
	clear: both;
	width: 100%;
}

.adlr-progress-wrap {
	--adlr-accent: #1f5f9f;
	--adlr-success: #2f7d32;
	--adlr-bg: #ffffff;
	--adlr-text: #17324d;
	--adlr-radius: 12px;
	display: grid;
	gap: 12px;
	margin: 0 0 18px;
	color: var(--adlr-text);
	font: inherit;
}

.adlr-card {
	position: relative;
	box-sizing: border-box;
	padding: 14px 16px;
	border: 1px solid color-mix(in srgb, var(--adlr-accent) 18%, transparent);
	border-radius: var(--adlr-radius);
	background: var(--adlr-bg);
	box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 1);
}

@supports not (color: color-mix(in srgb, #000 10%, transparent)) {
	.adlr-card { border-color: rgba(31, 95, 159, 0.18); }
}

.adlr-card__header,
.adlr-card__title {
	display: flex;
	align-items: center;
}

.adlr-card__header {
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.adlr-card__title {
	gap: 8px;
	font-size: 1rem;
	line-height: 1.3;
}

.adlr-card__icon {
	font-size: 1.15em;
	line-height: 1;
}

.adlr-card__status {
	flex: 0 0 auto;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(31, 95, 159, 0.1);
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
}

.adlr-card.is-complete .adlr-card__status {
	background: rgba(47, 125, 50, 0.12);
	color: var(--adlr-success);
}

.adlr-bar {
	overflow: hidden;
	height: 11px;
	border-radius: 999px;
	background: rgba(31, 95, 159, 0.14);
}

.adlr-bar__fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--adlr-accent);
	transition: width 0.35s ease;
}

.adlr-card.is-complete .adlr-bar__fill {
	background: var(--adlr-success);
}

.adlr-card__message {
	margin-top: 10px;
	font-size: 0.94rem;
	line-height: 1.45;
}

.adlr-card__message .amount,
.adlr-card__message strong {
	font-weight: 750;
}

.adlr-card__note {
	display: block;
	margin-top: 3px;
	font-size: 0.86em;
	opacity: 0.8;
}

.adlr-card__link {
	display: inline-block;
	margin-top: 8px;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
}

.adlr-milestones {
	display: grid;
	grid-template-columns: repeat(var(--adlr-tier-count, 6), minmax(46px, 1fr));
	gap: 4px;
	margin-top: 7px;
	overflow-x: auto;
	padding: 0 1px 3px;
	scrollbar-width: thin;
}

.adlr-milestone {
	position: relative;
	display: flex;
	min-width: 46px;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	color: color-mix(in srgb, var(--adlr-text) 65%, transparent);
	font-size: 0.68rem;
	text-align: center;
	white-space: nowrap;
}

.adlr-milestone__dot {
	width: 7px;
	height: 7px;
	border: 2px solid rgba(31, 95, 159, 0.35);
	border-radius: 50%;
	background: var(--adlr-bg);
}

.adlr-milestone.is-unlocked .adlr-milestone__dot {
	border-color: var(--adlr-success);
	background: var(--adlr-success);
}

.adlr-milestone.is-next .adlr-milestone__dot {
	border-color: var(--adlr-accent);
	box-shadow: 0 0 0 3px rgba(31, 95, 159, 0.12);
}

.adlr-milestone.is-unlocked {
	color: var(--adlr-success);
	font-weight: 700;
}

.adlr-progress-host--mini .adlr-progress-wrap,
.adlr-progress-host--mini-block .adlr-progress-wrap {
	gap: 8px;
	margin: 0 0 12px;
}

.adlr-progress-host--mini .adlr-card,
.adlr-progress-host--mini-block .adlr-card {
	padding: 10px 12px;
}

.adlr-progress-host--mini .adlr-milestones,
.adlr-progress-host--mini-block .adlr-milestones {
	display: none;
}

.adlr-progress-host--mini .adlr-card__status,
.adlr-progress-host--mini-block .adlr-card__status {
	display: none;
}

.adlr-tiers-page {
	--adlr-accent: #1f5f9f;
	--adlr-success: #2f7d32;
	--adlr-bg: #ffffff;
	--adlr-text: #17324d;
	--adlr-radius: 12px;
	color: var(--adlr-text);
}

.adlr-tiers-dates {
	margin-top: -0.25em;
	opacity: 0.75;
}

.adlr-tiers-table-wrap {
	overflow-x: auto;
	border: 1px solid rgba(31, 95, 159, 0.16);
	border-radius: var(--adlr-radius);
}

.adlr-tiers-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: #fff;
}

.adlr-tiers-table th,
.adlr-tiers-table td {
	padding: 13px 15px;
	border: 0;
	border-bottom: 1px solid rgba(31, 95, 159, 0.12);
	text-align: left;
}

.adlr-tiers-table th {
	background: var(--adlr-bg);
	font-size: 0.9rem;
}

.adlr-tiers-table tr:last-child td {
	border-bottom: 0;
}

.adlr-tiers-table tbody tr:hover {
	background: rgba(31, 95, 159, 0.035);
}

@media (max-width: 560px) {
	.adlr-card { padding: 12px; }
	.adlr-card__header { align-items: flex-start; }
	.adlr-card__status { font-size: 0.7rem; }
	.adlr-card__message { font-size: 0.9rem; }
	.adlr-milestone__label .woocommerce-Price-currencySymbol { display: none; }
}

/* An ADLR coupon is automatic: the customer should not be offered a remove action. */
[data-adlr-managed-coupon="yes"] .wc-block-components-chip__remove,
[data-adlr-managed-coupon="yes"] button {
	display: none !important;
}

/* A locked tier has reached the amount but still misses a campaign condition. */
.adlr-card.is-locked .adlr-card__status {
	background: rgba(31, 95, 159, 0.08);
	color: var(--adlr-text);
}

.adlr-card.is-locked .adlr-bar__fill {
	opacity: 0.58;
}

.adlr-milestone.is-amount-reached .adlr-milestone__dot {
	border-color: var(--adlr-accent);
	background: var(--adlr-bg);
	box-shadow: inset 0 0 0 2px var(--adlr-bg), inset 0 0 0 5px rgba(31, 95, 159, 0.45);
}

.adlr-milestone.is-amount-reached {
	color: var(--adlr-accent);
	font-weight: 700;
}

/* Keep both classic and block mini-cart cards away from drawer edges. */
.adlr-progress-host--mini,
.adlr-progress-host--mini-block {
	box-sizing: border-box;
	width: calc(100% - 16px);
	margin-top: 10px;
	margin-right: 8px;
	margin-left: 8px;
}

.adlr-progress-host--mini .adlr-card__header,
.adlr-progress-host--mini-block .adlr-card__header {
	gap: 7px;
	margin-bottom: 8px;
}

.adlr-progress-host--mini .adlr-card__title,
.adlr-progress-host--mini-block .adlr-card__title {
	font-size: 0.92rem;
}

.adlr-progress-host--mini .adlr-card__message,
.adlr-progress-host--mini-block .adlr-card__message {
	font-size: 0.86rem;
	line-height: 1.38;
}

.adlr-tiers-condition {
	margin: 0 0 1em;
	font-size: 0.95em;
}
