/*
 * Copyright (c) 2010 John Reese
 * Copyright (c) 2017 Damien Regad
 * Licensed under the MIT license
 */

.announcement {
	position: relative;
	box-sizing: border-box;
	margin: 12px;
	max-width: calc(100% - 24px);
	background: #FFF3B0;
	border: 2px solid #E6C200;
	border-radius: 10px;
	padding: 24px 56px 24px 30px;
	font-size: 18px;
	line-height: 1.55;
	color: #4a3f00;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
	overflow-wrap: break-word;
	word-break: break-word;
}

.announcement-title strong {
	display: inline-block;
	margin-bottom: 8px;
	font-size: 24px;
	line-height: 1.2;
}

.announcement-msg {
	font-size: 18px;
}

.announcement-msg p {
	margin: 0;
}

/* Small "disappears in X s" countdown at the bottom (non-dismissable + TTL) */
.announcement-countdown {
	margin-top: 10px;
	text-align: left;
	font-size: 11px;
	font-style: italic;
	color: #8a6d00;
	opacity: .85;
}

/* Dismiss cross (X) at the top-right corner */
.announcement-dismiss {
	position: absolute;
	top: 8px;
	right: 12px;
	width: 34px;
	height: 34px;
	line-height: 32px;
	text-align: center;
	font-size: 30px;
	font-weight: bold;
	color: #8a6d00;
	cursor: pointer;
	border-radius: 50%;
	user-select: none;
	transition: background .15s ease, color .15s ease;
}

.announcement-dismiss:hover {
	background: rgba(0, 0, 0, .12);
	color: #000;
}

.warning-last-context {
	margin-top: 0.5em;
	display: none;
}

input.ttl {
	width: 5em;
}

/* Announcement list: keep cells narrow so the table never overflows sideways */
.announce-cell-title,
.announce-cell-msg {
	overflow-wrap: break-word;
	word-break: break-word;
	white-space: normal;
}
.announce-cell-title {
	font-weight: 600;
}
.announce-cell-msg {
	max-width: 480px;
}
.announce-cell-msg p {
	margin: 0;
}

/* Pagination bar under the list */
.announce-pagination {
	text-align: center;
	margin: 10px 0;
}
.announce-pagination .announce-pagination-info {
	display: block;
	color: #6b7a8d;
	font-size: 12px;
	margin-bottom: 4px;
}
