/*
 * Alfa Tonic Product Info Tabs
 * Woodmart / WooCommerce responsive styling.
 */

/* =========================================================
   STANDARD WOOCOMMERCE / WOODMART TAB CONTAINER
========================================================= */

.single-product .woocommerce-tabs,
.single-product .wd-tabs {
    clear: both;
}

/*
 * Style the WooCommerce tabs generated by Woodmart.
 * These selectors intentionally support both WooCommerce and Woodmart wrappers.
 */
.single-product .woocommerce-tabs ul.tabs,
.single-product .woocommerce-tabs .wc-tabs,
.single-product .wd-tabs .tabs,
.single-product .wd-tabs .wd-nav-tabs {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    margin: 0 0 22px !important;
    padding: 5px !important;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0 !important;
    border-radius: 14px;
    background: #f7f2e9;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.single-product .woocommerce-tabs ul.tabs::-webkit-scrollbar,
.single-product .woocommerce-tabs .wc-tabs::-webkit-scrollbar,
.single-product .wd-tabs .wd-nav-tabs::-webkit-scrollbar {
    display: none;
}

.single-product .woocommerce-tabs ul.tabs::before,
.single-product .woocommerce-tabs ul.tabs::after,
.single-product .woocommerce-tabs .wc-tabs::before,
.single-product .woocommerce-tabs .wc-tabs::after {
    display: none !important;
}

.single-product .woocommerce-tabs ul.tabs li,
.single-product .woocommerce-tabs .wc-tabs li,
.single-product .wd-tabs .wd-nav-tabs > li {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after,
.single-product .woocommerce-tabs .wc-tabs li::before,
.single-product .woocommerce-tabs .wc-tabs li::after {
    display: none !important;
}

.single-product .woocommerce-tabs ul.tabs li a,
.single-product .woocommerce-tabs .wc-tabs li a,
.single-product .wd-tabs .wd-nav-tabs > li > a {
    display: block !important;
    min-width: 130px;
    padding: 13px 22px !important;
    border: 0 !important;
    border-radius: 10px;
    background: transparent !important;
    color: #242629 !important;
    font-family: inherit;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: none !important;
    transition:
        background-color .25s ease,
        color .25s ease,
        box-shadow .25s ease;
}

.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs .wc-tabs li.active a,
.single-product .wd-tabs .wd-nav-tabs > li.wd-active > a,
.single-product .wd-tabs .wd-nav-tabs > li.active > a {
    background: #111156 !important;
    color: #fff !important;
    box-shadow: 0 5px 14px rgba(17, 17, 86, .12) !important;
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel,
.single-product .woocommerce-tabs .wc-tab,
.single-product .wd-tabs .wd-tab-content {
    width: 100%;
    margin: 0 !important;
    padding: 3px 0 0 !important;
    color: #27292c;
}

/* Hide WooCommerce-generated duplicate tab headings */
.single-product .woocommerce-tabs .woocommerce-Tabs-panel > h2:first-child,
.single-product .woocommerce-tabs .wc-tab > h2:first-child {
    display: none !important;
}

/* =========================================================
   CONTENT
========================================================= */

.atpit-copy,
.atpit-copy *,
.atpit-standalone,
.atpit-standalone * {
    box-sizing: border-box;
}

.atpit-copy {
    max-width: 1120px;
    color: #27292c;
    font-family: inherit;
    text-align: left;
}

.atpit-copy p {
    margin: 0 0 17px;
    color: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.72;
    text-align: left;
}

.atpit-copy p:last-child {
    margin-bottom: 0;
}

.atpit-copy strong {
    color: #1d1f22;
    font-weight: 600;
}

.atpit-benefits,
.atpit-spec-list {
    margin: 19px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.atpit-benefits li,
.atpit-spec-list li {
    position: relative;
    margin: 0 0 12px !important;
    padding: 0 0 0 24px !important;
    color: #27292c;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
}

.atpit-benefits li::before,
.atpit-spec-list li::before {
    content: "";
    position: absolute;
    top: .68em;
    left: 2px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #111156;
}

.atpit-benefits li strong {
    display: inline;
}

.atpit-benefits li span {
    display: inline;
    color: #5e6165;
}

.atpit-spec-list li:last-child,
.atpit-benefits li:last-child {
    margin-bottom: 0 !important;
}

/* =========================================================
   SHORTCODE FALLBACK DESIGN
========================================================= */

.atpit-standalone {
    width: 100%;
    max-width: 1325px;
    margin: 34px auto;
    padding: 0 15px;
    clear: both;
    font-family: inherit;
}

.atpit-tabs-nav {
    display: flex;
    gap: 8px;
    width: 100%;
    margin: 0 0 22px;
    padding: 5px;
    overflow-x: auto;
    border-radius: 14px;
    background: #f7f2e9;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.atpit-tabs-nav::-webkit-scrollbar {
    display: none;
}

.atpit-tab-button {
    flex: 0 0 auto;
    min-width: 130px;
    margin: 0 !important;
    padding: 13px 22px !important;
    border: 0 !important;
    border-radius: 10px !important;
    outline: none;
    background: transparent !important;
    color: #242629 !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none !important;
    transition:
        background-color .25s ease,
        color .25s ease,
        box-shadow .25s ease;
}

.atpit-tab-button.is-active {
    background: #111156 !important;
    color: #fff !important;
    box-shadow: 0 5px 14px rgba(17, 17, 86, .12) !important;
}

.atpit-panel {
    width: 100%;
}

.atpit-panel[hidden] {
    display: none !important;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .atpit-copy p,
    .atpit-benefits li,
    .atpit-spec-list li {
        font-size: 14.5px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .single-product .woocommerce-tabs ul.tabs,
    .single-product .woocommerce-tabs .wc-tabs,
    .single-product .wd-tabs .wd-nav-tabs,
    .atpit-tabs-nav {
        gap: 6px;
        margin-bottom: 18px !important;
        padding: 4px !important;
        border-radius: 12px;
        justify-content: flex-start;
    }

    .single-product .woocommerce-tabs ul.tabs li a,
    .single-product .woocommerce-tabs .wc-tabs li a,
    .single-product .wd-tabs .wd-nav-tabs > li > a,
    .atpit-tab-button {
        min-width: auto;
        padding: 11px 16px !important;
        border-radius: 9px !important;
        font-size: 13px !important;
    }

    .atpit-copy p,
    .atpit-benefits li,
    .atpit-spec-list li {
        font-size: 13.5px;
        line-height: 1.65;
    }

    .atpit-benefits,
    .atpit-spec-list {
        margin-top: 16px !important;
    }

    .atpit-benefits li,
    .atpit-spec-list li {
        margin-bottom: 11px !important;
        padding-left: 21px !important;
    }

    .atpit-standalone {
        margin: 26px auto;
        padding: 0 16px;
    }
}

/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 390px) {

    .single-product .woocommerce-tabs ul.tabs li a,
    .single-product .woocommerce-tabs .wc-tabs li a,
    .single-product .wd-tabs .wd-nav-tabs > li > a,
    .atpit-tab-button {
        padding: 10px 13px !important;
        font-size: 12.5px !important;
    }

    .atpit-copy p,
    .atpit-benefits li,
    .atpit-spec-list li {
        font-size: 13px;
    }
}
