/* =========================================================================
   Cowboy Bride – Careers
   Colours and fonts live in the variables below. To use Fitzgerald /
   Sackers Italian Script, add them in Elementor → Custom Fonts with exactly
   those family names; otherwise the Google fallbacks are used.
   Selectors start with an ID so Elementor kit / theme styles can't override them.
   ====================================================================== */
#cb-positions,
#cb-panel,
#cb-overlay,
.cb-intro-btn {
	--cb-green: #173029;
	--cb-green-dark: #0f221d;
	--cb-sage: #4f6b60;
	--cb-cream: #f7f3ec;
	--cb-sand: #e9e1d5;
	--cb-sand-2: #efe8dc;
	--cb-line: #d9cfbe;
	--cb-text: #2a2f2b;
	--cb-body: #44463f;
	--cb-muted: #6c6a63;
	--cb-serif: Fitzgerald, "Cormorant Garamond", Georgia, serif;
	--cb-script: "Sackers Italian Script", "Pinyon Script", cursive;
	--cb-sans: Poppins, system-ui, sans-serif;
}

#cb-positions *, #cb-panel * { box-sizing: border-box; }
html.cb-lock, html.cb-lock body { overflow: hidden; }

/* ---------- Heading + filters ---------- */
#cb-positions { font-family: var(--cb-sans); color: var(--cb-text); }
#cb-positions .cb-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: clamp(36px, 5vw, 64px); }
#cb-positions .cb-head__script { font-family: var(--cb-script); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; color: var(--cb-green); margin-bottom: 6px; }
#cb-positions .cb-head__title { margin: 0; font-family: var(--cb-serif); font-weight: 300; text-transform: uppercase; font-size: clamp(34px, 4.2vw, 58px); line-height: 1; letter-spacing: 0; color: var(--cb-green); }
#cb-positions .cb-filters { display: flex; flex-wrap: wrap; gap: 8px; }
#cb-positions .cb-filter {
	cursor: pointer; margin: 0; padding: 10px 16px; border: 1px solid var(--cb-green); border-radius: 0; box-shadow: none;
	background: transparent; color: var(--cb-green); font-family: var(--cb-sans); font-size: 10px; font-weight: 400;
	line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; transition: background .3s, color .3s;
}
#cb-positions .cb-filter:hover { background: var(--cb-sand-2); color: var(--cb-green); }
#cb-positions .cb-filter[aria-pressed="true"] { background: var(--cb-green); color: var(--cb-cream); }
#cb-positions .cb-filter:focus-visible { outline: 1px solid var(--cb-green); outline-offset: 3px; }

/* ---------- Editorial rows ---------- */
#cb-positions .cb-list--rows { border-top: 1px solid var(--cb-green); }
#cb-positions .cb-job {
	display: flex; flex-wrap: wrap; align-items: center; gap: clamp(18px, 3vw, 48px);
	padding: clamp(28px, 3.4vw, 44px) clamp(4px, 1.5vw, 20px); border-bottom: 1px solid var(--cb-line);
	color: var(--cb-text); text-decoration: none; transition: background .45s ease;
}
#cb-positions .cb-job:hover { background: var(--cb-sand-2); color: var(--cb-text); }
#cb-positions .cb-job:focus-visible { outline: 1px solid var(--cb-green); outline-offset: -1px; }
#cb-positions .cb-job[hidden], #cb-positions .cb-card[hidden] { display: none; }
#cb-positions .cb-job__num { width: 28px; font-family: var(--cb-serif); font-size: 14px; color: #8b8a80; }
#cb-positions .cb-job__main { flex: 1 1 340px; min-width: 0; }
#cb-positions .cb-job__dept { font-family: var(--cb-script); font-size: 22px; line-height: 1.3; color: var(--cb-sage); margin-bottom: 4px; }
#cb-positions .cb-job__title { margin: 0; font-family: var(--cb-serif); font-weight: 300; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; letter-spacing: 0; color: var(--cb-green); }
#cb-positions .cb-job__short { margin: 14px 0 0; max-width: 520px; font-size: 13px; font-weight: 300; line-height: 1.8; color: #55574f; text-wrap: pretty; }
#cb-positions .cb-job__meta { flex: 0 1 220px; display: grid; gap: 8px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--cb-text); }
#cb-positions .cb-job__type { color: var(--cb-muted); }
#cb-positions .cb-job__cta { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--cb-green); }
#cb-positions .cb-job__cta-text { border-bottom: 1px solid var(--cb-green); padding-bottom: 3px; }
#cb-positions .cb-arrow { font-family: "Cormorant Garamond", serif; font-size: 20px; letter-spacing: 0; }

/* ---------- Two-column cards ---------- */
#cb-positions .cb-list--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: clamp(20px, 3vw, 40px); }
#cb-positions .cb-card { display: flex; flex-direction: column; background: var(--cb-sand-2); color: var(--cb-text); text-decoration: none; transition: background .45s; }
#cb-positions .cb-card:hover { background: #e8dfd1; color: var(--cb-text); }
#cb-positions .cb-card:focus-visible { outline: 1px solid var(--cb-green); outline-offset: 3px; }
#cb-positions .cb-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: #e3d9c8; }
#cb-positions .cb-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
#cb-positions .cb-card__body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 36px); }
#cb-positions .cb-card__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--cb-muted); }
#cb-positions .cb-card .cb-job__dept { margin: 6px 0 0; }
#cb-positions .cb-card .cb-job__title { margin-top: -8px; font-size: clamp(24px, 2.4vw, 32px); }
#cb-positions .cb-card .cb-job__short { margin: 0; flex: 1; }
#cb-positions .cb-card__cta { align-self: flex-start; margin-top: 8px; padding-bottom: 3px; border-bottom: 1px solid var(--cb-green); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--cb-green); }

#cb-positions .cb-empty { margin: 0; padding: 40px 0; border-top: 1px solid var(--cb-green); font-size: 14px; font-weight: 300; line-height: 1.8; color: var(--cb-body); }
#cb-positions .cb-empty a { color: var(--cb-green); border-bottom: 1px solid var(--cb-green); text-decoration: none; }

/* ---------- Small shortcodes ---------- */
a.cb-count.cb-count, span.cb-count.cb-count { color: inherit; text-decoration: none; }
a.cb-intro-btn.cb-intro-btn {
	display: inline-block; padding: 13px 26px; border: 1px solid var(--cb-green); outline: 1px solid var(--cb-green); outline-offset: 3px;
	background: transparent; color: var(--cb-green); font-family: var(--cb-sans); font-size: 10px; letter-spacing: .2em;
	text-transform: uppercase; text-decoration: none; transition: background .3s, color .3s;
}
a.cb-intro-btn.cb-intro-btn:hover { background: var(--cb-green); color: var(--cb-cream); }

/* ---------- Overlay + panel ---------- */
#cb-overlay {
	position: fixed; inset: 0; z-index: 100000; background: rgba(18, 32, 27, .42);
	-webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .6s ease;
}
#cb-overlay.is-open { opacity: 1; pointer-events: auto; }

#cb-panel {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 100001; width: min(880px, 100vw);
	display: flex; flex-direction: column; background: var(--cb-cream); color: var(--cb-text); font-family: var(--cb-sans);
	box-shadow: -30px 0 80px rgba(10, 24, 20, .18); transform: translateX(calc(100% + 140px)); visibility: hidden;
	transition: transform .75s cubic-bezier(.22, .9, .24, 1), visibility 0s linear .75s;
}
#cb-panel.is-open { transform: translateX(0); visibility: visible; transition: transform .75s cubic-bezier(.22, .9, .24, 1); }

#cb-panel .cb-panel__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(20px, 4vw, 52px); border-bottom: 1px solid #e3dacb; background: var(--cb-cream); }
#cb-panel .cb-panel__counter { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--cb-muted); }
#cb-panel .cb-panel__actions { display: flex; align-items: center; gap: 22px; margin-left: auto; }
#cb-panel .cb-btn-solid {
	cursor: pointer; margin: 0; padding: 11px 18px; border: 0; border-radius: 0; background: var(--cb-green); color: var(--cb-cream);
	font-family: var(--cb-sans); font-size: 10px; font-weight: 400; line-height: 1.2; letter-spacing: .2em; text-transform: uppercase;
}
#cb-panel .cb-btn-solid:hover { background: var(--cb-green-dark); color: var(--cb-cream); }
#cb-panel .cb-close {
	cursor: pointer; display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 0; border: 0; border-radius: 0; background: none;
	color: var(--cb-green); font-family: var(--cb-sans); font-size: 10px; font-weight: 400; line-height: 1.2; letter-spacing: .2em; text-transform: uppercase;
}
#cb-panel .cb-close:hover { background: none; color: var(--cb-sage); }
#cb-panel .cb-close span { font-family: "Cormorant Garamond", serif; font-size: 26px; line-height: .6; letter-spacing: 0; }
#cb-panel button:focus-visible, #cb-panel a:focus-visible { outline: 1px solid var(--cb-green); outline-offset: 3px; }

#cb-panel .cb-panel__scroll { flex: 1; position: relative; overflow-y: auto; overscroll-behavior: contain; }
#cb-panel .cb-panel__head { padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 52px) 0; }
#cb-panel .cb-panel__dept { font-family: var(--cb-script); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; color: var(--cb-sage); }
#cb-panel .cb-panel__title { margin: 6px 0 0; font-family: var(--cb-serif); font-weight: 300; text-transform: uppercase; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; letter-spacing: 0; color: var(--cb-green); text-wrap: balance; }
#cb-panel .cb-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; margin-top: 36px; background: var(--cb-line); border-top: 1px solid var(--cb-line); border-bottom: 1px solid var(--cb-line); }
#cb-panel .cb-meta__item { display: grid; gap: 6px; padding: 16px 16px 16px 0; background: var(--cb-cream); }
#cb-panel .cb-meta__label { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--cb-muted); }
#cb-panel .cb-meta__value { font-size: 13px; color: var(--cb-green); }

#cb-panel .cb-panel__image { margin: 36px clamp(20px, 4vw, 52px) 0; aspect-ratio: 16 / 7; overflow: hidden; background: #e3d9c8; }
#cb-panel .cb-panel__image[hidden] { display: none; }
#cb-panel .cb-panel__image img { width: 100%; height: 100%; object-fit: cover; display: block; }

#cb-panel .cb-panel__body { display: grid; gap: clamp(36px, 4.5vw, 52px); padding: clamp(36px, 5vw, 56px) clamp(20px, 4vw, 52px); }
#cb-panel .cb-lead { margin: 0; font-family: var(--cb-serif); font-weight: 300; font-size: clamp(20px, 2vw, 25px); line-height: 1.5; color: var(--cb-green); text-wrap: pretty; }
#cb-panel .cb-richtext { margin-top: 22px; font-size: 13.5px; font-weight: 300; line-height: 1.95; color: var(--cb-body); }
#cb-panel .cb-richtext:empty { display: none; }
#cb-panel .cb-richtext p { margin: 0 0 1em; }
#cb-panel .cb-richtext > :last-child { margin-bottom: 0; }
#cb-panel .cb-richtext a { color: var(--cb-green); text-decoration: underline; }

#cb-panel .cb-sections { display: grid; gap: clamp(36px, 4.5vw, 52px); }
#cb-panel .cb-sections:empty { display: none; }
#cb-panel .cb-section { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr; gap: 16px 40px; padding-top: 26px; border-top: 1px solid var(--cb-line); }
#cb-panel .cb-section__title { margin: 0; font-family: var(--cb-serif); font-weight: 300; text-transform: uppercase; font-size: 20px; line-height: 1.2; letter-spacing: .03em; color: var(--cb-green); }
#cb-panel .cb-section ul { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 0; list-style: none; }
#cb-panel .cb-section li { display: flex; gap: 14px; margin: 0; font-size: 13.5px; font-weight: 300; line-height: 1.75; color: var(--cb-body); }
#cb-panel .cb-section li::before { content: ""; flex: 0 0 14px; height: 1px; margin-top: 12px; background: var(--cb-sage); }

#cb-panel .cb-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding: 24px 26px; background: var(--cb-green); color: #e6e3da; font-size: 12.5px; font-weight: 300; line-height: 1.8; }
#cb-panel .cb-note[hidden] { display: none; }
#cb-panel .cb-note__text { max-width: 460px; }
#cb-panel .cb-note__deadline { align-self: center; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #f2ece2; }

/* ---------- Application form ---------- */
#cb-panel .cb-apply { padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 52px) clamp(56px, 7vw, 88px); background: var(--cb-sand); }
#cb-panel .cb-apply__script { font-family: var(--cb-script); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; color: var(--cb-green); }
#cb-panel .cb-apply__title { margin: 4px 0 0; font-family: var(--cb-serif); font-weight: 300; text-transform: uppercase; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.05; letter-spacing: 0; color: var(--cb-green); }
#cb-panel .cb-apply__for { margin-top: 14px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--cb-sage); }

#cb-panel .cb-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 30px 36px; margin: 40px 0 0; }
#cb-panel .cb-form[hidden] { display: none; }
#cb-panel .cb-field { display: grid; gap: 8px; margin: 0; }
#cb-panel .cb-field--full { grid-column: 1 / -1; }
#cb-panel .cb-label { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: #4b4e48; }
#cb-panel .cb-input {
	width: 100%; margin: 0; padding: 10px 0; border: 0; border-bottom: 1px solid var(--cb-green); border-radius: 0; box-shadow: none;
	background: transparent; color: var(--cb-green); font-family: var(--cb-sans); font-size: 15px; line-height: 1.5; outline: none;
	transition: box-shadow .2s;
}
#cb-panel .cb-input:focus { box-shadow: 0 1px 0 var(--cb-green); background: transparent; }
#cb-panel .cb-input::placeholder { color: #8b8a80; opacity: 1; }
#cb-panel textarea.cb-input { min-height: 120px; line-height: 1.7; resize: vertical; }

#cb-panel .cb-file {
	grid-column: 1 / -1; position: relative; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 14px; padding: 22px 24px; border: 1px dashed #6f7e75; background: var(--cb-sand-2);
}
#cb-panel .cb-file:focus-within { outline: 1px solid var(--cb-green); outline-offset: 2px; }
#cb-panel .cb-file__text { display: grid; gap: 4px; min-width: 0; }
#cb-panel .cb-file__name { font-size: 13px; color: var(--cb-green); overflow-wrap: anywhere; }
#cb-panel .cb-file__btn { padding-bottom: 3px; border-bottom: 1px solid var(--cb-green); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--cb-green); }
#cb-panel .cb-file input { position: absolute; left: 24px; bottom: 10px; width: 1px; height: 1px; opacity: 0; }

#cb-panel .cb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

#cb-panel .cb-form__error { grid-column: 1 / -1; margin: 0; padding: 10px 14px; background: #f4e4df; color: #7a2a22; font-size: 12.5px; line-height: 1.6; }
#cb-panel .cb-form__error[hidden] { display: none; }
#cb-panel .cb-form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 6px; }
#cb-panel .cb-form__note { max-width: 340px; font-size: 11px; font-weight: 300; line-height: 1.7; color: #55574f; }
#cb-panel .cb-submit {
	cursor: pointer; margin: 0; padding: 15px 30px; border: 1px solid var(--cb-green); border-radius: 0; outline: 1px solid var(--cb-green); outline-offset: 3px;
	background: var(--cb-green); color: var(--cb-cream); font-family: var(--cb-sans); font-size: 10px; font-weight: 400; line-height: 1.2;
	letter-spacing: .22em; text-transform: uppercase;
}
#cb-panel .cb-submit:hover { background: var(--cb-green-dark); color: var(--cb-cream); }
#cb-panel .cb-submit[disabled] { opacity: .6; cursor: wait; }

#cb-panel .cb-thanks { max-width: 520px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--cb-green); }
#cb-panel .cb-thanks[hidden] { display: none; }
#cb-panel .cb-thanks__script { font-family: var(--cb-script); font-size: 34px; line-height: 1.3; color: var(--cb-green); }
#cb-panel .cb-thanks p { margin: 10px 0 0; font-size: 13.5px; font-weight: 300; line-height: 1.9; color: var(--cb-body); }

/* ---------- Small screens + reduced motion ---------- */
@media (max-width: 640px) {
	#cb-panel .cb-section { grid-template-columns: 1fr; }
	#cb-panel .cb-panel__actions { gap: 14px; }
	#cb-panel .cb-panel__counter { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	#cb-panel, #cb-panel.is-open, #cb-overlay, #cb-positions .cb-job, #cb-positions .cb-card { transition: none; }
}

/* =========================================================================
   Helpers for the Elementor page template
   ====================================================================== */
.cb-count--lines { display: inline-flex; align-items: center; gap: 18px; }
.cb-count--lines::before,
.cb-count--lines::after { content: ""; width: 48px; height: 1px; background: currentColor; }

/* Double-outline button: add CSS class "cb-outline-btn" to an Elementor Button */
.cb-outline-btn.cb-outline-btn .elementor-button { outline: 1px solid currentColor; outline-offset: 3px; transition: background .3s, color .3s; }

/* Text Editor widgets with class "cb-tight": no extra space under the last paragraph */
.cb-tight.cb-tight p:last-child { margin-bottom: 0; }

/* =========================================================================
   Elementor Form inside the popup
   These styles apply when the Form widget has the CSS class "cb-form-skin".
   Remove that class (Form → Advanced → CSS Classes) to style it fully in Elementor.
   ====================================================================== */
#cb-panel .cb-eform { margin-top: 40px; }
#cb-panel .elementor-field-type-hidden { display: none !important; }

#cb-panel .cb-form-skin .elementor-field-label {
	margin-bottom: 8px; padding: 0; font-family: var(--cb-sans); font-size: 9.5px; font-weight: 400;
	letter-spacing: .2em; text-transform: uppercase; color: #4b4e48;
}
#cb-panel .cb-form-skin .elementor-mark-required .elementor-field-label::after { color: var(--cb-sage); }
#cb-panel .cb-form-skin .elementor-field-group .elementor-field-textual,
#cb-panel .cb-form-skin .elementor-field-group textarea {
	min-height: 0; padding: 10px 0; border: 0; border-bottom: 1px solid var(--cb-green); border-radius: 0; box-shadow: none;
	background: transparent; color: var(--cb-green); font-family: var(--cb-sans); font-size: 15px; line-height: 1.5;
}
#cb-panel .cb-form-skin .elementor-field-group textarea { line-height: 1.7; resize: vertical; }
#cb-panel .cb-form-skin .elementor-field-group .elementor-field-textual:focus { outline: none; box-shadow: 0 1px 0 var(--cb-green); }
#cb-panel .cb-form-skin .elementor-field-textual::placeholder { color: #8b8a80; opacity: 1; }

#cb-panel .cb-form-skin .elementor-field-group .elementor-upload-field {
	width: 100%; padding: 22px 24px; border: 1px dashed #6f7e75; border-radius: 0; background: var(--cb-sand-2);
	color: var(--cb-green); font-family: var(--cb-sans); font-size: 13px; cursor: pointer;
}
#cb-panel .cb-form-skin .elementor-upload-field::file-selector-button {
	margin-right: 18px; padding: 0 0 3px; border: 0; border-bottom: 1px solid var(--cb-green); background: none; cursor: pointer;
	color: var(--cb-green); font-family: var(--cb-sans); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
}

#cb-panel .cb-form-skin .e-form__buttons,
#cb-panel .cb-form-skin .elementor-field-type-submit { justify-content: flex-end; margin-top: 6px; }
#cb-panel .cb-form-skin .elementor-button {
	padding: 15px 30px; border: 1px solid var(--cb-green); border-radius: 0; outline: 1px solid var(--cb-green); outline-offset: 3px;
	background: var(--cb-green); color: var(--cb-cream); font-family: var(--cb-sans); font-size: 10px; font-weight: 400;
	line-height: 1.2; letter-spacing: .22em; text-transform: uppercase;
}
#cb-panel .cb-form-skin .elementor-button:hover { background: var(--cb-green-dark); color: var(--cb-cream); }

#cb-panel .cb-form-skin .elementor-message { margin-top: 24px; font-family: var(--cb-sans); font-size: 13.5px; font-weight: 300; line-height: 1.9; color: var(--cb-body); }
#cb-panel .cb-form-skin .elementor-message-success { padding-top: 24px; border-top: 1px solid var(--cb-green); }
#cb-panel .cb-form-skin .elementor-message-success::before { display: none; }
#cb-panel .cb-form-skin .elementor-message-danger { color: #7a2a22; }
