/**
 * Вход и профиль (013).
 *
 * Внутри `.content` сайт инлайново задаёт `ul, ol { display: inline-block !important }` —
 * у наших списков `display` объявлен явно с `!important`.
 */

.ogacc-page,
.ogacc-login {
	--ogacc-text: #2c3140;
	--ogacc-muted: #6b7568;
	--ogacc-line: #e0e4da;
	--ogacc-green: #3f6b2c;
	--ogacc-soft: #eaf5e4;
	--ogacc-red: #a8321f;
	--ogacc-red-soft: #f7e0da;
}

.ogacc-lead {
	margin: 0 0 16px;
}

.ogacc-small {
	font-size: 13px;
	color: var(--ogacc-muted);
	margin: 12px 0 0;
}

.ogacc-providers {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 360px;
}

.ogacc-btn,
.content a.ogacc-btn {
	display: inline-block;
	box-sizing: border-box;
	padding: 11px 18px;
	border: 1px solid var(--ogacc-line);
	border-radius: 8px;
	background: #fff;
	color: var(--ogacc-text);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.ogacc-btn:disabled {
	opacity: .6;
	cursor: default;
}

.ogacc-btn--main,
.content a.ogacc-btn--main {
	background: var(--ogacc-green);
	border-color: var(--ogacc-green);
	color: #fff;
}

.ogacc-btn--vk,
.content a.ogacc-btn--vk {
	background: #0077ff;
	border-color: #0077ff;
	color: #fff;
}

.ogacc-btn--yandex,
.content a.ogacc-btn--yandex {
	background: #fc3f1d;
	border-color: #fc3f1d;
	color: #fff;
}

.ogacc-btn--danger {
	background: var(--ogacc-red);
	border-color: var(--ogacc-red);
	color: #fff;
}

.ogacc-linkbtn {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.ogacc-or {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 360px;
	margin: 20px 0 12px;
	color: var(--ogacc-muted);
	font-size: 13px;
}

.ogacc-or::before,
.ogacc-or::after {
	content: "";
	flex: 1;
	border-top: 1px solid var(--ogacc-line);
}

.ogacc-label {
	display: block;
	margin: 14px 0 6px;
	font-weight: 600;
}

.ogacc-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-width: 460px;
}

.ogacc-row input {
	flex: 1 1 200px;
	min-width: 0;
}

.ogacc-page input[type=text],
.ogacc-page input[type=email],
.ogacc-page select,
.ogacc-login input[type=text],
.ogacc-login input[type=email] {
	box-sizing: border-box;
	max-width: 460px;
	width: 100%;
	height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--ogacc-line);
	border-radius: 8px;
	font: inherit;
	color: var(--ogacc-text);
	background: #fff;
}

.ogacc-row input[type=text],
.ogacc-row input[type=email] {
	width: auto;
}

/* Поле-ловушка для ботов: вне экрана, а не display:none — часть ботов такие пропускает. */
.ogacc-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}

.ogacc-check {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 10px 0;
}

.ogacc-check input {
	margin-top: 4px;
	flex: none;
}

.ogacc-fieldset {
	margin: 18px 0 8px;
	padding: 0;
	border: 0;
}

.ogacc-fieldset legend {
	font-weight: 600;
	padding: 0;
}

.ogacc-form {
	margin: 0 0 24px;
}

.ogacc-form .ogacc-btn {
	margin-top: 14px;
}

.ogacc-error {
	margin: 8px 0 0;
	color: var(--ogacc-red);
}

.ogacc-notice {
	margin: 0 0 18px;
	padding: 12px 14px;
	border-radius: 8px;
	background: var(--ogacc-soft);
}

.ogacc-notice--error {
	background: var(--ogacc-red-soft);
}

.ogacc-person {
	display: flex;
	gap: 14px;
	align-items: center;
	margin: 0 0 24px;
}

.ogacc-person__name {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
}

.ogacc-person .ogacc-small {
	margin: 4px 0 0;
}

.ogacc-avatar {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--ogacc-soft);
	color: var(--ogacc-green);
	font-weight: 700;
	font-size: 20px;
}

.content ul.ogacc-methods {
	display: block !important;
	margin: 0 0 24px;
	padding-left: 0;
}

/* Маркер — кружок темы (.content ul>li:before), свой не рисуем, иначе два. */
.content ul.ogacc-methods li {
	display: list-item !important;
	list-style: none;
}

.ogacc-ok {
	color: var(--ogacc-green);
	font-weight: 600;
}

.ogacc-logout {
	margin: 24px 0;
}

.ogacc-delete {
	margin: 32px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--ogacc-line);
}

.ogacc-delete summary {
	cursor: pointer;
	color: var(--ogacc-red);
}

/* Окно входа поверх страницы. */
.ogacc-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(20, 24, 30, .55);
}

.ogacc-modal__box {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 440px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 24px 22px 20px;
	border-radius: 12px;
	background: #fff;
	color: var(--ogacc-text);
	font-size: 15px;
	line-height: 1.45;
}

.ogacc-modal__title {
	margin: 0 0 10px;
	font-size: 20px;
	font-weight: 700;
}

.ogacc-modal__close {
	position: absolute;
	top: 8px;
	right: 10px;
	padding: 4px 8px;
	border: 0;
	background: none;
	font-size: 26px;
	line-height: 1;
	color: var(--ogacc-muted);
	cursor: pointer;
}

.ogacc-modal .ogacc-providers,
.ogacc-modal .ogacc-or {
	max-width: none;
}

/* Хлебные крошки темы: последний <span class="last"> тема заполняет из
   tw_wp_title(), а на виртуальной странице он пустой — прячем его и разделитель.
   Своё последнее звено плагин добавляет фильтром `tw_breadcrumbs`. */
.breadcrumbs .last:empty {
	display: none;
}

.breadcrumbs .separator:has(+ .last:empty) {
	display: none;
}
