/* Smart Shipping Label - frontend shortcode chrome */

.ssl-frontend-wrap {
	max-width: 1100px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ssl-frontend-wrap * {
	box-sizing: border-box;
}

.ssl-frontend-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

@media (max-width: 900px) {
	.ssl-frontend-layout {
		grid-template-columns: 1fr;
	}
	.ssl-frontend-layout .ssl-fe-preview {
		order: 2;
	}
	.ssl-frontend-layout .ssl-fe-form {
		order: 1;
	}
}

.ssl-fe-section {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 18px;
	margin-bottom: 16px;
}

.ssl-fe-section h3 {
	margin-top: 0;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: #374151;
}

.ssl-fe-field {
	margin-bottom: 12px;
}

.ssl-fe-inline-fields {
	display: flex;
	gap: 10px;
}

.ssl-fe-inline-fields .ssl-fe-field {
	flex: 1;
	min-width: 0;
}

.ssl-orientation-toggle {
	display: flex;
	gap: 8px;
}

.ssl-orientation-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 10px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	font-weight: 600;
	font-size: 13px;
	color: #4b5563;
}

.ssl-orientation-btn.is-active {
	border-color: #2563eb;
	background: #eff6ff;
	color: #1d4ed8;
	box-shadow: 0 0 0 1px #2563eb;
}

.ssl-orientation-icon {
	display: inline-block;
	border: 2px solid currentColor;
	border-radius: 2px;
}

.ssl-orientation-icon--portrait {
	width: 12px;
	height: 16px;
}

.ssl-orientation-icon--landscape {
	width: 16px;
	height: 12px;
}

.ssl-fe-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
}

.ssl-fe-field input,
.ssl-fe-field textarea,
.ssl-fe-field select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
}

.ssl-fe-preview {
	position: sticky;
	top: 20px;
}

@media (max-width: 900px) {
	.ssl-fe-preview {
		position: static;
	}
}

.ssl-fe-stage {
	background: #f3f4f6;
	border-radius: 10px;
	padding: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: auto;
	min-height: 300px;
}

.ssl-fe-toolbar {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 14px;
}

.ssl-fe-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	border-radius: 6px;
	border: 1px solid #d1d5db;
	background: #fff;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: #111827;
}

.ssl-fe-btn.is-primary {
	background: #111827;
	color: #fff;
	border-color: #111827;
}

.ssl-fe-btn:hover {
	opacity: 0.9;
}

.ssl-fe-msg {
	font-size: 13px;
	margin-top: 10px;
}

.ssl-fe-msg.is-success {
	color: #15803d;
}

.ssl-fe-msg.is-error {
	color: #b91c1c;
}
