/* Final component-scoped parity layer. Loaded after the migrated legacy systems. */

.ftn-provider-registration .ftn-registration-plan {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: .8rem;
	min-height: 100%;
	margin: 0;
	padding: 1rem;
	text-align: left;
}

.ftn-provider-registration .ftn-registration-plan-copy {
	display: grid;
	gap: .35rem;
	min-width: 0;
}

.ftn-provider-registration .ftn-registration-plan-price {
	color: #075e4d;
	font-size: 1.05rem;
	font-style: normal;
	font-weight: 800;
}

.ftn-provider-registration .ftn-registration-plan-features {
	display: grid;
	gap: .35rem;
	margin: .45rem 0 0;
	padding: 0;
	list-style: none;
}

.ftn-provider-registration .ftn-registration-plan-features li {
	display: grid;
	grid-template-columns: 1rem minmax(0, 1fr);
	gap: .4rem;
	margin: 0;
	color: #334155;
	font-size: .86rem;
	line-height: 1.35;
}

.ftn-provider-registration .ftn-registration-plan-features .is-included > span { color: #047857; }
.ftn-provider-registration .ftn-registration-plan-features .is-not-included { color: #64748b; }

.ftn-preferences-modal-backdrop .ftn-notification-preferences {
	display: grid;
	gap: 1rem;
	max-height: none;
	overflow: visible;
}

.ftn-preferences-modal-backdrop .ftn-preferences-feedback {
	margin: 0;
	padding: .8rem 1rem;
	border: 1px solid #a7f3d0;
	border-radius: 10px;
	background: #ecfdf5;
	color: #065f46;
	font-weight: 700;
}

.ftn-preferences-modal-backdrop .ftn-preferences-feedback.is-error {
	border-color: #fecaca;
	background: #fef2f2;
	color: #991b1b;
}

.ftn-preferences-modal-backdrop .ftn-preferences-grid {
	--ftn-preference-name-column: minmax(12rem, 1fr);
	--ftn-preference-email-column: 5.5rem;
	--ftn-preference-push-column: 7.5rem;
	--ftn-preference-column-gap: .75rem;
	display: grid;
	gap: .5rem;
}
.ftn-preferences-modal-backdrop .ftn-preferences-heading,
.ftn-preferences-modal-backdrop .ftn-preferences-row {
	display: grid;
	grid-template-columns: var(--ftn-preference-name-column) var(--ftn-preference-email-column) var(--ftn-preference-push-column);
	align-items: center;
	gap: var(--ftn-preference-column-gap);
	box-sizing: border-box;
}

.ftn-preferences-modal-backdrop .ftn-preferences-heading {
	padding: 0 .9rem;
	color: #475569;
	font-size: .78rem;
	text-align: center;
	text-transform: uppercase;
}

.ftn-preferences-modal-backdrop .ftn-preferences-heading strong {
	justify-self: center;
	white-space: nowrap;
}

.ftn-preferences-modal-backdrop .ftn-preferences-heading .is-email { grid-column: 2; }
.ftn-preferences-modal-backdrop .ftn-preferences-heading .is-push { grid-column: 3; }

.ftn-preferences-modal-backdrop .ftn-preferences-row {
	min-width: 0;
	margin: 0;
	padding: .8rem .9rem;
	border: 1px solid #e2e8f0;
	border-radius: 11px;
	background: #f8fafc;
}

.ftn-preferences-modal-backdrop .ftn-preferences-name {
	min-width: 0;
	margin: 0;
	padding: 0;
	color: #0f172a;
	font-weight: 700;
	text-align: left;
}

.ftn-preferences-modal-backdrop .ftn-preference-toggle {
	position: relative;
	display: flex;
	justify-content: center;
	justify-self: center;
	margin: 0;
	cursor: pointer;
}

.ftn-preferences-modal-backdrop .ftn-preference-toggle input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.ftn-preferences-modal-backdrop .ftn-preference-toggle > span[aria-hidden] {
	position: relative;
	display: block;
	width: 2.6rem;
	height: 1.45rem;
	border-radius: 999px;
	background: #cbd5e1;
	transition: background .15s ease;
}

.ftn-preferences-modal-backdrop .ftn-preference-toggle > span[aria-hidden]::after {
	position: absolute;
	top: .2rem;
	left: .2rem;
	width: 1.05rem;
	height: 1.05rem;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
	content: "";
	transition: transform .15s ease;
}

.ftn-preferences-modal-backdrop .ftn-preference-toggle input:checked + span { background: #0f766e; }
.ftn-preferences-modal-backdrop .ftn-preference-toggle input:checked + span::after { transform: translateX(1.15rem); }
.ftn-preferences-modal-backdrop .ftn-preference-toggle input:focus-visible + span { outline: 3px solid rgba(37, 99, 235, .3); outline-offset: 2px; }
.ftn-preferences-modal-backdrop .ftn-preferences-actions { display: flex; justify-content: flex-end; }
.ftn-preferences-modal-backdrop .ftn-preferences-actions .ftn-btn { width: auto; min-width: 12rem; margin: 0; }

.ftn-chat .ftn-chat-composer {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: .75rem;
	margin: 0;
	padding: 1rem;
	border-top: 1px solid #dbe3ec;
	background: #fff;
	text-align: left;
}

.ftn-chat .ftn-chat-composer-input,
.ftn-chat .ftn-chat-composer-input label { display: block; width: 100%; margin: 0; }
.ftn-chat .ftn-chat-composer .ftn-chat-textarea {
	display: block;
	width: 100%;
	min-height: 7rem;
	margin: 0;
	padding: .85rem 1rem;
	box-sizing: border-box;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	background: #fff;
	color: #0f172a;
	line-height: 1.5;
	resize: vertical;
}

.ftn-chat .ftn-chat-composer .ftn-chat-textarea:focus { border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .14); outline: 0; }
.ftn-chat .ftn-chat-composer .ftn-chat-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.ftn-chat .ftn-chat-attachment-control { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.ftn-chat .ftn-chat-upload { position: relative; display: inline-flex; flex: 0 0 auto; margin: 0; cursor: pointer; }
.ftn-chat .ftn-chat-upload-button { display: inline-flex; align-items: center; min-height: 2.65rem; padding: .55rem .9rem; border: 1px solid #cbd5e1; border-radius: 10px; background: #f8fafc; color: #334155; font-weight: 750; }
.ftn-chat .ftn-chat-upload:hover .ftn-chat-upload-button { border-color: #0f766e; color: #075e4d; }
.ftn-chat .ftn-chat-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ftn-chat .ftn-chat-upload:focus-within .ftn-chat-upload-button { outline: 3px solid rgba(37, 99, 235, .3); outline-offset: 2px; }
.ftn-chat .ftn-chat-file-name { min-width: 0; max-width: 18rem; overflow: hidden; color: #64748b; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.ftn-chat .ftn-chat-composer .ftn-chat-send { width: auto; min-width: 8.5rem; margin: 0; }

.ftn-account-container.ftn-account-container {
	display: grid;
}

.ftn-account-container .ftn-account-sidebar > .ftn-btn {
	padding-inline: .65rem;
	font-size: .9rem;
	line-height: 1.35;
	word-break: normal;
	overflow-wrap: normal;
	hyphens: none;
}

.ftn-share-profile-box .ftn-share-link-row .ftn-copy-btn {
	flex: 0 0 auto;
	width: auto;
}

@media (max-width: 700px) {
	.entry-content-wrap { width: 100%; max-width: 100%; padding-inline: 1rem; box-sizing: border-box; }
	.entry-content.single-content { width: 100%; max-width: 100%; padding-inline: 0; box-sizing: border-box; text-align: left; }

	.entry-content.single-content .ftn-job-detail,
	.entry-content.single-content .ftn-account-container,
	.entry-content.single-content .ftn-jobs-container,
	.entry-content.single-content .ftn-offers-wrap,
	.entry-content.single-content .ftn-chat-inbox,
	.entry-content.single-content .ftn-chat-container,
	.entry-content.single-content .ftn-provider-profile,
	.entry-content.single-content .ftn-provider-registration,
	.entry-content.single-content .ftn-reg-container,
	.entry-content.single-content .ftn-job-form,
	.entry-content.single-content .ftn-billing,
	.entry-content.single-content .ftn-notifs-wrap {
		width: 100%;
		max-width: 100%;
		margin-inline: 0;
		box-sizing: border-box;
		text-align: left;
	}

	.entry-content.single-content .ftn-job-detail form,
	.entry-content.single-content .ftn-account-container form,
	.entry-content.single-content .ftn-chat-container form,
	.entry-content.single-content .ftn-provider-registration,
	.entry-content.single-content .ftn-reg-container form,
	.entry-content.single-content .ftn-job-form,
	.entry-content.single-content .ftn-billing,
	.entry-content.single-content .ftn-notifs-wrap form { text-align: left; }

	.ftn-job-detail { margin-block: 1rem; padding: 1rem; }
	.ftn-job-detail .ftn-job-detail-header,
	.ftn-job-detail .ftn-job-customer { display: flex; align-items: flex-start; flex-direction: column; text-align: left; }
	.ftn-job-detail .ftn-job-meta { display: grid; grid-template-columns: 1fr; gap: .55rem; padding: .8rem 0; text-align: left; }
	.ftn-job-detail .ftn-job-meta-item { display: flex; align-items: center; padding: 0; text-align: left; }
	.ftn-job-detail .ftn-offer-form,
	.ftn-job-detail .ftn-quote-selector,
	.ftn-job-detail .ftn-chat-start-form { display: grid; width: 100%; max-width: 100%; box-sizing: border-box; text-align: left; }
	.ftn-job-detail .ftn-job-media { margin-inline: 0; }

	.ftn-account-container { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
	.ftn-account-container .ftn-account-sidebar { display: grid; width: 100%; box-sizing: border-box; }
	.ftn-account-container .ftn-account-navigation { grid-template-columns: minmax(0, 1fr); }
	.ftn-account-container .ftn-account-navigation a { text-align: left; }
	.ftn-account-container .ftn-customer-account-identity,
	.ftn-account-container .ftn-customer-account-actions { justify-content: flex-start; text-align: left; }

	.ftn-jobs-container .ftn-jobs-topbar,
	.ftn-my-jobs .ftn-my-jobs-header { display: grid; justify-content: stretch; text-align: left; }
	.ftn-jobs-container .ftn-jobs-topbar-right { justify-content: flex-start; }
	.ftn-jobs-container .ftn-jobs-topbar-right a { width: 100%; max-width: none; }

	.ftn-offers-table.ftn-offers-table {
		display: block;
		width: 100%;
		overflow: visible;
		white-space: normal;
	}
	.ftn-offers-table tbody,
	.ftn-offers-table tbody tr { display: block; width: 100%; box-sizing: border-box; }
	.ftn-offers-table tbody td {
		display: grid;
		grid-template-columns: minmax(6.5rem, 42%) minmax(0, 1fr);
		align-items: start;
		gap: .65rem;
		width: 100%;
		box-sizing: border-box;
		white-space: normal;
		overflow-wrap: anywhere;
		text-align: left;
	}
	.ftn-offers-table tbody td::before { min-width: 0; }
	.ftn-offers-table tbody td:nth-of-type(7),
	.ftn-offers-table tbody td:nth-of-type(8) { align-items: start; }
	.ftn-offers-table tbody td:nth-of-type(7) a,
	.ftn-offers-table tbody td:nth-of-type(7) button,
	.ftn-offers-table tbody td:nth-of-type(8) .ftn-button-small { grid-column: 2; margin-top: 0; }

	.ftn-provider-profile,
	.ftn-provider-profile .ftn-profile-header,
	.ftn-provider-profile .ftn-profile-main { text-align: left; }
	.ftn-provider-profile .ftn-profile-avatar { margin-inline: 0; }

	.ftn-provider-registration .ftn-registration-plan-grid { grid-template-columns: minmax(0, 1fr); }
	.ftn-provider-registration .ftn-registration-nav { align-items: stretch; flex-direction: column; }
	.ftn-provider-registration .ftn-registration-nav .ftn-btn { width: 100%; }

	.ftn-chat .ftn-chat-composer { padding: .8rem; }
	.ftn-chat .ftn-chat-composer .ftn-chat-controls { align-items: stretch; flex-direction: column; }
	.ftn-chat .ftn-chat-attachment-control { align-items: flex-start; flex-direction: column; width: 100%; }
	.ftn-chat .ftn-chat-upload,
	.ftn-chat .ftn-chat-upload-button,
	.ftn-chat .ftn-chat-composer .ftn-chat-send { justify-content: center; width: 100%; box-sizing: border-box; }
	.ftn-chat .ftn-chat-file-name { max-width: 100%; }

	.ftn-preferences-modal-backdrop .ftn-preferences-heading,
	.ftn-preferences-modal-backdrop .ftn-preferences-row {
		grid-template-columns: minmax(7rem, 1fr) 3.5rem 5.75rem;
		gap: .25rem;
	}
	.ftn-preferences-modal-backdrop .ftn-preferences-heading { padding-inline: .45rem; font-size: .7rem; }
	.ftn-preferences-modal-backdrop .ftn-preferences-row { padding: .75rem .45rem; }
	.ftn-preferences-modal-backdrop .ftn-preferences-actions .ftn-btn { width: 100%; min-width: 0; }

	.ftn-billing .ftn-billing-plans,
	.ftn-notifs-wrap .ftn-notifs-header,
	.ftn-notifs-wrap .ftn-notif-filter-form { width: 100%; max-width: 100%; box-sizing: border-box; text-align: left; }
	.ftn-notifs-wrap .ftn-notif-filter-form > * { width: 100%; box-sizing: border-box; }
}
