/* Nels Home — single request view page */

body.nh-request-view-page {
	overflow-x: clip;
}

body.nh-request-view-page .content-area,
body.hp-template--request-view-page .content-area {
	padding-top: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	max-width: 100% !important;
}

#main-content .content-area .hp-page.nh-request-view-page,
.et-l--body .hp-page.nh-request-view-page,
body.nh-request-view-page .content-area .hp-page,
body.nh-request-view-page .hp-page.site-main {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

.nh-request-view-page,
.nh-request-view-hero,
.nh-request-view-page .hp-page__content,
.nh-request-view-page .hp-page__sidebar,
.nh-request-view-page .hp-widget,
.nh-request-view-page .hp-form,
.nh-request-view-page .hp-field,
.nh-request-view-page .hp-form__button,
.nh-request-view-page button {
	font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Full-bleed hero (matches submit-request page) */
.nh-request-view-hero {
	background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
	width: 100%;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 48px max(24px, calc(50vw - 50% + 24px)) 40px;
	border-bottom: 1px solid #e2e8f0;
	box-sizing: border-box;
}

.nh-request-view-hero__inner {
	max-width: 1120px;
	margin: 0 auto;
}

.nh-request-view-hero__eyebrow {
	margin: 0 0 10px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #64748b;
}

.nh-request-view-hero__title {
	margin: 0 0 16px;
	font-size: clamp(1.85rem, 3.5vw, 2.5rem);
	font-weight: 700;
	line-height: 1.12;
	color: #0b2d5b;
	letter-spacing: -0.02em;
}

.nh-request-view-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nh-request-view-hero__chip {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	background: #fff;
	color: #0b2d5b;
	border: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.nh-request-view-hero__chip--trade {
	background: #eef2ff;
	border-color: rgba(27, 79, 216, 0.2);
	color: #1b4fd8;
}

/* Main grid */
.nh-request-view-page .hp-row.nh-request-view-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
	gap: 24px;
	align-items: start;
	max-width: 1120px;
	width: 100%;
	margin: 0 auto;
	padding: 28px 24px 56px;
	box-sizing: border-box;
}

.nh-request-view-page .nh-request-view-grid > .hp-page__content,
.nh-request-view-page .nh-request-view-grid > .hp-page__sidebar {
	width: 100% !important;
	max-width: none !important;
	flex: none !important;
	float: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.nh-request-view-main {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.nh-request-view-sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nh-request-view-sidebar .inner-wrapper-sticky,
.nh-request-view-sidebar > div {
	position: static !important;
	width: 100% !important;
	transform: none !important;
}

/* Hide duplicate HivePress title/meta when hero is present */
.nh-request-view-page .hp-listing__title,
.nh-request-view-page .hp-listing__details--primary {
	display: none !important;
}

/* Content cards */
.nh-request-view-card {
	padding: 22px 24px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.nh-request-view-card__title {
	margin: 0 0 14px;
	font-size: 1.0625rem;
	font-weight: 700;
	color: #0b2d5b;
	letter-spacing: -0.01em;
}

.nh-request-view-card__intro {
	margin: -6px 0 16px;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: #64748b;
}

.nh-request-view-card--quote {
	position: sticky;
	top: 24px;
}

.nh-request-view-card--quote .nh-request-view-actions-card,
.nh-request-view-card--quote .hp-listing__actions--primary {
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.nh-request-view-card--description .hp-listing__description {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 1rem;
	line-height: 1.65;
	color: #334155;
}

.nh-request-view-card--description .hp-listing__description p {
	margin: 0 0 0.75rem;
}

.nh-request-view-card--description .hp-listing__description p:last-child {
	margin-bottom: 0;
}

.nh-request-view-card--offers .hp-section__title {
	display: none;
}

.nh-request-view-card--offers .hp-section {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

/* Quote cards — customer “Quotes received” + vendor “Your quote” */
.nh-request-view-page .nh-request-view-card--offers,
.nh-request-view-page .nh-request-view-card--offers .hp-section {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.nh-request-view-page .nh-request-view-card--offers .hp-section__title {
	display: none !important;
}

.nh-request-view-page .nh-request-view-card--offers .hp-offers,
.nh-request-view-page .nh-request-view-main .hp-offers {
	margin: 0;
}

.nh-request-view-page .nh-request-view-card--offers .hp-offers > .hp-row,
.nh-request-view-page .nh-request-view-main .hp-offers > .hp-row {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0 !important;
}

.nh-request-view-page .nh-request-view-card--offers .hp-grid__item,
.nh-request-view-page .nh-request-view-main .hp-offers .hp-grid__item {
	width: 100% !important;
	max-width: 100% !important;
	flex: none !important;
	padding: 0 !important;
}

.nh-request-view-offers[data-state="loading"] {
	opacity: 0.72;
}

.nh-request-view-offers__item--new .hp-offer,
.nh-request-view-offers__item--new .nh-quote-card {
	animation: nh-request-view-offer-in 0.55s ease;
}

@keyframes nh-request-view-offer-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nh-request-view-offers__item--new .hp-offer,
	.nh-request-view-offers__item--new .nh-quote-card {
		animation: none;
	}
}

.nh-request-view-page .hp-offer.hp-offer--view-block,
.nh-request-view-page .hp-offer.nh-quote-card {
	display: flex;
	flex-direction: column;
	gap: 0;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 14px;
	background: #fafbfc;
	padding: 18px 20px;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.nh-request-view-page .hp-offer.hp-offer--view-block:hover,
.nh-request-view-page .hp-offer.nh-quote-card:hover {
	border-color: rgba(27, 79, 216, 0.22);
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
	transform: translateY(-1px);
}

.nh-request-view-page .hp-offer__header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 12px;
	padding: 0;
	border: 0;
}

.nh-quote-card__badge--pending {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: #fef3c7;
	color: #92400e;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.nh-request-view-page .hp-offer__image {
	flex-shrink: 0;
	margin: 0;
}

.nh-request-view-page .hp-offer__image img,
.nh-request-view-page .hp-offer__image .avatar {
	width: 52px !important;
	height: 52px !important;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #fff;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.nh-request-view-page .hp-offer__summary {
	flex: 1;
	min-width: 0;
}

.nh-request-view-page .hp-offer__bidder {
	margin: 0 0 2px;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
}

.nh-request-view-page .hp-offer__bidder a {
	color: #0b2d5b;
	text-decoration: none;
}

.nh-request-view-page .hp-offer__bidder a:hover {
	color: #1b4fd8;
}

.nh-request-view-page .hp-offer__details {
	font-size: 0.8125rem;
	color: #64748b;
}

.nh-request-view-page .hp-offer__created-date,
.nh-request-view-page .hp-offer__details .hp-meta {
	margin: 0;
}

.nh-request-view-page .hp-offer__attributes--primary {
	margin: 0 0 12px;
}

.nh-request-view-page .hp-offer__attribute--price {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 7px 14px;
	border-radius: 999px;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.2;
	color: #0b2d5b;
	background: #eef2ff;
	border: 1px solid rgba(27, 79, 216, 0.18);
}

.nh-request-view-page .hp-offer__content {
	margin: 0;
	padding: 12px 0 0;
	border-top: 0;
}

.nh-request-view-page .hp-offer__text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: #334155;
}

.nh-request-view-page .hp-offer__text p {
	margin: 0;
}

.nh-request-view-page .hp-offer__request {
	display: none !important;
}

.nh-request-view-page .hp-offer__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 14px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.nh-request-view-page .hp-offer__actions--primary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
}

/* Inline accept form — never use the embedded “card” form chrome */
.nh-request-view-page .nh-quote-card .hp-form--offer-accept {
	display: block;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.nh-request-view-page .nh-quote-card .hp-form--offer-accept .hp-form__messages {
	margin: 0;
}

.nh-request-view-page .nh-quote-card .hp-form--offer-accept .hp-form__footer {
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.nh-request-view-page .hp-offer__action--vendor {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 700;
	color: #1b4fd8 !important;
	background: #fff;
	border: 1px solid rgba(27, 79, 216, 0.25);
	text-decoration: none !important;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nh-request-view-page .hp-offer__action--vendor:hover {
	background: #eef2ff;
	border-color: rgba(27, 79, 216, 0.4);
	color: #1640b8 !important;
}

.nh-request-view-page .hp-form--offer-accept {
	margin: 0;
}

.nh-request-view-page .nh-quote-card .hp-form--offer-accept .button,
.nh-request-view-page .nh-quote-card .hp-form--offer-accept .hp-field__submit,
.nh-request-view-page .nh-quote-card .hp-form--offer-accept .hp-form__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px !important;
	padding: 10px 18px !important;
	border-radius: 999px !important;
	font-weight: 700 !important;
	font-size: 0.875rem !important;
	background: #1b4fd8 !important;
	border: 1px solid #1b4fd8 !important;
	color: #fff !important;
	box-shadow: none !important;
}

.nh-request-view-page .hp-form--offer-accept .button:hover {
	background: #1640b8 !important;
	border-color: #1640b8 !important;
}

.nh-request-view-page .hp-offer__action--delete {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #64748b !important;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.1);
	text-decoration: none !important;
}

.nh-request-view-page .hp-offer.nh-quote-card--vendor-own .hp-offer__footer {
	justify-content: flex-start;
}

.nh-request-view-page .nh-quote-card--vendor-own .hp-offer__actions--primary {
	display: none !important;
}

.nh-request-view-page .hp-offer__action--edit {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #1b4fd8 !important;
	background: #fff;
	border: 1px solid rgba(27, 79, 216, 0.2);
	text-decoration: none !important;
	cursor: pointer;
}

.nh-request-view-page .hp-offer__action--edit:hover {
	color: #1640b8 !important;
	border-color: rgba(27, 79, 216, 0.35);
	background: #f5f8ff;
}

.nh-request-view-page .nh-quote-card .hp-offer__actions--primary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.nh-request-view-page .hp-offer__action--delete:hover {
	color: #b42318 !important;
	border-color: rgba(180, 35, 24, 0.25);
	background: #fef3f2;
}

body.nh-request-view-page--vendor .nh-request-view-card--offers .hp-offer__action--vendor,
body.nh-request-view-page--vendor .hp-offer__action--vendor {
	display: none !important;
}

body.nh-request-view-page--customer .nh-request-view-card--offers .hp-offer__action--delete,
body.nh-request-view-page--customer .hp-offer__action--delete {
	display: none !important;
}

body.nh-request-view-page--customer .nh-quote-card .hp-offer__footer {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	align-items: start;
}

body.nh-request-view-page--customer .nh-quote-card .hp-offer__attributes--primary {
	margin: 0;
	order: 1;
}

body.nh-request-view-page--customer .nh-quote-card .hp-offer__actions--primary {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 10px;
	width: 100%;
	order: 2;
}

body.nh-request-view-page--customer .nh-quote-card .hp-offer__action--vendor {
	justify-content: center;
	min-height: 44px;
	margin: 0;
}

body.nh-request-view-page--customer .nh-quote-card .hp-form--offer-accept,
body.nh-request-view-page--customer .nh-quote-card .hp-form--offer-accept .hp-form__footer,
body.nh-request-view-page--customer .nh-quote-card .hp-form--offer-accept .button,
body.nh-request-view-page--customer .nh-quote-card .hp-form--offer-accept .hp-field__submit {
	width: 100%;
	min-height: 44px;
	justify-content: center;
	box-shadow: none !important;
}

body.nh-request-view-page--customer .nh-request-view-sidebar .hp-listing__attributes--primary:empty {
	display: none !important;
}

/* Sidebar: quote + budget */
.nh-request-view-sidebar .hp-listing__attributes--primary {
	margin: 0;
	padding: 18px 20px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 16px;
	background: #f8fafc;
	box-shadow: none;
}

.nh-request-view-sidebar .hp-listing__attribute {
	font-size: 1.125rem;
	font-weight: 700;
	color: #0b2d5b;
}

.nh-request-view-sidebar .hp-listing__attribute::before {
	content: "Budget";
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #64748b;
	margin-bottom: 4px;
}

.nh-request-view-actions-card,
.nh-request-view-sidebar .hp-listing__actions--primary {
	margin: 0;
	padding: 20px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.nh-request-view-sidebar .hp-listing__actions .button,
.nh-request-view-sidebar .hp-listing__actions .hp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px 20px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.9375rem;
	background: #1b4fd8;
	border-color: #1b4fd8;
	color: #fff;
	transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.nh-request-view-sidebar .hp-listing__actions .button:hover {
	background: #1640b8;
	border-color: #1640b8;
	color: #fff;
	box-shadow: 0 6px 18px rgba(27, 79, 216, 0.28);
	transform: translateY(-1px);
}

.nh-request-view-sidebar .hp-listing__action--delete {
	display: none;
}

body.nh-request-view-page:not(.nh-request-view-page--vendor) .nh-request-view-sidebar .hp-listing__action--delete {
	display: inline-flex;
	margin-top: 10px;
	width: 100%;
	justify-content: center;
	font-size: 0.875rem;
	color: #64748b;
}

/* Customer block — hidden on vendor lead view (privacy) */
body.nh-request-view-page--vendor .nh-request-view-card--customer,
body.nh-request-view-page--vendor .hp-page__sidebar .hp-vendor--view-block {
	display: none !important;
}

/* Customer card (legacy styles if block ever renders) */
.nh-request-view-card--customer .hp-vendor {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.nh-request-view-card--customer .hp-vendor__header {
	margin-bottom: 12px;
}

.nh-request-view-card--customer .hp-vendor__image img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}

.nh-request-view-card--customer .hp-vendor__name {
	margin: 0 0 4px;
	font-size: 1rem;
	font-weight: 700;
	color: #0b2d5b;
}

.nh-request-view-card--customer .hp-vendor__registered-date {
	font-size: 0.875rem;
	color: #64748b;
}

.nh-request-view-card--customer .hp-vendor__action--message {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #eef2ff;
	color: #1b4fd8;
}

body.nh-request-view-page--quote-required .hp-vendor__action--message,
body.nh-request-view-page--quote-required .hp-vendor__footer .hp-vendor__actions--primary {
	display: none !important;
}

.nh-request-view-card--customer-locked .hp-vendor__footer {
	display: none;
}

/* Nelshome blocks inside main column */
.nh-request-view-page .nelshome-leads-journey,
.nh-request-view-page .nelshome-leads-reject,
.nh-request-view-page .nelshome-leads-report {
	margin: 0;
}

body.nh-request-view-page--vendor .nelshome-leads-journey,
body.nh-request-view-page--vendor .nelshome-leads-reject {
	display: none;
}

@media (max-width: 980px) {
	.nh-request-view-page .hp-row.nh-request-view-grid {
		grid-template-columns: 1fr;
		padding: 20px 16px 40px;
	}

	.nh-request-view-hero {
		padding: 36px 20px 32px;
	}

	.nh-request-view-card {
		padding: 18px 16px;
	}
}
