/* Public styles for PiM Core */
:root {
	--pim-primary: #2563eb;
}

.pim-shortcode {
	padding: 12px;
}

.pim-form {
	max-width: 700px;
	margin: 0 auto;
	padding: 0;
}

.pim-form-section {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 16px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.pim-form-section h3 {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 700;
}

.pim-form-group {
	margin-bottom: 16px;
}

.pim-form-group label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--pim-primary);
}

.pim-form-group input,
.pim-form-group textarea,
.pim-form-group select {
	width: 100%;
	padding: 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	box-sizing: border-box;
	font-size: 15px;
	line-height: 1.45;
	background: #fff;
}

.pim-form-actions {
	margin-top: 12px;
	text-align: right;
}

.pim-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border: 0;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--pim-primary) 0%, #1d4ed8 100%);
	color: #fff;
	cursor: pointer;
	font-weight: 600;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.pim-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 20px rgba(37, 99, 235, 0.34);
}

.pim-message {
	padding: 12px;
	border-radius: 8px;
	margin-bottom: 14px;
}

.pim-message-error {
	background: #fbeaea;
	border: 1px solid #d63638;
}

.pim-message-success {
	background: #edfaef;
	border: 1px solid #00a32a;
}

.pim-message ul {
	margin: 0;
	padding-left: 18px;
}

.pim-readonly-input {
	color: var(--pim-primary);
	font-weight: 600;
	background: #eff6ff;
	border-color: #bfdbfe;
	opacity: 1;
	cursor: not-allowed;
}

@media (max-width: 768px) {
	.pim-shortcode {
		padding: 10px;
	}

	.pim-form {
		padding: 0;
	}

	.pim-form-section {
		padding: 16px;
	}

	.pim-button {
		width: 100%;
	}

	.pim-form-actions {
		text-align: left;
	}
}
