/*
Theme Name: Nunti Child
Theme URI: https://doskalensk.ru/
Description: Дочерняя тема ListingHive для доски объявлений «Нунти» (doskalensk.ru) на HivePress.
Author: Nunti
Template: listinghive
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: listinghive-child
*/

/* Пользовательские стили «Нунти» добавляйте ниже. */

/* Блок «Закрепить в топе» на странице объявления. */
.nunti-topup {
	margin-top: 1rem;
}

.nunti-topup--active {
	padding: 0.75rem 1rem;
	border-radius: 4px;
	background-color: rgba(0, 0, 0, 0.04);
	font-size: 0.875rem;
}

.nunti-topup__toggle {
	display: block;
	width: 100%;
	text-align: center;
	cursor: pointer;
	list-style: none;
}

.nunti-topup__toggle::-webkit-details-marker {
	display: none;
}

.nunti-topup__list {
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 4px;
}

.nunti-topup__item + .nunti-topup__item {
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.nunti-topup__item a {
	display: block;
	padding: 0.625rem 1rem;
	text-decoration: none;
}

.nunti-topup__item a:hover {
	background-color: rgba(0, 0, 0, 0.04);
}

/* Компактный вид блока закрепления в строке «Мои объявления». */
.nunti-topup--row {
	margin-top: 0.5rem;
	font-size: 0.875rem;
}

.nunti-topup--row .nunti-topup__toggle {
	padding: 0.375rem 0.75rem;
}

/* Отладка блока закрепления (константа NUNTI_TOPUP_DEBUG). */
.nunti-topup-debug {
	padding: 0.5rem 0.75rem;
	border: 1px dashed #b32d2e;
	border-radius: 4px;
	color: #b32d2e;
	font-size: 0.8125rem;
}

/* Страховка: скрыть «Изменить детали» на странице выбора пакета. */
.hp-form__action--listing-details-change {
	display: none;
}

/* «Показать номер» и раскрытый номер: вид обычного текста атрибута. */
.nunti-phone-reveal {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	text-align: inherit;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	-webkit-appearance: none;
	appearance: none;
}

.nunti-phone-reveal:hover,
.nunti-phone-reveal:focus {
	color: inherit;
	text-decoration: none;
	background: none;
}

.nunti-phone-reveal[disabled] {
	opacity: 0.6;
	cursor: default;
}

.nunti-phone-number {
	font-weight: 600;
	white-space: nowrap;
}

/* Согласие с правилами в форме подачи — ссылки в подписи чекбокса. */
.hp-field--checkbox a {
	color: #15cd72;
	text-decoration: underline;
}

/* Баннер о cookie. Скрыт по умолчанию, показывается классом is-visible. */
.nunti-cookie {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0.875rem 1.25rem;
	background: #ffffff;
	color: #333333;
	box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.12);
	border-radius: 8px 8px 0 0;
	transform: translateY(110%);
	visibility: hidden;
	transition: transform 0.3s ease;
}

.nunti-cookie.is-visible {
	transform: translateY(0);
	visibility: visible;
}

.nunti-cookie__text {
	flex: 1 1 auto;
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.45;
}

.nunti-cookie__text a {
	color: #15cd72;
	text-decoration: underline;
}

.nunti-cookie__accept {
	flex: 0 0 auto;
	padding: 0.5rem 1.5rem;
	border: 0;
	border-radius: 4px;
	background: #ffc107;
	color: #333333;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
}

.nunti-cookie__accept:hover {
	background: #e0a800;
}

@media (max-width: 600px) {
	.nunti-cookie {
		flex-direction: column;
		gap: 0.625rem;
		padding: 1rem;
		text-align: center;
		border-radius: 0;
	}

	.nunti-cookie__accept {
		width: 100%;
	}
}
