/* Fiber checker: "Address not found" panel with address suggestions.
   Markup: get_fiber_not_found_panel() in includes/shortcodes-functions.php; behaviour: showFiberNotFound() in js/themes.js */

.__fiber_not_found {
	--fnf-purple: #412F74;
	--fnf-purple-soft: #F2EFF8;
	--fnf-text: #3A3A4A;
	--fnf-muted: #5B5B6B;
	--fnf-line: #E6E3EF;
	--fnf-green: #1B8F3E;
	--fnf-red: #E1251B;
	--fnf-yellow: #FFB81C;
	color: var(--fnf-text);
}
.__fiber_not_found[hidden] { display: none !important; }
.__fiber_not_found svg { display: block; flex-shrink: 0; }

.__fiber_not_found .__fnf_row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}
.__fiber_not_found.has-others .__fnf_row { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); }

/* ---- Head ---- */
.__fiber_not_found .__fnf_head { text-align: center; padding-bottom: 32px; border-bottom: 1px solid var(--fnf-line); }
.__fiber_not_found.has-suggestions .__fnf_head { margin-bottom: 32px; }
.__fiber_not_found:not(.has-suggestions) .__fnf_head { border-bottom: 0; padding-bottom: 0; }
.__fiber_not_found .__fnf_illustration svg { width: 320px; max-width: 100%; height: auto; margin: 0 auto 20px; }
.__fiber_not_found .__fnf_head h3 { color: var(--fnf-purple); font-size: 40px; line-height: 1.2; margin: 0 0 16px; }
.__fiber_not_found .__fnf_intro { font-size: 16px; line-height: 1.7; margin: 0 0 20px; }
.__fiber_not_found .__fnf_intro_suggest,
.__fiber_not_found.has-suggestions .__fnf_intro_none { display: none; }
.__fiber_not_found.has-suggestions .__fnf_intro_suggest { display: block; }

.__fiber_not_found .__fnf_back {
	display: inline-flex; align-items: center; gap: 12px;
	color: var(--fnf-purple); font-weight: 700; font-size: 17px; text-decoration: none;
}
.__fiber_not_found .__fnf_back svg { width: 22px; height: 22px; }
.__fiber_not_found .__fnf_back:hover span { text-decoration: underline; }

/* ---- Best match ---- */
.__fiber_not_found .__fnf_best { display: none; text-align: center; }
.__fiber_not_found.has-suggestions .__fnf_best { display: block; }
.__fiber_not_found .__fnf_best h4 { color: var(--fnf-purple); font-size: 22px; margin: 0 0 8px; }
.__fiber_not_found .__fnf_best p { font-size: 15px; margin: 0 0 24px; }
.__fiber_not_found .__fnf_best_text_no,
.__fiber_not_found .__fnf_best.not-available .__fnf_best_text_yes { display: none; }
.__fiber_not_found .__fnf_best.not-available .__fnf_best_text_no { display: block; }

.__fiber_not_found .__fnf_best_card {
	display: flex; align-items: center; gap: 28px;
	background: #fff; border-radius: 14px; border-left: 6px solid var(--fnf-purple);
	box-shadow: 0 6px 24px rgba(30, 20, 70, .10);
	padding: 32px 36px; text-align: left;
}
.__fiber_not_found .__fnf_best_card > .__fnf_icon { width: 112px; height: 112px; }
.__fiber_not_found .__fnf_best_card .__fnf_address { flex: 1; }
.__fiber_not_found .__fnf_best_side {
	display: flex; flex-direction: column; gap: 18px;
	padding-left: 24px; border-left: 1px solid var(--fnf-line); min-width: 210px;
}
.__fiber_not_found .__fnf_best_side .__fnf_status { font-size: 18px; }
.__fiber_not_found .__fnf_best_side .__fnf_status svg { width: 28px; height: 28px; }
.__fiber_not_found .__fnf_best_map svg:first-child { width: 28px; height: 28px; }

.__fiber_not_found .__fnf_order {
	display: inline-flex; align-items: center; justify-content: center; gap: 14px;
	min-width: 270px; margin-top: 24px; padding: 16px 32px; border-radius: 10px;
	background: var(--fnf-yellow); color: #1E1E2A; font-size: 20px; font-weight: 600; text-decoration: none;
	transition: filter .2s;
}
.__fiber_not_found .__fnf_order:hover { filter: brightness(.95); color: #1E1E2A; }
.__fiber_not_found .__fnf_order svg { width: 24px; height: 24px; }
.__fiber_not_found .__fnf_best.not-available .__fnf_order { display: none; }

/* ---- Shared address block ---- */
.__fiber_not_found .__fnf_icon {
	display: flex; align-items: center; justify-content: center;
	width: 90px; height: 90px; border-radius: 50%; background: var(--fnf-purple-soft); color: var(--fnf-purple); flex-shrink: 0;
}
.__fiber_not_found .__fnf_icon svg { width: 52%; height: 52%; }
/* label | ":" | value — one grid for all three rows so the colons and values line up */
.__fiber_not_found .__fnf_address {
	margin: 0; display: grid; grid-template-columns: minmax(0, max-content) auto minmax(3ch, 1fr);
	column-gap: 16px; row-gap: 14px; align-items: baseline;
}
.__fiber_not_found .__fnf_address dt { font-weight: 400; color: var(--fnf-muted); font-size: 16px; margin: 0; }
.__fiber_not_found .__fnf_address dd { margin: 0; font-weight: 700; font-size: 17px; color: #1E1E2A; }
.__fiber_not_found .__fnf_address dd.__fnf_sep { font-weight: 400; color: var(--fnf-muted); }
@media (min-width: 768px) {
	.__fiber_not_found .__fnf_address { grid-template-columns: max-content auto minmax(3ch, 1fr); }
}

.__fiber_not_found .__fnf_status { display: none; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; }
.__fiber_not_found .__fnf_status svg { width: 26px; height: 26px; }
.__fiber_not_found .__fnf_status_yes { color: var(--fnf-green); }
.__fiber_not_found .__fnf_status_no { color: var(--fnf-muted); }
.__fiber_not_found .is-available .__fnf_status_yes,
.__fiber_not_found .not-available .__fnf_status_no { display: inline-flex; }

.__fiber_not_found .__fnf_map_link {
	display: inline-flex; align-items: center; gap: 12px;
	color: var(--fnf-red); font-weight: 500; font-size: 18px; line-height: 1.4; text-decoration: none;
}
.__fiber_not_found .__fnf_map_link:hover span { text-decoration: underline; }
.__fiber_not_found .__fnf_map_link .__fnf_chevron { width: 18px; height: 18px; }

/* ---- Side list ---- */
.__fiber_not_found .__fnf_side { display: none; border: 1px solid var(--fnf-line); border-radius: 16px; padding: 28px 20px; background: #fff; }
.__fiber_not_found.has-others .__fnf_side { display: block; }
.__fiber_not_found .__fnf_side h4 { color: var(--fnf-purple); font-size: 20px; margin: 0 0 22px 12px; }
.__fiber_not_found .__fnf_list { display: grid; gap: 20px; }
.__fiber_not_found .__fnf_item {
	background: #fff; border: 1px solid #EEECF4; border-radius: 12px; box-shadow: 0 4px 16px rgba(30, 20, 70, .06);
	padding: 22px 18px 18px;
}
.__fiber_not_found .__fnf_item.__fnf_extra { display: none; }
.__fiber_not_found .__fnf_item.__fnf_extra.is-shown { display: block; }
.__fiber_not_found .__fnf_item_top { display: flex; align-items: center; gap: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--fnf-line); }
.__fiber_not_found .__fnf_item_top .__fnf_address { flex: 1; row-gap: 10px; column-gap: 14px; }
.__fiber_not_found .__fnf_item_top .__fnf_address dt { font-size: 15px; }
.__fiber_not_found .__fnf_item_top .__fnf_address dd { font-size: 16px; }
.__fiber_not_found .__fnf_item_bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; }

.__fiber_not_found .__fnf_more {
	display: flex; align-items: center; justify-content: center; gap: 12px;
	margin: 22px auto 0; padding: 14px 40px; border: 1px solid var(--fnf-line); border-radius: 10px;
	background: #fff; color: var(--fnf-purple); font-weight: 600; font-size: 16px; cursor: pointer;
}
.__fiber_not_found .__fnf_more:hover { background: var(--fnf-purple-soft); }
.__fiber_not_found .__fnf_more svg { width: 20px; height: 20px; transition: transform .2s; }
.__fiber_not_found .__fnf_more.is-open svg { transform: rotate(180deg); }

/* ---- Arabic (RTL) ---- */
.rtl .__fiber_not_found .__fnf_best_card { border-left: 0; border-right: 6px solid var(--fnf-purple); text-align: right; }
.rtl .__fiber_not_found .__fnf_best_side { padding-left: 0; border-left: 0; padding-right: 28px; border-right: 1px solid var(--fnf-line); }
.rtl .__fiber_not_found .__fnf_side h4 { margin: 0 12px 22px 0; }
.rtl .__fiber_not_found .__fnf_chevron,
.rtl .__fiber_not_found .__fnf_arrow { transform: scaleX(-1); }

/* ---- Responsive ---- */
@media (max-width: 1199px) {
	.__fiber_not_found.has-others .__fnf_row { grid-template-columns: minmax(0, 1fr); }
	.__fiber_not_found .__fnf_side { max-width: 640px; width: 100%; margin: 0 auto; }
}
@media (max-width: 767px) {
	.__fiber_not_found .__fnf_head h3 { font-size: 30px; }
	.__fiber_not_found .__fnf_best h4 { font-size: 19px; }
	.__fiber_not_found .__fnf_best_card { flex-direction: column; align-items: stretch; gap: 22px; padding: 24px 20px; }
	.__fiber_not_found .__fnf_best_card > .__fnf_icon { width: 84px; height: 84px; margin: 0 auto; }
	.__fiber_not_found .__fnf_best_side,
	.rtl .__fiber_not_found .__fnf_best_side { padding: 18px 0 0; border: 0; border-top: 1px solid var(--fnf-line); min-width: 0; }
	.__fiber_not_found .__fnf_address { column-gap: 10px; }
	.__fiber_not_found .__fnf_address dt { font-size: 15px; }
	.__fiber_not_found .__fnf_item_bottom .__fnf_status,
	.__fiber_not_found .__fnf_item_bottom .__fnf_map_link { font-size: 14px; white-space: nowrap; }
	.__fiber_not_found .__fnf_order { width: 100%; min-width: 0; }
	.__fiber_not_found .__fnf_side { padding: 0px; border: none; }
	.__fiber_not_found .__fnf_side h4 { margin-left: 0px; }
	.__fiber_not_found .__fnf_item_top { gap: 14px; }
	.__fiber_not_found .__fnf_item_top .__fnf_icon { width: 64px; height: 64px; }
}
