/**
 * WP Credentials — Minimal Public Styles
 *
 * Only styles that the theme cannot provide natively.
 * Everything else inherits from the active theme.
 */

/* ── Status indicators ── */
.wpc-status {
	display: inline-block;
	padding: 0.25em 0.75em;
	border-radius: 999px;
	font-size: 0.8em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.wpc-status--active {
	background: #22c55e;
	color: #fff;
}

.wpc-status--expired {
	background: #f97316;
	color: #fff;
}

.wpc-status--inactive {
	background: #ef4444;
	color: #fff;
}

/* ── Tables inside credential pages ──
 * The theme reboot only sets border-collapse. We need
 * padding, borders, and spacing for data tables to read well.
 */
.wpc-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5rem;
}

.wpc-table th,
.wpc-table td {
	padding: 0.65rem 1rem;
	text-align: left;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	vertical-align: top;
}

.wpc-table thead th {
	font-weight: 600;
	border-bottom-width: 2px;
	border-bottom-color: rgba(0, 0, 0, 0.15);
	white-space: nowrap;
}

.wpc-table tbody tr:last-child td {
	border-bottom: none;
}

/* Details table (label + value pairs) */
.wpc-details td:first-child {
	white-space: nowrap;
	width: 1%;
	padding-right: 2rem;
	color: inherit;
	opacity: 0.7;
}

/* ── Share buttons (icon row) ── */
.wpc-share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	list-style: none;
	padding: 0;
	margin: 0;
}

.wpc-share-buttons a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
}

.wpc-share-buttons a i {
	font-size: 1.15em;
}

/* ── Details + Badge flex row ── */
.wpc-details-row {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

@media (min-width: 768px) {
	.wpc-details-row {
		flex-direction: row;
		align-items: flex-start;
	}

	.wpc-details-col {
		flex: 1;
		min-width: 0;
	}

	.wpc-badge-col {
		flex: 1;
		min-width: 0;
		display: flex;
		justify-content: flex-end;
	}
}

/* ── Badge image ── */
.wpc-badge-figure {
	margin: 0;
}

.wpc-badge-figure img {
	max-width: 100%;
	height: auto;
}

/* ── Certificate image ── */
.wpc-cert-figure {
	margin: 2rem 0 0;
}

.wpc-cert-figure img {
	max-width: 100%;
	height: auto;
}

