/* ------------------------------- */
/* КАРТОЧКА - ИНФОРМАЦИЯ С КНОПКОЙ */
/* ------------------------------- */

/* Добавить в начало ярлыка:

surprise-card-

*/

/* ----------------- */
/* БЫСТРЫЕ НАСТРОЙКИ */
/* ----------------- */

/* Раскомментировать "left" и "filter", чтобы ПОКАЗАТЬ карточку и тень на время подбора настроек */
/* ВАЖНО! Закомментируйте строки "left" и "filter" после настройки дизайна */
/* Вынес эту настройку в переменную в json */

/* .col-lg-3:has(a[href*="wpm-category/surprise-card-"][class*="folder-wrap"]) {
	left: -15px!important;
}

.folders-row a[href*="wpm-category/surprise-card-"][class*="folder-wrap"] {
	filter: drop-shadow(6px 12px 68px var(--shadow-color-surprise-card))!important;
} */

/* --------------------- */
/* 1. БЛОК ВСЕЙ КАРТОЧКИ */



/* ------------------------- */
/* 2. БЛОК - ССЫЛКА КАРТОЧКИ */

/* Убираем рамку - ТЕНЬ вокруг карточки */

.folders-row a[href*="wpm-category/surprise-card-"][class*="folder-wrap"] {
	border: none;
	box-shadow: none;
	background: var(--color-bg-main-card-surprise-card);
    border-radius: var(--radius-top-surprise-card) var(--radius-top-surprise-card) var(--radius-bottom-surprise-card) var(--radius-bottom-surprise-card);
}

/* ТЕНЬ при наведении на карточку */

@media (min-width: 768px) {

.folders-row a[href*="wpm-category/surprise-card-"][class*="folder-wrap"]:hover {
	filter: drop-shadow(6px 12px 68px var(--shadow-color-surprise-card))!important;
}
}

/* Высота карточки на разных экранах */

@media (min-width: 1400px) {

.folders-row a[href*="wpm-category/surprise-card-"][class*="folder-wrap"] {
	height: 349px;
}
}

@media (min-width: 1200px) and (max-width: 1399px) {

.folders-row a[href*="wpm-category/surprise-card-"][class*="folder-wrap"] {
	height: 312px;
}
}

@media (min-width: 992px) and (max-width: 1199px) {

.folders-row a[href*="wpm-category/surprise-card-"][class*="folder-wrap"] {
	height: 274px;
}
}

@media (min-width: 768px) and (max-width: 991px) {

.folders-row a[href*="wpm-category/surprise-card-"][class*="folder-wrap"] {
    height: 303px;
}
}

@media (min-width: 460px) and (max-width: 767px) {

.folders-row a[href*="wpm-category/surprise-card-"][class*="folder-wrap"] {
    height: 299px;
}
}

@media (min-width: 320px) and (max-width: 459px) {

.folders-row a[href*="wpm-category/surprise-card-"][class*="folder-wrap"] {
	height: 312px;
}
}

/* -------------------- */
/* 3. СТИКЕР - НАЗВАНИЕ */

/* Превращаем стикер в ЗАГОЛОВОК */

.folders-row a[href*="wpm-category/surprise-card-"] .label {
	display: block;
    width: 90%!important;
	max-width: none;
    margin: 0 auto;
	left: 0px;
	right: 0;
	top: 15px;
	font-size: 21px;
    font-weight: bold;
	overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
	color: var(--color-top-text-surprise-card)!important;
	background: none!important;
}

/* ИКОНКА над Заголовком */

.folders-row .col-xs-12 > a[href*="wpm-category/surprise-card-"] .label:before {
	display: block;
	content: "";
	/* иконка */
	background-image: var(--url-surprise-card);
	background-size: contain;
    background-repeat: no-repeat;
	position: relative;
	top: 0;
	margin: 0 auto;
}

/* ИКОНКА на разных экранах */

@media (min-width: 1400px) {

.folders-row .col-xs-12 > a[href*="wpm-category/surprise-card-"] .label:before {
	width: 90px;
    height: 90px;
	margin-bottom: 20px;
}
}

@media (min-width: 1200px) and (max-width: 1399px) {

.folders-row .col-xs-12 > a[href*="wpm-category/surprise-card-"] .label:before {
	width: 50px;
    height: 50px;
	margin-bottom: 13px;
}
}

@media (min-width: 992px) and (max-width: 1199px) {

.folders-row .col-xs-12 > a[href*="wpm-category/surprise-card-"] .label:before {
	width: 50px;
    height: 50px;
	margin-bottom: 15px;
}
}

@media (min-width: 768px) and (max-width: 991px) {

.folders-row .col-xs-12 > a[href*="wpm-category/surprise-card-"] .label:before {
	width: 50px;
    height: 50px;
	margin-bottom: 13px;
}
}

@media (min-width: 460px) and (max-width: 767px) {

.folders-row .col-xs-12 > a[href*="wpm-category/surprise-card-"] .label:before {
	width: 50px;
    height: 50px;
    margin-bottom: 11px;
}
}

@media (min-width: 320px) and (max-width: 459px) {

.folders-row .col-xs-12 > a[href*="wpm-category/surprise-card-"] .label:before {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
}
}

/* --------------------------- */
/* 4. БЛОК СОДЕРЖАНИЯ КАРТОЧКИ */

/* Общие настройки блока описания */

.folders-row a[href*="wpm-category/surprise-card-"] > .folder-content {
	background: none;
}

/* -------------------- */
/* 5. ОПИСАНИЕ КАРТОЧКИ */

/* Общие настройки описания */

.folders-row a[href*="wpm-category/surprise-card-"] > .folder-content .title {
	color: var(--color-main-text-surprise-card)!important;
	width: 100%;
    min-height: none;
	max-height: none;
    text-align: center;
    position: absolute!important;
    background: none!important;
}

/* Запрещаем скрывать текст */

.folders-row a[href*="wpm-category/surprise-card-"] .folder-content .title {
	text-wrap: inherit;
	white-space: normal;
}

.folders-row a[href*="wpm-category/surprise-card-"] > .folder-content .title .js-shave {
	display: inline-block!important;
    position: relative;
	top: 0px;
	color: var(--color-main-text-surprise-card)!important;
}

.folders-row a[href*="wpm-category/surprise-card-"] > .folder-content .title .js-shave-char {
	display: none;
}

/* Описание на разных экранах */

@media (min-width: 1400px) {

.folders-row a[href*="wpm-category/surprise-card-"] > .folder-content .title {
    height: 125px;
    bottom: 70px!important;
	padding: 12px 25px 0 25px!important;
}
}

@media (min-width: 1200px) and (max-width: 1399px) {
	
.folders-row a[href*="wpm-category/surprise-card-"] > .folder-content .title {
	height: 130px;
    bottom: 65px!important;
	padding: 0px 15px 0 15px!important;
}
}

@media (min-width: 992px) and (max-width: 1199px) {
	
.folders-row a[href*="wpm-category/surprise-card-"] > .folder-content .title {
	height: 92px;
	bottom: 70px!important;
	padding: 4px 15px 0 15px!important;
}
}

@media (min-width: 768px) and (max-width: 991px) {
	
.folders-row a[href*="wpm-category/surprise-card-"] > .folder-content .title {
	height: 113px;
    bottom: 75px!important;
    padding: 3px 15px 0 15px!important;
}
}

@media (min-width: 460px) and (max-width: 767px) {
	
.folders-row a[href*="wpm-category/surprise-card-"] > .folder-content .title {
    height: 110px;
    bottom: 75px!important;
    padding: 2px 15px 0 15px!important;
}
}

@media (min-width: 320px) and (max-width: 459px) {
	
.folders-row a[href*="wpm-category/surprise-card-"] > .folder-content .title {
	height: 115px;
    bottom: 75px!important;
	padding: 5px 15px 0px !important;
}
}

/* ИКОНКА возле описания */

.folders-row .col-xs-12 > a[href*="wpm-category/surprise-card-"] > .folder-content .title:before {
	display: none;
}

/* ------------------- */
/* 6. БЛОК ИНДИКАТОРОВ */

/* Общие настройки блока индикаторов */

.folders-row .col-xs-12 a[href*="wpm-category/surprise-card-"] .folder-content .bottom-icons 
{
    background: none!important;
	padding-left: 10px!important;
    padding-right: 10px!important;
	display: block;
	height: auto;
}

/* Убираем Прогресс, Замок, Комментарии и Просмотры */

.folders-row a[href*="wpm-category/surprise-card-"] .folder-content .bottom-icons .course-progress-wrap,
.folders-row a[href*="wpm-category/surprise-card-"] .folder-content .bottom-icons .status span,
.folders-row a[href*="wpm-category/surprise-card-"] .folder-content .bottom-icons .comments,
.folders-row a[href*="wpm-category/surprise-card-"] .folder-content .bottom-icons .views
{
	display: none;
}

/* ------------------------- */
/* Создаём КНОПКУ из СТАТУСА */

/* Общие настройки кнопки */

.folders-row a[href*="wpm-category/surprise-card-"] .folder-content .bottom-icons .status {
	margin-right: 5px!important;
}

.folders-row a[href*="wpm-category/surprise-card-"] .folder-content .bottom-icons .status::before {
    text-transform: uppercase;
    padding: 15px 15px;
    text-align: center;
    font-size: 17px;
    font-family: "PT Sans", sans-serif;
	border-radius: 10px;
    line-height: normal;
	display: block;
	position: relative;
    bottom: 11px;
	/* плавная анимация */
	-webkit-transition: all var(--speed-all-effects-surprise-card) ease-out;
    -moz-transition: all var(--speed-all-effects-surprise-card) ease-out;
    -o-transition: all var(--speed-all-effects-surprise-card) ease-out;
    transition: all var(--speed-all-effects-surprise-card) ease-out;
}

/* ------------------------------------ */
/* Создаём КНОПКУ для ОТКРЫТОГО доступа */

.folders-row a[href*="wpm-category/surprise-card-"][class*="folder-unlock"] .folder-content .bottom-icons .status::before {
	background: var(--color-bg-button-open-surprise-card);
	color: var(--color-bg-button-open-text-surprise-card);
	content: var(--text-button-open-surprise-card);
}

/* Фон КНОПКИ для ОТКРЫТОГО доступа при наведении */

.folders-row a[href*="wpm-category/surprise-card-"][class*="folder-unlock"] .folder-content .bottom-icons .status:hover::before {
    background: var(--color-bg-button-open-hover-surprise-card);
	color: var(--color-bg-button-open-text-hover-surprise-card);
}

/* ---------------------------------------------------- */
/* Создаём КНОПКУ для ЗАКРЫТОГО и ПОЛУОТКРЫТОГО доступа */

.folders-row a[href*="wpm-category/surprise-card-"][class*="folder-lock"] .folder-content .bottom-icons .status::before,
.folders-row a[href*="wpm-category/surprise-card-"][class*="folder-unlock-alt"] .folder-content .bottom-icons .status::before {
	background: var(--color-bg-button-close-surprise-card);
	color: var(--color-bg-button-close-text-surprise-card);
	content: var(--text-button-close-surprise-card);
}

/* Фон КНОПКИ для ЗАКРЫТОГО и ПОЛУОТКРЫТОГО доступа при наведении */

.folders-row a[href*="wpm-category/surprise-card-"][class*="folder-lock"] .folder-content .bottom-icons .status:hover::before,
.folders-row a[href*="wpm-category/surprise-card-"][class*="folder-unlock-alt"] .folder-content .bottom-icons .status:hover::before {
    background: var(--color-bg-button-close-hover-surprise-card);
	color: var(--color-bg-button-close-text-hover-surprise-card);
}

/* ------------------------------- */
/* Ширина КНОПКИ на разных экранах */

@media (min-width: 1400px) {

.folders-row a[href*="wpm-category/surprise-card-"] .folder-content .bottom-icons .status::before
	{
	width: 398px;
	}
}

@media (min-width: 1200px) and (max-width: 1399px) {

.folders-row a[href*="wpm-category/surprise-card-"] .folder-content .bottom-icons .status::before
	{
	width: 329px;
	}
}

@media (min-width: 992px) and (max-width: 1199px) {

.folders-row a[href*="wpm-category/surprise-card-"] .folder-content .bottom-icons .status::before
	{
	width: 261px;
	}
}

@media (min-width: 768px) and (max-width: 991px) {

.folders-row a[href*="wpm-category/surprise-card-"] .folder-content .bottom-icons .status::before
	{
	width: 314px;
	}
}

@media (min-width: 460px) and (max-width: 767px) {

.folders-row a[href*="wpm-category/surprise-card-"] .folder-content .bottom-icons .status::before
	{
	width: 309px;
	}
}

@media (min-width: 320px) and (max-width: 459px) {

.folders-row a[href*="wpm-category/surprise-card-"] .folder-content .bottom-icons .status::before
	{
	width: 328px;
	}
}

/* ---------- */
/* 7. ОБЛОЖКА */

/* Убираем фоновую картинку */

.folders-row a[href*="wpm-category/surprise-card-"] .folder-front,
.folders-row a[href*="wpm-category/surprise-card-"] .folder-sub-front

{
	display: none!important;
}

/* ----------- */
/* 8. АНИМАЦИИ */

/* Убираем увеличение и цветокоррекцию */

.folders-row a[href*="wpm-category/surprise-card-"]:hover .folder-sub-front pattern image,
.folders-row a[href*="wpm-category/surprise-card-"]:hover .folder-front pattern image {
	filter: none;
	-webkit-filter: none;
}

/* АНИМАЦИЯ КНОПКИ */

/* ------------------------------- */
/* ПРЕВРАЩАЕМ КАРТОЧКУ В СЕКРЕТНУЮ */
/* ------------------------------- */

/* Пока не работает только в Firefox, так как не поддерживает стиль has() */

/* Ширина карточки на больших и средних экранах */

@media (min-width: 1400px) {

.col-lg-3:has(a[href*="wpm-category/surprise-card-"][class*="folder-wrap"]) {
	width: 457px!important;
}
}

@media (min-width: 1200px) and (max-width: 1399px) {

.col-lg-3:has(a[href*="wpm-category/surprise-card-"][class*="folder-wrap"]) {
    width: 390px!important;
}
}

@media (min-width: 992px) and (max-width: 1199px) {

.col-lg-3:has(a[href*="wpm-category/surprise-card-"][class*="folder-wrap"]) {
	width: 323px!important;
}
}

@media (min-width: 768px) and (max-width: 991px) {

.col-lg-3:has(a[href*="wpm-category/surprise-card-"][class*="folder-wrap"]) {
    width: 375px!important;
}
}

/* ПРЯЧЕМ СЕКРЕТНУЮ карточку сбоку кабинета */

/* Общие настройки */

@media (min-width: 768px) {

.col-lg-3:has(a[href*="wpm-category/surprise-card-"][class*="folder-wrap"]) {
	position: fixed;
	z-index: 502!important;
	transition: all .4s ease;
	-moz-transition: all .4s ease;
	-webkit-transition: all .4s ease;
	-ms-transition: all .4s ease;
}

.col-lg-3:has(a[href*="wpm-category/surprise-card-"][class*="folder-wrap"]):hover {
	transition: all .4s ease;
	-moz-transition: all .4s ease;
	-webkit-transition: all .4s ease;
	-ms-transition: all .4s ease;
}

.folders-row a[href*="wpm-category/surprise-card-"][class*="folder-wrap"]:before {
	color: var(--color-top-icon-surprise-card);
	/* Иконка для хвостика */
	content: "";
	background-image: var(--url-icon-surprise-card);
	background-size: contain;
    background-repeat: no-repeat;
    display: block;
	font-family: "Font Awesome 6 Free";
    font-family: 'icomoon';
	font-size: 100px;
	width: var(--icon-size-surprise-card);
    height: var(--icon-size-surprise-card);
	line-height: 1.14;
	position: relative;
	text-align: center;
	z-index: 3;
	transition: all .4s ease;
	-moz-transition: all .4s ease;
	-webkit-transition: all .4s ease;
	-ms-transition: all .4s ease;
}
}

/* Положение Карточки в скрытом состоянии на больших экранах */

@media (min-width: 1400px) {

.col-lg-3:has(a[href*="wpm-category/surprise-card-"][class*="folder-wrap"]) {
	left: var(--position-etting-design-surprise-card);
	top: calc(80px + var(--card-position-surprise-card));
}

/* Положение Карточки при наведении на больших экранах */

.col-lg-3:has(a[href*="wpm-category/surprise-card-"][class*="folder-wrap"]):hover {
	left: -15px;
	top: calc(80px + var(--card-position-surprise-card));
}

/* Положение ИКОНКИ - ХВОСТИКА на больших экранах */

.folders-row a[href*="wpm-category/surprise-card-"][class*="folder-wrap"]:before {
    left: 427px;
	top: 54px;
}
}

/* Убираем ИКОНКУ - ХВОСТИК при наведении */

.folders-row a[href*="wpm-category/surprise-card-"][class*="folder-wrap"]:hover::before {
	opacity: 0;
	transition: all .4s ease-in-out;
}

/* Положение Карточки и Иконки-Хвостик на остальных экранах */

@media (min-width: 1200px) and (max-width: 1399px) {

.col-lg-3:has(a[href*="wpm-category/surprise-card-"][class*="folder-wrap"]) {
    left: -390px;
	top: calc(80px + var(--card-position-surprise-card));
}

.col-lg-3:has(a[href*="wpm-category/surprise-card-"][class*="folder-wrap"]):hover {
	left: -15px;
	top: calc(80px + var(--card-position-surprise-card));
}

.folders-row a[href*="wpm-category/surprise-card-"][class*="folder-wrap"]:before {
	left: 360px;
    top: 45px;
}
}

@media (min-width: 992px) and (max-width: 1199px) {

.col-lg-3:has(a[href*="wpm-category/surprise-card-"][class*="folder-wrap"]) {
	left: -324px;
	top: calc(80px + var(--card-position-surprise-card));
}

.col-lg-3:has(a[href*="wpm-category/surprise-card-"][class*="folder-wrap"]):hover {
	left: -15px;
	top: calc(80px + var(--card-position-surprise-card));
}

.folders-row a[href*="wpm-category/surprise-card-"][class*="folder-wrap"]:before {
	left: 293px;
    top: 45px;
}
}

@media (min-width: 768px) and (max-width: 991px) {

.col-lg-3:has(a[href*="wpm-category/surprise-card-"][class*="folder-wrap"]) {
    left: -375px;
	top: calc(80px + var(--card-position-surprise-card));
}

.col-lg-3:has(a[href*="wpm-category/surprise-card-"][class*="folder-wrap"]):hover {
	left: -15px;
	top: calc(80px + var(--card-position-surprise-card));
}

.folders-row a[href*="wpm-category/surprise-card-"][class*="folder-wrap"]:before {
    left: 345px;
    top: 35px;
}
}

/* Затемнение страницы при наведении на карточку */

/* a[href*="wpm-category/surprise-card-"]:hover .folder-front {
	box-shadow: 0 0 0 100vw rgb(0 0 0 / 60%);
	transition: all 0.18s!important;
}

a[href*="wpm-category/surprise-card-"] .folder-front {
	transition: all 0.18s!important;
} */