/** Hayat Tab Bar + Tab Bar View controller */

.hayat-tab-bar,
.hayat-tab-view {
	--hayat-tab-brand-soft: #ecf8f0;
	--hayat-tab-text: #2b2b2b;
	--hayat-tab-text-active: #1f3d2a;
	box-sizing: border-box;
	direction: rtl;
	font-family: peyda, Vazirmatn, sans-serif;
}

.hayat-tab-bar *,
.hayat-tab-view *,
.hayat-tab-bar *::before,
.hayat-tab-view *::before,
.hayat-tab-bar *::after,
.hayat-tab-view *::after {
	box-sizing: border-box;
}

.hayat-tab-bar {
	width: 100%;
	background: #ffffff;
}

.hayat-tab-bar__list {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.hayat-tab-bar__list::-webkit-scrollbar {
	display: none;
}

.hayat-tab-bar__tab {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 auto;
	margin: 0;
	border: 0;
	background: transparent;
	color: var(--hayat-tab-text);
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
	padding: 10px 16px;
	border-radius: 12px;
	text-align: center;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.hayat-tab-bar__tab:hover {
	background-color: #f4f7f5;
}

.hayat-tab-bar__tab.is-active {
	background-color: var(--hayat-tab-brand-soft);
	color: var(--hayat-tab-text-active);
	font-weight: 600;
}

.hayat-tab-bar__tab:focus {
	outline: none;
}

.hayat-tab-bar__tab:focus-visible {
	outline: 3px solid rgba(71, 179, 105, 0.35);
	outline-offset: 2px;
}

.elementor-widget-hayat_tab_bar.hayat-tab-bar-sticky-yes {
	background-color: #ffffff;
}

.hayat-tab-view--controller:not(.is-preview) {
	display: none;
}

.elementor-widget-hayat_tab_bar_view:not(.elementor-element-edit-mode) {
	margin: 0;
	min-height: 0;
}

.hayat-tab-view__editor {
	padding: 12px 14px;
	border: 1px dashed #47b369;
	border-radius: 10px;
	background: #f7fbf7;
	font-size: 13px;
	line-height: 1.7;
	color: #2b2b2b;
}

.hayat-tab-view__editor strong {
	display: block;
	margin-bottom: 4px;
}

.hayat-tab-view__editor ul {
	margin: 8px 0 0;
	padding-right: 18px;
}

.hayat-tab-view__editor code {
	font-size: 12px;
}

.hayat-tab-view__status {
	margin-top: 8px;
	color: #2f7a48;
	font-weight: 600;
}

.hayat-tab-view__status.is-error {
	color: #c7191e;
}
