/* Steam game card with a country list (category 5481). Built from ps_plus.css by tools/build_steam_game_twig.py */

.ps-plus-card .sku__availability,
.ps-plus-card .sku__id,
.ps-plus-card .sku__group--attrs,
.ps-plus-card .ui-number,
.ps-plus-hide-stock-model .sku__availability,
.ps-plus-hide-stock-model .sku__id {
	display: none !important;
}

.ps-plus-card .sku__addto-btn[data-action="compare"],
.ps-plus-card .sku__addto li:has([data-action="compare"]) {
	display: none !important;
}


/* Mobile: selector immediately after image, above price/options */
.ps-plus-card .sku__desc {
	display: flex;
	flex-direction: column;
}

/* Buy column stack: wishlist → country/plan → fields → price/buy.
 * Older Live Related sheets put #product.sku__desc > .sku__group:has(#button-cart) at order:3 !important
 * (two ids). The :not(#po-0) / #ps-plus-pay selectors carry two ids as well, so these win on every engine. */
.ps-plus-card .sku__desc > .ps-plus-wish-group,
.ps-plus-card #product.sku__desc > .ps-plus-wish-group:not(#po-0) {
	order: 1 !important;
}

.ps-plus-card .sku__desc > .ps-plus-selector-wrap,
.ps-plus-card #product.sku__desc > .ps-plus-selector-wrap:not(#po-0) {
	order: 2 !important;
}

.ps-plus-card .sku__desc > .ps-plus-options,
.ps-plus-card #product.sku__desc > .ps-plus-options:not(#po-0) {
	order: 3 !important;
}

.ps-plus-card .sku__desc > .ps-plus-pay-group,
.ps-plus-card #product.sku__desc > #ps-plus-pay.ps-plus-pay-group {
	order: 4 !important;
}

@media (max-width: 1199.98px) {
	.ps-plus-card .sku__desc {
		display: flex !important;
		flex-direction: column !important;
	}
}

.ps-plus-pay-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.2rem;
	margin: 0 0 1.6rem;
}

.ps-plus-pay-row .ps-plus-pay {
	margin: 0;
}

.ps-plus-found {
	flex: 0 0 auto;
	padding-bottom: 0.4rem;
}

.ps-plus-card .ps-plus-options .sku__settings > .row {
	display: block;
	margin: 0;
}

.ps-plus-card .ps-plus-options .sku__settings > .row > [class*="col-"] {
	width: 100%;
	max-width: 100%;
	flex: 0 0 100%;
	padding-left: 0;
	padding-right: 0;
	margin: 0 0 2rem;
}

/* Soft notice before Email / пароль / 2FA */
.ps-plus-account-notice {
	margin: 0 0 1.6rem;
	padding: 1.2rem 1.4rem;
	background: #f5f7fa;
	border: 1px solid #e8ebf2;
	border-radius: 0.8rem;
	font: 400 1.35rem/2rem "Roboto", Arial, Helvetica, sans-serif;
	color: #6b7280;
}

.ps-plus-account-notice__link {
	color: #5b6b82;
	text-decoration: underline;
	text-decoration-color: rgba(91, 107, 130, 0.35);
	text-underline-offset: 0.15em;
	cursor: pointer;
}

.ps-plus-account-notice__link:hover {
	color: #3d4a5c;
	text-decoration-color: rgba(61, 74, 92, 0.55);
}

/* Account fields: Email → Пароль → 2FA */
.ps-plus-card .ps-plus-options .ps-plus-account-field--email { order: 1; }
.ps-plus-card .ps-plus-options .ps-plus-account-field--password { order: 2; }
.ps-plus-card .ps-plus-options .ps-plus-account-field--2fa { order: 3; }

.ps-plus-card .ps-plus-options .sku__settings {
	display: flex;
	flex-direction: column;
}

.ps-plus-card .ps-plus-options .sku__settings > .row {
	display: flex;
	flex-direction: column;
}

.ps-plus-card .ps-plus-options .ui-group {
	margin: 0;
}

.ps-plus-card .ps-plus-options .ui-label {
	display: block;
	margin: 0 0 1rem;
	font: 500 1.5rem/2rem "Roboto", Arial, Helvetica, sans-serif;
	color: #222;
}

.ps-plus-card .ps-plus-options .ui-field,
.ps-plus-card .ps-plus-options .ui-input {
	width: 100%;
	max-width: 100%;
}

.ps-plus-card .ps-plus-options .ui-input {
	background: #f7f8fb;
	border: 1px solid #e8ebf2;
	border-radius: 0.6rem;
	padding: 1.2rem 1.6rem;
	font: 400 1.6rem/2.4rem "Roboto", Arial, Helvetica, sans-serif;
	color: #222;
	min-height: 4.8rem;
	box-sizing: border-box;
}

.ps-plus-card .ui-label.required::after {
	content: none !important;
	display: none !important;
}

.ps-plus-card .ui-label.required::before {
	content: "*" !important;
	color: #e74c3c;
	margin-right: 0.25em;
}

/* Selector */
.ps-plus-selector {
	margin: 0 0 2rem;
	padding: 0;
}

.ps-plus-selector__block {
	margin: 0 0 1.8rem;
}

.ps-plus-selector__label {
	display: block;
	margin: 0 0 0.8rem;
	font: 500 1.2rem/1.6rem "Roboto", Arial, Helvetica, sans-serif;
	color: #8a93a3;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ps-plus-dd-caption {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 0.8rem;
}

.ps-plus-dd-caption .ps-plus-selector__label {
	margin: 0;
}

.ps-plus-dd-caption__side {
	font: 400 1.2rem/1.6rem "Roboto", Arial, Helvetica, sans-serif;
	color: #8a93a3;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

/* Выпадающий список стран (референс: refs/country-select-dropdown.png) */
.ps-plus-dd {
	position: relative;
}

.ps-plus-dd__toggle {
	appearance: none;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid #e1e5ee;
	border-radius: 8px;
	background: #f3f5f9;
	cursor: pointer;
	text-align: left;
	box-sizing: border-box;
	overflow: hidden;
}

.ps-plus-dd.is-open .ps-plus-dd__toggle {
	border-color: #cfd6e4;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	background: #eef1f6;
}

.ps-plus-dd__toggle-main {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1 1 auto;
	overflow: hidden;
}

.ps-plus-dd__toggle-side {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

/* Theme often forces img { width:100% } — lock flag with px + !important */
.ps-plus-card .ps-plus-dd img.ps-plus-dd__flag,
.ps-plus-card .ps-plus-dd__flag {
	display: block !important;
	width: 22px !important;
	height: 16px !important;
	max-width: 22px !important;
	max-height: 16px !important;
	min-width: 22px !important;
	min-height: 16px !important;
	object-fit: cover !important;
	object-position: center !important;
	border-radius: 2px;
	flex: 0 0 22px !important;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.ps-plus-dd__label {
	font: 400 15px/20px "Roboto", Arial, Helvetica, sans-serif;
	color: #222;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex: 1 1 auto;
	min-width: 0;
}

.ps-plus-dd__label--muted {
	color: #6b7280;
}

.ps-plus-dd__price {
	font: 700 15px/20px "Roboto", Arial, Helvetica, sans-serif;
	color: #111;
	white-space: nowrap;
}

.ps-plus-dd__caret {
	display: block;
	width: 10px;
	height: 10px;
	flex: 0 0 10px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23222' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.15s ease;
}

.ps-plus-dd.is-open .ps-plus-dd__caret {
	transform: rotate(180deg);
}

.ps-plus-dd__list {
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	left: 0;
	right: 0;
	z-index: 30;
	background: #fff;
	border: 1px solid #e1e5ee;
	border-top: 0;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 8px 16px rgba(22, 28, 45, 0.08);
	overflow: hidden;
}

.ps-plus-dd__list[hidden] {
	display: none !important;
}

.ps-plus-dd__list > li + li {
	border-top: 1px solid #eef1f6;
}

.ps-plus-dd__option {
	appearance: none;
	width: 100%;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 0;
	background: #fff;
	cursor: pointer;
	text-align: left;
	box-sizing: border-box;
}

.ps-plus-dd__option:hover,
.ps-plus-dd__option.is-active {
	background: #f7f8fb;
}

.ps-plus-dd__option .ps-plus-dd__label {
	flex: 1 1 auto;
	min-width: 0;
}

.ps-plus-dd__option .ps-plus-dd__price {
	flex: 0 0 auto;
	margin-left: auto;
}

.ps-plus-pay {
	margin: 0 0 1.6rem;
}

.ps-plus-pay__label {
	display: block;
	font: 400 1.3rem/1.8rem "Roboto", Arial, Helvetica, sans-serif;
	color: #6b7280;
	margin: 0 0 0.2rem;
}

.ps-plus-pay__value {
	font: 700 2.8rem/1.2 "Roboto", Arial, Helvetica, sans-serif;
	color: #111;
	letter-spacing: -0.02em;
}

.ps-plus-card .sku__price.ps-plus-unit-price-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}


@media (max-width: 767px) {
	.ps-plus-pay__value {
		font-size: 2.4rem;
	}
}

/* Steam game card: one dropdown «Страна аккаунта» (flags per supplier; .steam-game-dd--noflags = zones as text) */
.steam-game-dd__flag-slot:empty {
	display: none;
}

.steam-game-dd__noflag {
	display: block;
	width: 22px;
	height: 16px;
	flex: 0 0 22px;
	border-radius: 2px;
	background: #e1e5ee;
}

.steam-game-dd__inputs {
	display: none !important;
}

.steam-game-dd.has-error .ps-plus-dd__toggle {
	border-color: #e74c3c;
}

.steam-game-selector-wrap .ui-error,
.steam-game-selector-wrap .text-danger {
	display: block;
	margin: 0.6rem 0 0;
	font: 400 1.3rem/1.8rem "Roboto", Arial, Helvetica, sans-serif;
	color: #e74c3c;
}

.ps-plus-card .ps-plus-selector__label.required::before {
	content: "*";
	color: #e74c3c;
	margin-right: 0.25em;
}

.ps-plus-card .steam-game-dd .ps-plus-dd__list {
	max-height: 52rem;
	overflow-y: auto;
}
