/**
 * File: modal.css
 * Path: /pi-plugin/assets/css/modal.css
 * Description: Stylesheet for modal window
 */

 .pi-modal-overlay {
	position: fixed;
	inset: 0;
	background: var(--pi-color-shadow);
	z-index: 9999;
}

.pi-modal {
	position: absolute;
	top: 100px;
	left: 100px;
	width: 500px;
	background: var(--pi-color-panel);
	border: 1px solid var(--pi-nav-border);
	box-shadow: 0 2px 8px var(--pi-color-shadow);
	border-radius: 6px;
	z-index: 10000;
	resize: both;
	display: flex;
	flex-direction: column;
	min-width: 200px;
	min-height: 100px;
	overflow: hidden;
}

.pi-modal-header {
	background: var(--pi-color-bg);
	padding: 10px;
	cursor: move;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid var(--pi-nav-border);
}

.pi-modal-title {
	font-size: 19px;
	margin: 0;
	overflow: clip;
	max-width: calc(100% - 25px);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.pi-modal-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: auto;
}

.pi-modal-content {
	flex: 1;
	padding: 15px;
	overflow-y: auto;
}

.pi-modal-footer {
	padding: 10px;
	border-top: 1px solid var(--pi-nav-border);
	background-color: var(--pi-code-bg);
}

.pi-modal-footer-buttons {
	float: right;
}

.pi-modal-close {
	cursor: pointer;
	font-size: 20px;
	padding: 0;
	margin: 0;
	line-height: 32px;
	position: relative;
	top: -2px;
	font-weight: bold;
}

.pi-modal-resizer {
	width: 10px;
	height: 10px;
	background: transparent;
	position: absolute;
	right: 0;
	bottom: 0;
	cursor: se-resize;
}

.pi-modal .error {
	color: var(--pi-accent-red);
	font-weight: bold;
}

.pi-modal .success {
	color: var(--pi-code-green);
	font-weight: bold;
}

.confirm-modal .pi-modal-footer-buttons button {
	padding: 10px 20px;
	min-width: 80px;
}

@media screen and (max-width: 767px) {
	.pi-modal {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		min-width: 100%;
		max-width: 100%;
		resize: none;
	}
}
