.wcdn-be-editor,
.wcdn-be-fields .card {
	border: 1px solid #e8eaf0;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(26, 29, 46, 0.06);
}

.wcdn-be-field-search {
	position: relative;
	width: min(260px, 100%);
}

.wcdn-be-field-search i {
	color: #8b91a5;
	left: 12px;
	position: absolute;
	top: 12px;
}

.wcdn-be-field-search .form-control {
	padding-left: 36px;
}

.wcdn-be-field-toolbar {
	background: #fff;
	border-bottom: 1px solid #e8eaf0;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	padding: 10px 0;
	position: sticky;
	top: 0;
	z-index: 6;
}

.wcdn-be-selected-total {
	align-items: center;
	color: #71788c;
	display: flex;
	font-size: 11px;
	gap: 8px;
	margin-left: auto;
	text-transform: uppercase;
}

.wcdn-be-selected-total strong {
	align-items: center;
	background: #2563eb;
	border-radius: 6px;
	color: #fff;
	display: flex;
	font-size: 13px;
	height: 28px;
	justify-content: center;
	min-width: 32px;
}

.wcdn-be-field-grid {
	align-items: start;
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.modal-dialog.wcdn-be-modal-dialog {
	max-width: 1020px;
	width: calc(100% - 32px);
}

.wcdn-be-modal-dialog .modal-content {
	border: 0;
	box-shadow: 0 18px 55px rgba(26, 29, 46, 0.2);
	max-height: min(760px, calc(100vh - 48px));
}

.wcdn-be-fields .modal-header {
	padding: 14px 18px;
}

.wcdn-be-fields .modal-title {
	font-size: 16px;
	font-weight: 600;
}

.wcdn-be-fields .modal-body {
	padding: 0 16px 14px;
}

.wcdn-be-fields .modal-footer {
	background: #fff;
	flex: 0 0 auto;
	padding: 11px 16px;
	position: relative;
	z-index: 7;
}

.wcdn-be-field-group {
	display: block;
	margin: 0;
	width: 100%;
}

.wcdn-be-field-group:last-child {
	grid-column: 1 / -1;
}

.wcdn-be-field-group:last-child .card-body {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wcdn-be-field-group .card-header {
	align-items: center;
	background: #fff;
	border-bottom: 1px solid #eef0f4;
	display: flex;
	justify-content: space-between;
	padding: 10px 12px;
}

.wcdn-be-field-group .card-title {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 2px;
}

.wcdn-be-field-group .card-body {
	display: grid;
	gap: 6px;
	grid-template-columns: 1fr;
	padding: 8px;
}

.wcdn-be-group-title {
	align-items: center;
	display: flex;
	gap: 10px;
}

.wcdn-be-group-icon {
	align-items: center;
	background: #f0f3f8;
	border-radius: 7px;
	color: #536079;
	display: flex;
	font-size: 14px;
	height: 30px;
	justify-content: center;
	width: 30px;
}

.wcdn-be-group-meta {
	color: #9298a9;
	font-size: 11px;
}

.wcdn-be-group-meta strong {
	color: #5f677c;
}

.wcdn-be-group-toggle {
	align-items: center;
	background: #fff;
	border: 1px solid #dfe3eb;
	border-radius: 6px;
	color: #6c7488;
	display: flex;
	height: 28px;
	justify-content: center;
	width: 28px;
}

.wcdn-be-group-toggle:hover {
	background: #edf4ff;
	border-color: #c6dcff;
	color: #2563eb;
}

.wcdn-be-field-item {
	align-items: center;
	border: 1px solid #e7eaf0;
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	font-size: 13px;
	gap: 10px;
	margin: 0;
	min-height: 38px;
	padding: 7px 10px;
	position: relative;
}

.wcdn-be-field-item:hover {
	background: #f8faff;
	border-color: #cfdcf2;
}

.wcdn-be-field-item:has(.wcdn-be-field-checkbox:checked) {
	background: #edf5ff;
	border-color: #9fc5ff;
}

.wcdn-be-field-checkbox {
	height: 1px !important;
	opacity: 0;
	position: absolute;
	width: 1px !important;
}

.wcdn-be-field-checkbox:focus-visible + .wcdn-be-checkmark {
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.wcdn-be-checkmark {
	align-items: center;
	background: #fff;
	border: 1px solid #cfd4df;
	border-radius: 5px;
	color: transparent;
	display: flex;
	flex: 0 0 20px;
	height: 20px;
	justify-content: center;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.wcdn-be-field-checkbox:checked + .wcdn-be-checkmark {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
}

.wcdn-be-field-label {
	color: #353b4e;
	font-weight: 500;
	line-height: 1.25;
	min-width: 0;
}

.wcdn-be-field-item.is-hidden,
.wcdn-be-field-group.is-hidden {
	display: none;
}

.wcdn-be-editor {
	overflow: hidden;
}

.wcdn-be-toolbar {
	align-items: center;
	background: #fff;
	border-bottom: 1px solid #e5e8ef;
	display: flex;
	font-size: 12px;
	justify-content: space-between;
	min-height: 40px;
	padding: 7px 12px;
}

.wcdn-be-table-wrap {
	max-height: calc(100vh - 215px);
	overflow: auto;
	position: relative;
}

.wcdn-be-table {
	border-collapse: separate;
	border-spacing: 0;
	margin: 0;
	min-width: max-content;
	table-layout: fixed;
}

.wcdn-be-table > :not(caption) > * > * {
	padding: 0;
}

.wcdn-be-table col {
	width: 120px;
}

.wcdn-be-table col.wcdn-be-col-product-id {
	width: 82px;
}

.wcdn-be-table col[data-type="number"],
.wcdn-be-table col[data-type="select"] {
	width: 105px;
}

.wcdn-be-table col[data-type="category"] {
	width: 140px;
}

.wcdn-be-table col[data-type="textarea"] {
	width: 180px;
}

.wcdn-be-table th,
.wcdn-be-table td {
	border-bottom: 1px solid #e8eaf0;
	border-right: 1px solid #e8eaf0;
	height: 32px;
	min-width: 0;
	padding: 0;
	position: relative;
	vertical-align: middle;
}

.wcdn-be-table thead {
	position: sticky;
	top: 0;
	z-index: 8;
}

.wcdn-be-table th {
	background: #f6f7fa;
	color: #5a5d61 !important;
	font-size: 0.55rem !important;
	font-weight: 700 !important;
	white-space: nowrap;
}

.wcdn-be-table thead > tr:first-child > th {
	height: 36px;
	line-height: 36px;
	padding: 0 10px !important;
}

.wcdn-be-table thead > tr:first-child > th.wcdn-be-column-header {
	padding-right: 30px !important;
}

.wcdn-be-table td {
	padding: 0 !important;
}

.wcdn-be-sort {
	align-items: center;
	background: transparent;
	border: 0;
	color: #9ba1b1;
	display: flex;
	height: 100%;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: absolute;
	right: 3px;
	top: 0;
	width: 24px;
}

.wcdn-be-sort i {
	font-size: 12px;
	line-height: 1;
}

.wcdn-be-sort.is-active {
	color: #2563eb;
}

.wcdn-be-resize {
	cursor: col-resize;
	height: 100%;
	position: absolute;
	right: -3px;
	top: 0;
	width: 7px;
	z-index: 4;
}

.wcdn-be-resize:hover {
	background: rgba(37, 99, 235, 0.22);
}

.wcdn-be-fixed {
	background: #fff;
	left: 0;
	position: sticky !important;
	z-index: 5;
}

.wcdn-be-product-id {
	color: #8990a3;
	font-size: 10px;
	min-width: 82px !important;
	text-align: center;
	width: 82px;
}

th.wcdn-be-fixed {
	background: #f6f7fa;
	z-index: 10;
}

.wcdn-be-product-id a {
	color: #24293a;
	display: block;
	font-size: 11px;
	line-height: 32px;
	text-decoration: none;
}

.wcdn-be-input,
.wcdn-be-fill-input,
.wcdn-be-column-filter {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-sizing: border-box;
	box-shadow: none;
	color: #24293a;
	display: block;
	font-size: 11px;
	height: 100%;
	margin: 0;
	min-height: 31px;
	outline: 0;
	padding: 4px 6px;
	width: 100%;
}

textarea.wcdn-be-input {
	display: block;
	min-height: 31px;
	resize: vertical;
}

.wcdn-be-input:focus,
.wcdn-be-fill-input:focus,
.wcdn-be-column-filter:focus {
	background: #fff;
	box-shadow: inset 0 0 0 2px #3b82f6;
}

.wcdn-be-number {
	text-align: right;
}

.wcdn-be-cell.is-modified,
.wcdn-be-cell.is-modified .wcdn-be-input {
	background: #fff6d8;
}

.wcdn-be-cell.is-saved,
.wcdn-be-cell.is-saved .wcdn-be-input {
	background: #dcfce7;
}

.wcdn-be-cell.is-error,
.wcdn-be-cell.is-error .wcdn-be-input {
	background: #fee2e2;
}

.wcdn-be-filter-row td {
	background: #fff;
	height: 28px;
}

.wcdn-be-column-filter {
	color: #657086;
	font-size: 10px;
	min-height: 27px;
}

.wcdn-be-fill-row td {
	background: #edf4ff;
	height: 30px;
}

.wcdn-be-fill-row .wcdn-be-product-id {
	font-size: 10px;
	font-weight: 600;
	text-align: center;
}

.wcdn-be-fill-row .wcdn-be-product-id strong {
	display: block;
	font-size: inherit;
	line-height: 30px;
}

.wcdn-be-fill-control {
	display: flex;
	height: 100%;
}

.wcdn-be-fill-button {
	background: #dbeafe;
	border: 0;
	border-left: 1px solid #bfdbfe;
	color: #2563eb;
	flex: 0 0 30px;
}

.wcdn-be-table tbody tr.is-filtered {
	display: none;
}

.wcdn-be-table tbody tr:hover td {
	background-color: #f7faff;
}

.wcdn-be-empty {
	color: #7c8498;
	padding: 56px 20px;
	text-align: center;
}

.wcdn-be-empty > i {
	font-size: 34px;
}

.wcdn-be-empty h3 {
	color: #34394b;
	font-size: 15px;
	font-weight: 600;
	margin: 12px 0 4px;
}

.wcdn-be-empty p {
	font-size: 13px;
	margin: 0;
}

#wcdn_be_status.is-success {
	color: #15803d;
}

#wcdn_be_status.is-error {
	color: #dc2626;
}

#wcdn_be_status.is-loading {
	color: #2563eb;
}

body.wcdn-be-resizing,
body.wcdn-be-resizing * {
	cursor: col-resize !important;
	user-select: none !important;
}

@media (max-width: 991px) {
	.wcdn-be-field-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wcdn-be-field-group:last-child .card-body {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.wcdn-be-modal-dialog {
		margin: 12px;
	}

	.wcdn-be-modal-dialog .modal-content {
		max-height: calc(100vh - 24px);
	}

	.wcdn-be-field-toolbar {
		align-items: stretch;
		flex-direction: column;
		position: static;
	}

	.wcdn-be-selected-total {
		margin-left: 0;
	}

	.wcdn-be-field-grid {
		grid-template-columns: 1fr;
	}

	.wcdn-be-field-group .card-body,
	.wcdn-be-field-group:last-child .card-body {
		grid-template-columns: 1fr;
	}
}
