/* PS Plus / EA Play product card (category 5494) */

.ps-plus-card .sku__availability,
.ps-plus-card .sku__id,
.ps-plus-card .sku__group--attrs,
.ps-plus-card .sku__details-title,
.ps-plus-card .sku__details-table,
.ps-plus-card .sku__details-action,
.ps-plus-card .sku__compact,
.ps-plus-card .ui-number,
.ps-plus-card [data-accordion-content="specifications"],
.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;
}

.ps-plus-card .sku__group.ps-plus-hide-attrs {
	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;
}

/* Plan chips (not dropdown) */
.ps-plus-plans {
	display: flex;
	flex-wrap: wrap;
	gap: 1.2rem;
	margin-top: 0.2rem;
	/* room for the selected ring, so a parent with overflow:hidden does not clip it */
	padding: 0.6rem;
	margin-left: -0.6rem;
	margin-right: -0.6rem;
}

.ps-plus-plan {
	position: relative;
	appearance: none;
	border: 1px solid transparent;
	cursor: pointer;
	border-radius: 1rem;
	padding: 1.2rem 1.6rem;
	min-width: 11rem;
	text-align: left;
	transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
	font: 700 1.4rem/1.2 "Roboto", Arial, Helvetica, sans-serif;
}

.ps-plus-plan:hover {
	transform: translateY(-1px);
}

/* Selected: white gap + blue ring outside the tile, so it reads the same on white, yellow, charcoal and navy */
.ps-plus-plan.is-active {
	box-shadow: 0 0 0 3px #fff, 0 0 0 6px #1677ff, 0 10px 22px -6px rgba(22, 119, 255, 0.6);
}

.ps-plus-plan--top.is-active,
.ps-plus-plan--deluxe.is-active,
.ps-plus-plan--premium.is-active,
.ps-plus-plan--eaplay.is-active {
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 3px #fff, 0 0 0 6px #1677ff, 0 10px 22px -6px rgba(22, 119, 255, 0.6);
}

.ps-plus-plan--essential.is-active {
	background: #eef5ff;
	border-color: #1677ff;
}

.ps-plus-plan.is-active::after {
	content: "";
	position: absolute;
	top: 0.8rem;
	right: 0.8rem;
	width: 2.2rem;
	height: 2.2rem;
	border-radius: 50%;
	background: #1677ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3l2.2 2.2 4.6-4.9' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 1.3rem no-repeat;
	box-shadow: 0 0 0 2px #fff;
}

.ps-plus-plan:focus-visible {
	outline: 3px solid #1677ff;
	outline-offset: 3px;
}

.ps-plus-plan__badge {
	display: block;
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	margin-bottom: 0.4rem;
	opacity: 0.9;
}

.ps-plus-plan__name {
	display: block;
}

.ps-plus-plan--essential {
	background: #fff;
	color: #0d5fd6;
	border-color: #d7e6ff;
}

.ps-plus-plan--extra {
	background: linear-gradient(135deg, #ffd54a, #ffbc0b);
	color: #111;
}

.ps-plus-plan--top,
.ps-plus-plan--deluxe,
.ps-plus-plan--premium {
	background: linear-gradient(135deg, #232323, #313131);
	color: #fff;
}

.ps-plus-plan--eaplay {
	background: linear-gradient(135deg, #14164d, #1c235c);
	color: #fff;
}

.ps-plus-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.ps-plus-term {
	appearance: none;
	border: 1px solid #e8ebf2;
	background: #f3f6fb;
	color: #222;
	font: 700 1.4rem/1 "Roboto", Arial, Helvetica, sans-serif;
	padding: 1.2rem 1.8rem;
	border-radius: 1rem;
	cursor: pointer;
	min-width: 9rem;
	text-align: center;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ps-plus-term:hover {
	background: #e8eef8;
}

.ps-plus-term.is-active {
	background: linear-gradient(135deg, #1677ff, #4f8cff);
	color: #fff;
	border-color: transparent;
}

.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;
}

/* Hide native duration radio list — replaced by .ps-plus-terms buttons */
.ps-plus-card .ps-plus-native-duration {
	display: none !important;
}

@media (max-width: 767px) {
	.ps-plus-plan {
		flex: 1 1 calc(50% - 1rem);
		min-width: 0;
	}

	.ps-plus-term {
		flex: 1 1 calc(33.333% - 1rem);
		min-width: 0;
		padding: 1.2rem 0.6rem;
	}

	.ps-plus-pay__value {
		font-size: 2.4rem;
	}
}
