/* Advanced Tabs CSS */

.essb-tabs-wrapper {
    display: flex;
    width: 100%;
}

/* Layout - Left/Right */
.essb-tabs-left,
.essb-tabs-right {
    flex-direction: row;
}

.essb-tabs-right {
    flex-direction: row-reverse;
}

/* Layout - Top/Bottom */
.essb-tabs-top,
.essb-tabs-bottom {
    flex-direction: column;
}

.essb-tabs-bottom {
    flex-direction: column-reverse;
}

/* Tabs List */
.essb-tabs-list {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.essb-tabs-top .essb-tabs-list,
.essb-tabs-bottom .essb-tabs-list {
    flex-direction: row;
    width: 100%;
}

/* Same size tabs */
.essb-tabs-wrapper[data-same-size="yes"] .essb-tab-item {
    flex: 1;
}

.essb-tabs-wrapper[data-same-size="yes"].essb-tabs-left .essb-tab-item,
.essb-tabs-wrapper[data-same-size="yes"].essb-tabs-right .essb-tab-item {
    height: 100%;
}

.essb-tabs-wrapper[data-same-size="yes"].essb-tabs-top .essb-tab-item,
.essb-tabs-wrapper[data-same-size="yes"].essb-tabs-bottom .essb-tab-item {
    width: 100%;
}

/* Tab Item */
.essb-tab-item {
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.essb-tab-item img {
    max-width: 50px;
    height: auto;
}

.essb-tab-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.essb-tab-icon {
    display: inline-flex;
    align-items: center;
}

.essb-tab-icon svg,
.essb-tab-icon i {
    display: block;
}

/* Content Wrapper */
.essb-tabs-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Tabs Content */
.essb-tabs-content {
    position: relative;
    flex: 1;
}

.essb-tab-content {
    display: none;
}

.essb-tab-content.active {
    display: block;
}

/* Full Height Content */
.essb-tabs-wrapper[data-full-height="yes"] .essb-tabs-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.essb-tabs-wrapper[data-full-height="yes"] .essb-tabs-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.essb-tabs-wrapper[data-full-height="yes"] .essb-tab-content {
    height: 100%;
}

.essb-tabs-wrapper[data-full-height="yes"] .essb-tab-content.active {
    display: flex !important;
    flex-direction: column;
    flex: 1;
}

/* Force template containers to take full height */
.essb-tabs-wrapper[data-full-height="yes"] .essb-tab-content > .elementor,
.essb-tabs-wrapper[data-full-height="yes"] .essb-tab-content > .elementor-inner,
.essb-tabs-wrapper[data-full-height="yes"] .essb-tab-content > .elementor > .elementor-section-wrap,
.essb-tabs-wrapper[data-full-height="yes"] .essb-tab-content .elementor-section {
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.essb-tabs-wrapper[data-full-height="yes"] .essb-tab-content .elementor-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.essb-tabs-wrapper[data-full-height="yes"] .essb-tab-content .elementor-row,
.essb-tabs-wrapper[data-full-height="yes"] .essb-tab-content .elementor-column-wrap,
.essb-tabs-wrapper[data-full-height="yes"] .essb-tab-content .elementor-widget-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Transitions */
.essb-tab-content {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.essb-tab-content.active {
    opacity: 1;
}

/* Slide transition */
.essb-tabs-wrapper[data-transition="slide"] .essb-tab-content {
    transform: translateX(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.essb-tabs-wrapper[data-transition="slide"] .essb-tab-content.active {
    transform: translateX(0);
}

/* Scale transition */
.essb-tabs-wrapper[data-transition="scale"] .essb-tab-content {
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.essb-tabs-wrapper[data-transition="scale"] .essb-tab-content.active {
    transform: scale(1);
}

/* Navigation Buttons */
.essb-tabs-navigation {
    display: flex;
    gap: 15px;
}

/* Position - Bottom (default) */
.essb-nav-position-bottom {
    order: 2;
    margin-top: 20px;
}

/* Position - Top */
.essb-nav-position-top {
    order: -1;
    margin-bottom: 20px;
}

.essb-nav-button {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.essb-nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.essb-nav-icon {
    display: inline-flex;
    align-items: center;
}

.essb-nav-icon svg,
.essb-nav-icon i {
    display: block;
    line-height: 1;
}

.essb-nav-icon svg path {
    fill: currentColor !important;
}