/* Tabs Block - Dynamically loaded */
.tabs-block { contain: layout style; }

.tabs-swiper .swiper-wrapper { align-items: flex-start; transition-property: transform, height; }
.tabs-swiper .swiper-slide { height: auto; display: flex; flex-direction: column; }

.tab-panel {
  transform-origin: top;
  transition: opacity 300ms, max-height 300ms, transform 300ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  height: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tab-panel[hidden] { display: block !important; }

.tab-content-wrapper {
  transform: translateY(0);
  transition: transform var(--animation-duration, 300ms) ease-out;
  flex: 1;
  height: auto;
}

.tabs-block button:focus-visible { outline: 2px solid hsl(217 91% 60%); outline-offset: 2px; }
.tabs-block .tab-navigation .overflow-x-auto { scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }

@media (max-width: 640px) {
  .tabs-block .tab-navigation button { flex: 0 0 auto; text-align: center; min-width: fit-content; }
}

/* Tab Button Base */
.tab-btn {
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* Tab Variants */
.tab-btn-pills {
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 18px;
}
.tab-btn-pills.active {
  background-color: var(--tab-active-bg);
  color: #874C10;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.tab-btn-pills.inactive { background-color: var(--tab-inactive-bg); color: #000000; }
.tab-btn-pills.inactive:hover { background-color: #e5e7eb; }

.tab-btn-leaf {
  padding: 8px 12px;
  font-size: 18px;
  font-weight: 500;
  border-radius: 32px 0px;
}
.tab-btn-leaf.active { background-color: var(--tab-active-bg); color: var(--tab-active-text); }
.tab-btn-leaf.inactive { background-color: transparent; color: #000000; }

.tab-btn-bubble {
  border-radius: 9999px;
  padding: 0.625rem 1.5rem;
  font-size: 18px;
  font-weight: 600;
  border: none;
  background-color: transparent;
}
.tab-btn-bubble.active { background-color: var(--tab-active-bg); color: #874C10; }
.tab-btn-bubble.inactive { color: #000000; }

.tab-btn-underline {
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 18px;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}
.tab-btn-underline.active { border-color: var(--tab-active-border); color: #874C10; }
.tab-btn-underline.inactive { color: #000000; }
.tab-btn-underline.inactive:hover { border-color: #d1d5db; }

.tab-btn-bordered {
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 18px;
  border: 1px solid #d1d5db;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  margin-bottom: -1px;
}
.tab-btn-bordered.active { background-color: #ffffff; border-bottom-color: #ffffff; color: #874C10; }
.tab-btn-bordered.inactive { background-color: var(--tab-inactive-bg); color: #000000; }
.tab-btn-bordered.inactive:hover { background-color: #f3f4f6; }
