/*
 * VCE Preferences - Paid Memberships Pro custom styles
 * Applied selectively via body classes controlled in VCE Preferences -> Paid Memberships Pro.
 */

/* -------------------------------------------------------------------------- */
/* 1. Страница аккаунта (/membership-account/)                                */
/* -------------------------------------------------------------------------- */

/* Скрываем верхний заголовок "My Account" над блоком профиля */
body.vce-pmpro-account-style .pmpro #pmpro_account-profile > .pmpro_section_title {
	display: none;
}

/* Приводим заголовки секций и карточек аккаунта к размеру h5 темы PlayerX (22px) */
body.vce-pmpro-account-style .pmpro #pmpro_account-membership .pmpro_section_title,
body.vce-pmpro-account-style .pmpro #pmpro_account-orders .pmpro_section_title,
body.vce-pmpro-account-style .pmpro #pmpro_account-links .pmpro_section_title,
body.vce-pmpro-account-style .pmpro #pmpro_account-profile .pmpro_card_title,
body.vce-pmpro-account-style .pmpro #pmpro_account-membership .pmpro_card_title,
body.vce-pmpro-account-style .pmpro #pmpro_account-orders .pmpro_card_title,
body.vce-pmpro-account-style .pmpro #pmpro_account-links .pmpro_card_title {
	font-size: 22px;
	line-height: 1.36em;
	font-weight: 700;
	text-transform: uppercase;
	color: #fff;
	margin: 20px 0;
	padding: 0;
}

/* Сохраняем и выравниваем аватар пользователя рядом с "Welcome, ..." */
body.vce-pmpro-account-style .pmpro #pmpro_account-profile .pmpro_heading-with-avatar {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

body.vce-pmpro-account-style .pmpro #pmpro_account-profile .pmpro_heading-with-avatar img.avatar {
	border-radius: 4px;
	flex-shrink: 0;
}

/* Убираем рамки/подложки карточек PMPro в аккаунте для соответствия дизайну сайта */
body.vce-pmpro-account-style .pmpro #pmpro_account-profile .pmpro_card,
body.vce-pmpro-account-style .pmpro #pmpro_account-membership .pmpro_card,
body.vce-pmpro-account-style .pmpro #pmpro_account-orders .pmpro_card,
body.vce-pmpro-account-style .pmpro #pmpro_account-links .pmpro_card {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin: 0;
	overflow: visible;
}

body.vce-pmpro-account-style .pmpro #pmpro_account-profile .pmpro_card_content,
body.vce-pmpro-account-style .pmpro #pmpro_account-membership .pmpro_card_content,
body.vce-pmpro-account-style .pmpro #pmpro_account-orders .pmpro_card_content,
body.vce-pmpro-account-style .pmpro #pmpro_account-links .pmpro_card_content {
	padding: 0;
}

/* Компактный список Username / Email */
body.vce-pmpro-account-style .pmpro #pmpro_account-profile .pmpro_list {
	list-style: none;
	margin: 0 0 22px 0;
	padding: 0;
}

body.vce-pmpro-account-style .pmpro #pmpro_account-profile .pmpro_list .pmpro_list_item {
	margin: 0 0 4px 0;
	padding: 0;
	line-height: 1.5;
}

body.vce-pmpro-account-style .pmpro #pmpro_account-profile .pmpro_list .pmpro_list_item:last-child {
	margin-bottom: 0;
}

/* Кнопки действий профиля (Edit Profile, Change Password, Log Out) */
body.vce-pmpro-account-style .pmpro #pmpro_account-profile .pmpro_card_actions {
	background: transparent;
	border: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

body.vce-pmpro-account-style .pmpro #pmpro_account-profile .pmpro_card_action_separator {
	display: none;
}

body.vce-pmpro-account-style .pmpro #pmpro_account-profile .pmpro_card_actions .pmpro_card_action {
	display: inline-block;
}

body.vce-pmpro-account-style .pmpro #pmpro_account-profile .pmpro_card_actions a.edgtf-btn {
	text-decoration: none;
	margin: 0;
}

/* Отступы вокруг секции подписок (аналог <br><br> из старой версии) */
body.vce-pmpro-account-style .pmpro #pmpro_account-membership {
	margin-top: 48px;
	margin-bottom: 48px;
}

body.vce-pmpro-account-style .pmpro #pmpro_account-membership .pmpro_card_actions,
body.vce-pmpro-account-style .pmpro #pmpro_account-orders .pmpro_card_actions {
	background: transparent;
	border: 0;
	padding: 0;
	margin-top: 8px;
}

/* -------------------------------------------------------------------------- */
/* 2. Компактные заголовки (h5, 22px) на страницах PMPro (Checkout, Cancel)   */
/* -------------------------------------------------------------------------- */

body.vce-pmpro-compact-headings .pmpro .pmpro_section_title,
body.vce-pmpro-compact-headings .pmpro .pmpro_card_title,
body.vce-pmpro-compact-headings .pmpro .pmpro_form_heading,
body.vce-pmpro-compact-headings .pmpro .pmpro_form_legend .pmpro_form_heading {
	font-size: 22px;
	line-height: 1.36em;
	font-weight: 700;
	text-transform: uppercase;
	color: #fff;
	margin: 20px 0;
}

body.vce-pmpro-compact-headings .pmpro .pmpro_form_legend {
	border: 0;
	padding: 0;
	margin: 0;
}

/* -------------------------------------------------------------------------- */
/* 3. Красные outline-кнопки в стиле темы PlayerX (из старого base.css)       */
/* -------------------------------------------------------------------------- */

body.vce-pmpro-red-buttons .pmpro_btn:not(.pmpro_btn-plain),
body.vce-pmpro-red-buttons .pmpro_btn:not(.pmpro_btn-plain):link,
body.vce-pmpro-red-buttons .pmpro .pmpro_btn:not(.pmpro_btn-plain),
body.vce-pmpro-red-buttons .pmpro .button-primary,
body.vce-pmpro-red-buttons .pmpro #loginform .login-submit .button,
body.vce-pmpro-red-buttons .pmpro .pmpro_section #loginform .login-submit .button,
body.vce-pmpro-red-buttons .pmpro_content_message a,
body.vce-pmpro-red-buttons .pmpro_content_message a:link {
	position: relative;
	display: inline-block;
	vertical-align: middle;
	width: auto;
	margin: 0;
	font-family: inherit;
	font-size: 13px;
	line-height: 2em;
	letter-spacing: 0.06em;
	font-weight: 700;
	text-transform: uppercase;
	border-radius: 0;
	outline: none;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	padding: 13px 24px;
	cursor: pointer;
	-webkit-transition: 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
	-o-transition: 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
	transition: 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
	color: #ff0e1f;
	background-color: transparent;
	border: 1px solid #ff0e1f;
	text-decoration: none;
	box-shadow: none;
}

body.vce-pmpro-red-buttons .pmpro_btn:not(.pmpro_btn-plain):hover,
body.vce-pmpro-red-buttons .pmpro_btn:not(.pmpro_btn-plain):focus,
body.vce-pmpro-red-buttons a.pmpro_btn:not(.pmpro_btn-plain):hover,
body.vce-pmpro-red-buttons .pmpro .pmpro_btn:not(.pmpro_btn-plain):hover,
body.vce-pmpro-red-buttons .pmpro .pmpro_btn:not(.pmpro_btn-plain):focus,
body.vce-pmpro-red-buttons .pmpro .button-primary:hover,
body.vce-pmpro-red-buttons .pmpro .button-primary:focus,
body.vce-pmpro-red-buttons .pmpro #loginform .login-submit .button:hover,
body.vce-pmpro-red-buttons .pmpro #loginform .login-submit .button:focus,
body.vce-pmpro-red-buttons .pmpro .pmpro_section #loginform .login-submit .button:hover,
body.vce-pmpro-red-buttons .pmpro .pmpro_section #loginform .login-submit .button:focus,
body.vce-pmpro-red-buttons .pmpro_content_message a:hover,
body.vce-pmpro-red-buttons .pmpro_content_message a:focus {
	-webkit-filter: drop-shadow(3px 3px 20px rgba(255, 14, 31, 0.7));
	filter: drop-shadow(3px 3px 20px rgba(255, 14, 31, 0.7));
	color: #fff !important;
	background-color: #ff0e1f !important;
	border-color: #ff0e1f !important;
	text-shadow: 0px 0px 20px rgba(255, 255, 255, 0.7);
}

/* Отступ перед кнопкой отправки формы PMPro (чтобы не прилипала к ссылке Other Payment Method) */
body.vce-pmpro-red-buttons .pmpro .pmpro_form_submit,
body.vce-pmpro-compact-headings .pmpro .pmpro_form_submit {
	margin-top: 24px;
}

/* Отступ над ссылками под формой входа (Forgot your password? / Having trouble receiving emails?) */
body.vce-pmpro-red-buttons .pmpro #pmpro_login .pmpro_actions_nav,
body.vce-pmpro-compact-headings .pmpro #pmpro_login .pmpro_actions_nav {
	margin-top: 20px;
}

/* В красной кнопке PayPal скрываем синюю SVG-картинку и выводим текст PayPal в потоке в одну строку */
body.vce-pmpro-red-buttons .pmpro .pmpro_btn-submit-checkout-paypal {
	white-space: nowrap;
}

body.vce-pmpro-red-buttons .pmpro .pmpro_btn-submit-checkout-paypal .pmpro_btn-submit-checkout-paypal-image {
	display: none !important;
}

body.vce-pmpro-red-buttons .pmpro .pmpro_btn-submit-checkout-paypal .screen-reader-text {
	position: static !important;
	display: inline !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
	clip: auto !important;
	clip-path: none !important;
	white-space: normal !important;
	word-wrap: normal !important;
}

/* -------------------------------------------------------------------------- */
/* 4. Скрытие кнопки/переключателя "Show Password" повсюду                   */
/* -------------------------------------------------------------------------- */

body.vce-pmpro-hide-password-toggle .pmpro .pmpro_form_field-password-toggle button,
body.vce-pmpro-hide-password-toggle .pmpro .pmpro_btn-password-toggle,
body.vce-pmpro-hide-password-toggle .pmpro [id^="pmpro_btn-password-toggle"],
body.vce-pmpro-hide-password-toggle .wp-pwd .wp-hide-pw,
body.vce-pmpro-hide-password-toggle .show-password-input {
	display: none !important;
}
