/* WooCommerce > GetPPWR. Plain WordPress admin, a card in GetPPWR's own quiet style. */

.getppwr {
	max-width: 900px;
}

.getppwr-head {
	display: flex;
	gap: 14px;
	align-items: center;
	margin: 18px 0 20px;
}

.getppwr-head img {
	display: block;
	height: 24px;
	width: auto;
}

.getppwr-head span {
	padding-left: 14px;
	border-left: 1px solid #dcdcde;
	color: #50575e;
	font-size: 13px;
}

.getppwr .getppwr-notice {
	margin: 0 0 16px;
}

.getppwr-card {
	padding: 24px;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	background: #fff;
}

/* The globe's blurred twin inside a card (assets/globe.js): under the content, cut at the card's edge. */
.getppwr-card {
	position: relative;
	overflow: hidden;
}

.getppwr-card > :not(.getppwr-globe-ghost) {
	position: relative;
	z-index: 1;
}

.getppwr-globe-ghost {
	position: absolute;
	z-index: 0;
	aspect-ratio: 1;
	pointer-events: none;
	opacity: 0.75;
	filter: blur(12px);
}

.getppwr-globe-ghost canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.getppwr-card h2 {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.4;
}

.getppwr-card h3 {
	margin: 20px 0 8px;
	font-size: 14px;
}

.getppwr-card p {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.6;
}

.getppwr-list {
	margin: 0 0 20px 18px;
	list-style: disc;
}

.getppwr-list li {
	margin: 0 0 4px;
	font-size: 14px;
}

.getppwr-card form {
	margin: 0;
}

.getppwr-muted,
.getppwr-card p.getppwr-muted {
	color: #646970;
	font-size: 13px;
}

.getppwr-card p.getppwr-muted {
	margin: 14px 0 0;
}

.getppwr-store {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	justify-content: space-between;
}

/* The store's logo beside its name (Krister, 29.10.2026). */
.getppwr-store-name {
	display: flex;
	gap: 12px;
	align-items: center;
	min-width: 0;
}

.getppwr-store-icon {
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.getppwr-store h2 {
	margin: 0 0 2px;
}

.getppwr-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-end;
}

.getppwr-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 500;
	line-height: 18px;
	white-space: nowrap;
}

.getppwr-badge-success {
	background: #dcfce7;
	color: #166534;
}

.getppwr-badge-error {
	background: #fde8e8;
	color: #8e0b21;
}

.getppwr-badge-warning {
	background: #fbecd2;
	color: #644b1e;
}

.getppwr-badge-info {
	background: #e0f0ff;
	color: #00527c;
}

.getppwr-card p.getppwr-problem {
	margin: 16px 0 0;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fbecd2;
	color: #644b1e;
}

.getppwr-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
	gap: 10px;
	margin: 20px 0 0;
}

.getppwr-stats div {
	padding: 14px 12px 14px 14px;
	border-radius: 10px;
	background: rgba(240, 240, 241, 0.6);
}

.getppwr-stats dt {
	margin: 0 0 4px;
	white-space: nowrap;
	color: #646970;
	font-size: 12px;
}

.getppwr-stats dd {
	margin: 0;
	color: #1d2327;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	font-variant-numeric: tabular-nums;
}

/* Rolling numbers (assets/numbers.js): a wheel of 0 to 9 per digit. */
.getppwr-wheel {
	display: inline-block;
	height: 1.3em;
	overflow: hidden;
	vertical-align: top;
	/* The digits passing by fade at the wheel's edges. */
	-webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
	mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}

.getppwr-strip {
	display: flex;
	flex-direction: column;
	transform: translateY(0);
	transition: transform 1.1s cubic-bezier(0.34, 1.25, 0.64, 1);
	will-change: transform;
}

.getppwr-strip span,
.getppwr-gap {
	display: block;
	height: 1.3em;
	line-height: 1.3em;
}

.getppwr-gap {
	display: inline-block;
	vertical-align: top;
	white-space: pre;
}

.getppwr-reveal {
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.getppwr-reveal.getppwr-shown {
	opacity: 1;
	transform: none;
}

/* The time after the date, smaller, on its own line when the box is narrow. */
.getppwr-stats dd .getppwr-time {
	color: #50575e;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}

.getppwr-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
}

.getppwr-unlink {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	align-items: baseline;
	margin: 16px 2px 0;
}

.getppwr-unlink .button-link {
	color: #b32d2e;
	font-size: 13px;
}

/* The turning globe, large and half out of the page's bottom right corner
   (Krister, 29.10.2026). Behind everything, never in the way of a click. */
.getppwr-globe {
	position: fixed;
	right: -110px;
	bottom: -110px;
	z-index: 0;
	width: 620px;
	aspect-ratio: 1;
	/* Round, so only the globe itself takes a drag. */
	border-radius: 50%;
	cursor: grab;
	touch-action: pan-y;
	opacity: 0;
	transition: opacity 0.8s ease;
}

.getppwr-globe[data-ready] {
	opacity: 1;
}

.getppwr-globe[data-dragging] {
	cursor: grabbing;
}

.getppwr-globe canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.getppwr-head,
.getppwr-card,
.getppwr .getppwr-notice,
.getppwr-unlink {
	position: relative;
	z-index: 1;
}

/* On a small screen the globe would sit behind everything: left out. */
@media (max-width: 1000px) {
	.getppwr-globe {
		display: none;
	}
}

@media (max-width: 782px) {
	.getppwr-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.getppwr-store {
		flex-direction: column;
	}

	.getppwr-badges {
		justify-content: flex-start;
	}
}
