{# Base tab container styles #}
.c-tabs {
  display: flex;
  justify-content: space-between;
  text-align: center;
  list-style: none;
  margin-bottom: 0px;
  padding-left: 0;
}

{# Individual tab item #}
.c-tab {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin: 0 2px;
  width: 100%;

  {# Smooth transition for tab hover/active #}
  -webkit-transition: all 400ms ease-in-out;
  -moz-transition: all 400ms ease-in-out;
  -ms-transition: all 400ms ease-in-out;
  -o-transition: all 400ms ease-in-out;
  transition: all 400ms ease-in-out;
}

{# Tab content is hidden by default #}
.clean-base.tab-content,
.tab-content,
.tab-content.show-mobile,
.tab-content.show-tablet {
  display: none !important;
}

{# Show active tab content #}
.tab-content.active,
.clean-base.tab-content.active {
  display: flex !important;
}

{# Mobile-only tab header (hidden by default) #}
.c-tab-mobile-head {
  display: none;
}

{# Optional centering for any special feature blocks inside tab content #}
.tab-feature-con .custom {
  margin: auto;
}

{# Dropdown <select> styling. Scoped to the module (.tab-feature-con) so it never
   bleeds onto other page selects, and NOT wrapped in a width media query because
   the <select> is only ever inserted by JS when the tabs collapse (mobile, or
   tablet when the toggle is on) — so styling it whenever it exists is correct. #}
.tab-feature-con select {
  display: block;
  margin-bottom: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  font-size: 16px;
  cursor: pointer;
  appearance: none;
  background-color: #fff;

  {# Custom dropdown arrow #}
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M10.293 3.293L6 7.586 1.707 3.293a1 1 0 011.414-1.414L6 5.758l3.879-3.879a1 1 0 011.414 1.414z' fill='%23000'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 10px) center;
}

.tab-feature-con select:focus {
  outline: none;
  border-color: #0078d7;
  box-shadow: 0 0 0 2px rgba(0, 120, 215, 0.3);
}

{# Mobile: always collapse the tabs into the dropdown. #}
@media (max-width: 575px) {
  {# Hide desktop tabs #}
  .c-tabs {
    display: none;
  }

  {# Show mobile/tablet dropdown header #}
  .c-tab-mobile-head {
    display: block;
    margin-bottom: 15px;
  }
}

{# Tablet: only collapse into the dropdown when "Use dropdown menu on tablet" is on
   (the .has-tablet-dropdown class is added on the module root in that case). #}
@media (min-width: 576px) and (max-width: 992px) {
  .tab-feature-con.has-tablet-dropdown .c-tabs {
    display: none;
  }

  .tab-feature-con.has-tablet-dropdown .c-tab-mobile-head {
    display: block;
    margin-bottom: 15px;
  }
}