/* ==================================================================
   Security badge
   ==================================================================
   Rendered on a shop's storefront, inside somebody else's theme. Every
   rule is scoped to .wcp-badge and sets its own values rather than
   inheriting, because a theme that styles `ul` or `a` aggressively must
   not be able to make the disclosure unreadable — or invisible.
   ================================================================== */
.wcp-badge {
	display: inline-flex;
	gap: 12px;
	align-items: flex-start;
	max-width: 460px;
	padding: 12px 14px;
	margin: 12px 0;
	background: #ffffff;
	border: 1px solid #dfe3e8;
	border-left-width: 4px;
	border-radius: 8px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: 13px;
	line-height: 1.5;
	color: #1f2933;
	text-align: left;
	box-sizing: border-box;
}

.wcp-badge * { box-sizing: border-box; }

.wcp-badge-clean    { border-left-color: #16a374; }
.wcp-badge-rights   { border-left-color: #dba617; }
.wcp-badge-modified { border-left-color: #d63638; }

.wcp-badge-mark {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: #fff;
	line-height: 1;
}
.wcp-badge-clean    .wcp-badge-mark { background: #16a374; }
.wcp-badge-rights   .wcp-badge-mark { background: #dba617; }
.wcp-badge-modified .wcp-badge-mark { background: #d63638; }

.wcp-badge-body { min-width: 0; }

.wcp-badge-title {
	display: block;
	font-weight: 600;
	font-size: 13.5px;
	margin-bottom: 2px;
	color: #1f2933;
}

.wcp-badge-line {
	display: block;
	color: #3e4c59;
	overflow-wrap: anywhere;
}

.wcp-badge-detail { margin-top: 2px; }

.wcp-badge-rights {
	margin: 6px 0 0;
	padding-left: 18px;
	list-style: disc;
}
.wcp-badge-rights li {
	margin: 2px 0;
	color: #3e4c59;
	font-size: 12.5px;
	list-style: disc;
}

.wcp-badge-link {
	display: inline-block;
	margin-top: 6px;
	font-size: 12.5px;
	color: #2271b1;
	text-decoration: underline;
}
.wcp-badge-link:hover { color: #135e96; }

.wcp-badge-compact { max-width: 380px; padding: 10px 12px; }
.wcp-badge-compact .wcp-badge-title { font-size: 13px; }

.wcp-align-center { display: flex; margin-left: auto; margin-right: auto; }
.wcp-align-right  { display: flex; margin-left: auto; }

@media screen and (max-width: 600px) {
	.wcp-badge { max-width: 100%; width: 100%; }
}

/* A dark footer is the common case; keep the badge legible there without
   letting the theme's colours bleed in. */
@media (prefers-color-scheme: dark) {
	.wcp-badge { background: #ffffff; color: #1f2933; }
}
