:root {
	--sitsel-primary:      #6c63ff;
	--sitsel-primary-lite: #e8e6ff;
	--sitsel-nav-bg:       #f0f0f0;
	--sitsel-nav-color:    #555;
	--sitsel-active-color: #fff;
	--sitsel-radius:       4px;
	--sitsel-trans:        0.25s ease;
	--sitsel-content-bg:   #fff;
	--sitsel-border-color: #e0e0e0;
}


/* ── Wrapper ───────────────────────────────────────────────────────────────── */

.sitsel-tabs-wrapper {
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
}

.sitsel-tabs-wrapper.sitsel-layout-vertical {
	flex-direction: row;
	align-items: flex-start;
}
.sitsel-tabs-wrapper.sitsel-layout-vertical.sitsel-bp-accordion {
    flex-direction: column;
}

/* ── Nav ───────────────────────────────────────────────────────────────────── */

.sitsel-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sitsel-layout-vertical .sitsel-tabs-nav {
	flex-direction: column;
	flex-wrap: nowrap;
	min-width: 180px;
	flex-shrink: 0;
}
/* Vertical nav on the right */
.sitsel-layout-vertical.sitsel-vertical-right {
    flex-direction: row-reverse;
}

.sitsel-layout-vertical.sitsel-vertical-right .sitsel-tab-btn {
    border-radius: 0 var(--sitsel-radius) var(--sitsel-radius) 0;
}

.sitsel-layout-vertical.sitsel-vertical-right .sitsel-tab-content {
    border-radius: var(--sitsel-radius) 0 var(--sitsel-radius) var(--sitsel-radius);
}
/* ── Tab Button ────────────────────────────────────────────────────────────── */

.sitsel-tab-btn {
	display: inline-flex;
	align-items: center;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	font-family: inherit;
	cursor: pointer;
	border: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	background-color: var(--sitsel-nav-bg);
	color: var(--sitsel-nav-color);
	border-radius: var(--sitsel-radius) var(--sitsel-radius) 0 0;
	transition: background-color var(--sitsel-trans), color var(--sitsel-trans), box-shadow var(--sitsel-trans);
	white-space: nowrap;
	position: relative;
	z-index: 1;
}

.sitsel-tab-btn:focus-visible {
	outline: 2px solid var(--sitsel-primary);
	outline-offset: 2px;
}

.sitsel-tab-btn:hover {
	background-color: var(--sitsel-primary-lite);
	color: var(--sitsel-primary);
}

.sitsel-tab-btn.sitsel-active {
	background-color: var(--sitsel-primary);
	color: var(--sitsel-active-color);
}

.sitsel-layout-vertical .sitsel-tab-btn {
	border-radius: var(--sitsel-radius) 0 0 var(--sitsel-radius);
	width: 100%;
	justify-content: flex-start;
}

/* Icon position variants */
.sitsel-tab-btn.sitsel-icon-top {
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

/* ── Tab Icon ──────────────────────────────────────────────────────────────── */

.sitsel-tab-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.sitsel-tab-icon i,
.sitsel-tab-icon svg {
	width: 1em;
	height: 1em;
}

/* ── Content Wrap ──────────────────────────────────────────────────────────── */

.sitsel-tabs-content-wrap {
	flex: 1;
	min-width: 0;
	height:stretch;
}

.sitsel-tab-content {
	display: none;
	padding: 20px;
	background-color: var(--sitsel-content-bg);
	border-radius: 0 var(--sitsel-radius) var(--sitsel-radius) var(--sitsel-radius);
	box-sizing: border-box;
}

.sitsel-tab-content.sitsel-active {
	display: block;
	animation: sitselFadeIn 0.3s ease;
}

.sitsel-tab-content[hidden] {
	display: none !important;
}

.sitsel-layout-vertical .sitsel-tabs-content-wrap {
    display: flex;
    flex-direction: column;
}

.sitsel-layout-vertical .sitsel-tab-content {
    height: auto;
    flex: 1;
}

.sitsel-layout-vertical .sitsel-tabs-nav {
    align-self: stretch;
}

.sitsel-tab-template-wrap {
	width: 100%;
	box-sizing: border-box;
}

/* ── Fade animation ────────────────────────────────────────────────────────── */

@keyframes sitselFadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ── Horizontal Scroll mode ────────────────────────────────────────────────── */
.sitsel-layout-vertical .sitsel-tabs-nav button{text-wrap:wrap;}
.sitsel-tabs-wrapper.sitsel-scroll .sitsel-tabs-nav {
	flex-wrap: nowrap;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: #ccc transparent;
	padding-bottom: 2px;
}

.sitsel-tabs-wrapper.sitsel-scroll .sitsel-tabs-nav::-webkit-scrollbar       { height: 4px; }
.sitsel-tabs-wrapper.sitsel-scroll .sitsel-tabs-nav::-webkit-scrollbar-track  { background: transparent; }
.sitsel-tabs-wrapper.sitsel-scroll .sitsel-tabs-nav::-webkit-scrollbar-thumb  { background-color: #ccc; border-radius: 4px; }

/* ── Collapsed / wrap mode ─────────────────────────────────────────────────── */

.sitsel-tabs-wrapper.sitsel-collapsed {
	flex-direction: column !important;
}
.sitsel-layout-vertical.sitsel-collapsed .sitsel-tabs-nav {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: unset;
    width: 100%;
}

.sitsel-layout-vertical.sitsel-collapsed .sitsel-tab-btn {
    border-radius: var(--sitsel-radius) !important;
    width: auto !important;
    justify-content: center;
}
.sitsel-layout-vertical.sitsel-collapsed .sitsel-tabs-nav {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    min-width: unset !important;
}

.sitsel-layout-vertical.sitsel-scroll .sitsel-tabs-nav {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    min-width: unset !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}
/* ── Accordion breakpoint mode: hide original wrapper ──────────────────────── */

.sitsel-tabs-wrapper.sitsel-bp-hidden {
	display: none !important;
}

/* =============================================================================
   ACCORDION  (standalone + breakpoint-generated)
   ============================================================================= */

.sitsel-accordion-wrapper {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	box-sizing: border-box;
}

/* ── Item ──────────────────────────────────────────────────────────────────── */

.sitsel-accordion-item {
	overflow: hidden;
	box-sizing: border-box;
	width:100%;
}
/* Accordion item icon (from repeater tab_icon) */
.sitsel-accordion-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1em;
    pointer-events: none;
}

.sitsel-accordion-tab-icon i,
.sitsel-accordion-tab-icon svg {
    width: 1em;
    height: 1em;
}
/* ── Header Button ─────────────────────────────────────────────────────────── */

.sitsel-accordion-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	text-wrap:wrap;
	padding: 14px 20px;
	background-color: var(--sitsel-nav-bg);
	color: #333;
	border: none;
	cursor: pointer;
	text-align: left;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	font-family: inherit;
	-webkit-appearance: none;
	appearance: none;
	outline: none;
	box-sizing: border-box;
	transition: background-color var(--sitsel-trans), color var(--sitsel-trans);
}

.sitsel-accordion-btn:focus-visible {
	outline: 2px solid var(--sitsel-primary);
	outline-offset: -2px;
}

.sitsel-accordion-btn:hover {
	background-color: var(--sitsel-primary-lite);
	color: var(--sitsel-primary);
}

.sitsel-accordion-item.sitsel-active > .sitsel-accordion-btn {
	background-color: var(--sitsel-primary);
	color: var(--sitsel-active-color);
}

/* ── Icon position ─────────────────────────────────────────────────────────── */

.sitsel-acc-icon-pos-right {
	justify-content: space-between;
}

/* ── Label ─────────────────────────────────────────────────────────────────── */

.sitsel-accordion-label {
	flex: 1;
	min-width: 0;
}

/* ── Toggle Icon: base ─────────────────────────────────────────────────────── */

.sitsel-accordion-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	position: relative;
	box-sizing: border-box;
	transition: transform 0.3s ease, color var(--sitsel-trans);
}

/* ── Plus / Minus ──────────────────────────────────────────────────────────── */

.sitsel-accordion-icon.sitsel-acc-icon-plus-minus::before,
.sitsel-accordion-icon.sitsel-acc-icon-plus-minus::after {
	content: '';
	position: absolute;
	background-color: currentColor;
	border-radius: 1px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Horizontal bar */
.sitsel-accordion-icon.sitsel-acc-icon-plus-minus::before {
	width: 100%; height: 2px;
	top: 50%; left: 0;
	transform: translateY(-50%);
}

/* Vertical bar */
.sitsel-accordion-icon.sitsel-acc-icon-plus-minus::after {
	width: 2px; height: 100%;
	top: 0; left: 50%;
	transform: translateX(-50%);
	transform-origin: center;
}

/* Active: minus */
.sitsel-accordion-item.sitsel-active > .sitsel-accordion-btn .sitsel-acc-icon-plus-minus::after {
	opacity: 0;
	transform: translateX(-50%);
}
.sitsel-accordion-btn .sitsel-acc-icon-plus-minus{transition:all 0.5s ease-in-out;}
.sitsel-accordion-item.sitsel-active > .sitsel-accordion-btn .sitsel-acc-icon-plus-minus{rotate:180deg;}

/* ── Arrow / Chevron ───────────────────────────────────────────────────────── */

.sitsel-accordion-icon.sitsel-acc-icon-arrow {
	width: 10px;
	height: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	margin-top: -3px;
	border-radius: 0;
	background: none !important;
}

.sitsel-accordion-item.sitsel-active > .sitsel-accordion-btn .sitsel-acc-icon-arrow {
	transform: rotate(-135deg);
	margin-top: 3px;
}

/* ── Custom Icon ───────────────────────────────────────────────────────────── */

.sitsel-accordion-icon.sitsel-acc-icon-custom { width: auto; height: auto; }

/* Show closed icon by default, open icon when active */
.sitsel-acc-icon-open  { display: none; }
.sitsel-acc-icon-closed { display: inline-flex; }

.sitsel-accordion-item.sitsel-active > .sitsel-accordion-btn .sitsel-acc-icon-open   { display: inline-flex; }
.sitsel-accordion-item.sitsel-active > .sitsel-accordion-btn .sitsel-acc-icon-closed { display: none; }

/* ── Content Panel ─────────────────────────────────────────────────────────── */

.sitsel-accordion-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s ease;
}

.sitsel-accordion-content-inner {
	padding: 20px;
	box-sizing: border-box;
	background-color: var(--sitsel-content-bg);
}



.sitsel-notice {
	padding: 12px 16px;
	background: #f5f5f5;
	border: 1px dashed #ddd;
	border-radius: var(--sitsel-radius);
	color: #888;
	font-size: 13px;
}



@media (prefers-reduced-motion: reduce) {
	.sitsel-tab-content.sitsel-active     { animation: none; }
	.sitsel-tab-btn,
	.sitsel-accordion-btn,
	.sitsel-accordion-content,
	.sitsel-accordion-icon,
	.sitsel-accordion-icon.sitsel-acc-icon-plus-minus::before,
	.sitsel-accordion-icon.sitsel-acc-icon-plus-minus::after { transition: none; }
}