/* Final high-specificity overrides for theme-level button styles. */
.sgo-header__meta button.sgo-distance {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 8px !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	min-height: 0 !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #a9c0d1 !important;
	font: inherit !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	text-transform: none !important;
	transform: none !important;
}

/* v0.18.3 final action-color precedence */
.sgo-header__toolbar button.sgo-icon-action{border-color:rgba(255,255,255,.14)!important;background:rgba(255,255,255,.075)!important;color:#dceaf3!important}.sgo-header__toolbar button.sgo-icon-action:hover,.sgo-header__toolbar button.sgo-icon-action:focus,.sgo-header__toolbar button.sgo-icon-action:focus-visible{border-color:rgba(255,255,255,.30)!important;background:rgba(255,255,255,.14)!important;color:#fff!important}.sgo-header__toolbar button.sgo-icon-action[data-sgo-favorite] svg path{fill:currentColor!important;fill-opacity:1!important;opacity:1!important}.sgo-header__toolbar button.sgo-icon-action.is-active{border-color:rgba(255,142,160,.42)!important;background:rgba(255,110,132,.14)!important;color:#ff91a3!important}
.sgo-action-with-count{display:flex;flex-direction:column;align-items:center;gap:3px}.sgo-action-with-count>small{min-height:12px;color:#d0dce7;font-size:10px;font-weight:850;line-height:1}.sgo-action-with-count .sgo-icon-action{flex:0 0 auto}

/* Match opportunity actions with the clearer service-page controls. */
.sgo-header__toolbar button.sgo-icon-action,
.sgo-header__toolbar button.sgo-icon-action:hover,
.sgo-header__toolbar button.sgo-icon-action:focus,
.sgo-header__toolbar button.sgo-icon-action:focus-visible {
	display: grid !important;
	place-items: center !important;
	width: 34px !important;
	height: 34px !important;
	min-width: 34px !important;
	min-height: 34px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid rgba(255,255,255,.14) !important;
	border-radius: 10px !important;
	background: rgba(255,255,255,.075) !important;
	box-shadow: none !important;
	color: #dceaf3 !important;
	line-height: 1 !important;
	transform: none !important;
}
.sgo-header__toolbar button.sgo-icon-action:hover,
.sgo-header__toolbar button.sgo-icon-action:focus,
.sgo-header__toolbar button.sgo-icon-action:focus-visible {
	border-color: rgba(255,255,255,.30) !important;
	background: rgba(255,255,255,.14) !important;
	color: #fff !important;
	outline: 0 !important;
}
.sgo-header__toolbar button.sgo-icon-action svg {
	width: 22px !important;
	height: 22px !important;
	margin: auto !important;
}
.sgo-header__toolbar button.sgo-icon-action[data-sgo-favorite] svg path {
	fill: currentColor !important;
	fill-opacity: 1 !important;
	opacity: 1 !important;
}
.sgo-header__toolbar button.sgo-icon-action.is-active {
	border-color: rgba(255,142,160,.42) !important;
	background: rgba(255,110,132,.14) !important;
	color: #ff91a3 !important;
}

.sgo-header__meta button.sgo-distance:hover,
.sgo-header__meta button.sgo-distance:focus,
.sgo-header__meta button.sgo-distance:focus-visible {
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #ffc17d !important;
	outline: none !important;
	transform: none !important;
}

.sgo-header__meta button.sgo-distance b {
	display: grid !important;
	place-items: center !important;
	width: 30px !important;
	height: 30px !important;
	min-width: 30px !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 9px !important;
	background: rgba(243, 148, 50, .14) !important;
	color: #ffb766 !important;
	font-size: 14px !important;
	line-height: 1 !important;
}

.sgo-header__toolbar button.sgo-icon-action {
	display: grid !important;
	place-items: center !important;
	width: 34px !important;
	height: 34px !important;
	min-width: 34px !important;
	min-height: 34px !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 10px !important;
	line-height: 1 !important;
	text-align: center !important;
	transform: none !important;
}

.sgo-header__toolbar button.sgo-icon-action svg {
	position: static !important;
	display: block !important;
	width: 22px !important;
	height: 22px !important;
	margin: auto !important;
	transform: none !important;
}

.sgo-header__toolbar button.sgo-icon-action[data-sgo-favorite] svg path,
.sgo-header__toolbar button.sgo-icon-action[data-sgo-share] svg circle,
.sgo-header__toolbar button.sgo-icon-action[data-sgo-report] svg path:last-child {
	fill: currentColor !important;
}

.sgo-header__toolbar button.sgo-icon-action[data-sgo-favorite] svg path {
	stroke: none !important;
}

.sgo-header__toolbar button.sgo-icon-action[data-sgo-share] svg path,
.sgo-header__toolbar button.sgo-icon-action[data-sgo-report] svg path:first-child {
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 2 !important;
}

.sgo-header__meta button.sgo-distance b svg {
	width: 17px !important;
	height: 17px !important;
	fill: currentColor !important;
	stroke: none !important;
}

@media (min-width: 768px) {
	.sgo-facts--job {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}

	.sgo-facts--job .sgo-fact-execution {
		grid-column: 1 / -1;
	}
}

.sgo-header__toolbar button.sgo-icon-action:hover,
.sgo-header__toolbar button.sgo-icon-action:focus,
.sgo-header__toolbar button.sgo-icon-action:focus-visible {
	border-color: rgba(255, 193, 125, .55) !important;
	background: rgba(243, 148, 50, .16) !important;
	box-shadow: none !important;
	color: #ffc17d !important;
	outline: none !important;
	transform: none !important;
}

.sgo-header__toolbar button.sgo-icon-action.is-active,
.sgo-header__toolbar button.sgo-icon-action.is-active:hover {
	color: #ef6f79 !important;
}

.sgo-owner__username {
	font-size: 12px !important;
	line-height: 1.45 !important;
}

.sgo-gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 9px;
	margin: 22px 0 5px;
}

.sgo-gallery__item {
	display: block;
	overflow: hidden;
	min-height: 105px;
	border-radius: 13px;
	background: #edf3f6;
}

.sgo-gallery__item.is-primary {
	grid-column: 1 / -1;
	min-height: 330px;
}

.sgo-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
}

.sgo-gallery__item:hover img { transform: scale(1.025); }

.sgo-budget-type {
	display: inline-flex !important;
	align-items: center;
	gap: 5px;
	width: fit-content;
	margin-top: 8px !important;
	padding: 4px 8px;
	border-radius: 999px;
	background: #eaf3ef;
	color: #3f7861 !important;
	font-size: 10px !important;
	font-weight: 800;
}

.sgo-budget-type--negotiable {
	background: #fff2df;
	color: #9a6426 !important;
}

.sgo-budget-type i { font-style: normal; }

.sgo-related__heading { align-items: center !important; }
.sgo-related__heading h2 { color: #142f43 !important; }
.sgo-related__heading-actions { display: flex; align-items: center; gap: 7px; }
.sgo-related__heading-actions button {
	display: grid !important;
	place-items: center !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	padding: 0 !important;
	border: 2px solid #17384f !important;
	border-radius: 10px !important;
	background: #17384f !important;
	color: #fff !important;
	font-size: 27px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	box-shadow: 0 5px 13px rgba(23,56,79,.15) !important;
}
.sgo-related__heading-actions button:hover { border-color: #ef9a3e !important; background: #ef9a3e !important; color: #172b3d !important; }
.sgo-related__heading-actions button:disabled { opacity: .32; cursor: default; pointer-events: none; }
.sgo-related__heading-actions a { color: #45667b !important; font-size: 11px; font-weight: 700; text-decoration: none !important; }
.sgo-related__viewport { overflow: hidden; margin: 0 -3px; padding: 3px; }
.sgo-related__track {
	display: flex !important;
	grid-template-columns: none !important;
	gap: 12px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.sgo-related__track::-webkit-scrollbar { display: none; }
.sgo-related-card {
	min-width: calc((100% - 48px) / 5) !important;
	max-width: calc((100% - 48px) / 5) !important;
	min-height: 190px !important;
	padding: 17px !important;
	scroll-snap-align: start;
	border-color: #e1e9ee !important;
	color: #18344a !important;
}
.sgo-related-card__top { display: flex !important; align-items: center; justify-content: space-between !important; gap: 8px; margin: 0 !important; }
.sgo-related-card__type { background: #eaf1f5 !important; color: #3f6177 !important; font-size: 9px !important; }
.sgo-related-card__distance { overflow: hidden; color: #728998 !important; font-size: 9px !important; text-overflow: ellipsis; white-space: nowrap; }
.sgo-related-card h3 {
	display: -webkit-box;
	overflow: hidden;
	margin: 14px 0 9px !important;
	color: #132f44 !important;
	-webkit-text-fill-color: #132f44 !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	line-height: 1.65 !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
.sgo-related-card__owner { color: #728896; font-size: 9px; }
.sgo-related-card__owner b { color: #375a70; font-size: 10px; }
.sgo-related-card__footer { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 7px; margin-top: auto !important; padding-top: 13px; border-top: 1px solid #edf2f5; }
.sgo-related-card__footer strong { color: #17384f !important; font-size: 12px !important; }
.sgo-related-card__footer span { padding: 3px 6px; border-radius: 999px; background: #edf5f1; color: #44775f !important; font-size: 7px !important; font-weight: 800; white-space: nowrap; }
.sgo-related-card__footer span.is-negotiable { background: #fff1de; color: #966128 !important; }

.sgo-owner-current-status { display: flex; align-items: center; gap: 8px; margin: 7px 0 13px !important; color: #617887 !important; font-size: 11px !important; }
.sgo-owner-status { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; background: #e8f5ed; color: #347056 !important; font-size: 11px; font-weight: 900; }
.sgo-owner-status--paused { background: #fff3d9; color: #8a6227 !important; }
.sgo-owner-status--cancelled,.sgo-owner-status--expired { background: #fdeaea; color: #a34e4e !important; }
.sgo-owner-status--completed { background: #e8f0f5; color: #43647a !important; }
.sgo-owner-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.sgo-owner-action {
	min-height: 34px !important;
	padding: 5px 8px !important;
	border: 1px solid #dce7ed !important;
	border-radius: 10px !important;
	background: #f5f8fa !important;
	color: #294a60 !important;
	font: inherit !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	box-shadow: none !important;
}
.sgo-owner-action:hover { border-color: #efb26e !important; background: #fff8f0 !important; color: #70471f !important; }
.sgo-owner-action--danger { border-color: #efdcdc !important; background: #fff5f5 !important; color: #9d4a4a !important; }
.sgo-owner-editor { margin-top: 12px; border: 1px solid #e4ecf1; border-radius: 13px; background: #fafcfd; }
.sgo-owner-editor summary { padding: 13px 14px; cursor: pointer; color: #294d64; font-size: 13px; font-weight: 900; }
.sgo-owner-editor form { display: grid; gap: 11px; padding: 3px 13px 13px; }
.sgo-owner-editor label > span { display: block; margin-bottom: 6px; color: #455f72; font-size: 12px; font-weight: 800; }
.sgo-owner-editor input { width: 100%; min-height: 42px; padding: 8px 11px; border: 1px solid #dbe5eb; border-radius: 9px; background: #fff; color: #17364c; font: inherit; font-size: 14px; font-weight: 650; }
.sgo-owner-editor label small { display: block; margin-top: 5px; color: #738895; font-size: 10px; line-height: 1.5; }
.sgo-owner-editor .sgo-primary { min-height: 40px; font-size: 12px; }
.sgo-owner-field-heading { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; }
.sgo-owner-field-heading b { font: inherit; }
.sgo-owner-field-heading i { display: flex; gap: 5px; font-style: normal; }
.sgo-owner-field-heading button { min-height: 28px; padding: 4px 8px; border: 1px solid #d7e3e9; border-radius: 8px; background: #eef4f7; color: #31556c; font: inherit; font-size: 10px; font-weight: 900; }
.sgo-owner-field-heading button:hover { border-color: #efb26e; background: #fff6eb; color: #865321; }
.sgo-owner-control-message { margin: 10px 0; padding: 9px 10px; border-radius: 9px; font-size: 10px; line-height: 1.6; }
.sgo-owner-control-message.is-success { background: #eaf5ef; color: #397052; }
.sgo-owner-control-message.is-error { background: #fff0f0; color: #9a4848; }
.sgo-owner-controls.is-busy { opacity: .62; pointer-events: none; }
.sgo-owner-final-state { display: grid; gap: 5px; margin: 15px 0; padding: 13px; border-radius: 11px; background: #f3f6f8; }
.sgo-owner-final-state b { color: #274a61; font-size: 12px; }
.sgo-owner-final-state span { color: #748894; font-size: 9px; line-height: 1.6; }

@media (max-width: 1024px) {
	.sgo-related-card { min-width: calc((100% - 24px) / 3) !important; max-width: calc((100% - 24px) / 3) !important; }
}

@media (max-width: 767px) {
	.sgo-related__heading { align-items: flex-end !important; }
	.sgo-related__heading-actions a { display: none; }
	.sgo-related__track { gap: 8px; }
	.sgo-related-card { min-width: calc((100% - 8px) / 2) !important; max-width: calc((100% - 8px) / 2) !important; min-height: 175px !important; padding: 12px !important; }
	.sgo-related-card h3 { margin-top: 11px !important; font-size: 12px !important; line-height: 1.6 !important; }
	.sgo-related-card__owner { font-size: 8px; }
	.sgo-related-card__owner b { font-size: 9px; }
	.sgo-related-card__footer { align-items: flex-start !important; flex-direction: column; padding-top: 9px; }
	.sgo-related-card__footer strong { font-size: 11px !important; }
	.sgo-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
	.sgo-gallery__item { min-height: 82px; }
	.sgo-gallery__item.is-primary { min-height: 220px; }
	.sgo-header__toolbar {
		position: absolute !important;
		top: 25px !important;
		left: 18px !important;
		display: flex !important;
		flex-direction: column !important;
		gap: 7px !important;
		margin: 0 !important;
	}

	.sgo-header__meta button.sgo-distance {
		font-size: 12px !important;
	}

	.sgo-header__meta button.sgo-distance b {
		background: rgba(255, 255, 255, .15) !important;
		color: #f2f8fc !important;
	}
}

/* v0.18.3 final action-color precedence */
.sgo-header__toolbar button.sgo-icon-action{border-color:rgba(255,255,255,.14)!important;background:rgba(255,255,255,.075)!important;color:#dceaf3!important}.sgo-header__toolbar button.sgo-icon-action:hover,.sgo-header__toolbar button.sgo-icon-action:focus,.sgo-header__toolbar button.sgo-icon-action:focus-visible{border-color:rgba(255,255,255,.30)!important;background:rgba(255,255,255,.14)!important;color:#fff!important}.sgo-header__toolbar button.sgo-icon-action[data-sgo-favorite] svg path{fill:currentColor!important;fill-opacity:1!important;opacity:1!important}.sgo-header__toolbar button.sgo-icon-action.is-active{border-color:rgba(255,142,160,.42)!important;background:rgba(255,110,132,.14)!important;color:#ff91a3!important}
