/**
 * FKZ shared UI components — Design System V3.
 */

.fkz-icon-wrap {
	align-items: center;
	color: currentColor;
	display: inline-flex;
	flex-shrink: 0;
	justify-content: center;
	line-height: 0;
	vertical-align: middle;
}

.fkz-icon-wrap svg {
	display: block;
	height: 100%;
	width: 100%;
}

.fkz-icon-wrap--lucide svg {
	stroke: currentColor;
}

/* Icon-only button tooltip (desktop) */
.fkz-icon-tip__label {
	display: none;
}

@media (min-width: 900px) {
	.fkz-icon-tip {
		position: relative;
	}

	.fkz-icon-tip .fkz-icon-tip__label {
		background: var(--fkz-ink);
		border-radius: 7px;
		bottom: calc(100% + 9px);
		color: #fff;
		display: block;
		font-size: var(--fkz-fs-caption);
		font-weight: 600;
		left: 50%;
		opacity: 0;
		padding: 5px 10px;
		pointer-events: none;
		position: absolute;
		transform: translateX(-50%) translateY(4px);
		transition: opacity 0.15s ease, transform 0.15s ease;
		white-space: nowrap;
		z-index: 5;
	}

	.fkz-icon-tip .fkz-icon-tip__label::after {
		border: 5px solid transparent;
		border-top-color: var(--fkz-ink);
		content: "";
		left: 50%;
		position: absolute;
		top: 100%;
		transform: translateX(-50%);
	}

	.fkz-icon-tip:hover .fkz-icon-tip__label,
	.fkz-icon-tip:focus-visible .fkz-icon-tip__label {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}

/* Offer / promo banner */
.fkz-offer-banner {
	align-items: center;
	animation: fkz-offer-pulse 2.2s ease-out infinite;
	background: rgba(129, 186, 199, 0.12);
	border-radius: var(--fkz-radius-lg);
	box-sizing: border-box;
	display: flex;
	gap: 10px;
	padding: 14px 16px;
	width: 100%;
}

.fkz-offer-banner__icon {
	align-items: center;
	background: var(--fkz-teal);
	border-radius: var(--fkz-radius-pill);
	color: #fff;
	display: flex;
	flex-shrink: 0;
	height: 36px;
	justify-content: center;
	width: 36px;
}

.fkz-offer-banner__title {
	color: var(--fkz-ink);
	font-size: var(--fkz-fs-body);
	font-weight: 800;
}

.fkz-offer-banner__text {
	color: var(--fkz-body);
	font-size: var(--fkz-fs-secondary);
	line-height: 1.7;
}

@keyframes fkz-offer-pulse {
	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(129, 186, 199, 0.35);
	}

	50% {
		box-shadow: 0 0 0 8px rgba(129, 186, 199, 0);
	}
}

/* Profile grid — prevent theme float on aside/main descendants */
body.fkz-profile-page .fkz-profile__grid,
body.fkz-profile-page .fkz-profile__sidebar,
body.fkz-profile-page .fkz-profile__main,
body.fkz-profile-page .fkz-profile__pair,
body.fkz-profile-page .fkz-profile__pair > .fkz-profile-section {
	clear: none;
	float: none;
	min-width: 0;
}

body.fkz-profile-page .fkz-profile button,
body.fkz-profile-page .fkz-profile input,
body.fkz-profile-page .fkz-profile textarea {
	font-family: var(--fkz-font);
}

body.fkz-profile-page .fkz-profile .fkz-btn-call,
body.fkz-profile-page .fkz-profile .fkz-btn-nav,
body.fkz-profile-page .fkz-profile .fkz-social-grid__item,
body.fkz-profile-page .fkz-profile .fkz-branch__phone {
	-webkit-appearance: none;
	appearance: none;
	background: var(--fkz-neutral-btn) !important;
	border: none !important;
	box-shadow: none !important;
	color: var(--fkz-primary) !important;
	text-decoration: none;
}

body.fkz-profile-page .fkz-profile a.fkz-branch__phone:hover,
body.fkz-profile-page .fkz-profile a.fkz-branch__phone:focus-visible,
body.fkz-profile-page .fkz-profile button.fkz-branch__phone:hover,
body.fkz-profile-page .fkz-profile button.fkz-branch__phone:focus-visible {
	background: var(--fkz-primary) !important;
	color: #fff !important;
}

body.fkz-profile-page .fkz-profile .fkz-branch__phone:hover .fkz-icon-wrap,
body.fkz-profile-page .fkz-profile .fkz-branch__phone:focus-visible .fkz-icon-wrap {
	color: #fff !important;
}

body.fkz-profile-page .fkz-profile .fkz-btn-call {
	background: var(--fkz-primary) !important;
	border: none !important;
	color: #fff !important;
}

body.fkz-profile-page .fkz-profile .fkz-btn-call:hover,
body.fkz-profile-page .fkz-profile .fkz-btn-call:focus {
	background: var(--fkz-primary-hover) !important;
	color: #fff !important;
}

body.fkz-profile-page .fkz-profile .fkz-btn-nav {
	background: var(--fkz-neutral-btn) !important;
	border: none !important;
	color: var(--fkz-primary) !important;
}

body.fkz-profile-page .fkz-profile .fkz-btn-nav:hover,
body.fkz-profile-page .fkz-profile .fkz-btn-nav:focus {
	background: var(--fkz-primary) !important;
	color: #fff !important;
}

body.fkz-profile-page .fkz-profile .fkz-social-grid__item {
	background: var(--fkz-neutral-btn) !important;
	border: none !important;
	color: var(--fkz-body) !important;
}

body.fkz-profile-page .fkz-profile .fkz-social-grid__item:hover {
	background: #e8ecee !important;
	color: var(--fkz-body) !important;
}

body.fkz-profile-page .fkz-profile .fkz-profile-header__share {
	background: var(--fkz-neutral-btn) !important;
	border: none !important;
	color: var(--fkz-primary) !important;
}

body.fkz-profile-page .fkz-profile .fkz-profile-header__share:hover {
	background: #e8ecee !important;
}

/* Share / nav modals — reset theme button styles */
body.fkz-profile-page .fkz-modal .fkz-modal__action,
body.fkz-profile-page .fkz-modal .fkz-modal__action--btn,
body.fkz-profile-page .fkz-modal .fkz-modal__action--nav,
body.fkz-profile-page .fkz-modal button.fkz-modal__action {
	-webkit-appearance: none !important;
	appearance: none !important;
	background: none !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--fkz-body) !important;
	font-family: var(--fkz-font) !important;
	font-size: var(--fkz-fs-caption) !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	margin: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	text-transform: none !important;
	width: 100% !important;
}

body.fkz-profile-page .fkz-modal .fkz-modal__action:hover,
body.fkz-profile-page .fkz-modal .fkz-modal__action--btn:hover,
body.fkz-profile-page .fkz-modal .fkz-modal__action--nav:hover {
	background: none !important;
	color: var(--fkz-body) !important;
}

body.fkz-profile-page .fkz-modal .fkz-modal__icon {
	background: var(--fkz-neutral-btn) !important;
	border: none !important;
	border-radius: 999px !important;
	box-shadow: none !important;
}

body.fkz-profile-page .fkz-modal.fkz-modal--nav .fkz-modal__action--nav {
	align-items: center !important;
	min-height: 0 !important;
	width: 100% !important;
}

body.fkz-profile-page .fkz-modal .fkz-modal__grid--nav {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	width: 100% !important;
}

body.fkz-profile-page .fkz-modal .fkz-modal__grid--nav .fkz-modal__icon {
	border-radius: 14px !important;
	height: 56px !important;
	transition: transform 0.12s ease;
	width: 56px !important;
}

body.fkz-profile-page .fkz-modal .fkz-modal__grid--nav .fkz-modal__icon .fkz-icon-wrap {
	height: 28px !important;
	width: 28px !important;
}

body.fkz-profile-page .fkz-modal.fkz-modal--nav-color .fkz-modal__grid--nav .fkz-modal__icon {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

body.fkz-profile-page .fkz-modal.fkz-modal--nav-color .fkz-modal__grid--nav .fkz-modal__icon--padded {
	background: #fff !important;
	border: 1px solid #e2e5e6 !important;
}

body.fkz-profile-page .fkz-modal.fkz-modal--nav-color .fkz-modal__grid--nav .fkz-modal__icon--full {
	background: transparent !important;
	border: none !important;
	overflow: hidden !important;
	padding: 0 !important;
}

body.fkz-profile-page .fkz-modal.fkz-modal--nav-legacy .fkz-modal__grid--nav .fkz-modal__icon--neshan {
	background: var(--fkz-badge-insurance-bg) !important;
	color: var(--fkz-badge-insurance-fg) !important;
}

body.fkz-profile-page .fkz-modal.fkz-modal--nav-legacy .fkz-modal__grid--nav .fkz-modal__icon--balad {
	background: var(--fkz-badge-open-bg) !important;
	color: var(--fkz-badge-open-fg) !important;
}

body.fkz-profile-page .fkz-modal.fkz-modal--nav-legacy .fkz-modal__grid--nav .fkz-modal__icon--google {
	background: var(--fkz-neutral-btn) !important;
	color: var(--fkz-primary) !important;
}

.fkz-modal__action--btn {
	cursor: pointer;
}

.fkz-modal__icon--neshan,
.fkz-modal__icon--balad,
.fkz-modal__icon--google {
	background: transparent !important;
	color: inherit !important;
}

body.fkz-profile-page .fkz-lightbox .fkz-lightbox__control {
	background: rgba(255, 255, 255, 0.15) !important;
	border: none !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	color: #fff !important;
	padding: 0 !important;
}

body.fkz-profile-page .fkz-lightbox .fkz-lightbox__control:hover {
	background: rgba(255, 255, 255, 0.22) !important;
	color: #fff !important;
}

body.fkz-profile-page .fkz-profile .fkz-gallery button.fkz-gallery__item {
	background: var(--fkz-bg-surface) !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 0 !important;
}

body.fkz-profile-page .fkz-profile .fkz-gallery button.fkz-gallery__item::after {
	border: 1px solid var(--fkz-gallery-border) !important;
}

body.fkz-profile-page .fkz-profile .fkz-branch__actions button.fkz-branch__phone,
body.fkz-profile-page .fkz-profile .fkz-branch__actions button.fkz-branch__phone--nav {
	background: var(--fkz-neutral-btn) !important;
	border: 0 !important;
	border-width: 0 !important;
	box-shadow: none !important;
	color: var(--fkz-primary) !important;
	outline: none;
}

body.fkz-profile-page .fkz-profile .fkz-branch__actions button.fkz-branch__phone:hover,
body.fkz-profile-page .fkz-profile .fkz-branch__actions button.fkz-branch__phone:focus-visible,
body.fkz-profile-page .fkz-profile .fkz-branch__actions button.fkz-branch__phone--nav:hover,
body.fkz-profile-page .fkz-profile .fkz-branch__actions button.fkz-branch__phone--nav:focus-visible {
	background: var(--fkz-primary) !important;
	color: #fff !important;
}

body.fkz-profile-page .fkz-profile .fkz-branch__actions button.fkz-branch__phone:hover .fkz-icon-wrap,
body.fkz-profile-page .fkz-profile .fkz-branch__actions button.fkz-branch__phone:focus-visible .fkz-icon-wrap,
body.fkz-profile-page .fkz-profile .fkz-branch__actions button.fkz-branch__phone--nav:hover .fkz-icon-wrap,
body.fkz-profile-page .fkz-profile .fkz-branch__actions button.fkz-branch__phone--nav:focus-visible .fkz-icon-wrap {
	color: #fff !important;
}

.fkz-branch__phone--nav {
	flex: 1 1 42%;
}

body.fkz-profile-page .fkz-profile .fkz-branch__actions .fkz-branch__phone--nav {
	background: var(--fkz-neutral-btn) !important;
	border: none !important;
	box-shadow: none !important;
	color: var(--fkz-primary) !important;
	outline: none;
}

/* Comments — mother component (templates/parts/comments.php; Sina 2026-10-26): each comment is a card of the site's card family (hairline, radius 16), unlike the FAQ's grey boxes;
   header with a count pill and «نوشتن نظر»; three shown, the rest in place; replies inside their comment on a soft tint. */
.fkz-comments__head {
	align-items: center;
	display: flex;
	gap: 10px;
	justify-content: space-between;
	margin-bottom: 12px;
}

.fkz-comments__head .fkz-comments__title {
	align-items: center;
	display: flex;
	gap: 8px;
	margin: 0;
}

.fkz-comments__count {
	background: var(--fkz-badge-insurance-bg);
	border-radius: var(--fkz-radius-pill);
	color: var(--fkz-badge-insurance-fg);
	font-size: var(--fkz-fs-caption);
	font-weight: 700;
	line-height: 1;
	padding: 5px 9px;
}

.fkz-comments__write,
.fkz-comments__write:hover,
.fkz-comments__write:focus {
	align-items: center;
	background: var(--fkz-neutral-btn);
	border: 0;
	border-radius: 10px;
	color: var(--fkz-primary);
	cursor: pointer;
	display: inline-flex;
	flex-shrink: 0;
	font-family: inherit;
	font-size: var(--fkz-fs-secondary);
	font-weight: 700;
	gap: 6px;
	padding: 8px 12px;
	transition: color 0.16s ease;
}

.fkz-comments__write:hover,
.fkz-comments__write:focus-visible,
.fkz-comments__write[aria-expanded="true"] {
	color: var(--fkz-ink);
}

.fkz-comments__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fkz-comments__item {
	background: var(--fkz-bg-surface);
	border: 1px solid var(--fkz-card-line, rgba(18, 44, 58, 0.16));
	border-radius: var(--fkz-radius-xl);
	box-sizing: border-box;
	padding: 14px 16px;
}

.fkz-comments__item[hidden] {
	display: none;
}

.fkz-comments__meta {
	align-items: center;
	display: flex;
	gap: 10px;
	margin-bottom: 8px;
}

.fkz-comments__avatar {
	align-items: center;
	background: var(--fkz-badge-insurance-bg);
	border-radius: var(--fkz-radius-pill);
	color: var(--fkz-badge-insurance-fg);
	display: flex;
	flex-shrink: 0;
	font-size: var(--fkz-fs-body);
	font-weight: 700;
	height: 38px;
	justify-content: center;
	width: 38px;
}

.fkz-comments__who {
	display: flex;
	flex-direction: column;
	line-height: 1.5;
	min-width: 0;
}

.fkz-comments__name {
	color: var(--fkz-ink);
	font-size: var(--fkz-fs-body);
	font-weight: 700;
}

.fkz-comments__date {
	color: var(--fkz-subtle);
	font-size: var(--fkz-fs-caption);
}

.fkz-comments__text {
	color: var(--fkz-body);
	font-size: var(--fkz-fs-body);
	line-height: var(--fkz-lh-body);
	overflow-wrap: anywhere;
}

.fkz-comments__text p {
	margin: 0 0 0.5em;
}

.fkz-comments__text p:last-child {
	margin-bottom: 0;
}

.fkz-comments__reply {
	background: var(--fkz-neutral);
	border-radius: var(--fkz-radius-md);
	margin-top: 10px;
	padding: 10px 12px;
}

.fkz-comments__reply-meta {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	margin-bottom: 4px;
}

.fkz-comments__more,
.fkz-comments__more:hover,
.fkz-comments__more:focus {
	align-items: center;
	background: none;
	border: 0;
	color: var(--fkz-primary);
	cursor: pointer;
	display: flex;
	font-family: inherit;
	font-size: var(--fkz-fs-secondary);
	font-weight: 700;
	gap: 4px;
	margin: 10px auto 0;
	padding: 6px 10px;
	transition: color 0.16s ease;
}

.fkz-comments__more:hover,
.fkz-comments__more:focus-visible {
	color: var(--fkz-ink);
}

.fkz-comments__form {
	background: var(--fkz-neutral);
	border-radius: var(--fkz-radius-lg);
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 12px;
	padding: 12px;
}

.fkz-comments__form[hidden] {
	display: none;
}

.fkz-comments__form-row {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fkz-comments__form input,
.fkz-comments__form textarea {
	background: var(--fkz-bg-surface);
	border: 1px solid var(--fkz-border);
	border-radius: 10px;
	box-sizing: border-box;
	color: var(--fkz-ink);
	font-family: inherit;
	font-size: var(--fkz-fs-body);
	padding: 10px 12px;
	width: 100%;
}

.fkz-comments__form input:focus,
.fkz-comments__form textarea:focus {
	border-color: var(--fkz-primary);
	box-shadow: 0 0 0 3px rgba(95, 126, 145, 0.18);
	outline: 0;
}

.fkz-comments__form button,
.fkz-comments__form button:hover,
.fkz-comments__form button:focus {
	align-items: center;
	background: var(--fkz-primary);
	border: none;
	border-radius: 10px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	flex-shrink: 0;
	font-family: inherit;
	font-size: var(--fkz-fs-secondary);
	font-weight: 700;
	gap: 6px;
	justify-content: center;
	padding: 10px 18px;
}

.fkz-comments__form button:hover,
.fkz-comments__form button:focus-visible {
	background: var(--fkz-primary-hover);
}

.fkz-comments__empty,
.fkz-comments__notice {
	color: var(--fkz-body);
	font-size: var(--fkz-fs-body);
	margin: 0 0 12px;
}

.fkz-comments__notice {
	background: var(--fkz-badge-insurance-bg);
	border-radius: var(--fkz-radius-lg);
	color: var(--fkz-ink);
	padding: 10px 14px;
}

@media (min-width: 900px) {
	.fkz-comments__form-row {
		align-items: center;
		flex-direction: row;
	}

	.fkz-comments__form-row input {
		flex: 1;
	}
}

/* Article list thumbnail (Mehdi 2026-11-08): one 48px square everywhere: the page banner (cover), else the insurance
   logo large on white, else a plain white tile. inc/directory.php fkz_article_thumb(). */
.fkz-thumb {
	align-items: center;
	background: #fff;
	border: 1px solid var(--fkz-border);
	border-radius: 10px;
	box-sizing: border-box;
	display: flex;
	flex: none;
	height: 48px;
	justify-content: center;
	overflow: hidden;
	width: 48px;
}

.fkz-thumb img {
	display: block;
	height: 100%;
	width: 100%;
}

.fkz-thumb--photo {
	border: 0;
}

.fkz-thumb--photo img {
	object-fit: cover;
}

.fkz-thumb--logo {
	padding: 2px;
}

.fkz-thumb--logo img {
	object-fit: contain;
}
