/*
 * Alfa Tonic Product Benefits v2
 * Woodmart / WooCommerce responsive styling.
 */

/* =========================================================
   GLOBAL
========================================================= */

.atpb-section,
.atpb-trust-wrap,
.atpb-section *,
.atpb-trust-wrap *,
.atpb-section *::before,
.atpb-trust-wrap *::before,
.atpb-section *::after,
.atpb-trust-wrap *::after {
    box-sizing: border-box;
}

/* =========================================================
   TRUST BADGES ABOVE MAIN DESCRIPTION
========================================================= */

.atpb-trust-wrap {
    width: 100%;
    margin: 18px 0 34px;
    padding: 24px 0 12px;
    color: #17191c;
    font-family: inherit;
    clear: both;
}

.atpb-trust-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
}

.atpb-trust-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.atpb-trust-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #050505;
    margin-bottom: 9px;
}

.atpb-trust-icon svg {
    display: block;
    width: 64px;
    height: 64px;
    overflow: visible;
}

.atpb-trust-label {
    display: block;
    color: #272a2e;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.1px;
}

/* Prevent WooCommerce tabs from creating excessive spacing */
.single-product .woocommerce-tabs {
    clear: both;
}

/* =========================================================
   BENEFITS BELOW ADD TO CART
========================================================= */

.atpb-section {
    --atpb-text: #181b1f;
    --atpb-line: #c9c9c9;
    --atpb-icon: #4d4d4d;

    width: 100%;
    margin: 28px 0 0;
    padding: 0;
    color: var(--atpb-text);
    font-family: inherit;
    clear: both;
}

.atpb-points {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.atpb-point {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    color: var(--atpb-text);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
}

.atpb-plus {
    flex: 0 0 auto;
    width: 10px;
    margin-top: -1px;
    color: var(--atpb-text);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.15;
}

.atpb-divider {
    width: 100%;
    height: 1px;
    margin: 19px 0 50px;
    background: var(--atpb-line);
}

.atpb-benefits {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 44px;
    row-gap: 10px;
}

.atpb-benefit {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.atpb-icon {
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--atpb-icon);
}

.atpb-icon svg {
    display: block;
    width: 45px;
    height: 45px;
    overflow: visible;
}

.atpb-benefit-text {
    min-width: 0;
    color: var(--atpb-text);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

/* =========================================================
   WOODMART COMPATIBILITY
========================================================= */

.single-product .summary .atpb-section {
    width: 100%;
}

.single-product .summary form.cart + .atpb-section {
    width: 100%;
}

/* Full-width section in standard WooCommerce after summary */
.single-product .product > .atpb-trust-wrap,
.single-product .woocommerce-tabs ~ .atpb-trust-wrap {
    width: 100%;
}

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

@media (max-width: 1024px) {

    .atpb-trust-wrap {
        margin: 12px 0 30px;
        padding-top: 18px;
    }

    .atpb-trust-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 14px;
    }

    .atpb-trust-icon,
    .atpb-trust-icon svg {
        width: 56px;
        height: 56px;
    }

    .atpb-trust-label {
        font-size: 13.5px;
    }

    .atpb-divider {
        margin-bottom: 38px;
    }

    .atpb-benefits {
        column-gap: 28px;
    }

    .atpb-benefit-text {
        font-size: 11.8px;
    }
}

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

@media (max-width: 767px) {

    .atpb-trust-wrap {
        margin: 8px 0 25px;
        padding: 14px 0 4px;
        overflow: hidden;
    }

    .atpb-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 12px;
    }

    .atpb-trust-item:last-child {
        grid-column: 1 / -1;
        width: 50%;
        justify-self: center;
    }

    .atpb-trust-icon,
    .atpb-trust-icon svg {
        width: 58px;
        height: 58px;
    }

    .atpb-trust-icon {
        margin-bottom: 7px;
    }

    .atpb-trust-label {
        max-width: 150px;
        font-size: 13px;
        line-height: 1.3;
    }

    .atpb-section {
        margin-top: 24px;
    }

    .atpb-points {
        gap: 11px;
    }

    .atpb-point {
        gap: 8px;
        font-size: 12.5px;
        line-height: 1.5;
    }

    .atpb-plus {
        font-size: 16px;
    }

    .atpb-divider {
        margin: 20px 0 28px;
    }

    .atpb-benefits {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .atpb-benefit {
        gap: 11px;
    }

    .atpb-icon,
    .atpb-icon svg {
        width: 44px;
        height: 44px;
    }

    .atpb-icon {
        flex-basis: 44px;
    }

    .atpb-benefit-text {
        font-size: 12.5px;
        line-height: 1.4;
    }
}

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

@media (max-width: 420px) {

    .atpb-trust-grid {
        gap: 20px 8px;
    }

    .atpb-trust-icon,
    .atpb-trust-icon svg {
        width: 52px;
        height: 52px;
    }

    .atpb-trust-label {
        font-size: 12.2px;
    }

    .atpb-point {
        font-size: 12px;
    }

    .atpb-benefit-text {
        font-size: 12px;
    }

    .atpb-icon,
    .atpb-icon svg {
        width: 41px;
        height: 41px;
    }

    .atpb-icon {
        flex-basis: 41px;
    }
}
