/* Saved Layouts: the editors' "Save as Bestseller" bar and its dialog (js/card-layouts.js) */
.layout-bar {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 10000;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	max-width: calc(100vw - 32px);
	padding: 10px 12px;
	border: 1px solid #FAD60E;
	border-radius: 10px;
	background: #191919;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
	color: #fff;
	font-size: 14px;
}
.layout-bar__title {
	color: #FAD60E;
	font-weight: 600;
}
.layout-bar button,
.layout-dialog .layout-dialog__buttons button {
	padding: 8px 14px;
	border: 1px solid #4F4F4F;
	border-radius: 40px;
	background: transparent;
	color: #fff;
	font: inherit;
	cursor: pointer;
}
.layout-bar .layout-bar__new,
.layout-dialog .layout-dialog__buttons .layout-dialog__save {
	border-color: #FAD60E;
	background: #FAD60E;
	color: #141414;
}
.layout-bar__list {
	color: #ccc;
	text-decoration: underline;
}
.layout-dialog {
	position: fixed;
	inset: 0;
	z-index: 10001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.7);
}
.layout-dialog[hidden] {
	display: none;
}
.layout-dialog__box {
	width: 100%;
	max-width: 460px;
	max-height: 100%;
	overflow-y: auto;
	padding: 24px;
	border-radius: 12px;
	background: #191919;
	color: #fff;
}
.layout-dialog__heading {
	margin: 0 0 16px;
	font-size: 20px;
}
.layout-dialog__label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
	color: #ccc;
	font-size: 13px;
}
.layout-dialog__name {
	padding: 10px 12px;
	border: 1px solid #4F4F4F;
	border-radius: 6px;
	background: #262626;
	color: #fff;
	font: inherit;
	font-size: 15px;
}
.layout-dialog__cats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 6px 12px;
	margin: 0 0 16px;
	padding: 0;
	border: 0;
}
.layout-dialog__cats legend {
	margin-bottom: 8px;
	color: #ccc;
	font-size: 13px;
}
.layout-dialog__cat {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	cursor: pointer;
}
.layout-dialog__note {
	margin: 0 0 12px;
	color: #999;
	font-size: 13px;
}
.layout-dialog__message {
	min-height: 1em;
	margin: 0 0 12px;
	color: #FAD60E;
	font-size: 14px;
}
.layout-dialog__message a {
	color: #FAD60E;
}
.layout-dialog__buttons {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}
.layout-dialog .layout-dialog__buttons .layout-dialog__save:disabled {
	opacity: 0.6;
	cursor: default;
}
