/**

  BASHō 4

  2024.08.14 Update
  2020.12.26 Update
  2019.08.29 Update

 */
.basho-editor {
	border: 1px solid #ccc;
	background-color: #fff;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.basho-toolbar {
	display: flex;
	flex-flow: row wrap;
	align-items: center;
}

.icon_S {
	margin: 0;
	padding: 6px;
	font-size: 12px;
}

.icon_M {
	margin: 0;
	font-size: 16px;
	min-width: 27px;
	min-height: 27px;
}

.basho-tool-items {
	border: none;
	background-color: rgba(190, 190, 190, 0.8);
	color: #fff;
	text-align: center;
	margin: 0;
	font-size: 12px;
}

.basho-tool-items:hover:not([disabled]) {
	box-shadow: none;
	background-color: #6b5e5e;
	cursor: pointer;
}

.basho-tool-items:disabled {
	background-color: #f0f0f0;
}

.basho-editor-body {
	overflow-y: auto;
	line-height: 1.5;
}

.basho-editor-body img {
	max-width: 100%;
	border: 4px solid #ffffff;
}

.basho-editor-body img:hover {
	/*	border: 4px solid #4b89ff; */
}

/* ソースコード編集ボックス */
.basho-editor-body-alt {
	width: 100%;
	max-width: 100%;
	padding: 1rem;
	overflow-y: auto;
	line-height: 1.5;
	font-size: 14px;
	display: none;
	border: none;
}

.basho-color-picker {
	clear: both;
	z-index: 1000;
	position: absolute;
	width: 128px;
	height: 128px;
	text-align: center;
	background-color: white;
}

.basho-color-picker button {
	width: 16px;
	height: 16px;
	list-style-type: none;
	float: left;
	margin: 0;
	padding: 0;
	border: 0;
}

.basho-color-items:hover {
	border: 2px solid #fff;
}

.basho-modal-full {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	z-index: 100;
}

/* メディアライブラリ */

.basho-ml-toolbar {
	display: flex;
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: #ccc;
	flex-direction: row;
	justify-content: space-between;
}

.basho-ml-list {
	display: flex;
	flex-wrap: wrap;
}

.basho-ml-envelope {
	width: 80px;
	height: 80px;
	border: 1px solid #ccc;
	display: inline-flex;
	vertical-align: middle;
	background-color: beige;
	justify-content: center;
	cursor: pointer;
}

.basho-ml-envelope:hover {
	border: 4px solid #4b89ff;
}

.basho-ml-envelope img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.basho-ml-toolbar-item:hover {
	color: #fff;
	background-color: #6b5e5e;
}

.basho-ml-toolbar-item {
	font-family: system-ui, 'Apple Color Emoji', "Segoe UI", Meiryo, -apple-system, BlinkMacSystemFont, sans-serif;
	border: none;
	width: 80px;
	height: 40px;
	text-align: center;
	font-size: 10px;
	color: #fff;
	background-color: #ccc;
	display: flex;
	justify-content: center;
	align-items: center;
	line-height: 1.5;
	user-select: none;
	cursor: pointer;
	float: left;
}

#basho-ml-file-block {
	width: 100%;
}

.basho-ml-load-more {
	display: block;
	width: 100%;
	padding: 8px;
	margin-top: 8px;
	background-color: #f0f0f0;
	border: 1px solid #ccc;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	color: #333;
}

.basho-ml-load-more:hover {
	background-color: #e0e0e0;
}

/* 画像アップロード中プレースホルダ */
.basho-uploading {
	display: inline-block;
	width: 36px;
	height: 36px;
	border: 3px solid #e0e0e0;
	border-top-color: #888;
	border-radius: 50%;
	animation: basho-spin 0.8s linear infinite;
	vertical-align: middle;
	margin: 4px;
}

@keyframes basho-spin {
	to { transform: rotate(360deg); }
}
