/* =========================================================
   KnE Marketplace — Frontend Styles
   ========================================================= */

:root {
	--kne-primary:       #f4b223;
	--kne-primary-dark:  #d99a0f;
	--kne-primary-light: #fffbeb;
	--kne-primary-text:  #000000;
	--kne-secondary:     #111111;
	--kne-black:         #000000;
	--kne-white:         #ffffff;
	--kne-success:       #16a34a;
	--kne-error:         #dc2626;
	--kne-gray-50:       #f9fafb;
	--kne-gray-100:      #f3f4f6;
	--kne-gray-200:      #e5e7eb;
	--kne-gray-300:      #d1d5db;
	--kne-gray-400:      #9ca3af;
	--kne-gray-500:      #6b7280;
	--kne-gray-600:      #4b5563;
	--kne-gray-700:      #374151;
	--kne-gray-800:      #1f2937;
	--kne-gray-900:      #111827;
	--kne-radius:        8px;
	--kne-radius-lg:     10px;
	--kne-field-border:  #D9D9D9;
	--kne-form-bg:       #FAFAFA;
	--kne-shadow:        0 1px 3px rgba(0,0,0,.07);
	--kne-shadow-md:     0 4px 12px rgba(0,0,0,.08);
	--kne-shadow-lg:     0 12px 32px rgba(0,0,0,.1);
}

/* ── Common Buttons ─────────────────────────────────────── */
.kne-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 20px;
	border-radius: var(--kne-radius);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: 1.5px solid transparent;
	transition: background .15s, color .15s, border-color .15s;
	text-decoration: none;
	line-height: 1.4;
}

.kne-btn svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

.kne-btn--primary {
	background: var(--kne-black);
	color: var(--kne-white);
	border-color: var(--kne-black);
}
.kne-btn--primary:hover {
	background: #333;
	color: var(--kne-white);
}

.kne-btn--outline {
	background: transparent;
	color: var(--kne-black);
	border-color: var(--kne-black);
}
.kne-btn--outline:hover {
	background: var(--kne-black);
	color: var(--kne-white);
}

.kne-btn--ghost {
	background: var(--kne-gray-100);
	color: var(--kne-gray-700);
	border-color: var(--kne-gray-200);
}
.kne-btn--ghost:hover {
	background: var(--kne-gray-200);
	color: var(--kne-gray-900);
}

.kne-btn--accent {
	background: var(--kne-primary);
	color: var(--kne-black);
	border-color: var(--kne-primary);
	font-weight: 700;
}
.kne-btn--accent:hover {
	background: var(--kne-primary-dark);
	border-color: var(--kne-primary-dark);
}

.kne-btn--sm {
	padding: 7px 14px;
	font-size: 13px;
}

.kne-btn--lg {
	padding: 13px 28px;
	font-size: 15px;
}

/* =========================================================
   SUBMIT FORM  — Minimal / flat design
   ========================================================= */

.kne-form-wrap {
	max-width: 800px;
	margin: 0 auto;
	padding: 40px 20px 60px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--kne-gray-900);
	background: var(--kne-form-bg);
}

/* Full-page background for submit & listing pages */
body.kne-submit-page,
body.kne-submit-page #page,
body.kne-submit-page .site,
body.kne-submit-page main,
body.kne-submit-page #main,
body.kne-submit-page #content,
body.kne-submit-page .site-content,
body.kne-marketplace-page,
body.kne-marketplace-page #page,
body.kne-marketplace-page .site,
body.kne-marketplace-page main,
body.kne-marketplace-page #main,
body.kne-marketplace-page #content,
body.kne-marketplace-page .site-content,
body.kne-profile-page,
body.kne-profile-page #page,
body.kne-profile-page .site,
body.kne-profile-page main,
body.kne-profile-page #main,
body.kne-profile-page #content,
body.kne-profile-page .site-content {
	background-color: #FAFAFA;
}

/* Notice */
.kne-notice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 18px;
	border-radius: var(--kne-radius);
	margin-bottom: 28px;
	font-size: 14px;
	line-height: 1.6;
}

.kne-notice svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-top: 1px;
}

.kne-notice--success {
	background: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.kne-notice--success strong { display: block; font-size: 15px; margin-bottom: 4px; }

.kne-notice--error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

/* ── Top-level company fields ────────────────────────────── */
.kne-form-company {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px 28px;
	margin-bottom: 32px;
}

/* ── Field ───────────────────────────────────────────────── */
.kne-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.kne-field--full {
	grid-column: 1 / -1;
}

.kne-label {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--kne-gray-800);
}

.kne-required { color: var(--kne-error); }

.kne-field-hint {
	font-size: 12px;
	color: var(--kne-gray-400);
}

/* ── Inputs — scoped + !important to beat theme overrides ── */
.kne-form-wrap .kne-input,
.kne-form-wrap .kne-textarea,
.kne-form-wrap .kne-select,
.kne-form-wrap input.kne-input,
.kne-form-wrap textarea.kne-textarea,
.kne-form-wrap select.kne-select {
	padding: 9px 12px !important;
	border: 1px solid #D9D9D9 !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	color: #1f2937 !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	width: 100% !important;
	box-sizing: border-box !important;
	outline: none !important;
	font-family: inherit !important;
	transition: border-color .15s, box-shadow .15s !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	box-shadow: none !important;
}

.kne-form-wrap .kne-input:focus,
.kne-form-wrap .kne-textarea:focus,
.kne-form-wrap input.kne-input:focus,
.kne-form-wrap textarea.kne-textarea:focus {
	border-color: var(--kne-primary) !important;
	box-shadow: 0 0 0 3px rgba(244,178,35,.15) !important;
	outline: none !important;
}

.kne-form-wrap .kne-select:focus,
.kne-form-wrap select.kne-select:focus {
	border-color: var(--kne-primary) !important;
	box-shadow: 0 0 0 3px rgba(244,178,35,.15) !important;
	outline: none !important;
}

.kne-form-wrap .kne-input::placeholder,
.kne-form-wrap .kne-textarea::placeholder { color: #9ca3af; }

.kne-form-wrap .kne-textarea {
	resize: vertical !important;
	min-height: 90px !important;
}

/* Select */
.kne-select-wrap { position: relative; }

.kne-select-wrap::after {
	content: '';
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%) rotate(45deg);
	width: 6px;
	height: 6px;
	border-right: 1.5px solid #6b7280;
	border-bottom: 1.5px solid #6b7280;
	pointer-events: none;
}

.kne-form-wrap .kne-select,
.kne-form-wrap select.kne-select {
	padding-right: 32px !important;
	cursor: pointer !important;
}

/* Visually hidden real file input overlaying the styled box */
.kne-visually-hidden-file {
	position: absolute;
	inset: 0;
	opacity: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
	z-index: 2;
}

/* File input — inline style (logo) */
.kne-file-inline {
	display: flex !important;
	align-items: center !important;
	gap: 0 !important;
	border: 1px solid #D9D9D9 !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	transition: border-color .15s;
}

.kne-file-inline:focus-within {
	border-color: var(--kne-primary);
	box-shadow: 0 0 0 3px rgba(244,178,35,.15);
}

.kne-file-inline-icon {
	padding: 9px 10px;
	display: flex;
	align-items: center;
	color: var(--kne-gray-400);
	flex-shrink: 0;
}

.kne-file-inline-icon svg { width: 16px; height: 16px; }

.kne-file-inline-label {
	flex: 1;
	font-size: 14px;
	color: var(--kne-gray-400);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-right: 10px;
}

.kne-file-inline-label a { color: var(--kne-primary); text-decoration: underline; }

.kne-file-inline input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	width: 100%;
	cursor: pointer;
}

.kne-file-inline-wrap {
	position: relative;
}

/* ── Solution card ───────────────────────────────────────── */
.kne-solution-card-form {
	background: var(--kne-white);
	border: 1px solid var(--kne-gray-200);
	border-radius: var(--kne-radius-lg);
	padding: 24px 28px;
	margin-bottom: 16px;
}

.kne-solution-card-form-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--kne-gray-900);
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--kne-gray-100);
}

.kne-solution-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px 24px;
}

/* Collateral row: title + file side by side */
.kne-collateral-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	align-items: start;
}

.kne-collateral-file-wrap {
	position: relative;
}

.kne-collateral-file-box {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 9px 12px !important;
	border: 1px dashed #D9D9D9 !important;
	border-radius: 8px !important;
	cursor: pointer !important;
	background: #f9fafb !important;
	background-color: #f9fafb !important;
	transition: border-color .15s, background .15s;
	font-size: 13.5px;
	color: #6b7280;
}

.kne-collateral-file-box:hover {
	border-color: var(--kne-primary);
	background: var(--kne-primary-light);
}

.kne-collateral-file-box svg {
	width: 16px;
	height: 16px;
	color: var(--kne-gray-400);
	flex-shrink: 0;
}

.kne-collateral-file-box .kne-choose-text { color: var(--kne-primary); }

.kne-collateral-file-wrap input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	width: 100%;
	cursor: pointer;
}

.kne-file-note {
	font-size: 11px;
	color: var(--kne-gray-400);
	margin-top: 3px;
}

/* Add another collateral */
.kne-form-wrap .kne-add-collateral-btn,
.kne-form-wrap button.kne-add-collateral-btn {
	display: inline !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	color: #374151 !important;
	text-decoration: underline !important;
	text-underline-offset: 2px !important;
	border: none !important;
	border-width: 0 !important;
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	cursor: pointer !important;
	padding: 0 !important;
	margin-top: 6px !important;
	line-height: inherit !important;
}

.kne-form-wrap .kne-add-collateral-btn:hover,
.kne-form-wrap button.kne-add-collateral-btn:hover {
	color: #000000 !important;
	background: none !important;
	background-color: transparent !important;
}

/* Collateral 2 optional row */
.kne-collateral-optional {
	margin-top: 12px;
}

/* Country searchable select */
/* ── Territory selector ──────────────────────────────────── */
.kne-form-wrap .kne-territory-wrap {
	position: relative !important;
}

/* Trigger (looks like an input, holds tags) */
.kne-form-wrap .kne-territory-trigger {
	min-height: 44px !important;
	padding: 6px 36px 6px 10px !important;
	border: 1px solid #D9D9D9 !important;
	border-radius: 8px !important;
	background: #fff !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: flex-start !important;
	flex-wrap: wrap !important;
	gap: 4px !important;
	position: relative !important;
	user-select: none !important;
	transition: border-color .15s !important;
	box-sizing: border-box !important;
}

.kne-form-wrap .kne-territory-trigger:hover,
.kne-form-wrap .kne-territory-trigger[aria-expanded="true"] {
	border-color: #18181B !important;
}

.kne-form-wrap .kne-territory-chevron {
	position: absolute !important;
	right: 10px !important;
	top: 13px !important;
	width: 16px !important;
	height: 16px !important;
	color: #71717A !important;
	transition: transform .2s !important;
	pointer-events: none !important;
	flex-shrink: 0 !important;
}

.kne-form-wrap .kne-territory-trigger[aria-expanded="true"] .kne-territory-chevron {
	transform: rotate(180deg) !important;
}

.kne-form-wrap .kne-territory-display {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 4px !important;
	align-items: center !important;
	min-height: 28px !important;
}

.kne-form-wrap .kne-territory-placeholder {
	color: #A1A1AA !important;
	font-size: 14px !important;
	line-height: 28px !important;
}

/* Tags */
.kne-form-wrap .kne-territory-tag {
	display: inline-flex !important;
	align-items: center !important;
	gap: 3px !important;
	background: #F4F4F5 !important;
	border: 1px solid #E4E4E7 !important;
	border-radius: 4px !important;
	padding: 2px 4px 2px 8px !important;
	font-size: 12.5px !important;
	color: #18181B !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	max-width: 180px !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

.kne-form-wrap .kne-territory-tag-remove {
	background: none !important;
	border: none !important;
	padding: 0 2px !important;
	cursor: pointer !important;
	color: #71717A !important;
	font-size: 15px !important;
	line-height: 1 !important;
	display: flex !important;
	align-items: center !important;
	border-radius: 2px !important;
	flex-shrink: 0 !important;
}

.kne-form-wrap .kne-territory-tag-remove:hover {
	color: #dc2626 !important;
}

/* Dropdown panel */
.kne-form-wrap .kne-territory-panel {
	display: none !important;
	position: absolute !important;
	top: calc(100% + 4px) !important;
	left: 0 !important;
	right: 0 !important;
	background: #fff !important;
	border: 1px solid #E4E4E7 !important;
	border-radius: 8px !important;
	box-shadow: 0 4px 20px rgba(0,0,0,.10) !important;
	z-index: 9999 !important;
	overflow: hidden !important;
}

.kne-form-wrap .kne-territory-panel.open {
	display: block !important;
}

/* Search bar inside panel */
.kne-form-wrap .kne-territory-search-wrap {
	padding: 10px !important;
	border-bottom: 1px solid #F4F4F5 !important;
	position: relative !important;
}

.kne-form-wrap .kne-territory-search-icon {
	position: absolute !important;
	left: 19px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 13px !important;
	height: 13px !important;
	color: #A1A1AA !important;
	pointer-events: none !important;
}

.kne-form-wrap .kne-territory-search {
	width: 100% !important;
	padding: 7px 10px 7px 30px !important;
	border: 1px solid #E4E4E7 !important;
	border-radius: 6px !important;
	font-size: 13px !important;
	background: #FAFAFA !important;
	color: #18181B !important;
	box-sizing: border-box !important;
	outline: none !important;
	font-family: inherit !important;
}

.kne-form-wrap .kne-territory-search:focus {
	border-color: #18181B !important;
	background: #fff !important;
}

/* Scrollable list */
.kne-form-wrap .kne-territory-list {
	overflow-y: auto !important;
	max-height: 300px !important;
	padding: 6px 0 !important;
}

/* Worldwide row */
.kne-form-wrap .kne-territory-worldwide-item {
	padding: 6px 14px 8px !important;
	border-bottom: 1px solid #F4F4F5 !important;
	margin-bottom: 4px !important;
}

.kne-form-wrap .kne-territory-worldwide-label {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	cursor: pointer !important;
	font-size: 13.5px !important;
	font-weight: 700 !important;
	color: #18181B !important;
}

/* Region rows */
.kne-form-wrap .kne-territory-region-row {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	padding: 5px 10px 5px 14px !important;
}

.kne-form-wrap .kne-territory-region-label {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	cursor: pointer !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #18181B !important;
	flex: 1 !important;
}

.kne-form-wrap .kne-territory-region-row:hover {
	background: #FAFAFA !important;
}

/* Expand button */
.kne-form-wrap .kne-territory-expand-btn {
	background: none !important;
	border: none !important;
	padding: 3px 5px !important;
	cursor: pointer !important;
	color: #71717A !important;
	display: flex !important;
	align-items: center !important;
	border-radius: 4px !important;
	flex-shrink: 0 !important;
}

.kne-form-wrap .kne-territory-expand-btn svg {
	width: 13px !important;
	height: 13px !important;
	transition: transform .2s !important;
}

.kne-form-wrap .kne-territory-expand-btn.expanded svg {
	transform: rotate(180deg) !important;
}

.kne-form-wrap .kne-territory-expand-btn:hover {
	background: #F4F4F5 !important;
	color: #18181B !important;
}

/* Country list */
.kne-form-wrap .kne-territory-countries {
	padding: 2px 14px 4px 36px !important;
}

.kne-form-wrap .kne-territory-country-label {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	cursor: pointer !important;
	font-size: 13px !important;
	color: #3F3F46 !important;
	padding: 3px 0 !important;
	line-height: 1.4 !important;
}

.kne-form-wrap .kne-territory-country-label:hover {
	color: #18181B !important;
}

/* Checkboxes */
.kne-form-wrap .kne-territory-wrap input[type="checkbox"] {
	width: 15px !important;
	height: 15px !important;
	flex-shrink: 0 !important;
	cursor: pointer !important;
	accent-color: #18181B !important;
	border-radius: 3px !important;
	margin: 0 !important;
}

/* ── Solution 2 toggle ───────────────────────────────────── */
.kne-form-wrap .kne-add-solution-link,
.kne-form-wrap button.kne-add-solution-link {
	display: inline !important;
	font-size: 13.5px !important;
	font-weight: 400 !important;
	color: #374151 !important;
	text-decoration: underline !important;
	text-underline-offset: 2px !important;
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	border-width: 0 !important;
	box-shadow: none !important;
	cursor: pointer !important;
	padding: 0 !important;
	margin-bottom: 28px !important;
	line-height: inherit !important;
}

.kne-form-wrap .kne-add-solution-link:hover,
.kne-form-wrap button.kne-add-solution-link:hover {
	color: #000000 !important;
	background: none !important;
	background-color: transparent !important;
}

#add-solution2-wrap {
	margin-bottom: 24px;
}

.kne-solution2-section { display: none; }

.kne-solution2-section.visible {
	display: block;
	animation: kne-fade-in .2s ease;
}

.kne-solution-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--kne-gray-100);
}

.kne-solution-header-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--kne-gray-900);
	margin: 0;
}

.kne-form-wrap .kne-remove-solution,
.kne-form-wrap button.kne-remove-solution {
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
	font-size: 12.5px !important;
	color: #dc2626 !important;
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	border-width: 0 !important;
	box-shadow: none !important;
	cursor: pointer !important;
	padding: 4px 8px !important;
	border-radius: 8px !important;
	transition: background .15s !important;
}
.kne-form-wrap .kne-remove-solution:hover,
.kne-form-wrap button.kne-remove-solution:hover {
	background: #fef2f2 !important;
	background-color: #fef2f2 !important;
}
.kne-remove-solution svg { width: 13px; height: 13px; }

/* ── Privacy & Submit ────────────────────────────────────── */
.kne-form-footer {
	margin-top: 28px;
}

.kne-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	margin-bottom: 24px;
}

.kne-checkbox-label input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin-top: 2px;
	accent-color: var(--kne-black);
	cursor: pointer;
	flex-shrink: 0;
}

.kne-checkbox-text {
	font-size: 14px;
	color: var(--kne-gray-700);
	line-height: 1.55;
}

.kne-checkbox-text a {
	color: var(--kne-black);
	text-decoration: underline;
}

.kne-form-wrap .kne-submit-btn,
.kne-form-wrap button.kne-submit-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	padding: 13px 36px !important;
	background: #18181B !important;
	background-color: #18181B !important;
	color: #ffffff !important;
	border: none !important;
	border-width: 0 !important;
	border-radius: 8px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	font-family: inherit !important;
	transition: background .15s !important;
	min-width: 160px !important;
	text-decoration: none !important;
	box-shadow: none !important;
	line-height: 1.4 !important;
}

.kne-form-wrap .kne-submit-btn:hover,
.kne-form-wrap button.kne-submit-btn:hover {
	background: #2d2d30 !important;
	background-color: #2d2d30 !important;
	color: #ffffff !important;
}

.kne-form-wrap .kne-submit-btn:disabled { opacity: .6 !important; cursor: not-allowed !important; }

/* =========================================================
   MARKETPLACE LISTING
   ========================================================= */

.kne-marketplace-wrap {
	max-width: 1140px;
	margin: 0 auto;
	padding: 36px 24px 64px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Toolbar: search left | filter + submit right ─────────── */
.kne-marketplace-toolbar {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px !important;
	margin-bottom: 28px !important;
	flex-wrap: wrap !important;
}

.kne-search-form {
	display: flex !important;
	align-items: center !important;
	gap: 0 !important;
	flex: 1 !important;
	min-width: 0 !important;
}

/* Pill search field wrapper */
.kne-search-field-wrap {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	width: 100% !important;
	max-width: 360px !important;
}

.kne-search-field-icon {
	position: absolute !important;
	left: 14px !important;
	width: 16px !important;
	height: 16px !important;
	color: #9ca3af !important;
	pointer-events: none !important;
	z-index: 2 !important;
}

/* Search input — !important beats theme */
.kne-marketplace-wrap .kne-search-field,
.kne-marketplace-wrap input.kne-search-field,
input.kne-search-field {
	width: 100% !important;
	padding: 10px 36px 10px 42px !important;
	border: 1px solid #E4E4E7 !important;
	border-radius: 119px !important;
	font-size: 14px !important;
	color: #1f2937 !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	outline: none !important;
	box-shadow: none !important;
	font-family: inherit !important;
	box-sizing: border-box !important;
	transition: border-color .15s, box-shadow .15s !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.kne-marketplace-wrap .kne-search-field:focus,
input.kne-search-field:focus {
	border-color: #f4b223 !important;
	box-shadow: 0 0 0 3px rgba(244,178,35,.15) !important;
	outline: none !important;
}

.kne-marketplace-wrap .kne-search-field::placeholder,
input.kne-search-field::placeholder { color: #9ca3af !important; }

.kne-search-clear-btn {
	position: absolute !important;
	right: 14px !important;
	font-size: 13px !important;
	color: #9ca3af !important;
	text-decoration: none !important;
	line-height: 1 !important;
	z-index: 2 !important;
}

.kne-search-clear-btn:hover { color: #374151 !important; }

/* Right group: filter + submit */
.kne-toolbar-right {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	flex-shrink: 0 !important;
}

.kne-filter-form {
	display: flex !important;
	align-items: center !important;
}

/* Filter wrap */
.kne-filter-wrap {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
}

.kne-filter-icon {
	position: absolute !important;
	left: 14px !important;
	width: 14px !important;
	height: 14px !important;
	color: #9ca3af !important;
	pointer-events: none !important;
	z-index: 2 !important;
}

/* Filter select — !important beats theme */
.kne-marketplace-wrap .kne-filter-select,
.kne-marketplace-wrap select.kne-filter-select,
select.kne-filter-select {
	padding: 10px 34px 10px 36px !important;
	border: 1px solid #E4E4E7 !important;
	border-radius: 6px !important;
	font-size: 14px !important;
	color: #374151 !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	outline: none !important;
	box-shadow: none !important;
	font-family: inherit !important;
	cursor: pointer !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	box-sizing: border-box !important;
	min-width: 180px !important;
}

.kne-marketplace-wrap .kne-filter-select:focus,
select.kne-filter-select:focus {
	border-color: #f4b223 !important;
	box-shadow: 0 0 0 3px rgba(244,178,35,.15) !important;
	outline: none !important;
}

/* Caret for filter */
.kne-filter-wrap::after {
	content: '' !important;
	position: absolute !important;
	right: 14px !important;
	top: 50% !important;
	transform: translateY(-50%) rotate(45deg) !important;
	width: 6px !important;
	height: 6px !important;
	border-right: 1.5px solid #9ca3af !important;
	border-bottom: 1.5px solid #9ca3af !important;
	pointer-events: none !important;
	z-index: 1 !important;
}

/* Custom "Available in" dropdown — bold regions, indented countries */
.kne-filter-available-wrap {
	position: relative !important;
}

.kne-filter-available-trigger {
	display: block !important;
	width: 100% !important;
	min-width: 180px !important;
	padding: 10px 34px 10px 36px !important;
	border: 1px solid #E4E4E7 !important;
	border-radius: 6px !important;
	font-size: 14px !important;
	color: #374151 !important;
	background: #fff !important;
	text-align: left !important;
	cursor: pointer !important;
	font-family: inherit !important;
	box-sizing: border-box !important;
	outline: none !important;
	appearance: none !important;
}

.kne-filter-available-trigger:hover,
.kne-filter-available-trigger[aria-expanded="true"] {
	border-color: #f4b223 !important;
	box-shadow: 0 0 0 3px rgba(244,178,35,.15) !important;
}

.kne-filter-available-panel {
	display: none !important;
	position: absolute !important;
	top: calc(100% + 4px) !important;
	left: 0 !important;
	right: 0 !important;
	max-height: 320px !important;
	overflow-y: auto !important;
	background: #fff !important;
	border: 1px solid #E4E4E7 !important;
	border-radius: 6px !important;
	box-shadow: 0 4px 20px rgba(0,0,0,.12) !important;
	z-index: 1000 !important;
}

.kne-filter-available-panel[aria-hidden="false"] {
	display: block !important;
}

.kne-filter-available-option {
	padding: 8px 14px !important;
	font-size: 14px !important;
	color: #374151 !important;
	cursor: pointer !important;
	transition: background .1s !important;
}

.kne-filter-available-option:hover {
	background: #F4F4F5 !important;
}

.kne-filter-available-option--region {
	font-weight: 700 !important;
	color: #18181B !important;
	background: #FAFAFA !important;
}

.kne-filter-available-option--country {
	padding-left: 28px !important;
}

/* Submit company button — same style as Website */
.kne-submit-company-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 10px 22px !important;
	background: #18181B !important;
	background-color: #18181B !important;
	color: #ffffff !important;
	border: none !important;
	border-width: 0 !important;
	border-radius: 6px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	transition: background .15s !important;
	flex-shrink: 0 !important;
	box-shadow: none !important;
}

.kne-submit-company-btn:hover {
	background: #2d2d30 !important;
	background-color: #2d2d30 !important;
	color: #ffffff !important;
}

.kne-search-submit-btn {
	padding: 10px 18px !important;
	background: #18181B !important;
	color: #fff !important;
	border: none !important;
	border-radius: 119px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
}

/* Active filters bar */
.kne-active-filters {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	font-size: 13px;
	color: #6b7280;
	flex-wrap: wrap;
}

.kne-filter-tag {
	padding: 4px 10px;
	background: #f3f4f6;
	border-radius: 20px;
	font-size: 12.5px;
}

.kne-filter-count { color: #9ca3af; }

.kne-clear-filters {
	color: #d99a0f;
	text-decoration: underline;
	font-size: 12.5px;
}

/* ── Listing Cards ───────────────────────────────────────── */
.kne-listings-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.kne-listing-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: var(--kne-radius-lg);
	box-shadow: 0 1px 4px rgba(0,0,0,.06);
	overflow: hidden;
	transition: box-shadow .2s;
}

.kne-listing-card:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,.09);
}

/* Top row */
.kne-card-top {
	padding: 24px 28px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
}

.kne-card-identity {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	flex: 1;
	min-width: 0;
}

/* Logo — 274×97 */
.kne-card-logo {
	width: 274px;
	height: 97px;
	flex-shrink: 0;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fafafa;
}

.kne-card-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.kne-card-logo--placeholder {
	background: #fffbeb;
	color: #000;
	font-size: 22px;
	font-weight: 800;
}

.kne-card-info { flex: 1; min-width: 0; }

.kne-card-company-name {
	font-size: 18px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 6px;
}

.kne-card-description {
	font-size: 14px;
	color: #6b7280;
	margin: 0 0 6px;
	line-height: 1.6;
}

/* "See more >" text link */
.kne-see-more-link {
	display: inline-block;
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}
.kne-see-more-link:hover { color: #000; }

/* Action buttons — always a single row */
.kne-card-actions {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 8px !important;
	flex-shrink: 0 !important;
	align-self: flex-start !important;
}

.kne-card-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 8px 18px !important;
	border-radius: 8px !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	transition: background .15s, border-color .15s !important;
	min-width: 110px !important;
	box-sizing: border-box !important;
}

/* View Profile: white bg, black text, #F4B223 border */
.kne-card-btn.kne-card-btn--profile {
	background: #ffffff !important;
	background-color: #ffffff !important;
	color: #000000 !important;
	border: 1.5px solid #F4B223 !important;
}
.kne-card-btn.kne-card-btn--profile:hover {
	background: #fffbeb !important;
	background-color: #fffbeb !important;
	color: #000000 !important;
}

/* Website: #18181B bg, white text */
.kne-card-btn.kne-card-btn--website {
	background: #18181B !important;
	background-color: #18181B !important;
	color: #ffffff !important;
	border: 1.5px solid #18181B !important;
}
.kne-card-btn.kne-card-btn--website:hover {
	background: #2d2d30 !important;
	background-color: #2d2d30 !important;
	color: #ffffff !important;
}

/* Divider */
.kne-card-divider {
	height: 1px;
	background: #f3f4f6;
	margin: 0 28px;
}

/* Solutions row — 1 solution spans full width, 2 side-by-side */
.kne-card-solutions {
	padding: 20px 28px;
	display: grid;
	gap: 20px;
}

.kne-card-solutions--two {
	grid-template-columns: repeat(2, 1fr);
}

.kne-card-solutions--one {
	grid-template-columns: 1fr;
}

.kne-solution-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.kne-solution-name {
	font-size: 15px;
	font-weight: 700;
	color: #1f2937;
	margin: 0 0 4px;
}

.kne-solution-desc {
	font-size: 13px;
	color: #6b7280;
	margin: 0 0 4px;
	line-height: 1.55;
}

/* Empty State */
.kne-empty-state {
	text-align: center;
	padding: 72px 20px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: var(--kne-radius-lg);
}
.kne-empty-state svg { width: 48px; height: 48px; color: #d1d5db; margin-bottom: 16px; }
.kne-empty-state h3 { font-size: 18px; color: #374151; margin: 0 0 8px; }
.kne-empty-state p { font-size: 14px; color: #6b7280; margin: 0; }
.kne-empty-state a { color: #d99a0f; }

/* =========================================================
   COMPANY PROFILE PAGE
   ========================================================= */

.kne-profile-wrap {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	background: #fff !important;
}

/* ── Header row ── */
.kne-profile-wrap .kne-profile-header {
	background: #fff !important;
	border-bottom: 1px solid #E4E4E7 !important;
	padding: 120px 20px !important;
}

.kne-profile-wrap .kne-profile-header-inner {
	max-width: 1100px !important;
	margin: 0 auto !important;
}

.kne-profile-wrap .kne-profile-company-row {
	display: flex !important;
	align-items: flex-start !important;
	gap: 32px !important;
}

/* Logo */
.kne-profile-wrap .kne-profile-logo-wrap {
	flex-shrink: 0 !important;
	width: 180px !important;
	height: 100px !important;
	background: #f5f5f5 !important;
	border: 1px solid #E4E4E7 !important;
	border-radius: 8px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	overflow: hidden !important;
}

.kne-profile-wrap .kne-profile-logo-img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
}

.kne-profile-wrap .kne-profile-logo-placeholder {
	font-size: 28px !important;
	font-weight: 800 !important;
	color: var(--kne-primary) !important;
}

/* Company details */
.kne-profile-wrap .kne-profile-company-details {
	flex: 1 !important;
	min-width: 0 !important;
}

.kne-profile-wrap .kne-profile-company-name {
	font-size: 26px !important;
	font-weight: 700 !important;
	color: #18181B !important;
	margin: 0 0 14px !important;
	line-height: 1.25 !important;
}

.kne-profile-wrap .kne-profile-company-desc {
	font-size: 15px !important;
	color: #52525B !important;
	line-height: 1.75 !important;
	margin: 0 !important;
}

/* Website button */
.kne-profile-wrap .kne-profile-website-wrap {
	flex-shrink: 0 !important;
}

.kne-profile-wrap .kne-profile-website-btn {
	display: inline-block !important;
	background: #18181B !important;
	color: #fff !important;
	padding: 10px 22px !important;
	border-radius: 6px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	border: none !important;
	line-height: 1.4 !important;
	cursor: pointer !important;
	white-space: nowrap !important;
}

.kne-profile-wrap .kne-profile-website-btn:hover {
	background: #000 !important;
	color: #fff !important;
	text-decoration: none !important;
}

/* ── Content area ── */
.kne-profile-wrap .kne-profile-content {
	max-width: 1100px !important;
	margin: 0 auto !important;
	padding: 40px 20px 60px !important;
}

/* ── Solutions grid ── */
.kne-profile-wrap .kne-profile-solutions {
	display: grid !important;
	gap: 24px !important;
	margin-bottom: 40px !important;
}

.kne-profile-wrap .kne-profile-solutions--one {
	grid-template-columns: 1fr !important;
}

.kne-profile-wrap .kne-profile-solutions--two {
	grid-template-columns: repeat(2, 1fr) !important;
}

/* ── Solution card ── */
.kne-profile-wrap .kne-sol-card {
	background: #fff !important;
	border: 1px solid #E4E4E7 !important;
	border-radius: 12px !important;
	padding: 28px !important;
	box-shadow: none !important;
}

.kne-profile-wrap .kne-sol-name {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #18181B !important;
	margin: 0 0 8px !important;
	line-height: 1.3 !important;
}

.kne-profile-wrap .kne-sol-type {
	font-size: 14px !important;
	color: #52525B !important;
	margin: 0 0 14px !important;
	line-height: 1.5 !important;
}

.kne-profile-wrap .kne-sol-type strong {
	color: #18181B !important;
	font-weight: 600 !important;
}

.kne-profile-wrap .kne-sol-desc {
	font-size: 14px !important;
	color: #52525B !important;
	line-height: 1.75 !important;
	margin: 0 0 20px !important;
}

/* Collateral rows */
.kne-profile-wrap .kne-sol-collateral-row {
	display: flex !important;
	align-items: center !important;
	gap: 14px !important;
	margin-bottom: 10px !important;
}

.kne-profile-wrap .kne-sol-collateral-title {
	font-size: 14px !important;
	color: #18181B !important;
	font-weight: 400 !important;
	white-space: nowrap !important;
}

.kne-profile-wrap .kne-sol-download-btn {
	display: inline-block !important;
	background: #18181B !important;
	color: #fff !important;
	padding: 7px 18px !important;
	border-radius: 6px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	border: none !important;
	line-height: 1.4 !important;
	cursor: pointer !important;
	transition: background .15s !important;
}

.kne-profile-wrap .kne-sol-download-btn:hover {
	background: #000 !important;
	color: #fff !important;
	text-decoration: none !important;
}

/* Video embed */
.kne-profile-wrap .kne-sol-video-wrap {
	position: relative !important;
	padding-bottom: 56.25% !important;
	height: 0 !important;
	overflow: hidden !important;
	border-radius: 8px !important;
	margin: 20px 0 !important;
	background: #d4d4d8 !important;
}

.kne-profile-wrap .kne-sol-video-wrap iframe {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	border: none !important;
}

/* Country */
.kne-profile-wrap .kne-sol-country {
	font-size: 14px !important;
	color: #18181B !important;
	margin: 16px 0 0 !important;
	line-height: 1.5 !important;
}

.kne-profile-wrap .kne-sol-country strong {
	font-weight: 600 !important;
}

/* ── "Want to Know More?" contact section ── */
.kne-profile-wrap .kne-profile-contact-section {
	background: #FAFAFA !important;
	border: 1px solid #E4E4E7 !important;
	border-radius: 12px !important;
	padding: 48px 40px !important;
	margin-bottom: 40px !important;
	text-align: center !important;
}

.kne-profile-wrap .kne-profile-contact-inner {
	max-width: 600px !important;
	margin: 0 auto !important;
}

.kne-profile-wrap .kne-profile-contact-heading {
	font-size: 26px !important;
	font-weight: 700 !important;
	color: #18181B !important;
	margin: 0 0 10px !important;
	line-height: 1.3 !important;
}

.kne-profile-wrap .kne-profile-contact-subheading {
	font-size: 15px !important;
	color: #52525B !important;
	margin: 0 0 28px !important;
	line-height: 1.6 !important;
}

.kne-profile-wrap .kne-profile-contact-form {
	text-align: left !important;
}

/* Back link */
.kne-profile-wrap .kne-profile-back {
	margin-top: 8px !important;
}

.kne-profile-wrap .kne-profile-back-link {
	font-size: 14px !important;
	color: #18181B !important;
	text-decoration: none !important;
	font-weight: 500 !important;
}

.kne-profile-wrap .kne-profile-back-link:hover {
	text-decoration: underline !important;
	color: #18181B !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
	.kne-card-logo { width: 180px; height: 70px; }
}

@media (max-width: 768px) {
	/* Form */
	.kne-form-company { grid-template-columns: 1fr; }
	.kne-field--full { grid-column: 1; }
	.kne-solution-grid { grid-template-columns: 1fr; }
	.kne-collateral-row { grid-template-columns: 1fr; }

	/* Toolbar */
	.kne-marketplace-toolbar {
		flex-direction: column !important;
		align-items: stretch !important;
	}
	.kne-search-field-wrap { max-width: 100% !important; }
	.kne-toolbar-right {
		flex-wrap: wrap;
		justify-content: flex-end;
	}

	/* Cards */
	.kne-card-top {
		flex-direction: column;
		gap: 14px;
		padding: 18px 20px;
	}
	.kne-card-identity { flex-direction: column; }
	.kne-card-logo { width: 100% !important; height: 72px !important; }
	.kne-card-actions { width: 100%; justify-content: flex-start; }
	.kne-card-solutions--two { grid-template-columns: 1fr !important; }
	.kne-card-solutions { padding: 14px 20px; }
	.kne-card-divider { margin: 0 20px; }

	/* Profile */
	.kne-profile-wrap .kne-profile-company-row { flex-direction: column !important; gap: 20px !important; }
	.kne-profile-wrap .kne-profile-logo-wrap { width: 140px !important; height: 80px !important; }
	.kne-profile-wrap .kne-profile-company-name { font-size: 22px !important; }
	.kne-profile-wrap .kne-profile-solutions--two { grid-template-columns: 1fr !important; }
}

@keyframes kne-fade-in {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}
