/* タグリストクリッカブル */
.lwsf-tag-list-clickable {
	margin: 10px 0;
	line-height: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	position: relative;
}

.lwsf-tag-list-clickable .lwsf-tag-attributes {
	position: absolute;
	left: 0;
	right: 0;
	width: 100%;
	max-width: 100%;
	margin-top: 5px;
	z-index: 10;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.lwsf-tag-wrapper {
	margin-bottom: 15px;
	width: 100%;
}

.lwsf-tag-list-clickable .lwsf-tag-wrapper {
	width: auto;
	margin-bottom: 5px;
}

.lwsf-tag-clickable {
	cursor: pointer;
	border: 1px solid #ddd;
	padding: 2px 4px;
	border-radius: 3px;
}

.lwsf-tag-clickable:hover {
	background-color: #f9f9f9;
}

/* タグ属性表示関連 */
.lwsf-tag-attributes {
	padding: 8px;
	background-color: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 3px;
	margin-top: 5px;
	width: 100%;
	box-sizing: border-box;
}

.lwsf-attribute {
	display: inline-block;
	margin: 2px 4px;
	padding: 2px 4px;
	background-color: #e9e9e9;
	border-radius: 3px;
	font-size: 0.9em;
	font-family: monospace;
}

/* ショートコード情報 */
.shortcode-info {
	margin-top: 5px;
	margin-right: 5px;
	padding: 5px;
	background: #f0f0f0;
	border-radius: 3px;
	font-family: monospace;
	display: inline-block;
}

.shortcode-copy {
	cursor: pointer;
	padding: 2px 5px;
	background: #0073aa;
	color: white;
	border-radius: 3px;
	margin-left: 5px;
	font-size: 12px;
	font-family: sans-serif;
}

.shortcode-check {
	margin-top: 5px;
}

.shortcode-check.ok {
	color: green;
	font-weight: bold;
	display: inline-block;
}

.shortcode-check.miss, .lwsf-required {
	color: red;
	font-weight: bold;
}

.shortcode-warning {
	color: red;
	display: inline-block;
	margin-top: 5px;
	font-weight: normal;
}

/* モーダルウィンドウのスタイル */
.lwsf-modal {
	display: none;
	position: fixed;
	z-index: 100000; /* WordPress管理画面の他要素よりも高い値 */
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.4);
}

.lwsf-modal-content {
	background-color: #fefefe;
	margin: 5% auto;
	padding: 20px;
	border: 1px solid #888;
	border-radius: 4px;
	width: 80%;
	max-width: 800px;
	max-height: 80vh;
	overflow-y: auto;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
	position: relative;
	z-index: 100001; /* モーダルの背景よりも高い値 */
}

.lwsf-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #ddd;
	padding-bottom: 10px;
	margin-bottom: 20px;
	position: sticky;
	top: 0;
	background-color: #fefefe;
	z-index: 100002; /* コンテンツの他の部分よりも高い値 */
}

.lwsf-modal-title {
	font-size: 1.4em !important;
	font-weight: bold !important;
	margin: 0;
}

.lwsf-close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	z-index: 100003; /* ヘッダーよりも高い値 */
}

.lwsf-close:hover,
.lwsf-close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}

.lwsf-tag-list {
	margin-bottom: 20px;
	padding-top: 10px;
}

.lwsf-tag-list h3 {
	margin-top: 15px;
	margin-bottom: 10px;
	padding-bottom: 5px;
}

.lwsf-tag-item {
	margin-bottom: 10px;
	padding: 5px;
	background-color: #f9f9f9;
	border-radius: 3px;
}

.lwsf-tag-name {
	font-weight: bold;
	font-family: monospace;
}

.lwsf-tag-attributes {
	margin-top: 5px;
}

.lwsf-attribute {
	display: inline-block;
	margin-right: 15px;
	margin-bottom: 5px;
	font-family: monospace;
	background: #f0f0f0;
	padding: 2px 5px;
	border-radius: 3px;
}

/* ヘルプリンク */
.lwsf-help-links {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 10px;
	margin-top: 5px;
}

.lwsf-help-link {
	display: block;
	padding: 5px 10px;
	background-color: #f0f0f0;
	border-radius: 3px;
	text-decoration: none;
	color: #0073aa;
	cursor: pointer;
	font-size: 13px;
}

.lwsf-help-link:hover {
	background-color: #e0e0e0;
}

