/* ==========================================================================
   Casino-card payment logos (inc/payments.php, assets/js/payments.js)
   One row of real logos; what does not fit collapses into a "+N" stack that opens a list of all methods.
   The open list is moved to <body> by the JS, so it is styled without card ancestors.
   ========================================================================== */
.sscuk-cc-card__pay.has-pays {
	display: block;
	padding: 4px 0 2px;
}

.sscuk-pays .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.sscuk-pays {
	position: relative;
	z-index: 1;
	width: 100%;
}

.sscuk-pays__row {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 0;
	overflow: hidden;
}

.sscuk-pay,
.sscuk-pays__stack-chip {
	display: inline-flex;
	flex: 0 0 auto;
	width: 36px;
	height: 24px;
	overflow: hidden;
	border-radius: 4px;
}

.sscuk-pay[hidden],
.sscuk-pays__more[hidden] {
	display: none;
}

.sscuk-pay img,
.sscuk-pays__stack-chip img {
	display: block;
	width: 100%;
	height: 100%;
}

.sscuk-pays__more {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 6px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: rgba(255, 255, 255, .78);
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: color .2s ease;
}

.sscuk-pays__more:hover,
.sscuk-pays__more[aria-expanded="true"] {
	color: #fff;
	background: none;
}

.sscuk-pays__more:focus-visible,
.sscuk-pays__close:focus-visible {
	outline: 2px solid #FFD900;
	outline-offset: 2px;
}

.sscuk-pays__stack {
	display: inline-flex;
	align-items: center;
}

.sscuk-pays__stack-chip + .sscuk-pays__stack-chip {
	margin-left: -24px;
	box-shadow: -1.5px 0 0 0 #18245a;
}

.sscuk-pays__count {
	min-width: 2.4ch;
	font-variant-numeric: tabular-nums;
	text-align: left;
}

.sscuk-pays__chev {
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	transition: transform .2s ease;
}

.sscuk-pays__more[aria-expanded="true"] .sscuk-pays__chev {
	transform: rotate(180deg);
}

.sscuk-pays__pop {
	position: fixed;
	z-index: 9999;
	top: 0;
	left: 0;
	box-sizing: border-box;
	width: 236px;
	padding: 10px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 10px;
	background: #131F4E;
	box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7);
	color: #fff;
	font-family: inherit;
	text-align: left;
	opacity: 0;
	transform: translateY(-6px) scale(.97);
	transform-origin: top center;
	transition: opacity .18s ease, transform .18s ease;
}

.sscuk-pays__pop.is-open {
	opacity: 1;
	transform: none;
}

.sscuk-pays__pop[hidden] {
	display: none;
}

.sscuk-pays__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 8px;
}

.sscuk-pays__title {
	color: rgba(255, 255, 255, .7);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.sscuk-pays__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(239, 68, 68, .45);
	border-radius: 6px;
	background: rgba(239, 68, 68, .12);
	color: #f87171;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.sscuk-pays__close:hover {
	background: #ef4444;
	color: #fff;
}

.sscuk-pays__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 10px;
	max-height: 240px;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
}

.sscuk-pays__list li {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	margin: 0;
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
}

.sscuk-pays__list li > span:last-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sscuk-pays__list .sscuk-pay {
	width: 30px;
	height: 20px;
}

/* Phones: two cards per row, so smaller logos. */
@media (max-width: 600px) {
	.sscuk-pays__row {
		gap: 4px;
	}

	.sscuk-pay,
	.sscuk-pays__stack-chip {
		width: 27px;
		height: 18px;
		border-radius: 3px;
	}

	.sscuk-pays__more {
		gap: 3px;
		height: 18px;
		font-size: 10px;
	}

	.sscuk-pays__stack-chip + .sscuk-pays__stack-chip {
		margin-left: -19px;
	}

	.sscuk-pays__chev {
		width: 10px;
		height: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sscuk-pays__pop,
	.sscuk-pays__chev {
		transition: none;
	}
}
