/* ========================= */
/* TAB NAV CONTAINER         */
/* ========================= */
.tab_navigation__navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 40px;
    row-gap: 0;
    margin-bottom: 2em;
    position: relative;
    padding-bottom: 8px;
}

/* ========================= */
/* ROW DIVIDERS (FIXED)      */
/* ========================= */
.tab_navigation__navigation::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px; /*EDIT TO CHANGE TOP UNDERLINE BAR OFFSET*/
    bottom: -10px; 
    pointer-events: none;

    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent calc(100% - 1px),
        #ddd calc(100% - 1px),
        #ddd 100%
    );

    background-size: 100% 48px; /*EDIT TO CHANGE UNDERLINE ROW HEIGHT*/
}

/* ========================= */
/* TAB BUTTONS               */
/* ========================= */
.tab_navigation__navigation__button {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 500;
    color: #012863;
    padding: 9px 0;
    cursor: pointer;
    position: relative;
    transition: 0.2s;
    white-space: nowrap;
    margin-bottom: 8px;
    line-height: 1.2; /* 👈 fixes iPhone inconsistency */
	font-family: 'Kanit' !important;
}

/* HOVER */
.tab_navigation__navigation__button:hover {
    color: #1144a0;
}

/* ACTIVE TAB */
.tab_navigation__navigation__button.active {
    color: #1e5ed6;
}

/* UNDERLINE INDICATOR */
.tab_navigation__navigation__button.active::after {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: #012863;
    z-index: 2;
}

/* SMALL TRIANGLE */
.tab_navigation__navigation__button.active::before {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #012863;
    z-index: 2;
}

/* ========================= */
/* TAB CONTENT               */
/* ========================= */
.tab_navigation__tab {
    display: none;
}

.tab_navigation__tab.active {
    display: block;
}

/* ========================= */
/* TITLE INSIDE TAB          */
/* ========================= */
.tab_navigation__title {
    margin-bottom: 0.8em;
    font-size: 1.4em;
}

/* ========================= */
/* MOBILE                    */
/* ========================= */
@media (max-width: 768px) {
    .tab_navigation__navigation {
        column-gap: 2.5em;
        padding-bottom: 6px;
    }
    
    .tab_navigation__navigation__button {
        padding: 6px 0 !important;
        margin-bottom: 6px;
		font-size: 16px !important;
    }
    
    .tab_navigation__navigation::after {
		top: -6px; /*EDIT TO CHANGE TOP UNDERLINE BAR OFFSET*/
        bottom: -10px; 
        background-size: 100% 37px; /*EDIT TO CHANGE UNDERLINE ROW HEIGHT*/
    }
    

	
	
}

/* ========================= */
/* TABLE FORMATTING          */
/* ========================= */
.wp-block-woocommerce-product-description table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 80px;
}

.wp-block-woocommerce-product-description thead {
  display: none;
}

.wp-block-woocommerce-product-description tbody td {
  padding: 10px;
  border: none;
}

.wp-block-woocommerce-product-description tbody tr:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}

.wp-block-woocommerce-product-description h3 {
  color: #012863;
  font-size: 28px;
}

.wp-block-woocommerce-product-description td:nth-child(1) {
  width: 45%;
}
.wp-block-woocommerce-product-description td:nth-child(2) {
  width: 35%;
}
.wp-block-woocommerce-product-description td:nth-child(3) {
  width: 20%;
}

/* ========================= */
/* IMAGE TAB CENTERING       */
/* ========================= */
.tab_navigation__tab[data-tab="tab-images"] {
    text-align: center;
}

.tab_navigation__tab[data-tab="tab-images"] figure {
    margin-left: auto;
    margin-right: auto;
}

.tab_navigation__tab[data-tab="tab-images"] img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}


/* ========================= */
/* FIX MOBILE H3 FONT SIZE       */
/* ========================= */
@media (max-width: 768px) {
    .wp-block-woocommerce-product-details 
    .tab_navigation__title {
        font-size: var(--wp--preset--font-size--large) !important;
    }
}

/* ========================= */
/* VIDEO MARGIN       */
/* ========================= */
.product_video_wrapper {
    margin-bottom: 6.5em;
}


/* ========================= */
/* REMOVE EMPTY SPACE AT THE BOTTOM       */
/* ========================= */
.product-main-collumn .tab_navigation__tab,
.product-main-collumn .table,
.product-main-collumn table{
    margin-bottom: 0 !important;
}