.border-editor {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.border-editor-label {
	font-size: 11px;
	font-weight: 500;
	color: #444;
	letter-spacing: 0.5px;
}

.border-editor-container {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.border-editor-preview {
	display: grid;
	grid-template-columns: 65px 65px 65px;
	grid-template-rows: 40px 40px 40px;
	gap: 8px;
}

.input-wrapper {
	position: relative;
	height: 32px;
}

.input-label {
	position: absolute;
	top: -16px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 10px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.border-input {
	width: 65px;
	height: 32px;
	padding: 0 4px;
	font-size: 13px;
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	border: 1px solid #e5e5e5;
	border-radius: 3px;
	background: #fff;
	color: #333;
	text-align: center;
	transition: all 0.15s ease;
}

.border-input:hover {
	border-color: #b4b4b4;
}

.border-input:focus {
	outline: none;
	border-color: #2196f3;
	box-shadow: 0 0 0 1px #2196f3;
}

/* Positionnement des inputs dans la grille */
.input-wrapper:has(.border-input.top) {
	grid-column: 2;
	grid-row: 1;
	justify-self: center;
}

.input-wrapper:has(.border-input.right) {
	grid-column: 3;
	grid-row: 2;
	align-self: center;
}

.input-wrapper:has(.border-input.bottom) {
	grid-column: 2;
	grid-row: 3;
	justify-self: center;
}

.input-wrapper:has(.border-input.left) {
	grid-column: 1;
	grid-row: 2;
	align-self: center;
}

.border-link-values {
	width: 32px;
	height: 32px;
	padding: 0;
	background: #fff;
	border: 1px solid #e5e5e5;
	cursor: pointer;
	color: #666;
	transition: all 0.15s ease;
	border-radius: 3px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.border-link-values:hover {
	border-color: #b4b4b4;
}

.border-link-values svg {
	width: 16px;
	height: 16px;
	opacity: 0.5;
}

.border-link-values:hover svg {
	opacity: 0.8;
}
