.pma-root {
	max-width: 420px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/*
 * Every child is positioned with an inline left/top/width (percentages of
 * this box) coming from the admin-editable design in class-pma-design.php,
 * so aspect-ratio must stay in sync with PMA_Design::CANVAS_W/H.
 */
.pma-card {
	position: relative;
	aspect-ratio: 400 / 220;
	border-radius: 18px;
	background: #fff;
	border: 1px solid #ececec;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .10);
	overflow: hidden;
}

.pma-card__logo,
.pma-card__badge,
.pma-card__avatar,
.pma-card__name,
.pma-card__number,
.pma-card__footer,
.pma-card__notice {
	position: absolute !important;
	margin: 0;
}

.pma-card__logo {
	/* width set inline (% of card width); height follows automatically */
	height: auto !important;
	object-fit: contain;
}

.pma-card__avatar {
	width: 15%;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	border: 2px solid #f0f0f0;
	object-fit: cover;
}

.pma-card__badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
	white-space: nowrap;
}

.pma-card__badge--active {
	background: #e4f3ec;
	color: #1f6b4f;
}

.pma-card__badge--blocked {
	background: #fbe7e7;
	color: #a12727;
}

.pma-card__badge--pending {
	background: #f0f0f0;
	color: #777;
}

.pma-card__name {
	font-size: 20px;
	font-weight: 800;
	color: #1a1a1a;
	white-space: nowrap;
}

.pma-card__number {
	font-size: 14px;
	letter-spacing: .06em;
	color: #666;
	white-space: nowrap;
}

.pma-card__footer {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 10px;
	color: #999;
	width: 88%;
}

.pma-card__notice {
	width: 88%;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 600;
}

.pma-card__notice--blocked {
	background: #fbe7e7;
	color: #a12727;
}

.pma-card__notice--pending {
	background: #f0f0f0;
	color: #666;
}

.pma-card--blocked .pma-card__name,
.pma-card--blocked .pma-card__number {
	opacity: .4;
}

.pma-updated {
	text-align: center;
	font-size: 12px;
	color: #999;
	margin-top: 12px;
}

.pma-install-btn {
	display: block;
	width: 100%;
	margin-top: 16px;
	padding: 12px;
	border: none;
	border-radius: 10px;
	background: #2e7d63;
	color: #fff;
	font-weight: 600;
	font-size: 15px;
}
