.leo-pp-panel {
	padding: 14px;
	margin: 10px;
	margin-inline: 0;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #f3fff9;
	position: relative;
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
}

.leo-pp-button {
	background: #444 !important;
	color: #fff !important;
	border-color: #444 !important;
}

.leo-pp-description {
	margin: 10px 0 8px;
}

.leo-pp-success-toast {
	position: absolute;
	top: 0;
	left: 0;
	right: auto;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	max-width: min(520px, 100%);
	padding: 10px 12px;
	border: 1px solid #b6e0b8;
	border-radius: 10px;
	background: linear-gradient(180deg, rgba(244, 251, 245, 0.74) 0%, rgba(235, 248, 236, 0.74) 100%);
	box-shadow: 0 12px 30px rgba(27, 94, 32, 0.2);
	color: #174a1b;
	font-size: 13px;
	line-height: 1.38;
	pointer-events: none;
	overflow: hidden;
	isolation: isolate;
	opacity: 0;
	transform: translateY(calc(-100% - 18px)) scale(0.98);
	transition: opacity 240ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
	will-change: opacity, transform;
}

.leo-pp-success-toast::after {
	content: '';
	position: absolute;
	top: -125%;
	left: -52%;
	width: 55%;
	height: 360%;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 34%, rgba(255, 255, 255, 0.98) 50%, rgba(255, 255, 255, 0.2) 66%, rgba(255, 255, 255, 0) 100%);
	opacity: 0;
	transform: translate3d(-240%, 0, 0) rotate(20deg);
	will-change: transform, opacity;
	pointer-events: none;
	z-index: 0;
}

.leo-pp-success-toast.is-visible {
	opacity: 1;
	transform: translateY(calc(-100% - 10px)) scale(1);
}

.leo-pp-success-toast.is-visible::after {
	opacity: 1;
	animation: leo-pp-toast-shine 1300ms cubic-bezier(0.22, 1, 0.36, 1) 1;
}

.leo-pp-success-toast-icon {
	width: 22px;
	height: 22px;
	min-width: 22px;
	border-radius: 50%;
	background: #2e7d32;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	position: relative;
	z-index: 1;
}

.leo-pp-success-toast-text {
	display: block;
	position: relative;
	z-index: 1;
}

.leo-pp-learn-more {
	color: #1a73e8;
	margin-left: 5px;
}

.leo-pp-inline-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.leo-pp-summary,
.leo-pp-helper {
	margin: 6px 0;
}

.leo-pp-item-checkbox-wrapper {
	margin-top: 8px;
	padding: 0;
	background: transparent;
	border-radius: 0;
}

.leo-pp-item-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.leo-pp-item-checkbox {
	appearance: checkbox !important;
	-webkit-appearance: checkbox !important;
	display: inline-block !important;
	width: 16px !important;
	height: 16px !important;
	margin: 0 2px 0 0 !important;
	opacity: 1 !important;
	visibility: visible !important;
	accent-color: #6f8f73 !important;
}

.leo-pp-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
}

.leo-pp-modal.is-open {
	display: block;
}

.leo-pp-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.leo-pp-modal-content {
	position: relative;
	width: min(900px, 92vw);
	max-height: 80vh;
	margin: 6vh auto;
	background: #fff;
	border-radius: 8px;
	padding: 18px 18px 12px;
	z-index: 2;
}

.leo-pp-modal-scroll {
	max-height: 62vh;
	overflow-y: auto;
	padding-right: 6px;
}

.leo-pp-modal-close {
	position: absolute;
	top: 6px;
	right: 10px;
	font-size: 28px;
	border: 0;
	background: transparent;
	line-height: 1;
	cursor: pointer;
}

.leo-pp-coverage-warning {
	margin: 12px 0 !important;
	padding: 10px 12px;
	border-left: 4px solid #c0392b;
	background: #fdecea;
	color: #b71c1c;
}

.leo-pp-coverage-success {
	margin: 12px 0 !important;
	padding: 10px 12px;
	border-left: 4px solid #2e7d32;
	background: #e8f5e9;
	color: #1b5e20;
}

.leo-pp-card-notice {
	margin-left: 6px;
	color: #555;
	font-style: italic;
}

.leo-pp-loading {
	display: none;
	margin-top: 10px;
	font-size: 13px;
	color: #555;
	align-items: center;
	gap: 8px;
}

.leo-pp-panel.is-loading .leo-pp-loading {
	display: inline-flex;
}

.leo-pp-spinner {
	width: 14px;
	height: 14px;
	border: 2px solid #d0d0d0;
	border-top-color: #555;
	border-radius: 50%;
	animation: leo-pp-spin 0.7s linear infinite;
}

@keyframes leo-pp-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes leo-pp-toast-shine {
	0% {
		transform: translate3d(-240%, 0, 0) rotate(20deg);
	}
	100% {
		transform: translate3d(320%, 0, 0) rotate(20deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.leo-pp-success-toast {
		transition: none;
		transform: none;
	}

	.leo-pp-success-toast::after {
		opacity: 0;
		animation: none;
	}
}
