.tabs__button-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 0px;
  gap: var(--space-8);
  margin-bottom: var(--space-48);
}

.tabs__button-wrapper button.active {
  background-color: var(--cta-hover-background-color);
  color: var(--cta-hover-text-color);
}

.tabs__button-wrapper button:focus {
  box-shadow: none;
  outline: transparent;
}
/* .tab-btn.cta.-secondary {
  --border: var(--site-text-color);
  --tyest: ;
  --border-color: rgba(, 0.5);   
} */
/*Secondary btn has prominet default border, which is not working with colored btn (primary)*/
.tab-btn.cta.-secondary.active {
  --border-color: transparent; 
}
.tab__texts {
  order: 2;
}

.tab__image {
  order: 1;
}

.tab-section .tab__image {
  margin-bottom: var(--space-32);
}

.tab-section .tab__image img {
  height: auto;
}

/* Added media query 1050px as its the best breakpoint */
@media screen and (min-width: 1050px) {

  /* module layout styles */
  .tab-section.-tab-row {
    display: flex;
    flex-direction: column;
  }

  .tab-section.-tab-column {
    display: flex;
    flex-direction: row;
  }

  /* tabs buttons */
  .background[class*="background-dark"] .tabs__button-wrapper{
    border-bottom: 2px solid #ffffff20;
  }
  .background.background-default .tabs__button-wrapper,
  .background[class*="background-light"] .tabs__button-wrapper{
    border-bottom: 2px solid #00000015;
  }

  .tabs__top-section :last-child {
    margin-bottom: 0;
  }

  .tabs__button-wrapper.-tab-row {
    /* margin-top: var(--space-64); */
    margin-bottom: var(--space-96);
  }

  .tabs__button-wrapper.-tab-column {
    /*margin-top: var(--space-96);*/
    margin-bottom: var(--space-64);
    width: 100%;
  }

  .tabs__button-wrapper button {
    background: none;
    border: none;
    border-bottom-color: currentcolor;
    border-bottom-style: none;
    border-bottom-width: medium;
    border-bottom: 4px solid transparent !important;
    border-radius: 0;
    font: inherit;
    margin: 0 var(--space-24);
    padding: var(--space-12) 0;
    font-size: 2.4rem;
  }

  .tabs__button-wrapper button:nth-child(1) {
    margin-left: 0;
  }

  .tabs__button-wrapper button.active {
    background-color: transparent;
    border-bottom: 4px solid var(--site-brand-color) !important;
    color: var(--site-text-color);
    color: var(--site-brand-color);
  }


  .tabs__button-wrapper button:focus-visible {
    outline: var(--focus-outline);
    outline-offset: 4px;
  }

  .tabs__button-wrapper button:hover {
    color: currentColor;
    border-bottom: 4px solid var(--site-brand-color) !important;
  }

  /* tabs content styles */
  /* columns layout styles */

  .-tab-column .tab__image {
    margin-bottom: var(--space-32);
  }

  /* row layout styles */
  .tabContent.-tab-column {
    gap: 96px;
  }

  .-tab-column .tab__image img {
    max-width: 544px;
    max-height: 100%;
    height: auto;
  }

  .-tab-row .tab__image img {
    max-height: 700px;
    width: 100%;
    object-fit: cover;
  }
}
/* Custom code */
@media screen and (min-width: 1049px) {
  .plandisc-tabs .tabs__button-wrapper {
    border-bottom: 0 !important;
    gap: var(--space-12);
    margin-bottom: var(--space-32);
  }
}
@media screen and (min-width: 1050px) {
  .plandisc-tabs .tabs__button-wrapper {
    border-bottom: 0 !important;
    gap: var(--space-12);
    justify-content: center;
    margin-bottom: var(--space-32);
  }
}
@media screen and (max-width: 1049px) {
  .plandisc-tabs .tab-btn {
    align-items: center;
    gap: var(--space-12);
  
    
    font-size: var(--text-small-size);
    font-weight: 600;
    
    padding: 12px 16px;
    margin-right: 0;
    margin-left: 0;
    
    background-color: #ffffff;
    border-radius: var(--space-8);
    
    border: 0 !important;
  }
  .tab__icon img {
    height: 24px;
}
}
@media screen and (min-width: 1050px) and (max-width: 1599px) {
  .plandisc-tabs .tab-btn {
    align-items: center;
    gap: var(--space-12);
  
    
    font-size: var(--text-small-size);
    font-weight: 600;
    
    padding: 12px 16px;
    margin-right: 0;
    margin-left: 0;
    
    background-color: #ffffff;
    border-radius: var(--space-8);
    
    border-bottom: 0 !important;
  }
  .tab__icon img {
    height: 24px;
}
}
@media screen and (min-width: 1600px) {
  .plandisc-tabs .tab-btn {
    align-items: center;
    gap: var(--space-12);
  
    
    font-size: var(--text-medium-size);
    font-weight: 600;
    
    padding: 21px 24px;
    margin-right: 0;
    margin-left: 0;
    
    background-color: #ffffff;
    border-radius: var(--space-8);
    
    border-bottom: 0 !important;
  }
  .tab__icon img {
    height: 24px;
}
}
  .plandisc-tabs .tab-btn .tab__image {
    margin-bottom: 0;
  }
  
  .plandisc-tabs .tab-btn.active {
    border-bottom: 0 !important;
    background-color: var(--cta-background-color);
    color: var(--cta-text-color);
  }
  .plandisc-tabs .tab-btn:hover {
    border-bottom: 0 !important;
    transform: scale(1.05);
    filter: drop-shadow(0px 3px 16px rgba(0, 0, 0, 0.2));
  }
  
  .plandisc-tabs .tab-btn.active .tab__icon img {
    filter: invert(100%);
    width: 100%;
    height: 100%
    max-height: none;
    max-width: none;
    margin-left: unset !important;
  }
  .plandisc-tabs .tab-section {
    background-color: #ffffff;
    border-radius: var(--space-12);
    padding: var(--space-48);
  }
  .plandisc-tabs .tabContent {
    align-items: center;
    gap: var(--space-48);
  }
  .-tab-column .tab__image {
    width: 50%;
    aspect-ratio: 4 / 3;
    border-radius: var(--space-8);
    margin-bottom: 0;
  }
  .plandisc-tabs .tab-section .tab__texts h3 {
    font-size: var(--title-medium-size);
  }
@media screen and (max-width: 1049px) {
  .tab__texts {
    width: 100%;
  }
}