.tl-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.tl-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.tl-modal__box {
	position: relative;
	background: #fff;
	border: 1px solid #c3c4c7;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.13);
	border-radius: 4px;
	max-width: 900px;
	width: 100%;
	max-height: calc(100vh - 80px);
	display: flex;
	flex-direction: column;
}

.tl-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #c3c4c7;
	flex-shrink: 0;
}

.tl-modal__title {
	margin: 0;
	padding: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
}

.tl-modal__header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tl-modal__close {
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #50575e;
	cursor: pointer;
	padding: 0 4px;
}

.tl-modal__close:hover {
	color: #1d2327;
}

.tl-modal__body {
	padding: 20px;
	overflow: auto;
	flex: 1;
	min-height: 0;
}

.tl-modal__body .wp-list-table {
	margin: 0;
}

body.tl-logs-modal-open {
	overflow: hidden;
}

/* Empty placeholder must not pick up WP .notice paint (or other plugins un-hiding .notice). */
#tl-notice-top[hidden] {
	display: none !important;
}

#tl-notice-top:not([hidden]) {
	margin: 0 0 15px;
}

#tl-notice.tl-notice-box--success {
	border-left-color: #00a32a;
	background: #edfaef;
}

#tl-notice.tl-notice-box--error {
	border-left-color: #d63638;
	background: #fcf0f1;
}

#tl-notice.tl-notice-box--info {
	border-left-color: #2271b1;
	background: #f0f6fc;
}

.tl-user-search-results {
	position: absolute;
	z-index: 100;
	background: #fff;
	border: 1px solid #c3c4c7;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	max-height: 200px;
	overflow-y: auto;
	min-width: 280px;
	margin-top: 2px;
}

.tl-user-search-results button {
	display: block;
	width: 100%;
	text-align: left;
	padding: 8px 12px;
	border: none;
	background: transparent;
	cursor: pointer;
}

.tl-user-search-results button:hover,
.tl-user-search-results button:focus {
	background: #f0f6fc;
}

#tl-list-form .column-actions {
	min-width: 260px;
	vertical-align: middle !important;
	text-align: center;
}

#tl-list-form .tl-actions {
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	display: flex;
	gap: 6px;
}

#tl-list-form .tl-actions .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 6px;
	min-width: 28px;
	min-height: 26px;
}

#tl-list-form .tl-action-icon {
	font-size: 14px;
	width: 14px;
	height: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

#tl-list-form .tl-action-icon--blue {
	color: #2271b1;
}

#tl-list-form .tl-action-icon--amber {
	color: #dba617;
}

#tl-list-form .tl-action-icon--green {
	color: #00a32a;
}

#tl-list-form .tl-action-icon--gray {
	color: #50575e;
}

#tl-list-form .tl-action-icon--red {
	color: #d63638;
}

#tl-save-login-btn.is-busy {
	pointer-events: none;
	opacity: 0.85;
}

#tl-save-login-btn.is-busy .spinner {
	float: none;
	margin: 0 4px 0 0;
	vertical-align: middle;
}
