/* PolyWPSS provider icon styles */

.sb-btn[data-prediction="polymarket"] {
	font-size: 0; /* hide any accidental text nodes */
	line-height: 0;
}

.polywpss-ico {
	width: 18px;
	height: 18px;
	display: inline-block;
	vertical-align: middle;
}

/*
	polymarket.svg is a wide wordmark (911x168). For compact UI we show the left emblem part.
	We do it by scaling the SVG horizontally and pinning to the left.
*/
.polywpss-ico--polymarket {
	/* Tuning knobs */
	--pm-mask-size-x: 680%;
	--pm-mask-x: -11px;

	background-color: currentColor;
	-webkit-mask-image: url("../icon/polymarket.svg");
	mask-image: url("../icon/polymarket.svg");
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: var(--pm-mask-size-x) 100%;
	mask-size: var(--pm-mask-size-x) 100%;
	-webkit-mask-position: var(--pm-mask-x) 50%;
	mask-position: var(--pm-mask-x) 50%;

	/* Fallback if mask isn't supported */
	background-image: url("../icon/polymarket.svg");
	background-repeat: no-repeat;
	background-size: var(--pm-mask-size-x) 100%;
	background-position: var(--pm-mask-x) 50%;
}

button.m95p-provBtn span.polywpss-ico.polywpss-ico--polymarket{
        --pm-mask-x: -14px;
}

/* Polymarket connect modal */
.polywpss-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(8, 12, 20, 0.7);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.polywpss-modal {
	width: min(520px, 100%);
	background: #0f172a;
	color: #e5e7eb;
	border-radius: 16px;
	border: 1px solid rgba(148, 163, 184, 0.2);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
	font: inherit;
}

.polywpss-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 18px 8px;
}

.polywpss-modal__title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
}

.polywpss-modal__close {
	appearance: none;
	border: 0;
	background: transparent;
	color: #94a3b8;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	padding: 6px 8px;
	border-radius: 10px;
}

.polywpss-modal__close:hover {
	background: rgba(148, 163, 184, 0.12);
	color: #e5e7eb;
}

.polywpss-modal__body {
	padding: 0 18px 10px;
}

.polywpss-modal__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #e2e8f0;
}

.polywpss-modal__actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	padding: 12px 18px 18px;
}

.polywpss-btn {
	appearance: none;
	border: 0;
	border-radius: 12px;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.polywpss-btn--primary {
	color: #0b0f19;
	background: #fbbf24;
}

.polywpss-btn--ghost {
	color: #e5e7eb;
	background: rgba(148, 163, 184, 0.18);
}

.m95p-provider__actions .btn.is-loading {
	position: relative;
	pointer-events: none;
}

.m95p-provider__actions .btn.is-loading::after {
	content: "";
	width: 12px;
	height: 12px;
	margin-left: 8px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: rgba(255, 255, 255, .9);
	animation: m95spin .8s linear infinite;
	display: inline-block;
}

.m95p-provider__actions {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.m95p-provider__actions .polywpss-reset-btn {
	min-width: 36px;
	width: 36px;
	height: 36px;
	padding: 0;
	line-height: 1;
	font-size: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}