/*
 * CATS Jobs Connect
 * - Colours/fonts default to Elementor Global Colors & Fonts, then block-theme presets, then neutral fallbacks.
 * - Cosmetic rules are wrapped in :where() (zero specificity) so your theme, Elementor Site Settings
 *   and the widget's Style controls always win. Layout rules keep normal specificity.
 */

.cjc {
	--cjc-accent: var(--e-global-color-accent, var(--e-global-color-primary, var(--wp--preset--color--primary, #2f6fde)));
	--cjc-text: var(--e-global-color-text, inherit);
	--cjc-heading: var(--e-global-color-secondary, inherit);
	--cjc-muted: color-mix(in srgb, currentColor 62%, transparent);
	--cjc-border: color-mix(in srgb, currentColor 14%, transparent);
	--cjc-soft: color-mix(in srgb, currentColor 5%, transparent);
	--cjc-card: transparent;
	--cjc-radius: 8px;
	--cjc-gap: 0px;
	--cjc-col-loc: 22%;
	--cjc-col-type: 16%;
	--cjc-col-action: auto;
	--cjc-icon-size: 16px;
	--cjc-icon-box: 34px;
	--cjc-font-heading: var(--e-global-typography-primary-font-family, inherit);
	--cjc-font-text: var(--e-global-typography-text-font-family, inherit);
	position: relative;
}
.cjc *, .cjc *::before, .cjc *::after { box-sizing: border-box; }
.cjc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cjc [hidden], .cjc .cjc-is-hidden { display: none !important; }

/* ---------- Cosmetic defaults (zero specificity) ---------- */
:where(.cjc) { color: var(--cjc-text); font-family: var(--cjc-font-text); }
:where(.cjc) a { color: inherit; }
:where(.cjc .cjc-job-title, .cjc .cjc-single-title, .cjc .cjc-apply-title) { font-family: var(--cjc-font-heading); color: var(--cjc-heading); }
:where(.cjc .cjc-job-title) { font-size: 1.02em; font-weight: 700; line-height: 1.35; margin: 0; }
:where(.cjc .cjc-job-title a) { text-decoration: none; transition: color .15s; }
:where(.cjc .cjc-job-title a:hover, .cjc .cjc-job-title a:focus) { color: var(--cjc-accent); }
:where(.cjc .cjc-job-type) { color: var(--cjc-accent); }
:where(.cjc .cjc-job-loc, .cjc .cjc-meta, .cjc .cjc-excerpt, .cjc .cjc-count, .cjc .cjc-hint) { color: var(--cjc-muted); }
:where(.cjc .cjc-job-icon) {
	color: var(--cjc-muted); background: var(--cjc-soft); border-radius: 4px;
}

/* Inputs: inherit Elementor "Form Fields" site styles when present. */
:where(.cjc) .cjc-input {
	width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: inherit;
	background: #fff; border: 1px solid var(--cjc-border); border-radius: 4px;
}
:where(.cjc) textarea.cjc-input { min-height: 120px; }
:where(.cjc) .cjc-input:focus { outline: 2px solid var(--cjc-accent); outline-offset: 0; border-color: var(--cjc-accent); }

/* Buttons: "plugin" style only. Theme style uses .elementor-button / your theme buttons as-is. */
:where(.cjc) .cjc-btn--styled {
	display: inline-block; padding: 12px 24px; border: 1px solid var(--cjc-accent); border-radius: 4px;
	background: var(--cjc-accent); color: #fff; font: inherit; font-weight: 600; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: filter .15s;
}
:where(.cjc) .cjc-btn--styled:hover, :where(.cjc) .cjc-btn--styled:focus { filter: brightness(.92); color: #fff; }
.cjc .cjc-btn { cursor: pointer; text-align: center; }
.cjc .cjc-btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Search bar ---------- */
.cjc .cjc-search { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 24px; align-items: stretch; }
.cjc .cjc-search-field { position: relative; flex: 0 1 350px; min-width: 180px; }
.cjc .cjc-search-btn { flex: 0 0 auto; margin: 0; }
.cjc .cjc-count { margin: 0 0 12px; }

/* The wrapper (.cjc-control) is the visible box; style it via the widget controls. */
.cjc .cjc-control {
	position: relative; display: flex; align-items: center; gap: 10px;
	width: 100%; height: 48px; padding: 0 16px; margin: 0; overflow: hidden;
	font-family: inherit; line-height: 1.2; cursor: text;
}
.cjc .cjc-control--select { cursor: pointer; }
:where(.cjc) .cjc-control { background-color: #fff; border: 1px solid var(--cjc-border); border-radius: 4px; color: inherit; font-size: 15px; }
:where(.cjc) .cjc-control--text { background-color: var(--cjc-soft); border-color: transparent; }
:where(.cjc) .cjc-control:focus-within { border-color: var(--cjc-accent); box-shadow: 0 0 0 1px var(--cjc-accent); }

/* Hard reset of the real input/select so theme & Site Settings form styles can't break it. */
.cjc .cjc-control .cjc-control-input {
	-webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important;
	flex: 1 1 auto !important; min-width: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important;
	margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
	background: transparent none !important; box-shadow: none !important; outline: 0 !important;
	font: inherit !important; color: inherit !important; letter-spacing: inherit; text-transform: none; line-height: normal !important;
	text-indent: 0 !important; min-height: 0 !important;
}
.cjc .cjc-control select.cjc-control-input { padding-right: 26px !important; cursor: pointer; text-overflow: ellipsis; }
.cjc .cjc-control select.cjc-control-input::-ms-expand { display: none; }
.cjc .cjc-control select.cjc-control-input option { color: #1f2328; background: #fff; }
.cjc .cjc-control .cjc-control-input::placeholder { color: inherit; opacity: .6; }
.cjc .cjc-control-icon, .cjc .cjc-control-arrow { flex: none; display: inline-flex; line-height: 0; pointer-events: none; font-size: 16px; }
.cjc .cjc-control-icon svg, .cjc .cjc-control-arrow svg { width: 1em; height: 1em; }
.cjc .cjc-control-arrow { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
:where(.cjc) .cjc-control-icon, :where(.cjc) .cjc-control-arrow { color: var(--cjc-muted); }

/* Admin / editor notices */
.cjc .cjc-notice { margin: 0 0 16px; padding: 10px 14px; border-left: 4px solid #dba617; background: #fcf9e8; color: #3c3c3c; font-size: 13px; line-height: 1.5; }
.cjc .cjc-notice a { color: #2271b1; }
.cjc .cjc-notice--info { border-left-color: #2271b1; background: #f0f6fc; }

/* ---------- Job rows (shared) ---------- */
.cjc .cjc-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--cjc-gap); }
.cjc .cjc-job { position: relative; margin: 0; display: flex; gap: 14px; align-items: flex-start; }
:where(.cjc .cjc-job) { background: var(--cjc-card); transition: background .15s, box-shadow .15s, border-color .15s; }
.cjc .cjc-job-icon {
	flex: none; width: var(--cjc-icon-box); height: var(--cjc-icon-box);
	display: inline-flex; align-items: center; justify-content: center; font-size: var(--cjc-icon-size); line-height: 1;
}
.cjc .cjc-job-icon svg { width: var(--cjc-icon-size); height: var(--cjc-icon-size); }
.cjc .cjc-job-icon img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cjc .cjc-job-body { flex: 1 1 auto; min-width: 0; }
.cjc .cjc-job .cjc-job-title { margin: 0; padding: 0; }
.cjc .cjc-job .cjc-job-title a { overflow-wrap: anywhere; }
.cjc .cjc-job .cjc-job-loc, .cjc .cjc-job .cjc-job-type { overflow-wrap: anywhere; }
.cjc .cjc-meta { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .9em; }
.cjc .cjc-meta li { margin: 0; padding: 0; }
.cjc .cjc-excerpt { margin: 6px 0 0; }
.cjc .cjc-job.is-hot .cjc-job-title::after { content: ""; }

/* Whole row clickable */
.cjc-row-link .cjc-job-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cjc-row-link .cjc-job-action { position: relative; z-index: 2; }

/* ---------- Layout: list (rows like the classic CATS portal) ---------- */
.cjc-layout-list .cjc-jobs { border-top: 1px solid var(--cjc-border); }
:where(.cjc-layout-list .cjc-job) { padding: 18px 0; border-bottom: 1px solid transparent; }
:where(.cjc-layout-list .cjc-job:hover) { background: var(--cjc-soft); }
.cjc-layout-list .cjc-job-body,
.cjc-layout-list .cjc-header-row .cjc-job-body {
	display: grid; align-items: center; column-gap: 24px;
	grid-template-columns: minmax(0, 1fr) var(--cjc-col-loc) var(--cjc-col-type);
}
.cjc-layout-list.cjc-has-button .cjc-job-body {
	grid-template-columns: minmax(0, 1fr) var(--cjc-col-loc) var(--cjc-col-type) var(--cjc-col-action);
}
.cjc-layout-list .cjc-job-action { justify-self: end; }
.cjc-layout-list .cjc-header-row .cjc-head { background: none; padding: 0; border: 0; }
.cjc .cjc-ghost { visibility: hidden; height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; border-top: 0 !important; border-bottom: 0 !important; overflow: hidden; display: block; }
.cjc .cjc-job-btn { white-space: nowrap; }
.cjc-layout-list .cjc-job-body > :nth-child(1) { grid-column: 1; }
.cjc-layout-list .cjc-job-loc { grid-column: 2; }
.cjc-layout-list .cjc-job-type { grid-column: 3; text-align: right; }
.cjc-layout-list .cjc-job-action { grid-column: 4; }
.cjc-layout-list .cjc-job { align-items: center; }
.cjc-layout-list .cjc-header-row { display: flex; gap: 14px; padding: 0 0 10px; }
.cjc-layout-list .cjc-header-row .cjc-head { font-size: .85em; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
:where(.cjc-layout-list .cjc-header-row .cjc-head) { color: var(--cjc-muted); }
.cjc-layout-list .cjc-icon-spacer { height: 0 !important; background: none !important; }

/* ---------- Layout: cards / grid ---------- */
.cjc-layout-cards .cjc-jobs, .cjc-layout-grid .cjc-jobs { --cjc-gap: 16px; }
.cjc-layout-grid .cjc-jobs { grid-template-columns: repeat(var(--cjc-cols, 3), minmax(0, 1fr)); }
:where(.cjc-layout-cards .cjc-job, .cjc-layout-grid .cjc-job) {
	padding: 22px 24px; border: 1px solid var(--cjc-border); border-radius: var(--cjc-radius); background: var(--cjc-card);
}
:where(.cjc-layout-cards .cjc-job:hover, .cjc-layout-grid .cjc-job:hover) { border-color: var(--cjc-accent); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.cjc-layout-cards .cjc-job-body, .cjc-layout-grid .cjc-job-body { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.cjc-layout-cards .cjc-job-main, .cjc-layout-grid .cjc-job-main { flex: 1 1 100%; }
.cjc-layout-cards .cjc-job-loc, .cjc-layout-grid .cjc-job-loc,
.cjc-layout-cards .cjc-job-type, .cjc-layout-grid .cjc-job-type { font-size: .92em; }
.cjc-layout-cards .cjc-job-action, .cjc-layout-grid .cjc-job-action { flex: 1 1 100%; margin-top: 10px; }
.cjc-layout-cards .cjc-job-action { flex: 0 0 auto; margin: 0 0 0 auto; }
.cjc-layout-grid .cjc-job { flex-direction: column; }

/* ---------- Empty / load more / pagination ---------- */
.cjc .cjc-empty { padding: 28px 0; margin: 0; text-align: center; }
:where(.cjc .cjc-empty) { color: var(--cjc-muted); }
.cjc .cjc-loadmore-wrap { margin-top: 28px; text-align: center; }
.cjc-pagination { margin-top: 28px; }
.cjc-pagination ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.cjc-pagination li { margin: 0; }
:where(.cjc-pagination) a, :where(.cjc-pagination) span {
	display: inline-block; min-width: 40px; padding: 8px 12px; text-align: center; border: 1px solid var(--cjc-border); border-radius: 4px; text-decoration: none;
}
:where(.cjc-pagination) .current { background: var(--cjc-accent); border-color: var(--cjc-accent); color: #fff; }

/* ---------- Single job ---------- */
.cjc-single .cjc-back { margin: 0 0 18px; }
.cjc-single .cjc-back a { text-decoration: none; }
.cjc-single .cjc-single-head { padding-bottom: 20px; margin-bottom: 24px; }
:where(.cjc-single .cjc-single-head) { border-bottom: 1px solid var(--cjc-border); }
:where(.cjc-single .cjc-single-title) { font-size: clamp(1.7em, 3vw, 2.3em); line-height: 1.2; }
.cjc-single .cjc-single-head .cjc-single-title { margin: 0; }
.cjc-single .cjc-single-head .cjc-meta { font-size: 1em; margin: 8px 0 0; }
.cjc-single .cjc-apply-top { margin-top: 16px; }
:where(.cjc-single .cjc-meta-type) { color: var(--cjc-accent); }

.cjc-single .cjc-apply { margin-top: 40px; scroll-margin-top: 110px; }
:where(.cjc-single .cjc-apply) { padding: 30px; background: var(--cjc-soft); border-radius: var(--cjc-radius); }
:where(.cjc-single .cjc-apply-title) { margin: 0 0 18px; font-size: 1.4em; }
.cjc-single-sidebar .cjc-single-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 40px; align-items: start; }
.cjc-single-sidebar .cjc-apply { margin-top: 0; position: sticky; top: 110px; }
.cjc-single-sidebar .cjc-fields { grid-template-columns: 1fr; }

/* ---------- Form ---------- */
.cjc .cjc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.cjc .cjc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cjc .cjc-field.cjc-wide { grid-column: 1 / -1; }
:where(.cjc .cjc-field > label, .cjc .cjc-field legend) { font-weight: 600; font-size: .95em; }
.cjc .cjc-field fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cjc .cjc-file { padding: 10px; min-height: 0; }
:where(.cjc .cjc-file) { border-style: dashed; background: transparent; }
.cjc .cjc-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
:where(.cjc .cjc-check) { font-weight: 400; }
.cjc .cjc-check input { margin-top: 4px; flex: none; width: auto; min-height: 0; }
.cjc .cjc-req { color: #c62828; }
.cjc .cjc-field.is-invalid .cjc-input { border-color: #c62828; }
.cjc .cjc-field.is-invalid > label, .cjc .cjc-field.is-invalid legend { color: #c62828; }
.cjc .cjc-consent { margin-top: 16px; }
.cjc .cjc-submit { margin-top: 20px; }
.cjc .cjc-msg:empty { display: none; }
.cjc .cjc-msg { margin-top: 16px; padding: 12px 14px; border-radius: 4px; }
.cjc .cjc-msg.is-error { background: #fdecea; color: #8a1c1c; }
.cjc .cjc-success { padding: 22px; border-radius: 6px; background: #e8f5e9; color: #1b5e20; font-weight: 500; }
.cjc .cjc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.cjc-layout-grid .cjc-jobs { grid-template-columns: repeat(var(--cjc-cols-tablet, 2), minmax(0, 1fr)); }
	.cjc-single-sidebar .cjc-single-grid { grid-template-columns: 1fr; }
	.cjc-single-sidebar .cjc-apply { position: static; }
}
@media (max-width: 767px) {
	.cjc .cjc-search-field { flex: 1 1 100%; min-width: 0; }
	.cjc .cjc-search-btn { width: 100%; }
	.cjc-layout-list .cjc-header-row { display: none; }
	.cjc-layout-list .cjc-job-body { display: flex; flex-wrap: wrap; gap: 4px 14px; }
	.cjc-layout-list .cjc-job-main { flex: 1 1 100%; }
	.cjc-layout-list .cjc-job-type { text-align: left; }
	.cjc-layout-list .cjc-job-action { flex: 1 1 100%; margin-top: 8px; }
	.cjc-layout-grid .cjc-jobs { grid-template-columns: repeat(var(--cjc-cols-mobile, 1), minmax(0, 1fr)); }
	.cjc .cjc-fields { grid-template-columns: 1fr; }
	:where(.cjc-single .cjc-apply) { padding: 20px 16px; }
}

/* ---------- Meta separators ( | • / — chips ) ---------- */
.cjc[class*="cjc-sep-"] .cjc-meta { column-gap: 0; }
.cjc-sep-pipe .cjc-meta li + li::before,
.cjc-sep-dot .cjc-meta li + li::before,
.cjc-sep-slash .cjc-meta li + li::before,
.cjc-sep-dash .cjc-meta li + li::before { display: inline-block; margin: 0 var(--cjc-sep-space, 12px); opacity: .45; color: var(--cjc-sep-color, currentColor); }
.cjc-sep-pipe .cjc-meta li + li::before { content: "|"; }
.cjc-sep-dot .cjc-meta li + li::before { content: "\2022"; }
.cjc-sep-slash .cjc-meta li + li::before { content: "/"; }
.cjc-sep-dash .cjc-meta li + li::before { content: "\2014"; }
.cjc.cjc-sep-none .cjc-meta { column-gap: var(--cjc-sep-space, 18px); }
.cjc.cjc-sep-chips .cjc-meta { gap: 8px; }
.cjc-sep-chips .cjc-meta li { padding: 4px 12px; border-radius: 999px; line-height: 1.4; }
:where(.cjc-sep-chips .cjc-meta li) { background: var(--cjc-soft); }

/* ---------- Single: subtitle, details panel, description ---------- */
.cjc-single .cjc-single-subtitle { margin: 6px 0 0; }
:where(.cjc-single .cjc-single-subtitle) { font-size: 1.1em; color: var(--cjc-muted); }
.cjc-single .cjc-single-main { min-width: 0; }
.cjc .cjc-details { margin: 0 0 28px; }
:where(.cjc .cjc-details-title) { font-size: 1.15em; margin: 0 0 12px; }
.cjc .cjc-details-list, .cjc .cjc-details-list dt, .cjc .cjc-details-list dd { margin: 0; padding: 0; }
.cjc .cjc-detail-value { overflow-wrap: anywhere; }
/* tiles */
.cjc .cjc-details--tiles .cjc-details-list { display: grid; grid-template-columns: repeat(var(--cjc-detail-cols, auto-fit), minmax(170px, 1fr)); gap: 12px; }
.cjc .cjc-details--tiles .cjc-detail { padding: 14px 16px; border-radius: var(--cjc-radius); }
:where(.cjc .cjc-details--tiles .cjc-detail) { background: var(--cjc-soft); }
:where(.cjc .cjc-details--tiles .cjc-detail-label) { font-size: .75em; text-transform: uppercase; letter-spacing: .05em; color: var(--cjc-muted); font-weight: 600; margin-bottom: 4px; }
:where(.cjc .cjc-details--tiles .cjc-detail-value) { font-weight: 600; line-height: 1.4; }
/* table */
.cjc .cjc-details--table .cjc-detail { display: grid; grid-template-columns: minmax(110px, 28%) 1fr; gap: 16px; padding: 10px 0; }
:where(.cjc .cjc-details--table .cjc-detail) { border-bottom: 1px solid var(--cjc-border); }
:where(.cjc .cjc-details--table .cjc-detail:first-child) { border-top: 1px solid var(--cjc-border); }
:where(.cjc .cjc-details--table .cjc-detail-label) { font-weight: 600; }
/* list */
.cjc .cjc-details--list .cjc-detail { display: flex; flex-wrap: wrap; gap: 6px; padding: 3px 0; }
.cjc .cjc-details--list .cjc-detail-label::after { content: ":"; }
:where(.cjc .cjc-details--list .cjc-detail-label) { font-weight: 600; }

/* description rhythm (consistent spacing whatever the CATS editor produced) */
.cjc-single .cjc-description { line-height: 1.7; min-width: 0; }
.cjc-single .cjc-description > * { margin: 0 0 1em; }
.cjc-single .cjc-description > *:last-child { margin-bottom: 0; }
.cjc-single .cjc-description ul, .cjc-single .cjc-description ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.cjc-single .cjc-description li { margin: .25em 0; }
.cjc-single .cjc-description .cjc-desc-heading { margin: 1.6em 0 .6em; line-height: 1.3; }
.cjc-single .cjc-description > .cjc-desc-heading:first-child { margin-top: 0; }
:where(.cjc-single .cjc-desc-heading) { font-size: 1.15em; font-weight: 700; font-family: var(--cjc-font-heading); color: var(--cjc-heading); }

/* ---------- Form: label styles + upload box ---------- */
.cjc .cjc-input-wrap { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
/* placeholder only */
.cjc-labels-placeholder .cjc-field > .cjc-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* floating */
.cjc-labels-floating .cjc-input-wrap > .cjc-label {
	position: absolute; left: 14px; top: 24px; transform: translateY(-50%); margin: 0; padding: 0 4px;
	pointer-events: none; transition: top .15s, font-size .15s, color .15s; line-height: 1.2; max-width: calc(100% - 28px);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--cjc-float-bg, #fff);
}
:where(.cjc-labels-floating .cjc-input-wrap > .cjc-label) { font-weight: 400; color: var(--cjc-muted); }
.cjc-labels-floating .cjc-input:focus + .cjc-label,
.cjc-labels-floating .cjc-input:not(:placeholder-shown) + .cjc-label { top: 0; font-size: .78em; }
:where(.cjc-labels-floating .cjc-input:focus + .cjc-label) { color: var(--cjc-accent); }
.cjc-labels-floating .cjc-type-file > .cjc-label, .cjc-labels-floating .cjc-type-select > .cjc-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* beside (label left, field right) */
.cjc-labels-beside .cjc-fields { grid-template-columns: 1fr; }
.cjc-labels-beside .cjc-field:not(.cjc-type-checkbox):not(.cjc-type-checkboxes):not(.cjc-type-radio):not(.cjc-consent) {
	display: grid; grid-template-columns: minmax(100px, var(--cjc-label-width, 32%)) minmax(0, 1fr); column-gap: 16px; align-items: center;
}
.cjc-labels-beside .cjc-field > .cjc-label { grid-column: 1; margin: 0; }
.cjc-labels-beside .cjc-field > .cjc-input-wrap, .cjc-labels-beside .cjc-field > .cjc-hint { grid-column: 2; }
.cjc-labels-beside .cjc-type-textarea { align-items: start !important; }
.cjc-labels-beside .cjc-type-textarea > .cjc-label { padding-top: 12px; }
/* upload box */
.cjc .cjc-file-input { position: absolute !important; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.cjc .cjc-file-ui { display: flex !important; align-items: center; gap: 10px; cursor: pointer; min-height: 48px; margin: 0; }
:where(.cjc .cjc-file-ui) { border-style: dashed !important; font-weight: 400; }
.cjc .cjc-file-icon { display: inline-flex; font-size: 18px; line-height: 0; }
:where(.cjc .cjc-file-icon) { color: var(--cjc-muted); }
.cjc .cjc-file-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(.cjc .cjc-file-name) { color: var(--cjc-muted); }
.cjc .cjc-file-ui.has-file .cjc-file-name { color: inherit; font-weight: 600; }
.cjc .cjc-file-btn { flex: none; padding: 6px 14px; border-radius: 4px; font-size: .9em; font-weight: 600; }
:where(.cjc .cjc-file-btn) { background: var(--cjc-soft); }
.cjc .cjc-file-ui.is-drag { border-color: var(--cjc-accent) !important; }
.cjc .cjc-file-input:focus-visible + .cjc-file-ui { outline: 2px solid var(--cjc-accent); outline-offset: 1px; }
.cjc .cjc-field.is-invalid .cjc-file-ui { border-color: #c62828 !important; }
@media (max-width: 767px) {
	.cjc-labels-beside .cjc-field:not(.cjc-type-checkbox) { grid-template-columns: 1fr !important; row-gap: 6px; }
	.cjc-labels-beside .cjc-field > * { grid-column: 1 !important; }
	.cjc .cjc-details--table .cjc-detail { grid-template-columns: 1fr; gap: 2px; }
}
