/* Republish Button */
#cc-post-republisher-modal-button-open {
	display: block;
	text-decoration: none;
	width: auto;
	cursor: pointer;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 5px;
}

#cc-post-republisher-modal-button-open img {
	vertical-align: middle;
	margin-right: 1rem;
	-webkit-box-shadow: none;
	box-shadow: none;
	border-radius: 0;
	border: none;
	display: inline;
}

/* Republish Button - Block Editor */
#cc-post-republisher-modal-button-open.editable-button {
	border: 2px dashed #ccc;
	cursor: text;
	background-color: transparent;
	color: #095d86;
}

#cc-post-republisher-modal-button-open.editable-button:hover,
#cc-post-republisher-modal-button-open.editable-button:focus,
#cc-post-republisher-modal-button-open.editable-button:active {
	border-color: #095d86;
}

/* Close Button */
#cc-post-republisher-modal-button-close {
	position: relative;
	float: right;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	font-size: 2rem;
	margin-top: -0.6rem;
}

#cc-post-republisher-modal-button-close:hover,
#cc-post-republisher-modal-button-close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}

/* Modal */
#cc-post-republisher-modal-container {
	box-sizing: border-box;
	display: none;
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	overflow-y: scroll;
}

#cc-post-republisher-modal {
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid #ccc;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	padding: 4em 2em;
	overflow-y: auto;
	height: 100%;
}

/* License Details */
#cc-post-republisher-license {
	line-height: 1;
	font-weight: 700;
	display: block;
	margin-bottom: 2rem;
	text-decoration: none;
}

#cc-post-republisher-license img {
	vertical-align: middle;
	margin-right: 1rem;
}

#cc-post-republisher-post-content {
	padding: 0.5rem;
}

#cc-post-republisher-post-content textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 1rem;
	font-family: monospace;
	overflow-y: scroll;
	height: clamp(10vh, 20em, 50vh);
}

#cc-post-republisher-post-content textarea::selection {
	background-color: rgba(255, 252, 0, 0.35);
	color: #333;
}

@media only screen and (min-width: 961px) {

	#cc-post-republisher-modal {
		width: 50%;
	}

}
