/* Native 3D Products theme palette; component-scoped selectors. */
.d3-rewards { --d3-green: #22b24c; --d3-dark-green: #167c35; --d3-line: #ddd; margin: 18px 0; padding: 14px 12px; border: 1px solid #ddd; background: #fff; color: #222; text-align: center; box-sizing: border-box; }
.d3-rewards__title { font-size: 15px; line-height: 1.3; font-weight: 600; }
.d3-rewards__message { font-size: 13px; line-height: 1.45; margin: 6px 0 14px; }
.d3-rewards__message strong { color: var(--d3-dark-green); font-weight: 600; }
.d3-rewards__steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; align-items: start; }
.d3-rewards__track { position: absolute; top: 14px; left: 12.5%; right: 12.5%; height: 3px; background: var(--d3-line); z-index: 0; overflow: hidden; }
.d3-rewards__track span { display: block; width: var(--d3-progress, 0%); height: 100%; background: var(--d3-green); }
.d3-rewards__step { position: relative; min-width: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 2px; }
.d3-rewards__dot { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #ddd; background: #fff; color: #666; font-size: 15px; line-height: 1; font-weight: 600; }
.d3-rewards__dot svg { width: 17px; height: 17px; display: block; }
.d3-rewards__label { font-size: 12px; line-height: 1.2; font-weight: 600; }
.d3-rewards__amount { font-size: 12px; line-height: 1.2; color: #666; white-space: nowrap; }
.d3-rewards__step.is-reached .d3-rewards__dot { color: #fff; background: var(--d3-green); border-color: var(--d3-green); }
.d3-rewards__step.is-reached .d3-rewards__label { color: var(--d3-dark-green); }
.d3-rewards__status { margin-top: 12px; padding-top: 14px; border-top: 1px solid #ddd; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; line-height: 1.35; color: var(--d3-dark-green); font-weight: 600; }
.d3-rewards__note { font-size: 11px; line-height: 1.35; color: #666; margin-top: 9px; }
.d3-rewards--cart { clear: both; width: 100%; margin: 0 0 24px; padding: 18px 16px; border-radius: 12px; }
.d3-rewards--cart .d3-rewards__status { padding-top: 18px; }
.d3-rewards-cart-template { display: none !important; }
.woocommerce .cart-collaterals .cart-discount[class*="coupon-3d-auto-"] td { color: #167c35; font-weight: 600; }
@media (max-width: 420px) { .d3-rewards { padding: 12px 6px; } .d3-rewards .d3-rewards__status { padding-top: 12px; } .d3-rewards__label, .d3-rewards__amount { font-size: 11px; } }

/* Match the original theme's product gallery / summary layout.
   Override competing width and max-width rules on both direct children. */
body.single-product div[id^="product-"].product-inner-page.product {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 600px) !important;
    column-gap: 50px !important;
    align-items: start;
}
body.single-product div[id^="product-"].product-inner-page.product::before,
body.single-product div[id^="product-"].product-inner-page.product::after {
    display: none !important;
}
body.single-product div[id^="product-"].product-inner-page.product > .product-image,
body.single-product div[id^="product-"].product-inner-page.product > .summary.default-summary {
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}
body.single-product div[id^="product-"].product-inner-page.product > .summary.default-summary > .summary-inner {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box;
}
@media (min-width: 992px) and (max-width: 1260px) {
    body.single-product div[id^="product-"].product-inner-page.product {
        grid-template-columns: minmax(0, 1fr) minmax(0, 500px) !important;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    body.single-product div[id^="product-"].product-inner-page.product {
        grid-template-columns: minmax(0, 1fr) minmax(0, 360px) !important;
        column-gap: 40px !important;
    }
}
@media (max-width: 767px) {
    body.single-product div[id^="product-"].product-inner-page.product {
        grid-template-columns: minmax(0, 1fr) !important;
        column-gap: 0 !important;
    }
}
