/**
 * Component Info Modal Styles
 */

/* Info Button */
.dutchware-component-info-button {
	display: inline-block;
	margin-left: 10px;
	padding: 4px 8px;
	background: #e05814;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	font-size: 12px;
	cursor: pointer;
	transition: background-color 0.2s ease;
	vertical-align: middle;
}

.dutchware-component-info-button:hover {
	background: #c44d11;
}

.dutchware-component-info-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Modal Overlay */
.dutchware-component-info-modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 10000;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.dutchware-component-info-modal-overlay.active {
	display: block;
	opacity: 1;
}

/* Modal Container */
.dutchware-component-info-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.9);
	background: #ffffff;
	border-radius: 12px;
	width: 90%;
	max-width: 600px;
	max-height: 80vh;
	overflow: hidden;
	z-index: 10001;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.dutchware-component-info-modal-overlay.active .dutchware-component-info-modal {
	transform: translate(-50%, -50%) scale(1);
}

/* Modal Header */
.dutchware-component-info-modal-header {
	position: relative;
	padding: 20px;
	border-bottom: 1px solid #e6e6e6;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.dutchware-component-info-modal-title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #252b23;
	font-family: 'Source Sans Pro', sans-serif;
}

.dutchware-component-info-modal-close, .dutchware-component-info-modal-close:focus {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 30px;
	height: 30px;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 32px;
	color: #252b23;
	line-height: 1;
	transition: color 0.2s ease;
	z-index: 10;
	padding: 0;
}

.dutchware-component-info-modal-close:hover {
	border: none;
	background: transparent;
}

.dutchware-component-info-modal-close:hover {
	color: #e05814;
}

/* Modal Content */
.dutchware-component-info-modal-content {
	padding: 20px;
	overflow-y: auto;
	max-height: calc(80vh - 80px);
	font-size: 14px;
	line-height: 1.6;
	color: #252b23;
}

.dutchware-component-info-modal-content p {
	margin-bottom: 15px;
}

.dutchware-component-info-modal-content p:last-child {
	margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
	.dutchware-component-info-modal {
		width: 95%;
		max-height: 90vh;
	}
	
	.dutchware-component-info-modal-header {
		padding: 15px;
	}
	
	.dutchware-component-info-modal-content {
		padding: 15px;
		max-height: calc(90vh - 70px);
	}
}

