/*
 * Временное уведомление о сбоях: плашка #inotice над шапкой и окно #inotice-modal.
 * Разметка — template/ivanko/notice.twig, поведение — js/ivanko-notice.js.
 * blue.css и responsive.css темы грузятся ПОСЛЕ addStyle, поэтому все правила висят на id
 * (#inotice, #inotice-modal): только id-специфичность надёжно перебивает тему (см. ivanko-layout.css).
 * blue.css прячет все svg (body svg { display: none }) — иконок-svg здесь нет, значок «!» сделан текстом.
 */
#inotice, #inotice-modal {
	font-family: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.4;
	color: #15181C;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}
#inotice *, #inotice *::before, #inotice *::after,
#inotice-modal *, #inotice-modal *::before, #inotice-modal *::after { box-sizing: border-box; }
#inotice [hidden], #inotice-modal[hidden], #inotice-modal [hidden] { display: none !important; }
#inotice button, #inotice-modal button { font-family: inherit; font-size: inherit; line-height: inherit; cursor: pointer; margin: 0; text-transform: none; letter-spacing: normal; }
#inotice a, #inotice-modal a { text-decoration: none; background: none; }
#inotice a:hover, #inotice-modal a:hover { text-decoration: none; }
#inotice p, #inotice-modal p, #inotice-modal ol, #inotice-modal h2 { margin: 0; padding: 0; }
#inotice button:focus-visible, #inotice a:focus-visible, #inotice-modal button:focus-visible, #inotice-modal a:focus-visible {
	outline: 3px solid rgba(27, 111, 179, .45); outline-offset: 2px;
}

/* Значок-предупреждение */
#inotice .inotice-mark, #inotice-modal .inotice-mark {
	display: flex; flex: none; align-items: center; justify-content: center;
	width: 24px; height: 24px; border-radius: 50%;
	background: #F5C04A; color: #15181C; font-size: 15px; font-weight: 700; line-height: 1;
}
#inotice-modal .inotice-mark-big { width: 44px; height: 44px; font-size: 26px; margin-bottom: 14px; }

/* Кнопки */
#inotice .inotice-btn, #inotice-modal .inotice-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 36px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent;
	font-size: 14px; font-weight: 600; white-space: nowrap; text-align: center;
}
#inotice .inotice-btn-main, #inotice-modal .inotice-btn-main { background: #1B6FB3; border-color: #1B6FB3; color: #fff; }
#inotice .inotice-btn-main:hover, #inotice-modal .inotice-btn-main:hover { background: #124F82; border-color: #124F82; color: #fff; }
#inotice .inotice-btn-line, #inotice-modal .inotice-btn-line { background: #fff; border-color: #1B6FB3; color: #1B6FB3; }
#inotice .inotice-btn-line:hover, #inotice-modal .inotice-btn-line:hover { background: #EEF4FA; color: #124F82; }

/* Плашка */
#inotice { position: relative; background: #FFF4D6; border-bottom: 1px solid #F5C04A; }
#inotice .inotice-in {
	display: flex; align-items: center; gap: 12px;
	max-width: 1440px; margin: 0 auto; padding: 10px 64px;
}
#inotice .inotice-text { flex: 1; min-width: 0; font-size: 14px; color: #15181C; }
#inotice .inotice-btns { display: flex; flex: none; align-items: center; gap: 8px; }

/* Окно */
#inotice-modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
#inotice-modal .inotice-back { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(21, 24, 28, .55); }
#inotice-modal .inotice-box {
	position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto;
	background: #fff; border-radius: 14px; padding: 28px; outline: none;
	box-shadow: 0 20px 60px rgba(21, 24, 28, .35);
}
#inotice-modal .inotice-x {
	position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; padding: 0;
	border: 0; border-radius: 8px; background: none; color: #454B53; font-size: 28px; line-height: 1;
}
#inotice-modal .inotice-x:hover { background: #F3F5F7; color: #15181C; }
#inotice-modal .inotice-title { font-size: 22px; font-weight: 700; line-height: 1.25; color: #15181C; margin-bottom: 12px; padding-right: 32px; }
#inotice-modal .inotice-p { font-size: 15px; color: #2E343B; margin-bottom: 12px; }
#inotice-modal .inotice-p-strong { font-weight: 600; color: #15181C; margin-bottom: 6px; }
#inotice-modal .inotice-list { padding-left: 22px; margin-bottom: 14px; color: #2E343B; }
#inotice-modal .inotice-list li { margin: 0 0 4px; padding: 0; font-size: 15px; }
#inotice-modal .inotice-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; }
#inotice-modal .inotice-actions .inotice-btn { min-height: 42px; font-size: 15px; }

html.inotice-lock { overflow: hidden; }

@media (max-width: 767px) {
	#inotice .inotice-in { flex-wrap: wrap; padding: 10px 16px; gap: 8px 10px; }
	#inotice .inotice-text { flex: 1 1 calc(100% - 40px); font-size: 13px; }
	#inotice .inotice-btns { flex: 1 1 100%; flex-wrap: wrap; }
	#inotice .inotice-btn { white-space: normal; }
	#inotice-modal .inotice-box { padding: 22px 18px; }
	#inotice-modal .inotice-title { font-size: 20px; }
	#inotice-modal .inotice-actions { flex-direction: column-reverse; }
	#inotice-modal .inotice-actions .inotice-btn { width: 100%; }
}
