PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.4.2
ShopBuilder – WooCommerce Builder For Elementor v3.4.2
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
shopbuilder / app / Elementor / Helper / ControlSelectors.php

ControlSelectors.php in ShopBuilder – WooCommerce Builder For Elementor 3.4.2, at app/Elementor/Helper/ControlSelectors.php

2,000 lines 162.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * BuilderFns class
4 *
5 * The builder.
6 *
7 * @package RadiusTheme\SB
8 * @since 1.0.0
9 */
10
11 namespace RadiusTheme\SB\Elementor\Helper;
12
13 use RadiusTheme\SB\Elementor\Widgets\Archive\ProductFilters;
14 use RadiusTheme\SB\Elementor\Widgets\General\{AdvancedHeading,
15 DropCaps,
16 ShopBuilderButton,
17 CallToAction,
18 InfoBox,
19 FlipBox,
20 Counter,
21 CountDown,
22 PricingTable,
23 ProgressBar,
24 ImageAccordion,
25 ShopBuilderFaq,
26 LogoSliderAndGrid,
27 Testimonial,
28 TeamMember,
29 PostList,
30 PostGrid
31 };
32
33 // Do not allow directly accessing this file.
34 if ( ! defined( 'ABSPATH' ) ) {
35 exit( 'This script cannot be accessed directly.' );
36 }
37
38 /**
39 * BuilderFns class
40 */
41 class ControlSelectors {
42
43 /**
44 * Get Widget Selectors.
45 *
46 * @param object $widget Widget object.
47 *
48 * @return array
49 */
50 public static function get_widget_selectors( $widget ): array {
51 $selectors = [];
52 $widget_selectors = self::widget_selectors();
53 if ( ! empty( $widget_selectors[ $widget->rtsb_base ] ) ) {
54 $selectors = $widget_selectors[ $widget->rtsb_base ];
55 }
56
57 return apply_filters( 'rtsb/elements/elementor/widget/selectors/' . $widget->rtsb_base, $selectors, $widget );
58 }
59
60 /**
61 * Widget Control Selectors.
62 *
63 * @return array
64 */
65 private static function widget_selectors(): array {
66 $selectors = array_merge(
67 self::product_widget_selectors(),
68 self::archive_widget_selectors(),
69 self::cart_widget_selectors(),
70 self::checkout_widget_selectors(),
71 self::general_widget_selectors()
72 );
73
74 return apply_filters( 'rtsb/elements/elementor/widget/selectors', $selectors );
75 }
76
77 /**
78 * Carousel Selectors.
79 *
80 * @return array
81 */
82 public static function carousel_selector(): array {
83 $defaults = [
84 'slider_btn' => '{{WRAPPER}} .rtsb-carousel-slider .rtsb-slider-btn',
85 'slider_wrapper' => '{{WRAPPER}} .rtsb-carousel-slider .swiper-wrapper',
86 'slider_pagination' => '{{WRAPPER}} .rtsb-slider-pagination .swiper-pagination-bullet',
87 'slider_pagination_active' => '{{WRAPPER}} .rtsb-slider-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active',
88 ];
89
90 return apply_filters( 'rtsb/elements/elementor/product_carousel_selectors', $defaults );
91 }
92
93 /**
94 * Carousel Selectors.
95 *
96 * @return array
97 */
98 public static function review_star_icon_selector(): array {
99 $defaults = [
100 'review_star_icon_default_color' => '{{WRAPPER}} .star-rating::before, {{WRAPPER}} p.stars a:before, {{WRAPPER}} p.stars a:hover~a:before, {{WRAPPER}} p.stars.selected a.active~a:before',
101 'review_star_icon_color' => '{{WRAPPER}} .star-rating span::before, {{WRAPPER}} p.stars.selected a.active:before, {{WRAPPER}} p.stars:hover a:before, {{WRAPPER}} p.stars.selected a:not(.active):before, {{WRAPPER}} p.stars.selected a.active:before',
102 'review_star_icon_size' => '{{WRAPPER}} .star-rating',
103 'review_star_icon_specing' => '{{WRAPPER}} .star-rating',
104 'review_star_icon_margin' => '{{WRAPPER}} .woocommerce-product-rating',
105 ];
106
107 return apply_filters( 'rtsb/elements/elementor/review_star_icon_selector', $defaults );
108 }
109
110 /**
111 * Carousel Selectors.
112 *
113 * @return array
114 */
115 public static function button_settings_selector(): array {
116 $defaults = [
117 'button_typography' => '{{WRAPPER}} .button',
118 'button_height' => '{{WRAPPER}} .button',
119 'button_width' => '{{WRAPPER}} .button',
120 'button_text_color_normal' => '{{WRAPPER}} .button,{{WRAPPER}} .rtsb-myacount-page .woocommerce-table tbody td a.button,{{WRAPPER}} .rtsb-myacount-page .woocommerce-orders-table tbody td a.button,{{WRAPPER}} .rtsb-myacount-page .woocommerce-pagination a.button',
121 'button_bg_color_normal' => '{{WRAPPER}} .button',
122 'button_border' => '{{WRAPPER}} .button',
123 'button_text_color_hover' => '{{WRAPPER}} .button:hover,{{WRAPPER}} .rtsb-myacount-page .woocommerce-table tbody td a.button:hover,{{WRAPPER}} .rtsb-myacount-page .woocommerce-pagination a.button:hover,{{WRAPPER}} .rtsb-myacount-page .woocommerce-orders-table tbody td a.button:hover',
124 'button_bg_color_hover' => '{{WRAPPER}} .button:hover',
125 'button_border_hover_color' => '{{WRAPPER}} .button:hover',
126 'button_border_radius' => '{{WRAPPER}} .button',
127 'button_padding' => '{{WRAPPER}} .button',
128 'button_margin' => '{{WRAPPER}} .button',
129 ];
130
131 return apply_filters( 'rtsb/elements/elementor/button_settings_selector', $defaults );
132 }
133
134 /**
135 * Carousel Selectors.
136 *
137 * @return array
138 */
139 public static function reviews_settings_selecotor(): array {
140 $defaults = array_merge(
141 self::review_star_icon_selector(),
142 [
143 'review_heading_typography' => '{{WRAPPER}} #reviews .woocommerce-Reviews-title',
144 'review_heading_color' => '{{WRAPPER}} #reviews .woocommerce-Reviews-title',
145 'review_title_margin' => '{{WRAPPER}} #reviews .woocommerce-Reviews-title',
146
147 'form_heading_typography' => '{{WRAPPER}} #reviews #reply-title',
148 'form_heading_color' => '{{WRAPPER}} #reviews #reply-title',
149 'noform_heading_color' => '{{WRAPPER}} #reviews .woocommerce-noreviews',
150 'form_title_margin' => '{{WRAPPER}} #reviews #reply-title',
151 'input_label_typography' => '{{WRAPPER}} #commentform label',
152 'review_label_color' => '{{WRAPPER}} #commentform label',
153 'review_label_required' => '{{WRAPPER}} #commentform .required',
154
155 'review_input_color' => '{{WRAPPER}} #review_form #respond .comment-form :is(input:not([type=checkbox], .submit), textarea)',
156 'review_input_border_color' => '{{WRAPPER}} #review_form #respond .comment-form :is(textarea, input:not(.submit))',
157 'review_input_border_color_focus' => '{{WRAPPER}} #review_form #respond .comment-form :is(textarea, input):focus',
158 'label_input_text_typography' => '{{WRAPPER}} #review_form #respond .comment-form :is(input:not([type=checkbox], [type=submit] ), textarea)',
159 'review_comment_field_height' => '{{WRAPPER}} #review_form #respond .comment-form :is(textarea)',
160 'review_form_rating_size' => '{{WRAPPER}} p.stars a',
161 'review_field_spacing' => [
162 'margin-0' => '{{WRAPPER}} #review_form #respond :is(.comment-form)',
163 'margin-buttom' => '{{WRAPPER}} #review_form #respond .comment-form :is(.comment-notes, .comment-form-rating, .comment-form-comment, .comment-form-author, .comment-form-email, .comment-form-cookies-consent)',
164 ],
165 'review_input_border_radius' => '{{WRAPPER}} #review_form #respond .comment-form :is(input:not([type=submit]), textarea )',
166 'review_input_padding' => '{{WRAPPER}} #review_form #respond .comment-form :is(textarea, input:not(#wp-comment-cookies-consent, .submit))',
167
168 'button_typography' => '{{WRAPPER}} #review_form #respond .comment-form :is(.submit)',
169 'submit_button_alignment' => [
170 'text-align' => '{{WRAPPER}} #review_form #respond .comment-form .form-submit',
171 'float' => '{{WRAPPER}} #review_form #respond .comment-form .form-submit input#submit',
172 ],
173 'submit_button_height' => '{{WRAPPER}} #review_form #respond .comment-form :is(.submit)',
174 'button_text_color_normal' => '{{WRAPPER}} #review_form #respond .comment-form :is(.submit)',
175 'button_bg_color_normal' => '{{WRAPPER}} #review_form #respond .comment-form :is(.submit)',
176 'button_border' => '{{WRAPPER}} #review_form #respond .comment-form :is(.submit)',
177 'button_text_color_hover' => '{{WRAPPER}} #review_form #respond .comment-form :is(.submit):hover',
178 'button_bg_color_hover' => '{{WRAPPER}} #review_form #respond .comment-form :is(.submit):hover',
179 'button_border_hover_color' => '{{WRAPPER}} #review_form #respond .comment-form :is(.submit):hover',
180 'button_border_radius' => '{{WRAPPER}} #review_form #respond .comment-form :is(.submit)',
181 'button_padding' => '{{WRAPPER}} #review_form #respond .comment-form :is(.submit)',
182 'button_margin' => '{{WRAPPER}} #review_form #respond .comment-form :is(.submit)',
183
184 'review_meta_color' => '{{WRAPPER}} #reviews #comments ol.commentlist li .meta',
185 'description_color' => '{{WRAPPER}} #reviews .description, {{WRAPPER}} #reviews .description p',
186 'review_border' => '{{WRAPPER}} #reviews #comments ol.commentlist li .comment-text',
187 'review_meta_typography' => '{{WRAPPER}} #reviews #comments ol.commentlist li .meta',
188 'review_desc_typography' => '{{WRAPPER}} #reviews .description, {{WRAPPER}} #reviews .description p',
189 'review_single_spacing' => '{{WRAPPER}} #reviews #comments ol.commentlist li',
190 'review_padding' => '{{WRAPPER}} #reviews #comments ol.commentlist li .comment-text',
191
192 ]
193 );
194
195 return apply_filters( 'rtsb/elements/elementor/reviews_settings_selecotor', $defaults );
196 }
197
198 /**
199 * Module Button Selectors.
200 *
201 * @return array
202 */
203 public static function module_btn_selector(): array {
204 $defaults = [
205 'module_width' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn)',
206 'module_height' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn)',
207 'module_text_color_normal' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn)',
208 'module_bg_color_normal' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn)',
209 'module_border' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn)',
210 'module_text_color_hover' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn):hover',
211 'module_bg_color_hover' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn):hover',
212 'module_border_hover_color' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn):hover',
213 'module_border_radius' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn)',
214 'module_item_gap' => '{{WRAPPER}} :is( .action-button-wrapper, .rtsb-actions-button )',
215 'module_wrapper_margin' => '{{WRAPPER}} :is( .action-button-wrapper, .rtsb-actions-button )',
216 'module_item_alignment' => '{{WRAPPER}} :is( .action-button-wrapper, .rtsb-actions-button )',
217 'icon_size' => [
218 'icon' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn)',
219 'svg' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn) svg',
220 ],
221 ];
222
223 return apply_filters( 'rtsb/elements/elementor/module_btn_selector', $defaults );
224 }
225
226 /**
227 * Products Loop Default Selectors
228 *
229 * @return array
230 */
231 public static function products_loop_default_selector(): array {
232 $defaults = [
233 // Product Image.
234 'product_image_bg_color' => '{{WRAPPER}} .products .product img',
235 'product_image_height' => '{{WRAPPER}} .products .product img',
236 'product_image_auto_fit' => '{{WRAPPER}} .products .product img',
237 'product_image_padding' => '{{WRAPPER}} .products .product img',
238 // Product Title.
239 'product_title_typography' => '{{WRAPPER}} .products .product .woocommerce-loop-product__title',
240 'product_title_color' => '{{WRAPPER}} .products .product .woocommerce-loop-product__title',
241 'product_title_hover_color' => '{{WRAPPER}} .products .product .woocommerce-loop-product__title:hover',
242 'product_title_padding' => '{{WRAPPER}} .products .product .woocommerce-loop-product__title',
243
244 // Product Price.
245 'product_price_typography' => '{{WRAPPER}} .products .product .price, {{WRAPPER}} .products .product ins .woocommerce-Price-amount',
246 'product_price_color' => '{{WRAPPER}} .products .product .price',
247 'product_reguler_price_color' => '{{WRAPPER}} .products .product .price :is(del, del span, del .amount)',
248 'product_price_padding' => '{{WRAPPER}} .products .product .price',
249 // FLash Sale.
250 'flash_sale_typography' => '{{WRAPPER}} .products .product .onsale',
251 'product_flash_sale_color' => '{{WRAPPER}} .products .product .onsale',
252 'flash_sale_bg_color' => '{{WRAPPER}} .products .product .onsale',
253 'flash_sale_badge_width' => '{{WRAPPER}} .products .product .onsale',
254 'flash_sale_badge_height' => '{{WRAPPER}} .products .product .onsale',
255 'flash_sale_badge_border_radius' => '{{WRAPPER}} .products .product .onsale',
256 // Cart Button.
257 'cart_button_typography' => '{{WRAPPER}} .products .product :is(a.add_to_cart_button, a.product_type_simple, a.product_type_grouped )',
258 'cart_button_text_color_normal' => '{{WRAPPER}} .products .product :is(a.add_to_cart_button, a.product_type_simple, a.product_type_grouped )',
259 'cart_button_bg_color_normal' => '{{WRAPPER}} .products .product :is(a.add_to_cart_button, a.product_type_simple, a.product_type_grouped )',
260 'cart_button_border' => '{{WRAPPER}} .products .product :is(a.add_to_cart_button, a.product_type_simple, a.product_type_grouped )',
261 'cart_button_text_color_hover' => '{{WRAPPER}} .products .product :is(a.add_to_cart_button, a.product_type_simple, a.product_type_grouped ):hover',
262 'cart_button_bg_color_hover' => '{{WRAPPER}} .products .product :is(a.add_to_cart_button, a.product_type_simple, a.product_type_grouped ):hover',
263 'cart_button_border_hover_color' => '{{WRAPPER}} .products .product :is(a.add_to_cart_button, a.product_type_simple, a.product_type_grouped ):hover',
264 'cart_button_border_radius' => '{{WRAPPER}} .products .product :is(a.add_to_cart_button, a.product_type_simple, a.product_type_grouped )',
265 'add_cart_button_padding' => '{{WRAPPER}} .products .product :is(a.add_to_cart_button, a.product_type_simple, a.product_type_grouped )',
266 'add_cart_button_margin' => '{{WRAPPER}} .products .product :is(a.add_to_cart_button, a.product_type_simple, a.product_type_grouped )',
267 'cart_height' => '{{WRAPPER}} .products .product :is(a.add_to_cart_button, a.product_type_simple, a.product_type_grouped )',
268 'icon_align' => [
269 'align' => '{{WRAPPER}} .products .product :is(a.add_to_cart_button, a.product_type_simple, a.product_type_grouped )',
270 'flex-direction' => '{{WRAPPER}} .products .product :is(a.add_to_cart_button, a.product_type_simple, a.product_type_grouped ), {{WRAPPER}} .products .product :is(a.add_to_cart_button, a.product_type_simple, a.product_type_grouped ) :is(i, span)',
271 ],
272 'cart_icon_gap' => '{{WRAPPER}} .products .product :is(a.add_to_cart_button, a.product_type_simple, a.product_type_grouped )',
273 'cart_icon_size' => '{{WRAPPER}} .products .product :is(a.add_to_cart_button, a.product_type_simple, a.product_type_grouped ) :is(i, span, svg):not(.ahfb-svg-iconset):not(.ast-card-action-tooltip)',
274 // Slider.
275 'slider_arrow_icon_size' => [
276 'icon' => '{{WRAPPER}} .rtsb-carousel-slider .rtsb-slider-btn 1',
277 'svg' => '{{WRAPPER}} .rtsb-carousel-slider .rtsb-slider-btn svg',
278 ],
279 'slider_arrow_size' => '{{WRAPPER}} .rtsb-carousel-slider .rtsb-slider-btn',
280 'arrows_color' => '{{WRAPPER}} .rtsb-carousel-slider .rtsb-slider-btn',
281 'arrows_bg_color' => '{{WRAPPER}} .rtsb-carousel-slider .rtsb-slider-btn',
282 'arrows_border_color' => '{{WRAPPER}} .rtsb-carousel-slider .rtsb-slider-btn',
283 'arrows_hover_color' => '{{WRAPPER}} .rtsb-carousel-slider .rtsb-slider-btn:hover',
284 'arrows_hover_bg_color' => '{{WRAPPER}} .rtsb-carousel-slider .rtsb-slider-btn:hover',
285 'arrows_hover_border_color' => '{{WRAPPER}} .rtsb-carousel-slider .rtsb-slider-btn:hover',
286 'dots_gap' => '{{WRAPPER}} .rtsb-slider-pagination .swiper-pagination-bullet',
287 'dots_size' => '{{WRAPPER}} .rtsb-slider-pagination .swiper-pagination-bullet',
288 'dot_color' => '{{WRAPPER}} .rtsb-slider-pagination .swiper-pagination-bullet',
289 'dot_active_color' => '{{WRAPPER}} .rtsb-slider-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active',
290 // Pagination.
291 'pagination_typography' => '{{WRAPPER}} .woocommerce-pagination .page-numbers:not(ul,div)',
292 'align' => '{{WRAPPER}} .woocommerce-pagination',
293 'pagination_gap' => '{{WRAPPER}} .woocommerce-pagination > .page-numbers',
294 'pagination_text_color_normal' => '{{WRAPPER}} .woocommerce-pagination .page-numbers:not(ul,div)',
295 'pagination_bg_color_normal' => '{{WRAPPER}} .woocommerce-pagination .page-numbers:not(ul,div)',
296 'pagination_border' => '{{WRAPPER}} .woocommerce-pagination .page-numbers:not(ul,div)',
297 'pagination_text_color_hover' => '{{WRAPPER}} .page-numbers:not(ul,div):hover,{{WRAPPER}} .woocommerce-pagination .page-numbers.current',
298 'pagination_bg_color_hover' => '{{WRAPPER}} .page-numbers:not(ul,div):hover, {{WRAPPER}} .woocommerce-pagination .page-numbers.current',
299 'pagination_border_hover_color' => '{{WRAPPER}} .page-numbers:not(ul,div):hover,{{WRAPPER}} .woocommerce-pagination .page-numbers.current',
300 'pagination_border_radius' => '{{WRAPPER}} .woocommerce-pagination .page-numbers:not(ul,div)',
301 'pagination_padding' => '{{WRAPPER}} .woocommerce-pagination .page-numbers:not(ul,div)',
302 'pagination_margin' => '{{WRAPPER}} .woocommerce-pagination',
303 'pagination_width' => '{{WRAPPER}} .woocommerce-pagination .page-numbers:not(ul,div)',
304 'pagination_height' => '{{WRAPPER}} .woocommerce-pagination .page-numbers:not(ul,div)',
305 'pagination_icon_size' => [
306 'icon' => '{{WRAPPER}} .woocommerce-pagination .page-numbers:not(ul,div) i',
307 'svg' => '{{WRAPPER}} .woocommerce-pagination .page-numbers:not(ul,div) svg',
308 ],
309 // Review Star.
310 'review_star_icon_default_color' => '{{WRAPPER}} .products .product .star-rating::before, {{WRAPPER}} p.stars a:before, {{WRAPPER}} p.stars a:hover~a:before, {{WRAPPER}} p.stars.selected a.active~a:before',
311 'review_star_icon_color' => '{{WRAPPER}} .products .product .star-rating span::before, {{WRAPPER}} p.stars.selected a.active:before, {{WRAPPER}} p.stars:hover a:before, {{WRAPPER}} p.stars.selected a:not(.active):before, {{WRAPPER}} p.stars.selected a.active:before',
312 'review_star_icon_size' => '{{WRAPPER}} .products .product .star-rating',
313 'review_star_icon_specing' => '{{WRAPPER}} .products .product .star-rating',
314 'review_star_icon_margin' => '{{WRAPPER}} .products .product .star-rating',
315 'not_found_notice' => self::not_found_notice_selectors(),
316 ];
317 $defaults = array_merge( self::review_star_icon_selector(), self::module_btn_selector(), $defaults );
318
319 return apply_filters( 'rtsb/elements/elementor/product_loop_default_selectors', $defaults );
320 }
321
322
323 /**
324 * General Widget Selectors.
325 *
326 * @return array
327 */
328 private static function general_widget_selectors(): array {
329 $selectors = [
330 'rtsb-product-breadcrumbs' => [
331 'breadcrumbs_align' => '{{WRAPPER}} .rtsb-breadcrumb .woocommerce-breadcrumb',
332 'text_color' => '{{WRAPPER}} .rtsb-breadcrumb .woocommerce-breadcrumb',
333 'link_color' => '{{WRAPPER}} .rtsb-breadcrumb .woocommerce-breadcrumb a',
334 'link_hover_color' => '{{WRAPPER}} .rtsb-breadcrumb .woocommerce-breadcrumb a:hover',
335 'item_spacing' => '{{WRAPPER}} .rtsb-breadcrumb .woocommerce-breadcrumb .breadcrumb-separator',
336 'icon_size' => [
337 'icon' => '{{WRAPPER}} .rtsb-breadcrumb .woocommerce-breadcrumb .breadcrumb-separator',
338 'svg' => '{{WRAPPER}} .rtsb-breadcrumb .woocommerce-breadcrumb .breadcrumb-separator svg',
339 ],
340 'breadcrumbs_typography' => '{{WRAPPER}} .rtsb-breadcrumb .woocommerce-breadcrumb',
341 'icon_color' => '{{WRAPPER}} .rtsb-breadcrumb .woocommerce-breadcrumb .breadcrumb-separator i,{{WRAPPER}} .rtsb-breadcrumb .woocommerce-breadcrumb .breadcrumb-separator',
342 ],
343 'rtsb-wc-notice' => [
344 'notice_typography' => '{{WRAPPER}} .rtsb-notice :is(.woocommerce-message, .woocommerce-error, .wc-block-components-notice-banner)',
345 'notice_icon_size' => [
346 'icon' => '{{WRAPPER}} .rtsb-notice :is(.woocommerce-message::before, .woocommerce-error::before)',
347 'svg' => '{{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner > svg',
348 ],
349 'notice_bg_color' => '{{WRAPPER}} .rtsb-notice :is(.woocommerce-message, .woocommerce-error, .wc-block-components-notice-banner)',
350 'notice_text_color' => '{{WRAPPER}} .rtsb-notice :is(.woocommerce-message, .woocommerce-error, .wc-block-components-notice-banner)',
351 'notice_icon_color' => [
352 'icon' => '{{WRAPPER}} .rtsb-notice :is(.woocommerce-message::before, .woocommerce-error::before)',
353 'svg' => '{{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner > svg',
354 ],
355 'notice_icon_bg_color' => '{{WRAPPER}} .rtsb-notice :is(.woocommerce-message, .woocommerce-error), {{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner > svg',
356 'notice_border_color' => '{{WRAPPER}} .rtsb-notice :is(.woocommerce-message, .woocommerce-error, .wc-block-components-notice-banner)',
357 'notice_success_bg_color' => '{{WRAPPER}} .rtsb-notice :is(.woocommerce-message, .woocommerce-error, .wc-block-components-notice-banner.is-success)',
358 'notice_success_text_color' => '{{WRAPPER}} .rtsb-notice :is(.woocommerce-message, .woocommerce-error, .wc-block-components-notice-banner.is-success)',
359 'notice_success_icon_color' => [
360 'icon' => '{{WRAPPER}} .rtsb-notice :is(.woocommerce-message::before, .woocommerce-error::before)',
361 'svg' => '{{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner.is-success > svg',
362 ],
363 'notice_success_icon_bg_color' => '{{WRAPPER}} .rtsb-notice :is(.woocommerce-message, .woocommerce-error), {{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner.is-success > svg',
364 'notice_success_border_color' => '{{WRAPPER}} .rtsb-notice :is(.woocommerce-message, .woocommerce-error, .wc-block-components-notice-banner.is-success)',
365 'notice_error_bg_color' => '{{WRAPPER}} .rtsb-notice :is(.woocommerce-message, .woocommerce-error), {{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner.is-error',
366 'notice_error_text_color' => '{{WRAPPER}} .rtsb-notice :is(.woocommerce-message, .woocommerce-error), {{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner.is-error',
367 'notice_error_icon_color' => [
368 'icon' => '{{WRAPPER}} .rtsb-notice :is(.woocommerce-message::before, .woocommerce-error::before)',
369 'svg' => '{{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner.is-error > svg',
370 ],
371 'notice_error_icon_bg_color' => '{{WRAPPER}} .rtsb-notice :is(.woocommerce-message, .woocommerce-error), {{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner.is-error > svg',
372 'notice_error_border_color' => '{{WRAPPER}} .rtsb-notice :is(.woocommerce-message, .woocommerce-error, .wc-block-components-notice-banner.is-error)',
373 'notice_info_bg_color' => '{{WRAPPER}} .rtsb-notice :is(.woocommerce-message, .woocommerce-error), {{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner.is-info',
374 'notice_info_text_color' => '{{WRAPPER}} .rtsb-notice :is(.woocommerce-message, .woocommerce-error), {{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner.is-info',
375 'notice_info_icon_color' => [
376 'icon' => '{{WRAPPER}} .rtsb-notice :is(.woocommerce-message::before, .woocommerce-error::before)',
377 'svg' => '{{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner.is-info > svg',
378 ],
379 'notice_info_icon_bg_color' => '{{WRAPPER}} .rtsb-notice :is(.woocommerce-message, .woocommerce-error), {{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner.is-info > svg',
380 'notice_info_border_color' => '{{WRAPPER}} .rtsb-notice :is(.woocommerce-message, .woocommerce-error, .wc-block-components-notice-banner.is-info)',
381 'notice_padding' => '{{WRAPPER}} .rtsb-notice :is(.woocommerce-message, .woocommerce-error, .wc-block-components-notice-banner)',
382 'button_height' => '{{WRAPPER}} .rtsb-notice a.button, {{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner>.wc-block-components-notice-banner__content .wc-forward',
383 'button_width' => '{{WRAPPER}} .rtsb-notice a.button, {{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner>.wc-block-components-notice-banner__content .wc-forward',
384 'button_typography' => '{{WRAPPER}} .rtsb-notice a.button, {{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner>.wc-block-components-notice-banner__content .wc-forward',
385 'button_text_color_normal' => '{{WRAPPER}} .rtsb-notice a.button, {{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner>.wc-block-components-notice-banner__content .wc-forward',
386 'button_bg_color_normal' => '{{WRAPPER}} .rtsb-notice a.button, {{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner>.wc-block-components-notice-banner__content .wc-forward',
387 'button_border' => '{{WRAPPER}} .rtsb-notice a.button, {{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner>.wc-block-components-notice-banner__content .wc-forward',
388 'button_text_color_hover' => '{{WRAPPER}} .rtsb-notice a.button:hover, {{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner>.wc-block-components-notice-banner__content .wc-forward:hover',
389 'button_bg_color_hover' => '{{WRAPPER}} .rtsb-notice a.button:hover, {{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner>.wc-block-components-notice-banner__content .wc-forward:hover',
390 'button_border_hover_color' => '{{WRAPPER}} .rtsb-notice a.button:hover, {{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner>.wc-block-components-notice-banner__content .wc-forward:hover',
391 'button_border_radius' => '{{WRAPPER}} .rtsb-notice a.button, {{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner>.wc-block-components-notice-banner__content .wc-forward',
392 'button_padding' => '{{WRAPPER}} .rtsb-notice a.button, {{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner>.wc-block-components-notice-banner__content .wc-forward',
393 'button_margin' => '{{WRAPPER}} .rtsb-notice a.button, {{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner>.wc-block-components-notice-banner__content .wc-forward',
394 'notice_button_alignment' => '{{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner>.wc-block-components-notice-banner__content .wc-forward',
395 'notice_gap_multiple' => '{{WRAPPER}} .rtsb-notice .woocommerce-notices-wrapper, {{WRAPPER}} .rtsb-notice',
396 'notice_icon_gap' => '{{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner',
397 'notice_border_radius' => '{{WRAPPER}} .rtsb-notice .wc-block-components-notice-banner',
398 ],
399 'rtsb-products-grid' => array_merge(
400 self::general_common_selectors(),
401 self::general_product_selectors()
402 ),
403 'rtsb-products-list' => array_merge(
404 self::general_common_selectors(),
405 self::general_product_selectors()
406 ),
407 'rtsb-products-slider' => array_merge(
408 self::general_common_selectors(),
409 self::general_product_selectors(),
410 self::general_slider_selectors(),
411 ),
412 'rtsb-product-categories-general' => array_merge(
413 self::general_common_selectors(),
414 self::general_cat_selectors()
415 ),
416 'rtsb-products-single-category' => array_merge(
417 self::general_common_selectors(),
418 self::general_cat_selectors()
419 ),
420 'rtsb-social-share' => array_merge(
421 self::social_share(),
422 ),
423 'rtsb-wishlist' => [
424 'table_border' => '{{WRAPPER}} .rtsb-wishlist-content table td,{{WRAPPER}} .rtsb-wishlist-content table th',
425 'table_heading_cell_padding' => '{{WRAPPER}} .rtsb-wishlist-content table th,{{WRAPPER}} .rtsb-wishlist-content table td',
426 'table_header_typo' => '{{WRAPPER}} .rtsb-wishlist-content table thead th',
427 'table_header_align' => '{{WRAPPER}} .rtsb-wishlist-content table thead th',
428 'table_header_color' => '{{WRAPPER}} .rtsb-wishlist-content table thead th',
429 'table_header_bg_color' => '{{WRAPPER}} .rtsb-wishlist-content table thead th',
430 'table_item_typo' => '{{WRAPPER}} .rtsb-wishlist-content table td,{{WRAPPER}} .rtsb-wishlist-content table td a,{{WRAPPER}} .rtsb-wishlist-content table td .rtsb-partial-pay-avail-note span,{{WRAPPER}} .rtsb-wishlist-content table td .rtsb-bis-out-of-stock-message,{{WRAPPER}} .rtsb-wishlist-content table td .rtsb-bis-out-of-stock-details-message,{{WRAPPER}} .rtsb-wishlist-content table td .rtsb-bis-privacy-checkbox label span',
431 'table_item_align' => '{{WRAPPER}} .rtsb-wishlist-content table td',
432 'table_item_color' => '{{WRAPPER}} .rtsb-wishlist-content table td,{{WRAPPER}} .rtsb-wishlist-content table td a,{{WRAPPER}} .rtsb-wishlist-content table td .rtsb-partial-pay-avail-note span,{{WRAPPER}} .rtsb-wishlist-content table td .rtsb-bis-out-of-stock-message,{{WRAPPER}} .rtsb-wishlist-content table td .rtsb-bis-out-of-stock-details-message,{{WRAPPER}} .rtsb-wishlist-content table td .rtsb-bis-privacy-checkbox label span',
433 'table_item_bg_color' => '{{WRAPPER}} .rtsb-wishlist-content table td',
434 'column_width' => '{{WRAPPER}} .rtsb-wishlist-content table thead th,{{WRAPPER}} .rtsb-wishlist-content table tbody td',
435 'table_item_text_decoration' => '{{WRAPPER}} .rtsb-wishlist-content table td, {{WRAPPER}} .rtsb-wishlist-content table td a, {{WRAPPER}} .rtsb-wishlist-content table td a span, {{WRAPPER}} .rtsb-wishlist-content table td .rtsb-partial-pay-avail-note span, {{WRAPPER}} .rtsb-wishlist-content table td .rtsb-bis-out-of-stock-message, {{WRAPPER}} .rtsb-wishlist-content table td .rtsb-bis-out-of-stock-details-message, {{WRAPPER}} .rtsb-wishlist-content table td .rtsb-bis-privacy-checkbox label span',
436 ],
437 'rtsb-advanced-heading' => AdvancedHeading\Selectors::get_selectors(),
438 'rtsb-dropcaps' => DropCaps\Selectors::get_selectors(),
439 'rtsb-shopbuilder-button' => ShopBuilderButton\Selectors::get_selectors(),
440 'rtsb-call-to-action' => CallToAction\Selectors::get_selectors(),
441 'rtsb-info-box' => InfoBox\Selectors::get_selectors(),
442 'rtsb-pricing-table' => PricingTable\Selectors::get_selectors(),
443 'rtsb-flip-box' => FlipBox\Selectors::get_selectors(),
444 'rtsb-counter' => Counter\Selectors::get_selectors(),
445 'rtsb-countdown-addon' => CountDown\Selectors::get_selectors(),
446 'rtsb-progress-bar-addon' => ProgressBar\Selectors::get_selectors(),
447 'rtsb-image-accordion-addon' => ImageAccordion\Selectors::get_selectors(),
448 'rtsb-shopbuilder-faq' => ShopBuilderFaq\Selectors::get_selectors(),
449 'rtsb-logo-slider-and-grid' => LogoSliderAndGrid\Selectors::get_selectors(),
450 'rtsb-testimonial' => Testimonial\Selectors::get_selectors(),
451 'rtsb-team-member' => TeamMember\Selectors::get_selectors(),
452 'rtsb-post-list' => PostList\Selectors::get_selectors(),
453 'rtsb-post-grid' => PostGrid\Selectors::get_selectors(),
454 ];
455
456 return apply_filters( 'rtsb/elements/elementor/widget/general/selectors', $selectors );
457 }
458
459 /**
460 * Product Page Selectors.
461 *
462 * @return array
463 */
464 private static function product_widget_selectors(): array {
465 // Swatch size belongs to the Variation Swatches plugin once it is active: it
466 // prints its own Color & Image width/height rule, which this widget's size
467 // controls would outrank (element-scoped Elementor CSS, and these controls
468 // carry a default so they always print). Dropping the plugin's terms from
469 // the size selectors leaves that setting in charge, while the controls keep
470 // sizing ShopBuilder's own markup — the dropdowns and the built-in module.
471 $swatch_size_target = defined( 'RTWPVS_VERSION' )
472 ? ''
473 : '.rtwpvs {{WRAPPER}} .rtwpvs-terms-wrapper .rtwpvs-term:not(.rtwpvs-radio-term), ';
474
475 $selectors = [
476 'rtsb-related-product' => array_merge(
477 self::products_loop_default_selector(),
478 self::carousel_selector(),
479 [
480 'section_heading_typography' => '{{WRAPPER}} .rtsb-related-products .related > h2',
481 'section_heading_color' => '{{WRAPPER}} .rtsb-related-products .related > h2',
482 'section_title_margin' => '{{WRAPPER}} .rtsb-related-products .related > h2',
483 'section_title_align' => '{{WRAPPER}} .rtsb-related-products .related > h2',
484 ]
485 ),
486 'rtsb-related-product-custom' => array_merge(
487 self::general_common_selectors(),
488 self::general_product_selectors()
489 ),
490 'rtsb-related-products-slider' => array_merge(
491 self::general_common_selectors(),
492 self::general_product_selectors(),
493 self::general_slider_selectors(),
494 ),
495
496 'rtsb-upsells-product' => array_merge(
497 self::products_loop_default_selector(),
498 self::carousel_selector(),
499 [
500 'section_heading_typography' => '{{WRAPPER}} .rtsb-upsells-products :is(.up-sells, .upsells ) > h2',
501 'section_heading_color' => '{{WRAPPER}} .rtsb-upsells-products :is(.up-sells, .upsells ) > h2',
502 'section_title_margin' => '{{WRAPPER}} .rtsb-upsells-products :is(.up-sells, .upsells ) > h2',
503 'section_title_align' => '{{WRAPPER}} .rtsb-upsells-products :is(.up-sells, .upsells ) > h2',
504 ],
505 ),
506 'rtsb-upsells-product-custom' => array_merge(
507 self::general_common_selectors(),
508 self::general_product_selectors()
509 ),
510
511 'rtsb-upsells-product-slider' => array_merge(
512 self::general_common_selectors(),
513 self::general_product_selectors(),
514 self::general_slider_selectors(),
515 ),
516
517 'rtsb-actions-button' => [
518 'module_width' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn) .icon ',
519 'module_height' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn) .icon',
520 'module_text_color_normal' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn)',
521 'module_bg_color_normal' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn) .icon',
522 'module_border' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn) .icon',
523 'module_text_color_hover' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn):hover',
524 'module_bg_color_hover' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn):hover .icon',
525 'module_border_hover_color' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn):hover .icon',
526 'module_border_radius' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn) .icon',
527 'module_item_gap' => '{{WRAPPER}} :is( .action-button-wrapper, .rtsb-actions-button ) ',
528 'module_wrapper_margin' => '{{WRAPPER}} :is( .action-button-wrapper, .rtsb-actions-button )',
529 'module_item_alignment' => '{{WRAPPER}} :is( .action-button-wrapper, .rtsb-actions-button )',
530 'icon_size' => [
531 'icon' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn) .icon',
532 'svg' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn) .icon svg',
533 ],
534
535 'separator_color_normal' => '{{WRAPPER}} .rtsb-actions-button .button-separator',
536 'separator_typography' => '{{WRAPPER}} .rtsb-actions-button .button-separator',
537 'typo' => '{{WRAPPER}} .rtsb-actions-button .button-text',
538 'align' => '{{WRAPPER}} .rtsb-actions-button .button-text',
539 'text_color' => '{{WRAPPER}} .rtsb-actions-button .button-text',
540 'text_hover_color' => '{{WRAPPER}} .rtsb-actions-button .button-text:hover',
541 'text_shadow' => '{{WRAPPER}} .rtsb-actions-button .button-text',
542 'text_margin' => '{{WRAPPER}} .rtsb-actions-button .button-text',
543
544 ],
545 'rtsb-product-additional-info' => [
546 'heading_typography' => '{{WRAPPER}} .rtsb-product-additional-information h2',
547 'heading_color' => '{{WRAPPER}} .rtsb-product-additional-information h2',
548 'heading_margin' => '{{WRAPPER}} .rtsb-product-additional-information h2',
549 // Target the label + value cells (and the value's <p>) directly, by their WooCommerce
550 // classes, so Content Typography (font-weight, text-transform, …) reliably overrides the
551 // theme's higher-specificity `.woocommerce-js table.shop_attributes th` (0,2,2) rule and
552 // applies UNIFORMLY. Styling only `.shop_attributes` (the table) let the theme's direct
553 // th/cell rules win the cascade, so labels and values ended up styled inconsistently.
554 'content_typography' => '{{WRAPPER}} .shop_attributes th.woocommerce-product-attributes-item__label, {{WRAPPER}} .shop_attributes td.woocommerce-product-attributes-item__value, {{WRAPPER}} .shop_attributes td.woocommerce-product-attributes-item__value p',
555 'content_color' => '{{WRAPPER}} .shop_attributes',
556 'content_border' => '{{WRAPPER}} .shop_attributes td, {{WRAPPER}} .shop_attributes th',
557 'content_padding' => '{{WRAPPER}} .shop_attributes td, {{WRAPPER}} .shop_attributes th',
558 ],
559 'rtsb-product-add-to-cart' => [
560 'button_height' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button',
561 'button_width' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button',
562 'cart_icon_align' => [
563 'icon' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button i',
564 'svg' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button svg',
565 ],
566 'cart_icon_gap' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button',
567 'button_typography' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button',
568 'button_text_color_normal' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button',
569 'button_bg_color_normal' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button',
570 'button_border' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button',
571 'button_text_color_hover' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button:hover',
572 'button_bg_color_hover' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button:hover',
573 'button_border_hover_color' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button:hover',
574 'button_border_radius' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button',
575 'button_padding' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button',
576 'button_margin' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button',
577 'cart_icon_size' => [
578 'icon' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button i',
579 'svg' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button svg',
580 ],
581 'quantity_height' => [
582 'full' => '{{WRAPPER}} .rtsb-product-add-to-cart input[type=number], {{WRAPPER}} .rtsb-quantity-box-group:is(.rtsb-quantity-box-group-style-1,.rtsb-quantity-box-group-style-2) .rtsb-quantity-btn',
583 'half' => '{{WRAPPER}} .rtsb-quantity-box-group:is(.rtsb-quantity-box-group-style-3,.rtsb-quantity-box-group-style-4) .rtsb-quantity-btn',
584 ],
585 'quantity_increment_button_padding' => '{{WRAPPER}} .rtsb-product-add-to-cart .rtsb-quantity-box-group .rtsb-quantity-btn.rtsb-quantity-plus',
586 'quantity_decrement_button_padding' => '{{WRAPPER}} .rtsb-product-add-to-cart .rtsb-quantity-box-group .rtsb-quantity-btn.rtsb-quantity-minus',
587 'quantity_input_width' => '{{WRAPPER}} .rtsb-product-add-to-cart input.qty',
588 'quantity_button_width' => '{{WRAPPER}} .rtsb-product-add-to-cart .rtsb-quantity-box-group .rtsb-quantity-btn',
589
590 'icon_size' => [
591 'icon' => '{{WRAPPER}} .rtsb-product-add-to-cart .rtsb-quantity-box-group .rtsb-quantity-btn',
592 'svg' => '{{WRAPPER}} .rtsb-product-add-to-cart .rtsb-quantity-box-group .rtsb-quantity-btn svg',
593 ],
594 'quantity_icon_color' => '{{WRAPPER}} .rtsb-product-add-to-cart .quantity :is(i, svg)',
595 'quantity_icon_hover_color' => '{{WRAPPER}} .rtsb-product-add-to-cart .quantity .rtsb-quantity-btn:hover :is(i, svg)',
596 'text_typography' => '{{WRAPPER}} .rtsb-product-add-to-cart .quantity input',
597 'quantity_number_color' => '{{WRAPPER}} .rtsb-product-add-to-cart .quantity input',
598 'quantity_background_color' => '{{WRAPPER}} .rtsb-product-add-to-cart .quantity input',
599 'quantity_border' => '{{WRAPPER}} .rtsb-product-add-to-cart .quantity input',
600 'quantity_radius' => '{{WRAPPER}} .rtsb-product-add-to-cart .quantity input',
601 'qunatity_padding' => '{{WRAPPER}} .rtsb-product-add-to-cart .quantity input',
602 'quantity_wrapper_background_color' => '{{WRAPPER}} .rtsb-product-add-to-cart .quantity .rtsb-quantity-box-group',
603 'qunatity_wrapper_padding' => '{{WRAPPER}} .rtsb-product-add-to-cart .quantity .rtsb-quantity-box-group',
604 'quantity_wrapper_radius' => '{{WRAPPER}} .rtsb-product-add-to-cart .quantity .rtsb-quantity-box-group',
605 'variation_padding' => '{{WRAPPER}} .rtsb-product-add-to-cart .variations select, .rtwpvs {{WRAPPER}} .rtwpvs-terms-wrapper .rtwpvs-term:not(.rtwpvs-radio-term).rtwpvs-button-term, {{WRAPPER}} .rtsb-product-add-to-cart .rtsb-terms-wrapper .rtsb-term:not(.rtsb-radio-term).rtsb-button-term',
606 'variation_label_margin' => '{{WRAPPER}} .rtsb-product-add-to-cart table.variations tr .label label',
607 'variation_item_margin' => '{{WRAPPER}} .rtsb-product-add-to-cart table.variations tr:not(:last-child) .value',
608 'variation_border' => '{{WRAPPER}} .rtsb-product-add-to-cart .variations select, {{WRAPPER}} .rtsb-product-add-to-cart .rtsb-terms-wrapper .rtsb-term:not(.rtsb-radio-term)',
609 'price_typography' => '.single-product {{WRAPPER}} .single_variation .price',
610 'price_color' => '.single-product {{WRAPPER}} .single_variation :is(.price, .price .amount, .price ins)',
611 'price_margin' => '.single-product {{WRAPPER}} .single_variation :is(.price, .price .amount, .price ins)',
612 'variation_height' => $swatch_size_target . '{{WRAPPER}} .rtsb-product-add-to-cart .variations select, {{WRAPPER}} .rtsb-product-add-to-cart .rtsb-terms-wrapper .rtsb-term:not(.rtsb-radio-term)',
613 'variation_width' => $swatch_size_target . '{{WRAPPER}} .rtsb-product-add-to-cart .variations select, {{WRAPPER}} .rtsb-product-add-to-cart .rtsb-terms-wrapper .rtsb-term:not(.rtsb-radio-term)',
614 'variation_border_radius' => '.rtwpvs {{WRAPPER}} .rtwpvs-terms-wrapper .rtwpvs-term:not(.rtwpvs-radio-term), {{WRAPPER}} .rtsb-product-add-to-cart .variations select, {{WRAPPER}} .rtsb-product-add-to-cart .rtsb-terms-wrapper .rtsb-term:not(.rtsb-radio-term)',
615 'variation_label_typography' => '{{WRAPPER}} .rtsb-product-add-to-cart table.variations tr .label label',
616 'variation_stock_typography' => '{{WRAPPER}} .rtsb-product-add-to-cart .woocommerce-variation-availability .stock',
617 'variation_label_color' => '{{WRAPPER}} .rtsb-product-add-to-cart table.variations tr .label label',
618 'variation_stock_color' => '{{WRAPPER}} .rtsb-product-add-to-cart .woocommerce-variation-availability .stock',
619 'variation_outofstock_color' => '{{WRAPPER}} .rtsb-product-add-to-cart .woocommerce-variation-availability .stock.out-of-stock',
620 'variation_swatch_border_color' => '{{WRAPPER}} .rtsb-product-add-to-cart',
621 'variation_swatch_selected_color' => '{{WRAPPER}} .rtsb-product-add-to-cart',
622 'variation_checkmark_bg_color' => '{{WRAPPER}} .rtsb-product-add-to-cart',
623 'variation_checkmark_size' => '{{WRAPPER}} .rtsb-product-add-to-cart',
624 'variation_checkmark_icon_size' => '{{WRAPPER}} .rtsb-product-add-to-cart',
625 'variation_clear_margin' => '{{WRAPPER}} .rtsb-product-add-to-cart .reset_variations',
626 'variation_clear_padding' => '{{WRAPPER}} .rtsb-product-add-to-cart .reset_variations',
627
628 ],
629 'rtsb-product-categories' => [
630 'align' => '{{WRAPPER}} .rtsb-product-categories',
631 'label_typo' => '{{WRAPPER}} .rtsb-product-categories .categories-title',
632 'meta_label_color' => '{{WRAPPER}} .rtsb-product-categories .categories-title',
633 'value_typo' => '{{WRAPPER}} .rtsb-product-categories a',
634 'meta_value_color' => '{{WRAPPER}} .rtsb-product-categories a',
635 'meta_value_hover_color' => '{{WRAPPER}} .rtsb-product-categories a:hover',
636 ],
637 'rtsb-product-description' => [
638 'typo' => '{{WRAPPER}} .rtsb-description, {{WRAPPER}} .rtsb-description p',
639 'align' => '{{WRAPPER}}',
640 'text_color' => '{{WRAPPER}} :is(.rtsb-description , p)',
641 'text_shadow' => '{{WRAPPER}} .rtsb-description , {{WRAPPER}} .rtsb-description p',
642 ],
643 'rtsb-product-tags' => [
644 'align' => '{{WRAPPER}} .rtsb-product-tags',
645 'label_typo' => '{{WRAPPER}} .rtsb-product-tags .tags-title',
646 'meta_label_color' => '{{WRAPPER}} .rtsb-product-tags .tags-title',
647 'value_typo' => '{{WRAPPER}} .rtsb-product-tags a',
648 'meta_value_color' => '{{WRAPPER}} .rtsb-product-tags a',
649 'meta_value_hover_color' => '{{WRAPPER}} .rtsb-product-tags a:hover',
650 ],
651
652 'rtsb-product-image' => [
653 'image_width' => '{{WRAPPER}} .rtsb-product-images .woocommerce-product-gallery__image a > img',
654 'image_border' => '{{WRAPPER}} .rtwpvg-wrapper .rtwpvg-slider-wrapper,{{WRAPPER}} .rtsb-product-images .woocommerce-product-gallery__image, {{WRAPPER}} .rtsb-product-images .product-vg-gallery',
655 'image_border_radius' => '{{WRAPPER}} .rtsb-product-images .woocommerce-product-gallery__image',
656 'gallery_thumbs_column' => '{{WRAPPER}} div.images .flex-control-thumbs li',
657 'thumb_border' => '{{WRAPPER}} .rtsb-vg-main-slider-wrapper .rtsb-vs-thumb-item, {{WRAPPER}} .rtsb-product-images div.images .flex-control-thumbs li img, {{WRAPPER}} .rtsb-product-images .rtwpvg-thumbnail-wrapper .rtwpvg-thumbnail-slider .rtwpvg-thumbnail-image, {{WRAPPER}} .rtsb-product-images .rtwpvg-grid-wrapper .rtwpvg-grid-layout .rtwpvg-gallery-image',
658 'thumbs_border_radius' => '{{WRAPPER}} .rtsb-vg-main-slider-wrapper :is(.rtsb-vs-thumb-item, .rtsb-vs-thumb-item img), {{WRAPPER}} .rtsb-product-images div.images .flex-control-thumbs li img, {{WRAPPER}} .rtsb-product-images .rtwpvg-thumbnail-wrapper .rtwpvg-thumbnail-slider :is(.rtwpvg-thumbnail-image, img), {{WRAPPER}} .rtsb-product-images .rtwpvg-grid-wrapper .rtwpvg-grid-layout :is(.rtwpvg-gallery-image, img)',
659 'gallery_thumbs_padding' => '{{WRAPPER}} .rtsb-vg-main-slider-wrapper .rtsb-vs-thumb-item, {{WRAPPER}} .rtsb-product-images div.images .flex-control-thumbs li img, {{WRAPPER}} .rtsb-product-images .rtwpvg-thumbnail-wrapper .rtwpvg-thumbnail-slider .rtwpvg-thumbnail-image, {{WRAPPER}} .rtsb-product-images .rtwpvg-grid-wrapper .rtwpvg-grid-layout .rtwpvg-gallery-image',
660 'flash_sale_typography' => '{{WRAPPER}} .rtsb-product-images .onsale',
661 'product_flash_sale_color' => '{{WRAPPER}} .rtsb-product-images .onsale',
662 'flash_sale_bg_color' => '{{WRAPPER}} .rtsb-product-images .onsale',
663 'flash_sale_badge_width' => '{{WRAPPER}} .rtsb-product-images .onsale',
664 'flash_sale_badge_height' => '{{WRAPPER}} .rtsb-product-images .onsale',
665 'flash_sale_badge_border_radius' => '{{WRAPPER}} .rtsb-product-images .onsale',
666 'flash_sale_position_horizontal' => '{{WRAPPER}} .rtsb-product-images .onsale',
667 'flash_sale_position_vertical' => '{{WRAPPER}} .rtsb-product-images .onsale',
668 'zoom_color' => '{{WRAPPER}} .rtsb-product-images .images .woocommerce-product-gallery__trigger,{{WRAPPER}} .rtsb-product-images .rtwpvg-wrapper .rtwpvg-slider-wrapper .rtwpvg-trigger',
669
670 'zoom_bg_color' => '{{WRAPPER}} .rtsb-product-images .images .woocommerce-product-gallery__trigger,{{WRAPPER}} .rtsb-product-images .rtwpvg-wrapper .rtwpvg-slider-wrapper .rtwpvg-trigger',
671 'zoom_icon_size' => [
672 'icon' => '{{WRAPPER}} .rtsb-product-images .images .woocommerce-product-gallery__trigger,{{WRAPPER}} .rtsb-product-images .rtwpvg-wrapper .rtwpvg-slider-wrapper .rtwpvg-trigger :is(span, i)',
673 'svg' => '{{WRAPPER}} .rtsb-product-images .images .woocommerce-product-gallery__trigger svg, {{WRAPPER}} .rtsb-product-images .rtwpvg-wrapper .rtwpvg-slider-wrapper .rtwpvg-trigger svg',
674 ],
675 'zoom_badge_width' => '{{WRAPPER}} .rtsb-product-images .images .woocommerce-product-gallery__trigger,{{WRAPPER}} .rtsb-product-images .rtwpvg-wrapper .rtwpvg-slider-wrapper .rtwpvg-trigger',
676 'zoom_badge_height' => '{{WRAPPER}} .rtsb-product-images .images .woocommerce-product-gallery__trigger,{{WRAPPER}} .rtsb-product-images .rtwpvg-wrapper .rtwpvg-slider-wrapper .rtwpvg-trigger',
677 'zoom_badge_border_radius' => '{{WRAPPER}} .rtsb-product-images .images .woocommerce-product-gallery__trigger,{{WRAPPER}} .rtsb-product-images .rtwpvg-wrapper .rtwpvg-slider-wrapper .rtwpvg-trigger',
678 'zoom_padding' => '{{WRAPPER}} .rtsb-product-images .images .woocommerce-product-gallery__trigger,{{WRAPPER}} .rtsb-product-images .rtwpvg-wrapper .rtwpvg-slider-wrapper .rtwpvg-trigger',
679 'zoom_position_horizontal' => [
680 'zoom_position' => '{{WRAPPER}} .rtsb-product-images .images .woocommerce-product-gallery__trigger',
681 'rtwpvg-tr-br' => '{{WRAPPER}} .rtsb-product-images .rtwpvg-wrapper .rtwpvg-slider-wrapper .rtwpvg-trigger:is(.rtwpvg-trigger-position-top-right, .rtwpvg-trigger-position-bottom-right)',
682 'rtwpvg-tl-bl' => '{{WRAPPER}} .rtsb-product-images .rtwpvg-wrapper .rtwpvg-slider-wrapper .rtwpvg-trigger:is(.rtwpvg-trigger-position-top-left,.rtwpvg-trigger-position-bottom-left)',
683 ],
684 'zoom_position_vertical' => [
685 'zoom-icon-top' => '{{WRAPPER}} .rtsb-product-images .images .woocommerce-product-gallery__trigger, {{WRAPPER}} .rtsb-product-images .rtwpvg-trigger',
686 'zoom-icon-bottom' => '{{WRAPPER}} .rtsb-product-images .rtwpvg-wrapper .rtwpvg-slider-wrapper .rtwpvg-trigger:is(.rtwpvg-trigger-position-bottom-right, .rtwpvg-trigger-position-bottom-left)',
687 ],
688 ],
689 'rtsb-product-meta' => [
690 'meta_layout' => '{{WRAPPER}} .rtsb-product-meta .product_meta',
691 'align' => '{{WRAPPER}} .product_meta',
692 'row_gap' => '{{WRAPPER}} .rtsb-product-meta .product_meta',
693 'column_gap' => '{{WRAPPER}} .rtsb-product-meta .product_meta',
694 'meta_padding' => '{{WRAPPER}} .rtsb-product-meta .product_meta :is(.sku_wrapper, .posted_in, .tagged_as)',
695 'label_typo' => '{{WRAPPER}} .rtsb-product-meta .product_meta .rtsb-meta-label',
696 'meta_label_color' => '{{WRAPPER}} .rtsb-product-meta .product_meta .rtsb-meta-label',
697 'value_typo' => '{{WRAPPER}} .rtsb-product-meta .product_meta :is(.sku, .posted_in a, .tagged_as a)',
698 'meta_value_color' => '{{WRAPPER}} .rtsb-product-meta .product_meta :is(.sku, .posted_in a, .tagged_as a)',
699 'meta_value_hover_color' => '{{WRAPPER}} .rtsb-product-meta .product_meta :is(.posted_in a, .tagged_as a):hover',
700 ],
701 'rtsb-product-price' => [
702 'price_align' => '{{WRAPPER}}',
703 'space_between' => [
704 'del_price' => '{{WRAPPER}} .rtsb-product-price .price del',
705 'del_price_rtl' => '.rtl {{WRAPPER}} .rtsb-product-price .price del',
706 ],
707 'price_typo' => '{{WRAPPER}} .rtsb-product-price :is(.price, .price .amount, .price ins)',
708 'price_color' => '{{WRAPPER}} .rtsb-product-price :is(.price, .price .amount, .price ins)',
709 'sale_price_typo' => '{{WRAPPER}} .rtsb-product-price .price ins .amount',
710 'sale_price_color' => '{{WRAPPER}} .rtsb-product-price .price ins .amount',
711 ],
712 // New Convension.
713 'rtsb-product-rating' => array_merge(
714 self::review_star_icon_selector(),
715 [
716 'rating_align' => '{{WRAPPER}}',
717 'rating_text_link_color' => '{{WRAPPER}} .woocommerce-review-link',
718 'rating_text_link_hover_color' => '{{WRAPPER}} .woocommerce-review-link:hover',
719 'link_typography' => '{{WRAPPER}} .woocommerce-review-link',
720 'rating_space_between' => [
721 'margin-right' => 'body:not(.rtl) {{WRAPPER}} .star-rating',
722 'margin-left' => 'body.rtl {{WRAPPER}} .star-rating',
723 ],
724 ]
725 ),
726 'rtsb-product-reviews' => self::reviews_settings_selecotor(),
727 'rtsb-product-sku' => [
728 'align' => '{{WRAPPER}} .rtsb-product-sku',
729 'label_typo' => '{{WRAPPER}} .rtsb-product-sku .sku-label',
730 'meta_label_color' => '{{WRAPPER}} .rtsb-product-sku .sku-label',
731 'value_typo' => '{{WRAPPER}} .rtsb-product-sku .sku-value',
732 'meta_value_color' => '{{WRAPPER}} .rtsb-product-sku .sku-value',
733 'meta_value_hover_color' => '{{WRAPPER}} .rtsb-product-sku .sku-value:hover',
734 ],
735 'rtsb-product-stock' => [
736 'stock_text_typography' => '{{WRAPPER}} .rtsb-product-stock .stock .rtsb-stock-text',
737 'in_stock_color' => '{{WRAPPER}} .rtsb-product-stock .stock.in-stock .rtsb-stock-text',
738 'outof_stock_color' => '{{WRAPPER}} .rtsb-product-stock .stock.out-of-stock .rtsb-stock-text',
739 'backorder_stock_color' => '{{WRAPPER}} .rtsb-product-stock .stock.available-on-backorder .rtsb-stock-text',
740 'icon_size' => [
741 'icon' => '{{WRAPPER}} .rtsb-product-stock .stock i',
742 'svg' => '{{WRAPPER}} .rtsb-product-stock .stock svg',
743 ],
744 'icon_gap' => '{{WRAPPER}} .rtsb-product-stock .stock :is(i, svg)',
745 'stock_alignment' => '{{WRAPPER}} .rtsb-product-stock > .stock',
746 'stock_padding' => '{{WRAPPER}} .rtsb-product-stock > .stock',
747 'stock_margin' => '{{WRAPPER}} .rtsb-product-stock > .stock',
748 ],
749 'rtsb-product-tabs' => array_merge(
750 self::reviews_settings_selecotor(),
751 [
752 'nav_typography' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs ul.tabs li a',
753 'nav_position' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs.tabs-custom-layout2 ul.wc-tabs',
754 'nav_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs ul.tabs li a',
755 'nav_bg_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs ul.tabs li a',
756 'nav_border' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs ul.tabs li',
757
758 'nav_active_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs ul.tabs li.active a',
759 'nav_active_bg_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs ul.tabs li.active a',
760 'nav_active_border_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs ul.tabs li.active',
761 'nav_hover_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs ul.tabs li:not(.active):hover a',
762 'nav_hover_bg_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs ul.tabs li:not(.active):hover a',
763 'nav_active_hover_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs ul.tabs li.active:hover a',
764 'nav_active_hover_bg_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs ul.tabs li.active:hover a',
765 'nav_active_hover_border_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs ul.tabs li.active:hover a',
766 'nav_padding' => '#rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs ul.tabs li a ',
767 'content_padding' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs .wc-tab ',
768
769 'show_title' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs .woocommerce-Tabs-panel > h2:first-child,{{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs .woocommerce-Tabs-panel .comment-reply-title, {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs .woocommerce-Tabs-panel .woocommerce-Reviews-title',
770 'tab_title_typography' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs .wc-tab h2',
771 'tab_title_gap' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs .wc-tab h2',
772 'tab_content_title_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs .woocommerce-Tabs-panel > h2:first-child, {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs .woocommerce-Tabs-panel .woocommerce-Reviews-title',
773
774 'additional_info_typography' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs .wc-tab .shop_attributes :is(th, td, td p)',
775 'attributes_gap' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs table.shop_attributes td,{{WRAPPER}} .rtsb-product-tabs table.shop_attributes th',
776 ]
777 ),
778 'rtsb-product-title' => [
779 'title_typo' => '{{WRAPPER}} .product_title',
780 'title_align' => '{{WRAPPER}}',
781 'title_color' => '{{WRAPPER}} .product_title',
782 'title_text_stroke' => '{{WRAPPER}} .product_title',
783 'title_text_shadow' => '{{WRAPPER}} .product_title',
784 'title_margin' => '{{WRAPPER}} .product_title',
785 'title_padding' => '{{WRAPPER}} .product_title',
786 'title_border' => '{{WRAPPER}} .product_title',
787 ],
788 'rtsb-short-description' => [
789 'typo' => '{{WRAPPER}} .rtsb-short-description, {{WRAPPER}} .rtsb-short-description p',
790 'align' => '{{WRAPPER}}',
791 'text_color' => '{{WRAPPER}} :is(.rtsb-short-description , p)',
792 'text_shadow' => '{{WRAPPER}} .rtsb-short-description, {{WRAPPER}} .rtsb-short-description p',
793 ],
794 // The widget badge lives inside `{{WRAPPER}} .rtsb-product-onsale`; the Badges
795 // module also renders group badges on the main product gallery (above-image
796 // position). Style both from the same controls by pairing the widget selector
797 // with a gallery-scoped selector for the module group badges. The gallery
798 // scope (`.woocommerce-product-gallery`/`.rtsb-product-images`) keeps related
799 // product card badges untouched.
800 'rtsb-product-onsale' => [
801 'flash_sale_typography' => '{{WRAPPER}} .rtsb-product-onsale :is(.onsale, .rtsb-tag-fill, .rtsb-tag-outline), :is(.woocommerce-product-gallery, .rtsb-product-images) .rtsb-badge-group-style :is(.rtsb-tag-fill, .rtsb-tag-outline)',
802 'product_flash_sale_color' => '{{WRAPPER}} .rtsb-product-onsale :is(.onsale, .rtsb-tag-fill, .rtsb-tag-outline), :is(.woocommerce-product-gallery, .rtsb-product-images) .rtsb-badge-group-style :is(.rtsb-tag-fill, .rtsb-tag-outline)',
803 'flash_sale_bg_color' => '{{WRAPPER}} .rtsb-product-onsale :is(.onsale, .rtsb-tag-fill, .rtsb-tag-outline), :is(.woocommerce-product-gallery, .rtsb-product-images) .rtsb-badge-group-style :is(.rtsb-tag-fill, .rtsb-tag-outline)',
804 'flash_sale_border_color' => '{{WRAPPER}} .rtsb-product-onsale :is(.onsale, .rtsb-tag-fill, .rtsb-tag-outline), {{WRAPPER}} .rtsb-tag-outline.angle-right::after, :is(.woocommerce-product-gallery, .rtsb-product-images) .rtsb-badge-group-style :is(.rtsb-tag-fill, .rtsb-tag-outline)',
805 'flash_sale_badge_width' => '{{WRAPPER}} .rtsb-product-onsale :is(.onsale, .rtsb-tag-fill, .rtsb-tag-outline), :is(.woocommerce-product-gallery, .rtsb-product-images) .rtsb-badge-group-style :is(.rtsb-tag-fill, .rtsb-tag-outline)',
806 'flash_sale_badge_height' => '{{WRAPPER}} .rtsb-product-onsale :is(.onsale, .rtsb-tag-fill, .rtsb-tag-outline), :is(.woocommerce-product-gallery, .rtsb-product-images) .rtsb-badge-group-style :is(.rtsb-tag-fill, .rtsb-tag-outline)',
807 'flash_sale_badge_border_radius' => '{{WRAPPER}} .rtsb-product-onsale :is(.onsale, .rtsb-tag-fill, .rtsb-tag-outline), :is(.woocommerce-product-gallery, .rtsb-product-images) .rtsb-badge-group-style :is(.rtsb-tag-fill, .rtsb-tag-outline)',
808 'product_badges' => [
809 // Match BOTH the free wrapper (.rtsb-product-onsale, from
810 // templates/elementor/single-product/product-badges.php) AND the pro wrapper
811 // (.rtsb-product-badges-widgets, from the pro template override). Scoping only to
812 // `.rtsb-product-onsale` made every badge style control (typography/color/bg/
813 // border/padding/margin) silently no-op on pro sites, where that div is absent.
814 // `:is()` matches the most specific arg, preserving the original (0,3,0) specificity.
815 // Padding/margin also target the Badges-module group badges on the product gallery.
816 'typography' => '{{WRAPPER}} :is(.rtsb-product-onsale, .rtsb-product-badges-widgets) :is(.rtsb-tag-fill, .rtsb-tag-outline)',
817 'color' => '{{WRAPPER}} :is(.rtsb-product-onsale, .rtsb-product-badges-widgets) :is(.rtsb-tag-fill,.rtsb-tag-outline)',
818 'bg_color' => '{{WRAPPER}} :is(.rtsb-product-onsale, .rtsb-product-badges-widgets) :is(.rtsb-tag-fill,.rtsb-tag-outline)',
819 'border_color' => '{{WRAPPER}} :is(.rtsb-product-onsale, .rtsb-product-badges-widgets) :is(.rtsb-tag-fill,.rtsb-tag-outline),{{WRAPPER}} .rtsb-tag-outline.angle-right::after',
820 'border_radius' => '{{WRAPPER}} :is(.rtsb-product-onsale, .rtsb-product-badges-widgets) :is(.rtsb-tag-fill,.rtsb-tag-outline)',
821 'padding' => '{{WRAPPER}} :is(.rtsb-product-onsale, .rtsb-product-badges-widgets) :is(.rtsb-tag-fill,.rtsb-tag-outline), :is(.woocommerce-product-gallery, .rtsb-product-images) .rtsb-badge-group-style :is(.rtsb-tag-fill, .rtsb-tag-outline)',
822 'margin' => '{{WRAPPER}} :is(.rtsb-product-onsale, .rtsb-product-badges-widgets) :is(.rtsb-tag-fill,.rtsb-tag-outline), :is(.woocommerce-product-gallery, .rtsb-product-images) .rtsb-badge-group-style :is(.rtsb-tag-fill, .rtsb-tag-outline)',
823 'position_x' => '',
824 'position_y' => '',
825 ],
826 'badges_module' => [
827 // Compound (no descendant combinator): `.rtsb-badge-group-style` and `.rtsb-promotion`
828 // are emitted on the SAME element by BadgesFrontEnd::group_badges_html(). The pro
829 // single-product template drops the outer `.rtsb-promotion` wrapper, so a descendant
830 // selector matches nothing and the Direction/Alignment controls silently no-op.
831 'direction' => '{{WRAPPER}} .rtsb-promotion.rtsb-badge-group-style',
832 'alignment' => '{{WRAPPER}} .rtsb-promotion.rtsb-badge-group-style',
833 'alignment_wrap' => '{{WRAPPER}} .rtsb-badge-container .rtsb-promotion:not(.rtsb-badge-group-style)',
834 ],
835 ],
836 ];
837
838 return apply_filters( 'rtsb/elements/elementor/widget/product/selectors', $selectors );
839 }
840
841 /**
842 * Archive Selectors.
843 *
844 * @return array
845 */
846 private static function archive_widget_selectors(): array {
847 $selectors = [
848
849 'rtsb-products-archive' => array_merge(
850 self::products_loop_default_selector(),
851 [
852 'column_per_row' => '{{WRAPPER}} .rtsb-product-catalog.product-catalog-grid-view .products .product',
853 'column_gap' => '{{WRAPPER}} .rtsb-product-catalog.product-catalog-grid-view .products',
854 'row_gap' => '{{WRAPPER}} .rtsb-product-catalog .products',
855 'list_image_width' => '{{WRAPPER}} .rtsb-product-catalog.product-catalog-list-view .rtsb-image-wrapper',
856 'image_gap' => [
857 'margin-right' => '{{WRAPPER}} .rtsb-product-catalog.product-catalog-list-view .rtsb-image-wrapper',
858 'margin-bottom' => '{{WRAPPER}} .rtsb-product-catalog.product-catalog-grid-view .rtsb-image-wrapper',
859 ],
860 ],
861 ),
862
863 'rtsb-products-archive-custom' => array_merge(
864 self::general_common_selectors(),
865 self::general_product_selectors()
866 ),
867
868 'rtsb-archive-title' => [
869 'archive_title_align' => '{{WRAPPER}}',
870 'archive_title_color' => '{{WRAPPER}} .archive-title',
871 'title_typo' => '{{WRAPPER}} .archive-title',
872 'text_stroke' => '{{WRAPPER}} .archive-title',
873 'text_shadow' => '{{WRAPPER}} .archive-title',
874 ],
875 'rtsb-archive-description' => [
876 'typo' => '{{WRAPPER}} .rtsb-archive-description',
877 'align' => '{{WRAPPER}}',
878 'text_color' => '{{WRAPPER}}',
879 'text_shadow' => '{{WRAPPER}} .rtsb-archive-description',
880 ],
881 'rtsb-archive-product-mode' => [
882 'icon_size' => [
883 'icon' => '{{WRAPPER}} .rtsb-archive-view-mode i',
884 'svg' => '{{WRAPPER}} .rtsb-archive-view-mode svg',
885 ],
886 'mode_button_align' => '{{WRAPPER}}',
887 'mode_button_height' => '{{WRAPPER}} .rtsb-archive-view-mode a',
888 'mode_button_width' => '{{WRAPPER}} .rtsb-archive-view-mode a',
889 'mode_button_gap' => '{{WRAPPER}} .rtsb-archive-view-mode',
890 'mode_button_bg_color' => '{{WRAPPER}} .rtsb-archive-view-mode a',
891 'text_color' => '{{WRAPPER}} .rtsb-archive-view-mode a',
892 'mode_button_border' => '{{WRAPPER}} .rtsb-archive-view-mode a',
893 'mode_button_bg_hover_color' => '{{WRAPPER}} .rtsb-archive-view-mode a:hover,{{WRAPPER}} .rtsb-archive-view-mode a.active',
894 'text_hover_color' => '{{WRAPPER}} .rtsb-archive-view-mode a:hover,{{WRAPPER}} .rtsb-archive-view-mode a.active',
895 'mode_button_border_hover_color' => '{{WRAPPER}} .rtsb-archive-view-mode a:hover,{{WRAPPER}} .rtsb-archive-view-mode a.active',
896 'mode_button_radius' => '{{WRAPPER}} .rtsb-archive-view-mode a',
897 ],
898 'rtsb-archive-result-count' => [
899 'align' => '{{WRAPPER}}',
900 'text_color' => '{{WRAPPER}}',
901 // Also target the inner <p> (woocommerce_result_count output): text-decoration
902 // is not inherited and does not draw through the descendant block, so it must
903 // hit the text element directly. Other typography keeps working via the div.
904 'typo' => '{{WRAPPER}} .rtsb-archive-result-count, {{WRAPPER}} .rtsb-archive-result-count .woocommerce-result-count',
905 'text_shadow' => '{{WRAPPER}} .rtsb-archive-result-count',
906 ],
907 'rtsb-products-ordering' => [
908 'typo' => '{{WRAPPER}} .rtsb-archive-catalog-ordering :is( .woocommerce-ordering, select )',
909 'align' => '{{WRAPPER}}',
910 'orderby_height' => '{{WRAPPER}} .rtsb-archive-catalog-ordering .woocommerce-ordering .orderby',
911 'orderby_width' => '{{WRAPPER}} .rtsb-archive-catalog-ordering .woocommerce-ordering,{{WRAPPER}} .rtsb-archive-catalog-ordering .woocommerce-ordering .orderby',
912 'ordering_padding' => '{{WRAPPER}} .rtsb-archive-catalog-ordering .woocommerce-ordering .orderby',
913 'orderby_bg_color' => '{{WRAPPER}} .rtsb-archive-catalog-ordering .woocommerce-ordering .orderby',
914 'text_color' => '{{WRAPPER}} .rtsb-archive-catalog-ordering .woocommerce-ordering .orderby',
915 'orderby_border' => '{{WRAPPER}} .rtsb-archive-catalog-ordering .woocommerce-ordering .orderby',
916 'orderby_bg_hover_color' => '{{WRAPPER}} .rtsb-archive-catalog-ordering .woocommerce-ordering .orderby:hover',
917 'text_hover_color' => '{{WRAPPER}} .rtsb-archive-catalog-ordering .woocommerce-ordering .orderby:hover',
918 'orderby_border_hover_color' => '{{WRAPPER}} .rtsb-archive-catalog-ordering .woocommerce-ordering .orderby:hover',
919 'orderby_radius' => '{{WRAPPER}} .rtsb-archive-catalog-ordering .woocommerce-ordering .orderby',
920 ],
921 'rtsb-product-filters' => ProductFilters\Selectors::get_selectors(),
922 ];
923
924 return apply_filters( 'rtsb/elements/elementor/widget/archive/selectors', $selectors );
925 }
926
927 /**
928 * Cart Selectors.
929 *
930 * @return array
931 */
932 private static function cart_widget_selectors(): array {
933 $selectors = [
934 'rtsb-cross-sells' => array_merge(
935 self::products_loop_default_selector(),
936 self::carousel_selector(),
937 [
938 'section_heading_typography' => '{{WRAPPER}} .rtsb-cross-sell .cross-sells > h2',
939 'section_heading_color' => '{{WRAPPER}} .rtsb-cross-sell .cross-sells > h2',
940 'section_title_margin' => '{{WRAPPER}} .rtsb-cross-sell .cross-sells > h2',
941 'section_title_align' => '{{WRAPPER}} .rtsb-cross-sell .cross-sells > h2',
942 ],
943 ),
944
945 'rtsb-cross-sell-product-custom' => array_merge(
946 self::general_common_selectors(),
947 self::general_product_selectors()
948 ),
949
950 'rtsb-crosssell-product-slider' => array_merge(
951 self::general_common_selectors(),
952 self::general_product_selectors(),
953 self::general_slider_selectors(),
954 ),
955
956 'rtsb-product-cart-totals' => [
957 'show_title' => '{{WRAPPER}} .rtsb-cart-totals h2',
958 'table_min_width' => '.rtsb-builder-content {{WRAPPER}} .rtsb-table-horizontal-scroll-on-mobile table.shop_table',
959 // Title Style.
960 'title_align' => '{{WRAPPER}} .rtsb-cart-totals h2',
961 'title_typo' => '{{WRAPPER}} .rtsb-cart-totals h2',
962 'title_color' => '{{WRAPPER}} .rtsb-cart-totals h2',
963 'title_text_stroke' => '{{WRAPPER}} .rtsb-cart-totals h2',
964 'title_text_shadow' => '{{WRAPPER}} .rtsb-cart-totals h2',
965 'title_margin' => '{{WRAPPER}} .rtsb-cart-totals h2',
966 'title_padding' => '{{WRAPPER}} .rtsb-cart-totals h2',
967 'title_border' => '{{WRAPPER}} .rtsb-cart-totals h2',
968 // Table.
969 'table_heading_cell_border' => '#rtsb-builder-content {{WRAPPER}} .rtsb-cart-totals th,#rtsb-builder-content {{WRAPPER}} .rtsb-cart-totals td',
970 'table_heading_cell_padding' => '{{WRAPPER}} .rtsb-cart-totals th,{{WRAPPER}} .rtsb-cart-totals td',
971 'table_heading_typography' => '{{WRAPPER}} .rtsb-cart-totals th',
972 'table_heading_color' => '{{WRAPPER}} .rtsb-cart-totals th',
973 'table_heading_background_color' => '{{WRAPPER}} .rtsb-cart-totals th',
974 'table_heading_align' => '{{WRAPPER}} .rtsb-cart-totals th',
975 'total_heading_width' => '{{WRAPPER}} .rtsb-cart-totals th',
976 'table_cell_typography' => '{{WRAPPER}} .rtsb-cart-totals td *',
977 'table_cell_color' => '{{WRAPPER}} .rtsb-cart-totals td',
978 'table_cell_background_color' => '{{WRAPPER}} .rtsb-cart-totals td',
979 'table_cell_align' => '{{WRAPPER}} .rtsb-cart-totals td, .woocommerce .rtsb-builder-content {{WRAPPER}} ul#shipping_method li',
980 'total_cell_heading_width' => '{{WRAPPER}} .rtsb-cart-totals td',
981 'table_wrapper_border' => '{{WRAPPER}} .rtsb-cart-totals .shop_table',
982 'table_wrapper_padding' => '{{WRAPPER}} .rtsb-cart-totals .shop_table',
983 'button_typography' => '{{WRAPPER}} .rtsb-cart-totals .button',
984 'button_height' => '{{WRAPPER}} .rtsb-cart-totals .button',
985 'button_width' => '{{WRAPPER}} .rtsb-cart-totals .button',
986 'button_text_color_normal' => '{{WRAPPER}} .rtsb-cart-totals .button',
987 'button_bg_color_normal' => '{{WRAPPER}} .rtsb-cart-totals .button',
988 'button_border' => '{{WRAPPER}} .rtsb-cart-totals .button',
989 'button_text_color_hover' => '{{WRAPPER}} .rtsb-cart-totals .button:hover',
990 'button_bg_color_hover' => '{{WRAPPER}} .rtsb-cart-totals .button:hover',
991 'button_border_hover_color' => '{{WRAPPER}} .rtsb-cart-totals .button:hover',
992 'button_border_radius' => '{{WRAPPER}} .rtsb-cart-totals .button',
993 'button_padding' => '{{WRAPPER}} .rtsb-cart-totals .button',
994 'button_margin' => '{{WRAPPER}} .rtsb-cart-totals .button',
995
996 ],
997 'rtsb-product-carttable' => [
998 'button_typography' => '{{WRAPPER}} .woocommerce-cart-form .button',
999 'button_height' => '{{WRAPPER}} .woocommerce-cart-form .button',
1000 'button_width' => '{{WRAPPER}} .woocommerce-cart-form .button',
1001 'button_text_color_normal' => '{{WRAPPER}} .woocommerce-cart-form .button',
1002 'button_bg_color_normal' => '{{WRAPPER}} .woocommerce-cart-form .button',
1003 'button_border' => '{{WRAPPER}} .woocommerce-cart-form .button',
1004 'button_text_color_hover' => '{{WRAPPER}} .woocommerce-cart-form .button:hover',
1005 'button_bg_color_hover' => '{{WRAPPER}} .woocommerce-cart-form .button:hover',
1006 'button_border_hover_color' => '{{WRAPPER}} .woocommerce-cart-form .button:hover',
1007 'button_border_radius' => '{{WRAPPER}} .woocommerce-cart-form .button',
1008 'button_padding' => '{{WRAPPER}} .woocommerce-cart-form .button',
1009 'button_margin' => '{{WRAPPER}} .woocommerce-cart-form .button',
1010 'coupon_typography' => '{{WRAPPER}} .woocommerce-cart-form .coupon input',
1011 'coupon_input_height' => '{{WRAPPER}} .woocommerce-cart-form .coupon input',
1012 'coupon_input_width' => '{{WRAPPER}} .woocommerce-cart-form .coupon input',
1013 'coupon_padding' => '{{WRAPPER}} .woocommerce-cart-form .coupon input',
1014 'coupon_border_radius' => '{{WRAPPER}} .woocommerce-cart-form .coupon input',
1015 'coupon_input_border' => '{{WRAPPER}} .woocommerce-cart-form .coupon .input-text',
1016 'input_text_color' => '{{WRAPPER}} .woocommerce-cart-form input, {{WRAPPER}} .woocommerce-cart-form input::placeholder',
1017 'input_bg_color' => '{{WRAPPER}} .woocommerce-cart-form input',
1018
1019 'return_shop_button_typography' => '{{WRAPPER}} .return-to-shop .button',
1020 'return_shop_button_height' => '{{WRAPPER}} .return-to-shop .button',
1021 'return_shop_button_text_color_normal' => '{{WRAPPER}} .return-to-shop .button',
1022 'return_shop_button_bg_color_normal' => '{{WRAPPER}} .return-to-shop .button',
1023 'return_shop_button_border' => '{{WRAPPER}} .return-to-shop .button',
1024 'return_shop_button_text_color_hover' => '{{WRAPPER}} .return-to-shop .button:hover',
1025 'return_shop_button_bg_color_hover' => '{{WRAPPER}} .return-to-shop .button:hover',
1026 'return_shop_button_border_hover_color' => '{{WRAPPER}} .return-to-shop .button:hover',
1027 'return_shop_button_border_radius' => '{{WRAPPER}} .return-to-shop .button',
1028 'return_shop_button_padding' => '{{WRAPPER}} .return-to-shop .button',
1029 'return_shop_button_margin' => '{{WRAPPER}} .return-to-shop .button',
1030
1031 'notice_typography' => '{{WRAPPER}} .rtsb-cart-table .wc-block-components-notice-banner',
1032 'notice_padding' => '{{WRAPPER}} .rtsb-cart-table .wc-block-components-notice-banner',
1033 'notice_bg_color' => '{{WRAPPER}} .rtsb-cart-table .wc-block-components-notice-banner',
1034 'notice_text_color' => '{{WRAPPER}} .rtsb-cart-table .wc-block-components-notice-banner',
1035 'notice_border_color' => '{{WRAPPER}} .rtsb-cart-table .wc-block-components-notice-banner',
1036 'icon_color' => '{{WRAPPER}} .rtsb-cart-table .wc-block-components-notice-banner svg',
1037 'notice_icon_size' => '{{WRAPPER}} .rtsb-cart-table .wc-block-components-notice-banner svg',
1038 'icon_bg_color' => '{{WRAPPER}} .rtsb-cart-table .wc-block-components-notice-banner svg',
1039 'icon_margin' => '{{WRAPPER}} .rtsb-cart-table .wc-block-components-notice-banner svg',
1040
1041 'table_thumbnail_width' => '{{WRAPPER}} .shop_table :is( .product-thumbnail, .product-data ) img',
1042 'table_thumbnail_border_radius' => '{{WRAPPER}} .shop_table :is( .product-thumbnail, .product-data ) img',
1043 'table_thumbnail_padding' => '{{WRAPPER}} .shop_table :is( .product-thumbnail, .product-data )',
1044 'cart_remove_icon_size' => '{{WRAPPER}} .woocommerce table.shop_table tbody tr td.product-remove a',
1045 'cart_remove_button_size' => '{{WRAPPER}} .woocommerce table.shop_table tbody tr td.product-remove a',
1046 'cart_icon_color' => '{{WRAPPER}} .woocommerce table.shop_table tbody tr td.product-remove a',
1047 'cart_icon_bg_color' => '{{WRAPPER}} .woocommerce table.shop_table tbody tr td.product-remove a',
1048 'cart_icon_hover_color' => '{{WRAPPER}} .woocommerce table.shop_table tbody tr td.product-remove a:hover',
1049 'cart_icon_hover_bg_color' => '{{WRAPPER}} .woocommerce table.shop_table tbody tr td.product-remove a:hover',
1050 'table_column_header_padding' => '{{WRAPPER}} .woocommerce table.shop_table thead tr th',
1051 'cart_element_alignment' => '#rtsb-builder-content {{WRAPPER}} .woocommerce table.shop_table th, #rtsb-builder-content {{WRAPPER}} .woocommerce table.shop_table td, #rtsb-builder-content {{WRAPPER}} .woocommerce table.shop_table .table-column-wrapper .product-attributes-wrapper .product-attributes li',
1052 'cart_table_border' => '{{WRAPPER}} .woocommerce table.shop_table',
1053
1054 'table_wrapper_margin' => '{{WRAPPER}} .woocommerce :is(table.shop_table, form )',
1055 'element_alignment' => '#rtsb-builder-content {{WRAPPER}} th.product-subtotal, #rtsb-builder-content {{WRAPPER}} td.product-subtotal',
1056 'action_button_padding' => '{{WRAPPER}} .woocommerce :is(table.shop_table, from ) .actions-button-wrapper',
1057
1058 'cart_subtotal_price_typo' => '{{WRAPPER}} .rtsb-cart-table table.shop_table tr td .amount',
1059 'cart_price_color' => '{{WRAPPER}} .rtsb-cart-table table.shop_table tr td .amount',
1060
1061 'cart_title_element_alignment' => '{{WRAPPER}} .rtsb-cart-table table.shop_table tr td:is(.product-name, .product-data), #rtsb-builder-content {{WRAPPER}} .woocommerce table.shop_table .table-column-wrapper .product-attributes-wrapper .product-attributes li',
1062 'cart_product_title_color' => '{{WRAPPER}} .rtsb-cart-table table.shop_table tr td:is(.product-name, .product-data) a',
1063 'cart_product_title_typo' => '{{WRAPPER}} .rtsb-cart-table table.shop_table tr td:is(.product-name, .product-data) a',
1064 'cart_product_title_padding' => '{{WRAPPER}} .rtsb-cart-table table.shop_table tr td:is(.product-name, .product-data) .rtsb-product-content, {{WRAPPER}} .rtsb-cart-table table.shop_table tr th:is(.product-name, .product-data) .table-column-wrapper',
1065
1066 'cart_product_title_meta_typo' => '{{WRAPPER}} .rtsb-cart-table table.shop_table tr td:is(.product-name, .product-data) .product-attributes li',
1067 'cart_product_title_meta_color' => '{{WRAPPER}} .rtsb-cart-table table.shop_table tr td:is(.product-name, .product-data) .product-attributes li',
1068
1069 'cart_subtotal_button_typo' => '{{WRAPPER}} td.product-subtotal .subtotal-action-button-wrapper a',
1070 'cart_subtotal_price_padding' => '{{WRAPPER}} td.product-subtotal .table-column-wrapper .amount',
1071 'cart_subtotal_price_margin' => '{{WRAPPER}} td.product-subtotal .table-column-wrapper .amount',
1072 'cart_subtotal_button_gap' => '{{WRAPPER}} td.product-subtotal .table-column-wrapper .subtotal-action-button-wrapper',
1073 'cart_subtotal_button_wrapper_padding' => '{{WRAPPER}} td.product-subtotal .table-column-wrapper .subtotal-action-button-wrapper',
1074 'cart_subtotal_col_wrapper_padding' => '.rtsb-builder-content {{WRAPPER}} .rtsb-cart-table table.shop_table tbody tr td.product-subtotal',
1075
1076 'table_min_width' => '.rtsb-builder-content {{WRAPPER}} .rtsb-table-horizontal-scroll-on-mobile table.shop_table',
1077 'cart_table_cell_width' => [
1078 'th' => '{{WRAPPER}} .shop_table.cart tr th',
1079 'td' => '{{WRAPPER}} .shop_table.cart tr td',
1080 ],
1081
1082 'clear_cart_button_bg_color' => '{{WRAPPER}} .woocommerce-cart-form .button.rtsb-clear-cart-items',
1083 'clear_cart_button_text_color' => '{{WRAPPER}} .woocommerce-cart-form .button.rtsb-clear-cart-items',
1084 'clear_cart_button_border_color' => '{{WRAPPER}} .woocommerce-cart-form .button.rtsb-clear-cart-items',
1085 'clear_cart_button_bg_color_hover' => '{{WRAPPER}} .woocommerce-cart-form .button.rtsb-clear-cart-items:hover',
1086 'clear_cart_button_text_color_hover' => '{{WRAPPER}} .woocommerce-cart-form .button.rtsb-clear-cart-items:hover',
1087 'clear_cart_button_border_color_hover' => '{{WRAPPER}} .woocommerce-cart-form .button.rtsb-clear-cart-items:hover',
1088
1089 // Table.
1090 'table_row_border' => '.rtsb-builder-content {{WRAPPER}} .rtsb-cart-table table.shop_table :is( thead, tbody ) tr',
1091
1092 'cart_table_header_typography' => '.rtsb-builder-content {{WRAPPER}} .rtsb-cart-table table.shop_table tr th',
1093 'cart_heading_element_alignment' => '#rtsb-builder-content {{WRAPPER}} .woocommerce table.shop_table th',
1094 'cart_table_header_bg_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-cart-table table.shop_table thead',
1095 'cart_table_header_text_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-cart-table table.shop_table tr th',
1096
1097 'cart_table_odd_row_bg_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-cart-table table.shop_table tbody tr:nth-child(odd)',
1098 'cart_table_odd_row_text_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-cart-table table.shop_table tr:nth-child(odd) td',
1099
1100 'cart_table_even_row_bg_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-cart-table table.shop_table tbody tr:nth-child(even)',
1101 'cart_table_even_row_text_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-cart-table table.shop_table tr:nth-child(even) td',
1102
1103 'cart_table_col_padding' => '.rtsb-builder-content {{WRAPPER}} .rtsb-cart-table table.shop_table tbody tr td:not(.product-remove)',
1104 'cart_table_col_attributes_padding' => '{{WRAPPER}} .rtsb-cart-table table.shop_table tbody tr td .product-attributes-wrapper',
1105 'cart_table_row_padding' => '.rtsb-builder-content {{WRAPPER}} .rtsb-cart-table table.shop_table tbody tr',
1106
1107 'cart_link_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-cart-table table.shop_table tr td a',
1108 'cart_link_hover_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-cart-table table.shop_table tr td a:hover',
1109
1110 // Cart Quantity.
1111 'quantity_input_width' => '{{WRAPPER}} .woocommerce-cart-form input.qty',
1112 'quantity_height' => [
1113 'full' => '{{WRAPPER}} .woocommerce-cart-form input[type=number], {{WRAPPER}} .woocommerce-cart-form .rtsb-quantity-box-group:is( .rtsb-quantity-box-group-style-1, .rtsb-quantity-box-group-style-2 ) .rtsb-quantity-btn',
1114 'half' => '{{WRAPPER}} .woocommerce-cart-form .rtsb-quantity-box-group:is( .rtsb-quantity-box-group-style-3, .rtsb-quantity-box-group-style-4 ) .rtsb-quantity-btn',
1115 ],
1116 'quantity_increment_button_padding' => '{{WRAPPER}} .woocommerce-cart-form .rtsb-quantity-box-group .rtsb-quantity-btn.rtsb-quantity-plus',
1117 'quantity_decrement_button_padding' => '{{WRAPPER}} .woocommerce-cart-form .rtsb-quantity-box-group .rtsb-quantity-btn.rtsb-quantity-minus',
1118
1119 'quantity_button_width' => '{{WRAPPER}} .woocommerce-cart-form .rtsb-quantity-box-group .rtsb-quantity-btn',
1120 'icon_size' => [
1121 'icon' => '{{WRAPPER}} .woocommerce-cart-form .rtsb-quantity-box-group .rtsb-quantity-btn',
1122 'svg' => '{{WRAPPER}} .woocommerce-cart-form .rtsb-quantity-box-group .rtsb-quantity-btn svg',
1123 ],
1124 'quantity_icon_color' => '{{WRAPPER}} .woocommerce-cart-form .quantity :is(i, svg)',
1125 'quantity_icon_hover_color' => '{{WRAPPER}} .woocommerce-cart-form .quantity .rtsb-quantity-btn:hover :is(i, svg)',
1126 'text_typography' => '{{WRAPPER}} .woocommerce-cart-form .quantity input',
1127 'quantity_number_color' => '{{WRAPPER}} .woocommerce-cart-form .quantity input',
1128 'quantity_background_color' => '{{WRAPPER}} .woocommerce-cart-form .quantity input',
1129 'quantity_border' => '{{WRAPPER}} .woocommerce-cart-form .quantity input',
1130 'quantity_radius' => '{{WRAPPER}} .woocommerce-cart-form .quantity input',
1131 'qunatity_padding' => '{{WRAPPER}} .woocommerce-cart-form .quantity input',
1132 'quantity_wrapper_background_color' => '{{WRAPPER}} .woocommerce-cart-form .quantity .rtsb-quantity-box-group',
1133 'qunatity_wrapper_padding' => '{{WRAPPER}} .woocommerce-cart-form .quantity .rtsb-quantity-box-group',
1134 'quantity_wrapper_radius' => '{{WRAPPER}} .woocommerce-cart-form .quantity .rtsb-quantity-box-group',
1135 ],
1136 ];
1137
1138 return apply_filters( 'rtsb/elements/elementor/widget/cart/selectors', $selectors );
1139 }
1140
1141 /**
1142 * Checkout Selectors.
1143 *
1144 * @return array
1145 */
1146 private static function checkout_widget_selectors(): array {
1147 $selectors = [
1148 'rtsb-billing-form' => [
1149 // Title.
1150 'show_title' => '{{WRAPPER}} .woocommerce-billing-fields h3',
1151 'title_typo' => '{{WRAPPER}} .woocommerce-billing-fields h3',
1152 'title_align' => '{{WRAPPER}} .woocommerce-billing-fields h3',
1153 'title_color' => '{{WRAPPER}} .woocommerce-billing-fields h3',
1154 'title_text_stroke' => '{{WRAPPER}} .woocommerce-billing-fields h3',
1155 'title_text_shadow' => '{{WRAPPER}} .woocommerce-billing-fields h3',
1156 'title_margin' => '{{WRAPPER}} .woocommerce-billing-fields h3',
1157 'title_padding' => '{{WRAPPER}} .woocommerce-billing-fields h3',
1158 'title_border' => '{{WRAPPER}} .woocommerce-billing-fields h3',
1159 // Label.
1160 'fields_label_typo' => '{{WRAPPER}} .woocommerce-billing-fields label',
1161 'fields_label_color' => '{{WRAPPER}} .woocommerce-billing-fields label',
1162 'fields_label_reguired_color' => '{{WRAPPER}} .woocommerce-billing-fields label .required',
1163 'fields_label_margin' => '{{WRAPPER}} .woocommerce-billing-fields label:not(.radio)',
1164
1165 // Input Fields.
1166 'textarea_fields_height' => '{{WRAPPER}} .woocommerce-billing-fields textarea',
1167 'fields_height' => '{{WRAPPER}} .woocommerce-billing-fields input:not([type=checkbox],[type=radio]), {{WRAPPER}} .rtsb-form-billing .select2-selection--single, {{WRAPPER}} .woocommerce-billing-fields select',
1168 'fields_border' => '{{WRAPPER}} .woocommerce-billing-fields :is(input, textarea), {{WRAPPER}} .woocommerce-billing-fields .select2-selection--single, {{WRAPPER}} .woocommerce-billing-fields select',
1169
1170 'fields_border_radius' => '{{WRAPPER}} .woocommerce-billing-fields :is(input, textarea):not([type=checkbox],[type=radio]), {{WRAPPER}} .woocommerce-billing-fields .select2-selection--single, {{WRAPPER}} .woocommerce-billing-fields select',
1171
1172 'fields_text_color' => '{{WRAPPER}} .woocommerce-billing-fields :is(input, textarea):not([type=checkbox],[type=radio]), {{WRAPPER}} .woocommerce-billing-fields .select2-selection--single, {{WRAPPER}} .woocommerce-billing-fields select',
1173 'fields_bg_color' => '{{WRAPPER}} .woocommerce-billing-fields :is(input, textarea):not([type=checkbox],[type=radio]), {{WRAPPER}} .woocommerce-billing-fields .select2-selection--single, {{WRAPPER}} .woocommerce-billing-fields select',
1174
1175 // Hover.
1176 'fields_hover_border' => '{{WRAPPER}} .woocommerce-billing-fields :is(input, textarea):not([type=checkbox],[type=radio]):is(:hover, :focus, :active), {{WRAPPER}} .woocommerce-billing-fields .select2-container--open .select2-selection--single, {{WRAPPER}} .woocommerce-billing-fields select:is(:hover, :focus, :active,:focus-visible)',
1177
1178 'fields_border_radius_hover' => '{{WRAPPER}} .woocommerce-billing-fields :is(input, textarea):not([type=checkbox],[type=radio]):is(:hover, :focus, :active), {{WRAPPER}} .woocommerce-billing-fields .select2-container--open .select2-selection--single, {{WRAPPER}} .woocommerce-billing-fields select:is(:hover, :focus, :active,:focus-visible)',
1179
1180 'fields_hover_text_color' => '{{WRAPPER}} .woocommerce-billing-fields :is(input, textarea):not([type=checkbox],[type=radio]):is(:hover, :focus, :active), {{WRAPPER}} , {{WRAPPER}} .woocommerce-billing-fields .select2-container--open .select2-selection--single',
1181 'fields_hover_bg_color' => '{{WRAPPER}} .woocommerce-billing-fields :is(input, textarea):not([type=checkbox],[type=radio]):is(:hover, :focus, :active), {{WRAPPER}} .woocommerce-billing-fields .select2-container--open .select2-selection--single',
1182 'fields_padding' => '{{WRAPPER}} .woocommerce-billing-fields :is(input, textarea):not([type=checkbox],[type=radio]),{{WRAPPER}} .rtsb-form-billing .select2-container--default .select2-selection--single, {{WRAPPER}} .woocommerce-billing-fields :is( select, .select2-selection--single )',
1183
1184 'form_row_margin' => '{{WRAPPER}} .woocommerce-billing-fields p.form-row',
1185 'form_wrapper_margin' => '{{WRAPPER}} .woocommerce-billing-fields .woocommerce-billing-fields__field-wrapper',
1186
1187 ],
1188 'rtsb-shipping-form' => [
1189 // Label.
1190 'form_heading_gap' => '{{WRAPPER}} .rtsb-form-shipping #ship-to-different-address',
1191 'form_heading_color' => '{{WRAPPER}} .rtsb-form-shipping #ship-to-different-address',
1192 'form_heading_typo' => '{{WRAPPER}} .rtsb-form-shipping #ship-to-different-address',
1193
1194 'fields_label_typo' => '{{WRAPPER}} .rtsb-form-shipping .shipping_address label',
1195 'fields_label_color' => '{{WRAPPER}} .rtsb-form-shipping .shipping_address label',
1196 'fields_label_reguired_color' => '{{WRAPPER}} .rtsb-form-shipping .shipping_address label .required',
1197 'fields_label_margin' => '{{WRAPPER}} .rtsb-form-shipping .shipping_address label:not(.radio)',
1198
1199 // Input Fields.
1200 'textarea_fields_height' => '{{WRAPPER}} .rtsb-form-shipping textarea',
1201 'fields_height' => '{{WRAPPER}} .rtsb-form-shipping input:not([type=checkbox],[type=radio]), {{WRAPPER}} .rtsb-form-shipping .select2-selection--single, {{WRAPPER}} .rtsb-form-shipping select',
1202 'fields_border' => '{{WRAPPER}} .rtsb-form-shipping :is( input:not([type=checkbox],[type=radio]), textarea ), {{WRAPPER}} .rtsb-form-shipping .select2-selection--single, {{WRAPPER}} .rtsb-form-shipping select',
1203
1204 'fields_border_radius' => '{{WRAPPER}} .rtsb-form-shipping :is( input:not([type=checkbox],[type=radio]), textarea ), {{WRAPPER}} .rtsb-form-shipping .select2-selection--single, {{WRAPPER}} .rtsb-form-shipping select',
1205
1206 'fields_text_color' => '{{WRAPPER}} .rtsb-form-shipping :is( input:not([type=checkbox],[type=radio]), textarea ), {{WRAPPER}} .rtsb-form-shipping .select2-selection--single, {{WRAPPER}} .rtsb-form-shipping select',
1207 'fields_bg_color' => '{{WRAPPER}} .rtsb-form-shipping :is( input:not([type=checkbox],[type=radio]), textarea ), {{WRAPPER}} .rtsb-form-shipping .select2-selection--single, {{WRAPPER}} .rtsb-form-shipping select',
1208
1209 // Hover.
1210 'fields_hover_border' => '{{WRAPPER}} .rtsb-form-shipping :is( input:not([type=checkbox],[type=radio]), textarea ):is(:hover, :focus, :active), {{WRAPPER}} .rtsb-form-shipping .select2-container--open .select2-selection--single, {{WRAPPER}} .rtsb-form-shipping select:is(:hover, :focus, :active,:focus-visible)',
1211
1212 'fields_border_radius_hover' => '{{WRAPPER}} .rtsb-form-shipping :is( input:not([type=checkbox],[type=radio]), textarea ):is(:hover, :focus, :active), {{WRAPPER}} .rtsb-form-shipping .select2-container--open .select2-selection--single, {{WRAPPER}} .rtsb-form-shipping select:is(:hover, :focus, :active,:focus-visible)',
1213
1214 'fields_hover_text_color' => '{{WRAPPER}} .rtsb-form-shipping :is( input:not([type=checkbox],[type=radio]), textarea ):is(:hover, :focus, :active), {{WRAPPER}} , {{WRAPPER}} .rtsb-form-shipping .select2-container--open .select2-selection--single',
1215 'fields_hover_bg_color' => '{{WRAPPER}} .rtsb-form-shipping :is( input:not([type=checkbox],[type=radio]), textarea ):is(:hover, :focus, :active), {{WRAPPER}} .rtsb-form-shipping .select2-container--open .select2-selection--single',
1216 'fields_padding' => '{{WRAPPER}} .rtsb-form-shipping :is( input:not([type=checkbox],[type=radio]), textarea ),{{WRAPPER}} .rtsb-form-billing .select2-container--default .select2-selection--single, {{WRAPPER}} .rtsb-form-shipping :is( select, .select2-selection--single )',
1217 'form_row_margin' => '{{WRAPPER}} .rtsb-form-shipping p.form-row',
1218 'form_wrapper_margin' => '{{WRAPPER}} .rtsb-form-shipping .shipping_address',
1219
1220 ],
1221 'rtsb-order-notes' => [
1222 'show_title' => '{{WRAPPER}} .rtsb-form-order-note h3',
1223 'title_typo' => '{{WRAPPER}} .rtsb-form-order-note h3',
1224 'title_align' => '{{WRAPPER}} .rtsb-form-order-note h3',
1225 'title_color' => '{{WRAPPER}} .rtsb-form-order-note h3',
1226 'title_text_stroke' => '{{WRAPPER}} .rtsb-form-order-note h3',
1227 'title_text_shadow' => '{{WRAPPER}} .rtsb-form-order-note h3',
1228 'title_margin' => '{{WRAPPER}} .rtsb-form-order-note h3',
1229 'title_padding' => '{{WRAPPER}} .rtsb-form-order-note h3',
1230 'title_border' => '{{WRAPPER}} .rtsb-form-order-note h3',
1231
1232 'fields_label_typo' => '{{WRAPPER}} .rtsb-form-order-note label',
1233 'fields_label_color' => '{{WRAPPER}} .rtsb-form-order-note label',
1234 'fields_label_reguired_color' => '{{WRAPPER}} .rtsb-form-order-note label .required',
1235 'fields_label_margin' => '{{WRAPPER}} .rtsb-form-order-note label:not(.radio)',
1236
1237 // Input Fields.
1238 'textarea_fields_height' => '{{WRAPPER}} .rtsb-form-order-note textarea',
1239 'fields_height' => '{{WRAPPER}} .rtsb-form-order-note input:not([type=checkbox],[type=radio]), {{WRAPPER}} .rtsb-form-order-note .select2-selection--single, {{WRAPPER}} .rtsb-form-order-note select',
1240 'fields_border' => '{{WRAPPER}} .rtsb-form-order-note :is( textarea, input, select, .select2-selection--multiple )',
1241 'fields_border_radius' => '{{WRAPPER}} .rtsb-form-order-note :is( input:not([type=checkbox],[type=radio]), textarea )',
1242 'fields_text_color' => '{{WRAPPER}} .rtsb-form-order-note :is( textarea, input, select, .select2-selection--multiple )',
1243 'fields_bg_color' => '{{WRAPPER}} .rtsb-form-order-note :is( textarea, input, select, .select2-selection--multiple )',
1244
1245 // Hover.
1246 'fields_hover_border' => '{{WRAPPER}} .rtsb-form-order-note :is( input:not([type=checkbox],[type=radio]), textarea ):is(:hover, :focus, :active)',
1247
1248 'fields_border_radius_hover' => '{{WRAPPER}} .rtsb-form-order-note :is( input:not([type=checkbox],[type=radio]), textarea ):is(:hover, :focus, :active)',
1249 'fields_hover_text_color' => '{{WRAPPER}} .rtsb-form-order-note :is( input:not([type=checkbox],[type=radio]), textarea ):is(:hover, :focus, :active)',
1250 'fields_hover_bg_color' => '{{WRAPPER}} .rtsb-form-order-note :is( input:not([type=checkbox],[type=radio]), textarea ):is(:hover, :focus, :active)',
1251
1252 'fields_padding' => '{{WRAPPER}} .rtsb-form-order-note :is( input:not([type=checkbox],[type=radio]), textarea )',
1253 'form_row_margin' => '{{WRAPPER}} .rtsb-form-order-note .woocommerce-input-wrapper',
1254 'form_wrapper_margin' => '{{WRAPPER}} .rtsb-form-order-note .woocommerce-input-wrapper',
1255
1256 ],
1257
1258 'rtsb-order-review' => [
1259 // Title.
1260 'show_title' => '#rtsb-builder-content {{WRAPPER}} .rtsb-checkout-order-review #order_review_heading',
1261 'table_min_width' => '.rtsb-builder-content {{WRAPPER}} .rtsb-table-horizontal-scroll-on-mobile table.shop_table',
1262 'title_typo' => '#rtsb-builder-content {{WRAPPER}} .rtsb-checkout-order-review #order_review_heading',
1263 'title_align' => '#rtsb-builder-content {{WRAPPER}} .rtsb-checkout-order-review #order_review_heading',
1264 'title_color' => '#rtsb-builder-content {{WRAPPER}} .rtsb-checkout-order-review #order_review_heading',
1265 'title_text_stroke' => '#rtsb-builder-content {{WRAPPER}} .rtsb-checkout-order-review #order_review_heading',
1266 'title_text_shadow' => '#rtsb-builder-content {{WRAPPER}} .rtsb-checkout-order-review #order_review_heading',
1267 'title_margin' => '#rtsb-builder-content {{WRAPPER}} .rtsb-checkout-order-review #order_review_heading',
1268 'title_padding' => '#rtsb-builder-content {{WRAPPER}} .rtsb-checkout-order-review #order_review_heading',
1269 'title_border' => '#rtsb-builder-content {{WRAPPER}} .rtsb-checkout-order-review #order_review_heading',
1270 'table_wrapper_border' => '#rtsb-builder-content {{WRAPPER}} #order_review',
1271 'table_wrapper_padding' => '#rtsb-builder-content {{WRAPPER}} #order_review',
1272 'table_wrapper_margin' => '#rtsb-builder-content {{WRAPPER}} #order_review',
1273 'table_border' => '{{WRAPPER}} #order_review table :is( td, th )',
1274 'label_typo' => '{{WRAPPER}} #order_review thead th',
1275 'label_color' => '{{WRAPPER}} #order_review thead th',
1276 'label_bg_color' => '{{WRAPPER}} #order_review thead th',
1277 'label_item_padding' => '{{WRAPPER}} #order_review thead th',
1278 // Table Body.
1279 'body_text_typo' => '{{WRAPPER}} #order_review tbody td',
1280 'body_text_color' => '{{WRAPPER}} #order_review tbody td',
1281 'body_item_padding' => '{{WRAPPER}} #order_review tbody td',
1282 'table_body_bg_color' => '{{WRAPPER}} #order_review tbody td',
1283 // Counter.
1284 'counter_text_color' => '{{WRAPPER}} .product-quantity',
1285 'counter_style' => '{{WRAPPER}} .product-quantity',
1286 // Quantity selector.
1287 'qty_align' => '{{WRAPPER}} .rtsb-order-review-quantity',
1288 'qty_wrapper_margin' => '{{WRAPPER}} .rtsb-order-review-quantity',
1289 'qty_box_border' => '{{WRAPPER}} .rtsb-order-review-quantity .rtsb-order-qty-group',
1290 'qty_box_radius' => '{{WRAPPER}} .rtsb-order-review-quantity .rtsb-order-qty-group',
1291 'qty_box_bg_color' => '{{WRAPPER}} .rtsb-order-review-quantity .rtsb-order-qty-group',
1292 'qty_box_height' => '{{WRAPPER}} .rtsb-order-review-quantity :is( .rtsb-order-qty-btn, .rtsb-order-qty-input )',
1293 'qty_input_width' => '{{WRAPPER}} .rtsb-order-review-quantity .rtsb-order-qty-input',
1294 'qty_input_typo' => '{{WRAPPER}} .rtsb-order-review-quantity .rtsb-order-qty-input',
1295 'qty_input_color' => '{{WRAPPER}} .rtsb-order-review-quantity .rtsb-order-qty-input',
1296 'qty_input_bg_color' => '{{WRAPPER}} .rtsb-order-review-quantity .rtsb-order-qty-input',
1297 'qty_input_border_color' => '{{WRAPPER}} .rtsb-order-review-quantity .rtsb-order-qty-input',
1298 'qty_btn_width' => '{{WRAPPER}} .rtsb-order-review-quantity .rtsb-order-qty-btn',
1299 'qty_icon_size' => '{{WRAPPER}} .rtsb-order-review-quantity .rtsb-order-qty-btn svg',
1300 'qty_btn_color' => '{{WRAPPER}} .rtsb-order-review-quantity .rtsb-order-qty-btn',
1301 'qty_btn_bg_color' => '{{WRAPPER}} .rtsb-order-review-quantity .rtsb-order-qty-btn',
1302 'qty_btn_hover_color' => '{{WRAPPER}} .rtsb-order-review-quantity .rtsb-order-qty-btn:hover',
1303 'qty_btn_hover_bg_color' => '{{WRAPPER}} .rtsb-order-review-quantity .rtsb-order-qty-btn:hover',
1304 // Table Footer.
1305 'table_footer_label_typo' => '{{WRAPPER}} #order_review tfoot :is( th, td )',
1306 'table_footer_label_color' => '{{WRAPPER}} #order_review tfoot th',
1307 'table_footer_text_color' => '{{WRAPPER}} #order_review tfoot td',
1308 'table_footer_label_bg_color' => '{{WRAPPER}} #order_review tfoot :is( th, td )',
1309 'table_footer_item_padding' => '{{WRAPPER}} #order_review tfoot td, {{WRAPPER}} #order_review tfoot th',
1310
1311 ],
1312 'rtsb-checkout-payment' => [
1313 'payment_method_wrapper_bg_color' => '{{WRAPPER}} #payment ul.payment_methods',
1314 'payment_link_color' => '{{WRAPPER}} .rtsb-checkout-payment a',
1315 'payment_link_hover_color' => '{{WRAPPER}} .rtsb-checkout-payment a:hover',
1316
1317 'payment_label_typography' => '{{WRAPPER}} .rtsb-checkout-payment .wc_payment_method label',
1318 'payment_label_color' => '{{WRAPPER}} .rtsb-checkout-payment .wc_payment_method label, {{WRAPPER}} #payment .payment_methods li input[type=radio]:first-child+label:before',
1319 'payment_label_active_hover_color' => '{{WRAPPER}} .rtsb-checkout-payment .wc_payment_method label:hover, {{WRAPPER}} #payment .payment_methods li input[type=radio]:first-child:checked+label:before, {{WRAPPER}} #payment .payment_methods li input[type=radio]:first-child:checked+label',
1320 'payment_label_bg_color' => '{{WRAPPER}} .rtsb-checkout-payment .wc_payment_method label',
1321 'payment_method_space_between' => '{{WRAPPER}} #payment ul.payment_methods li input',
1322 'payment_method_bacs_padding' => '{{WRAPPER}} .rtsb-checkout-payment #payment .payment_methods>.woocommerce-PaymentMethod>label,{{WRAPPER}} .rtsb-checkout-payment #payment .payment_methods>.wc_payment_method>label',
1323 'payment_method_wrap_padding' => '{{WRAPPER}} #payment ul.payment_methods',
1324 'payment_method_bacs_margin' => '{{WRAPPER}} .rtsb-checkout-payment #payment .payment_methods>.woocommerce-PaymentMethod>label,{{WRAPPER}} .rtsb-checkout-payment #payment .payment_methods>.wc_payment_method>label',
1325
1326 'payment_description_typography' => '{{WRAPPER}} .rtsb-checkout-payment p',
1327 'payment_description_text_color' => '{{WRAPPER}} .rtsb-checkout-payment p',
1328 'payment_description_bg_color' => '{{WRAPPER}} .rtsb-checkout-payment #payment .payment_methods > li .payment_box',
1329 'payment_description_border' => '{{WRAPPER}} .rtsb-checkout-payment #payment ul.payment_methods',
1330 'payment_method_desc_padding' => '{{WRAPPER}} .rtsb-checkout-payment #payment .payment_methods li .payment_box',
1331 'payment_method_desc_margin' => '{{WRAPPER}} .rtsb-checkout-payment #payment .payment_methods li .payment_box',
1332
1333 'payment_button_description_typography' => '{{WRAPPER}} .rtsb-checkout-payment #payment .place-order p',
1334 'payment_button_description_text_color' => '{{WRAPPER}} .rtsb-checkout-payment #payment .place-order p',
1335 'payment_button_description_bg_color' => '{{WRAPPER}} .rtsb-checkout-payment #payment .place-order',
1336 'payment_button_wrapper_padding' => '{{WRAPPER}} .rtsb-checkout-payment #payment .place-order',
1337 'payment_button_wrapper_margin' => '{{WRAPPER}} .rtsb-checkout-payment #payment .place-order',
1338
1339 // Button section.
1340 'button_height' => '{{WRAPPER}} .rtsb-checkout-payment #place_order',
1341 'button_width' => '{{WRAPPER}} .rtsb-checkout-payment #place_order',
1342 'button_typography' => '{{WRAPPER}} .rtsb-checkout-payment #place_order',
1343 'submit_button_alignment' => [
1344 'text-align' => '{{WRAPPER}} .rtsb-checkout-payment #place_order',
1345 'float' => '{{WRAPPER}} .rtsb-checkout-payment #place_order',
1346 ],
1347 'button_text_color_normal' => '{{WRAPPER}} .rtsb-checkout-payment #place_order',
1348 'button_bg_color_normal' => '{{WRAPPER}} .rtsb-checkout-payment #place_order',
1349 'button_border' => '{{WRAPPER}} .rtsb-checkout-payment #place_order',
1350 'button_text_color_hover' => '{{WRAPPER}} .rtsb-checkout-payment #place_order:hover',
1351 'button_bg_color_hover' => '{{WRAPPER}} .rtsb-checkout-payment #place_order:hover',
1352 'button_border_hover_color' => '{{WRAPPER}} .rtsb-checkout-payment #place_order:hover',
1353 'button_border_radius' => '{{WRAPPER}} .rtsb-checkout-payment #place_order',
1354 'button_padding' => '{{WRAPPER}} .rtsb-checkout-payment #place_order',
1355 'button_margin' => '{{WRAPPER}} .rtsb-checkout-payment #place_order',
1356 ],
1357 'rtsb-coupon-form' => array_merge(
1358 self::button_settings_selector(),
1359 [
1360 'typo' => '{{WRAPPER}} p',
1361 'align' => '{{WRAPPER}} p',
1362 'text_color' => '{{WRAPPER}} p',
1363 'text_shadow' => '{{WRAPPER}} p',
1364 'text_margin' => '{{WRAPPER}} p',
1365
1366 // Input Fields.
1367 'fields_height' => '{{WRAPPER}} .rtsb-checkout-coupon-form input.input-text',
1368 'fields_border' => '{{WRAPPER}} .rtsb-checkout-coupon-form input.input-text',
1369 'fields_text_color' => '{{WRAPPER}} .rtsb-checkout-coupon-form input.input-text',
1370 'fields_bg_color' => '{{WRAPPER}} .rtsb-checkout-coupon-form input.input-text',
1371 'form_fields_border_radius' => '{{WRAPPER}} .rtsb-checkout-coupon-form input.input-text',
1372
1373 // Hover.
1374 'fields_hover_border' => '{{WRAPPER}} .rtsb-checkout-coupon-form input.input-text:is(:hover, :focus, :active)',
1375 'fields_hover_text_color' => '{{WRAPPER}} .rtsb-checkout-coupon-form input.input-text:is(:hover, :focus, :active)',
1376 'fields_hover_bg_color' => '{{WRAPPER}} .rtsb-checkout-coupon-form input.input-text:is(:hover, :focus, :active)',
1377 'form_fields_border_radius_hover' => '{{WRAPPER}} .rtsb-checkout-coupon-form input.input-text:is(:hover, :focus, :active)',
1378
1379 'fields_padding' => '{{WRAPPER}} .rtsb-checkout-coupon-form input.input-text',
1380 'fields_gap' => '{{WRAPPER}} .rtsb-checkout-coupon-form .coupon-form-fields',
1381
1382 'infobox_typography' => '{{WRAPPER}} .rtsb-checkout-coupon-form :is(.woocommerce-info, .wc-block-components-notice-banner__content )',
1383 'infobox_bg_color' => '{{WRAPPER}} .rtsb-checkout-coupon-form :is(.woocommerce-info, .wc-block-components-notice-banner )',
1384 'infobox_text_color' => '{{WRAPPER}} .rtsb-checkout-coupon-form :is(.woocommerce-info, .wc-block-components-notice-banner__content )',
1385
1386 'infobox_text_link_color' => '{{WRAPPER}} .rtsb-checkout-coupon-form a',
1387 'infobox_border_color' => '{{WRAPPER}} .rtsb-checkout-coupon-form :is(.woocommerce-info, .wc-block-components-notice-banner ) ',
1388 'infobox_icon_size' => [
1389 'icon' => '{{WRAPPER}} :is( .woocommerce-info::before, .woocommerce-info i), {{WRAPPER}} .wc-block-components-notice-banner__content i',
1390 'svg' => '{{WRAPPER}} :is( .woocommerce-info svg, .wc-block-components-notice-banner__content svg )',
1391 ],
1392
1393 'infobox_icon_margin' => '{{WRAPPER}} .woocommerce-info::before, {{WRAPPER}} .woocommerce-info :is( i, svg ), {{WRAPPER}} .wc-block-components-notice-banner__content :is( i, svg ) ',
1394
1395 'infobox_icon_color' => '{{WRAPPER}} :is( .woocommerce-info::before, .woocommerce-info i, .woocommerce-info svg ), {{WRAPPER}} :is( .wc-block-components-notice-banner__content svg, .wc-block-components-notice-banner__content i )',
1396
1397 'infobox_wrapper_border' => '{{WRAPPER}} .rtsb-checkout-coupon-form ',
1398 'infobox_border_radius' => '{{WRAPPER}} .rtsb-checkout-coupon-form .wc-block-components-notice-banner',
1399 'infobox_padding' => '{{WRAPPER}} .rtsb-checkout-coupon-form :is( .woocommerce-info, .wc-block-components-notice-banner__content )',
1400 'form_margin' => '{{WRAPPER}} .rtsb-checkout-coupon-form .coupon-form-fields',
1401 'form_area_padding' => '{{WRAPPER}} .rtsb-checkout-coupon-form .woocommerce-form-coupon',
1402 'form_area_margin' => '{{WRAPPER}} .rtsb-checkout-coupon-form .woocommerce-form-coupon',
1403
1404 'form_area_wrapper_border' => '{{WRAPPER}} .rtsb-checkout-coupon-form .woocommerce-form-coupon',
1405 'form_area_border_radius' => '{{WRAPPER}} .rtsb-checkout-coupon-form .woocommerce-form-coupon',
1406
1407 ]
1408 ),
1409 'rtsb-checkout-login-form' => array_merge(
1410 self::button_settings_selector(),
1411 [
1412 'typo' => '{{WRAPPER}} p',
1413 'align' => '{{WRAPPER}} p',
1414 'text_color' => '{{WRAPPER}} p',
1415 'text_shadow' => '{{WRAPPER}} p',
1416 'text_margin' => '{{WRAPPER}} p',
1417
1418 // Input Fields.
1419 'fields_height' => '{{WRAPPER}} input.input-text',
1420 'fields_border' => '{{WRAPPER}} input.input-text',
1421 'form_fields_border_radius' => '{{WRAPPER}} input.input-text',
1422 'fields_text_color' => '{{WRAPPER}} input.input-text',
1423 'fields_bg_color' => '{{WRAPPER}} input.input-text',
1424
1425 // Hover.
1426 'fields_hover_border' => '{{WRAPPER}} input.input-text:is(:hover, :focus, :active)',
1427 'form_fields_border_radius_hover' => '{{WRAPPER}} input.input-text:is(:hover, :focus, :active)',
1428 'fields_hover_text_color' => '{{WRAPPER}} input.input-text:is(:hover, :focus, :active)',
1429 'fields_hover_bg_color' => '{{WRAPPER}} input.input-text:is(:hover, :focus, :active)',
1430
1431 'fields_padding' => '{{WRAPPER}} .rtsb-checkout-login-form input.input-text',
1432 'fields_gap' => '{{WRAPPER}} .rtsb-checkout-login-form .login-form-fields',
1433 'label_gap' => '{{WRAPPER}} .rtsb-checkout-login-form .field-wrapper label',
1434 // Info Box.
1435 'infobox_typography' => '{{WRAPPER}} .rtsb-checkout-login-form :is(.woocommerce-info, .wc-block-components-notice-banner__content )',
1436 'infobox_bg_color' => '{{WRAPPER}} .rtsb-checkout-login-form :is(.woocommerce-info, .wc-block-components-notice-banner.is-info )',
1437 'infobox_text_color' => '{{WRAPPER}} .rtsb-checkout-login-form :is(.woocommerce-info, .wc-block-components-notice-banner__content )',
1438
1439 'infobox_text_link_color' => '{{WRAPPER}} .rtsb-checkout-login-form a',
1440
1441 'infobox_border_color' => '{{WRAPPER}} .rtsb-checkout-login-form :is(.woocommerce-info, .wc-block-components-notice-banner.is-info )',
1442 'infobox_icon_size' => [
1443 'icon' => '{{WRAPPER}} :is( .woocommerce-info::before, .woocommerce-info i), {{WRAPPER}} .wc-block-components-notice-banner__content i',
1444 'svg' => '{{WRAPPER}} :is( .woocommerce-info svg, .wc-block-components-notice-banner__content svg )',
1445 ],
1446
1447 'infobox_icon_margin' => '{{WRAPPER}} .woocommerce-info::before, {{WRAPPER}} .woocommerce-info :is( i, svg ), {{WRAPPER}} .wc-block-components-notice-banner :is( i, svg ) ',
1448
1449 'infobox_icon_color' => '{{WRAPPER}} :is( .woocommerce-info::before, .woocommerce-info i, .woocommerce-info svg ), {{WRAPPER}} :is( .wc-block-components-notice-banner svg, .wc-block-components-notice-banner i )',
1450
1451 'infobox_wrapper_border' => '{{WRAPPER}} .rtsb-checkout-login-form',
1452 'infobox_border_radius' => '{{WRAPPER}} .rtsb-checkout-login-form .wc-block-components-notice-banner',
1453 'infobox_padding' => '{{WRAPPER}} .rtsb-checkout-login-form :is( .woocommerce-info, .wc-block-components-notice-banner__content ) ',
1454 'form_margin' => '{{WRAPPER}} .rtsb-checkout-login-form .login-form-fields',
1455 'form_area_padding' => '{{WRAPPER}} .rtsb-checkout-login-form .woocommerce-form-login',
1456 'form_area_margin' => '{{WRAPPER}} .rtsb-checkout-login-form .woocommerce-form-login',
1457 'form_area_wrapper_border' => '{{WRAPPER}} .rtsb-checkout-login-form .woocommerce-form-login',
1458 'form_area_border_radius' => '{{WRAPPER}} .rtsb-checkout-login-form .woocommerce-form-login',
1459
1460 ]
1461 ),
1462 'rtsb-shipping-method' => [
1463
1464 // General.
1465 'general_cart_table_border' => '{{WRAPPER}} .rtsb_woocommerce_shipping_methods :is( td )',
1466 'general_cart_table_bg' => '{{WRAPPER}} .rtsb_woocommerce_shipping_methods :is( td )',
1467 'general_table_padding' => '{{WRAPPER}} .rtsb_woocommerce_shipping_methods :is( td )',
1468
1469 // Title.
1470 'show_title' => '{{WRAPPER}} .rtsb-shipping-method .shipping-method-title',
1471 'title_typo' => '{{WRAPPER}} .rtsb-shipping-method .shipping-method-title',
1472 'title_align' => '{{WRAPPER}} .rtsb-shipping-method .shipping-method-title',
1473 'title_color' => '{{WRAPPER}} .rtsb-shipping-method .shipping-method-title',
1474 'title_text_stroke' => '{{WRAPPER}} .rtsb-shipping-method .shipping-method-title',
1475 'title_text_shadow' => '{{WRAPPER}} .rtsb-shipping-method .shipping-method-title',
1476 'title_margin' => '{{WRAPPER}} .rtsb-shipping-method .shipping-method-title',
1477 'title_padding' => '{{WRAPPER}} .rtsb-shipping-method .shipping-method-title',
1478 'title_border' => '{{WRAPPER}} .rtsb-shipping-method .shipping-method-title',
1479 // Label.
1480 'label_title_typo' => '{{WRAPPER}} .rtsb-shipping-method .woocommerce-shipping-methods label',
1481 'label_title_color' => '{{WRAPPER}} .rtsb-shipping-method .woocommerce-shipping-methods label',
1482 'label_space_between' => '{{WRAPPER}} .woocommerce .rtsb-builder-content ul#shipping_method li',
1483 'label_item_space' => '{{WRAPPER}} .woocommerce .rtsb-builder-content ul#shipping_method',
1484 ],
1485 ];
1486
1487 return apply_filters( 'rtsb/elements/elementor/widget/checkout/selectors', $selectors );
1488 }
1489
1490 /**
1491 * Common CSS Selectors.
1492 *
1493 * @return array
1494 */
1495 private static function general_common_selectors(): array {
1496 return apply_filters(
1497 'rtsb/elementor/common_selectors',
1498 [
1499 'columns' => [
1500 'cols' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-row',
1501 'masonry' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-row.rtsb-masonry',
1502 'list_cols' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-row[class*="list-layout"]',
1503 'list_masonry' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-row[class*="list-layout"].rtsb-masonry',
1504 'grid_gap' => [
1505 'padding' => '{{WRAPPER}} .rtsb-elementor-container [class*=rtsb-col-]',
1506 'margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-row',
1507 'slider_layout3' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-slider-layout3',
1508 'slider_layout9' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-slider-layout9',
1509 ],
1510 'image_width' => [
1511 'image' => '{{WRAPPER}} .rtsb-product .rtsb-list-item .rtsb-product-img, {{WRAPPER}} .rtsb-elementor-container .rtsb-list-layout6 .rtsb-content-left',
1512 ],
1513 'v_action_btn_width' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-list-layout3 .rtsb-product .rtsb-action-buttons.after-content',
1514 'image_gap' => '{{WRAPPER}} .rtsb-product .rtsb-list-item,{{WRAPPER}} .rtsb-elementor-container .rtsb-list-layout6 .rtsb-product .rtsb-list-item .rtsb-product-content',
1515 'grid_alignment' => [
1516 'text_align' => '{{WRAPPER}} .rtsb-elementor-container, {{WRAPPER}} .rtsb-elementor-container .rtsb-grid-layout3 .rtsb-product-content, {{WRAPPER}} .rtsb-elementor-container .rtsb-grid-layout4 .rtsb-product-content',
1517 'justify_content' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-category, {{WRAPPER}} .rtsb-elementor-container .rtsb-category-list, {{WRAPPER}} .rtsb-elementor-container .price-wrapper, {{WRAPPER}} .rtsb-elementor-container [class*=list-layout] .rtsb-product-category, {{WRAPPER}} .rtsb-elementor-container .rtwpvs-archive-variation-wrapper, {{WRAPPER}} .rtsb-elementor-container .product-rating, {{WRAPPER}} .rtsb-elementor-container .category-title-with-count, {{WRAPPER}} .rtsb-elementor-container .rtsb-grid-layout3 .rtsb-product-content .rtsb-product-category,{{WRAPPER}} .rtsb-elementor-container .rtsb-grid-layout4 .rtsb-product-content .rtsb-product-category,{{WRAPPER}} .rtsb-grid-layout4 .rtsb-content-footer.show-cart-text .rtsb-action-button-list',
1518 ],
1519 ],
1520 'color_scheme' => [
1521 'primary_color' => '{{WRAPPER}}',
1522 'secondary_color' => '{{WRAPPER}}',
1523 ],
1524 'count' => [
1525 'typography' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-grid .product-count',
1526 'alignment' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-grid .product-count',
1527 'color' => '{{WRAPPER}} .rtsb-elementor-container [class*=category-single-layout] .rtsb-category-grid .single-category-area .product-count, {{WRAPPER}} .rtsb-elementor-container [class*=rtsb-category-layout] .rtsb-category-grid .category-wrapper .product-count',
1528 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container [class*=category-single-layout] .rtsb-category-grid .single-category-area .product-count, {{WRAPPER}} .rtsb-elementor-container [class*=rtsb-category-layout] .rtsb-category-grid .category-wrapper .product-count',
1529 'hover_color' => '{{WRAPPER}} .rtsb-elementor-container [class*=category-single-layout] .rtsb-category-grid:hover .single-category-area .product-count, {{WRAPPER}} .rtsb-elementor-container [class*=rtsb-category-layout] .rtsb-category-grid:hover .category-wrapper .product-count',
1530 'hover_bg_color' => '{{WRAPPER}} .rtsb-elementor-container [class*=category-single-layout] .rtsb-category-grid:hover .single-category-area .product-count, {{WRAPPER}} .rtsb-elementor-container [class*=rtsb-category-layout] .rtsb-category-grid:hover .category-wrapper .product-count',
1531 'border' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-grid .product-count',
1532 'border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-grid .product-count:hover',
1533 'border_radius' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-grid .product-count',
1534 'padding' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-grid .product-count',
1535 'margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-grid .product-count',
1536 ],
1537 'product_badges' => [
1538 'typography' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-tag-fill, {{WRAPPER}} .rtsb-elementor-container .rtsb-tag-outline',
1539 'color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-tag-fill, {{WRAPPER}} .rtsb-elementor-container .rtsb-tag-outline',
1540 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-tag-fill, {{WRAPPER}} .rtsb-elementor-container .rtsb-tag-outline',
1541 'border_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-tag-fill, {{WRAPPER}} .rtsb-elementor-container .rtsb-tag-outline, {{WRAPPER}} .rtsb-elementor-container .rtsb-tag-outline.angle-right::after',
1542 'border_radius' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-tag-fill, {{WRAPPER}} .rtsb-elementor-container .rtsb-tag-outline',
1543 'padding' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-tag-fill, {{WRAPPER}} .rtsb-elementor-container .rtsb-tag-outline, {{WRAPPER}} .rtsb-elementor-container .rtsb-badge.type-image',
1544 'margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-tag-fill, {{WRAPPER}} .rtsb-elementor-container .rtsb-tag-outline, {{WRAPPER}} .rtsb-elementor-container .rtsb-badge.type-image',
1545 'position_x' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-img > .rtsb-promotion',
1546 'position_y' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-img > .rtsb-promotion',
1547 ],
1548 'image' => [
1549 'overlay' => '{{WRAPPER}} .rtsb-elementor-container.has-overlay [class*=category-single-layout] .single-category-area .rtsb-img-link::before',
1550 'hover_overlay' => '{{WRAPPER}} .rtsb-elementor-container.has-overlay .single-category-area .rtsb-img-link::after',
1551 'img_bg_color' => '{{WRAPPER}} .rtsb-product-img .rtsb-product-image, {{WRAPPER}} .rtsb-product-img .default-img',
1552 'img_wrapper_bg_color' => '{{WRAPPER}} .rtsb-product-img figure',
1553 'border' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-img figure',
1554 'width' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-grid-item .rtsb-product-image, {{WRAPPER}} .rtsb-elementor-container .rtsb-grid-item .default-img, {{WRAPPER}} .rtsb-elementor-container .rtsb-category-grid .rtsb-product-image, {{WRAPPER}} .rtsb-elementor-container .rtsb-category-grid .default-img, {{WRAPPER}} .rtsb-elementor-container .rtsb-product-img .default-img, {{WRAPPER}} .rtsb-elementor-container .rtsb-list-item .rtsb-product-image',
1555 'max_width' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-grid-item .rtsb-product-img figure, {{WRAPPER}} .rtsb-elementor-container .rtsb-category-layout2 .category-title-with-image .rtsb-product-img figure,{{WRAPPER}} .rtsb-elementor-container .rtsb-product-img figure, {{WRAPPER}} .rtsb-elementor-container .rtsb-list-item .rtsb-product-img figure',
1556 'border_radius' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-img figure, {{WRAPPER}} .rtsb-elementor-container.has-overlay [class*=category-single-layout] .single-category-area::before, {{WRAPPER}} .rtsb-elementor-container.has-overlay [class*=category-single-layout] .single-category-area::after',
1557 'margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-img',
1558
1559 ],
1560 'advanced' => [
1561 'wrapper_padding' => '{{WRAPPER}} .rtsb-elementor-container > .rtsb-row',
1562 'content_padding' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-content, {{WRAPPER}} .rtsb-elementor-container .rtsb-row:not(.rtsb-category-layout2) .rtsb-category-content, {{WRAPPER}} .rtsb-elementor-container .rtsb-category-layout2 .category-title-with-image',
1563 'element_margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product, {{WRAPPER}} .rtsb-elementor-container .rtsb-category-grid',
1564 'element_padding' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-grid-item, {{WRAPPER}} .rtsb-elementor-container .rtsb-list-item, {{WRAPPER}} .rtsb-elementor-container .single-category-area, {{WRAPPER}} .rtsb-elementor-container .rtsb-row:not(.rtsb-category-layout2) .category-wrapper, {{WRAPPER}} .rtsb-elementor-container .rtsb-category-layout2 .category-title-with-image, {{WRAPPER}} .rtsb-elementor-container .rtsb-grid-layout3 .rtsb-product-content, {{WRAPPER}} .rtsb-elementor-container .rtsb-grid-layout3 .fade-action-button, {{WRAPPER}} .rtsb-elementor-container .rtsb-list-layout3 .rtsb-product .rtsb-action-buttons.after-content',
1565 'content_bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-content, {{WRAPPER}} .rtsb-elementor-container .rtsb-row:not(.rtsb-category-layout2) .rtsb-category-content, {{WRAPPER}} .rtsb-elementor-container .rtsb-category-layout2 .category-title-with-image',
1566 'element_bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-grid-item, {{WRAPPER}} .rtsb-elementor-container .rtsb-list-item, {{WRAPPER}} .rtsb-elementor-container .single-category-area, {{WRAPPER}} .rtsb-elementor-container .category-wrapper,{{WRAPPER}} .rtsb-elementor-container .rtsb-grid-layout3 .rtsb-product .fade-action-button,{{WRAPPER}} .rtsb-elementor-container .rtsb-grid-layout3 .rtsb-product .product-fade-content',
1567 'rtsb_el_element_shadow' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-grid-item, {{WRAPPER}} .rtsb-elementor-container .rtsb-list-item, {{WRAPPER}} .rtsb-elementor-container .single-category-area, {{WRAPPER}} .rtsb-elementor-container .rtsb-row:not(.rtsb-category-layout2) .category-wrapper, {{WRAPPER}} .rtsb-elementor-container .rtsb-category-layout2 .category-title-with-image, {{WRAPPER}} .rtsb-elementor-container .rtsb-grid-layout3 .rtsb-product .product-fade-content',
1568 'content_hover_bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-content:hover, {{WRAPPER}} .rtsb-elementor-container .rtsb-row:not(.rtsb-category-layout2) .rtsb-category-content:hover, {{WRAPPER}} .rtsb-elementor-container .rtsb-category-layout2 .category-title-with-image:hover',
1569 'element_hover_bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-grid-item:hover, {{WRAPPER}} .rtsb-elementor-container .rtsb-list-item:hover, {{WRAPPER}} .rtsb-elementor-container .single-category-area:hover, {{WRAPPER}} .rtsb-elementor-container .category-wrapper:hover, {{WRAPPER}} .rtsb-elementor-container .rtsb-grid-layout3 .rtsb-product:hover :is( .product-fade-content, .fade-action-button )',
1570 'rtsb_el_element_hover_shadow' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-grid-item:hover, {{WRAPPER}} .rtsb-elementor-container .rtsb-list-item:hover, {{WRAPPER}} .rtsb-elementor-container .single-category-area:hover, {{WRAPPER}} .rtsb-elementor-container .rtsb-row:not(.rtsb-category-layout2) .category-wrapper:hover, {{WRAPPER}} .rtsb-elementor-container .rtsb-category-layout2 .rtsb-category-grid:hover .category-title-with-image, {{WRAPPER}} .rtsb-elementor-container .rtsb-grid-layout3 .rtsb-product:hover .product-fade-content',
1571 'rtsb_el_wrapper_border' => '{{WRAPPER}} .rtsb-elementor-container > .rtsb-row',
1572 'wrapper_border_radius' => '{{WRAPPER}} .rtsb-elementor-container > .rtsb-row',
1573 'rtsb_el_element_border' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-grid-item, {{WRAPPER}} .rtsb-elementor-container .rtsb-list-item, {{WRAPPER}} .rtsb-elementor-container .single-category-area, {{WRAPPER}} .rtsb-elementor-container .category-wrapper',
1574 'element_border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-grid-item:hover, {{WRAPPER}} .rtsb-elementor-container .rtsb-list-item:hover, {{WRAPPER}} .rtsb-elementor-container .single-category-area:hover, {{WRAPPER}} .rtsb-elementor-container .category-wrapper:hover',
1575 'element_border_radius' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-grid-item, {{WRAPPER}} .rtsb-elementor-container .rtsb-list-item, {{WRAPPER}} .rtsb-elementor-container .single-category-area, {{WRAPPER}} .rtsb-elementor-container .category-wrapper',
1576 'rtsb_el_content_border' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-content, {{WRAPPER}} .rtsb-elementor-container .rtsb-row:not(.rtsb-category-layout2) .rtsb-category-content, {{WRAPPER}} .rtsb-elementor-container .rtsb-category-layout2 .category-title-with-image',
1577 'content_border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-content:hover, {{WRAPPER}} .rtsb-elementor-container .rtsb-row:not(.rtsb-category-layout2) .rtsb-category-content:hover, {{WRAPPER}} .rtsb-elementor-container .rtsb-category-layout2 .category-title-with-image:hover',
1578 'content_border_radius' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-content, {{WRAPPER}} .rtsb-elementor-container .rtsb-row:not(.rtsb-category-layout2) .rtsb-category-content, {{WRAPPER}} .rtsb-elementor-container .rtsb-category-layout2 .category-title-with-image',
1579 ],
1580 'badges_module' => [
1581 'direction' => '{{WRAPPER}} .rtsb-promotion .rtsb-badge-group-style',
1582 'alignment' => '{{WRAPPER}} .rtsb-promotion .rtsb-badge-group-style',
1583 'alignment_wrap' => '{{WRAPPER}} .rtsb-badge-container .rtsb-promotion:not(.rtsb-badge-group-style)',
1584 ],
1585 ]
1586 );
1587 }
1588
1589 /**
1590 * Common CSS Selectors.
1591 *
1592 * @return array
1593 */
1594 public static function general_slider_selectors(): array {
1595 return [
1596 'slider_buttons' => [
1597 'arrow_size' => [
1598 'icon' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-arrow i',
1599 'svg' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-arrow svg',
1600 ],
1601 'arrow_width' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-arrow',
1602 'arrow_height' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-arrow',
1603 'arrow_line_height' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-arrow i',
1604 'dot_width' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-pagination-bullet',
1605 'dot_height' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-pagination-bullet',
1606 'dot_spacing' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-pagination-bullet',
1607 'color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-arrow',
1608 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-arrow',
1609 'hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-arrow:hover',
1610 'hover_bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-arrow:hover',
1611 'dot_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-pagination-bullet',
1612 'dot_active_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-pagination-bullet-active',
1613 'border' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-arrow, {{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-pagination-bullet',
1614 'border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-arrow:hover, {{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-pagination-bullet:hover',
1615 'active_border_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-pagination-bullet-active',
1616 'border_radius' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-arrow, {{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-pagination-bullet',
1617 'wrapper_padding' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-nav, {{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-pagination',
1618 ],
1619 ];
1620 }
1621
1622 /**
1623 * Category CSS Selectors.
1624 *
1625 * @return array
1626 */
1627 private static function general_product_selectors(): array {
1628 return apply_filters(
1629 'rtsb/elementor/general_product_selectors',
1630 [
1631 'section_title' => [
1632 'typography' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-section-title',
1633 'alignment' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-section-title',
1634 'color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-section-title',
1635 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-section-title',
1636 'hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-section-title:hover',
1637 'hover_bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-section-title:hover',
1638 'border' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-section-title',
1639 'border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-section-title:hover',
1640 'padding' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-section-title',
1641 'margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-section-title',
1642 ],
1643 'product_title' => [
1644 'typography' => '{{WRAPPER}} .rtsb-elementor-container .product-title',
1645 'alignment' => '{{WRAPPER}} .rtsb-elementor-container .product-title',
1646 'color' => '{{WRAPPER}} .rtsb-elementor-container .product-title',
1647 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-title-wrapper,{{WRAPPER}} .rtsb-elementor-container .product-title',
1648 // Layout 2 (grid/slider) reveals a hover button that overlays the title wrapper and captures :hover, so the
1649 // wrapper's own :hover never fires; the extra `.rtsb-product:hover .product-title-with-btn` clause re-applies the
1650 // hover text/bg/border color on product-card hover. NOTE: layout 2 fades the title text out on hover, so the
1651 // hover *text* color is not visibly noticeable there — the wrapper background and border remain visible.
1652 'hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-title-wrapper:hover .product-title, {{WRAPPER}} .rtsb-elementor-container .rtsb-product:hover .product-title-with-btn .product-title',
1653 'hover_bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-title-wrapper:hover,{{WRAPPER}} .rtsb-elementor-container .product-title:hover, {{WRAPPER}} .rtsb-elementor-container .rtsb-product:hover .product-title-with-btn .rtsb-product-title-wrapper',
1654 'border' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-title-wrapper',
1655 'border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-title-wrapper:hover, {{WRAPPER}} .rtsb-elementor-container .rtsb-product:hover .product-title-with-btn .rtsb-product-title-wrapper',
1656 'padding' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-title-wrapper,{{WRAPPER}} .rtsb-elementor-container .product-title',
1657 'margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-title-wrapper,{{WRAPPER}} .rtsb-elementor-container .product-title',
1658 ],
1659 'short_description' => array_fill_keys(
1660 [
1661 'typography',
1662 'alignment',
1663 'color',
1664 'bg_color',
1665 'border',
1666 'padding',
1667 'margin',
1668 ],
1669 '{{WRAPPER}} .rtsb-elementor-container .product-short-description'
1670 ),
1671 'action_buttons' => [
1672 'action_btn_alignment' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product .rtsb-action-buttons.horizontal-floating-btn .rtsb-action-button-list',
1673 'action_btn_gap' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-action-button-list',
1674 'icon_gap' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-action-btn.has-text',
1675 ],
1676 'product_price' => [
1677 'typography' => '{{WRAPPER}} .rtsb-elementor-container .price-wrapper .price > .woocommerce-Price-amount, {{WRAPPER}} .rtsb-elementor-container .price-wrapper del',
1678 'sale_typography' => '{{WRAPPER}} .rtsb-elementor-container .price-wrapper ins',
1679 'regular_text_decoration' => '{{WRAPPER}} .rtsb-elementor-container .price-wrapper .price > .woocommerce-Price-amount, {{WRAPPER}} .rtsb-elementor-container .price-wrapper del',
1680 'sale_text_decoration' => '{{WRAPPER}} .rtsb-elementor-container .price-wrapper ins',
1681 'alignment' => '{{WRAPPER}} .rtsb-elementor-container .product-price',
1682 'color' => '{{WRAPPER}} .rtsb-elementor-container .price-wrapper :is( ins, ins span bdi)',
1683 'regular_color' => '{{WRAPPER}} .rtsb-elementor-container .price-wrapper :is( bdi, del bdi), {{WRAPPER}} .rtsb-elementor-container.products .price-wrapper del',
1684 'crossed_regular_color' => '{{WRAPPER}} .rtsb-elementor-container .price-wrapper :is(del bdi), {{WRAPPER}} .rtsb-elementor-container.products .price-wrapper del',
1685 'border' => '{{WRAPPER}} .rtsb-elementor-container .price-wrapper',
1686 'border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .price-wrapper:hover',
1687 'padding' => '{{WRAPPER}} .rtsb-elementor-container .product-price',
1688 'margin' => '{{WRAPPER}} .rtsb-elementor-container .product-price',
1689 ],
1690 'product_rating' => [
1691 'typography' => '{{WRAPPER}} .rtsb-elementor-container .star-rating',
1692 'alignment' => '{{WRAPPER}} .rtsb-elementor-container .product-rating',
1693 'color' => '{{WRAPPER}} .rtsb-elementor-container :is(.star-rating span):before',
1694 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container :is(.star-rating):before',
1695 'padding' => '{{WRAPPER}} .rtsb-elementor-container .star-rating',
1696 'spacing_preset2' => '{{WRAPPER}} .rtsb-elementor-container .product-rating.preset2, {{WRAPPER}} .rtsb-elementor-container .product-rating.preset2 .inner-wrapper',
1697 'margin' => '{{WRAPPER}} .rtsb-elementor-container .product-rating',
1698 ],
1699 'product_categories' => [
1700 'typography' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-list li > a',
1701 'alignment' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-content .rtsb-product-category',
1702 'color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-list li > a',
1703 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-list li > a',
1704 'hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-list li > a:hover',
1705 'hover_bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-list li > a:hover',
1706 'border' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-list li > a',
1707 'border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-list li > a:hover',
1708 'border_radius' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-list li > a',
1709 'padding' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-list li > a',
1710 'margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-list li > a',
1711 'wrapper_margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-category',
1712 ],
1713 'product_brands' => [
1714 'typography' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-brand-list li > a',
1715 'alignment' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-content .rtsb-brand-category',
1716 'color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-brand-list li > a',
1717 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-brand-list li > a',
1718 'hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-brand-list li > a:hover',
1719 'hover_bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-brand-list li > a:hover',
1720 'border' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-brand-list li > a',
1721 'border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-brand-list li > a:hover',
1722 'border_radius' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-brand-list li > a',
1723 'padding' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-brand-list li > a',
1724 'margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-brand-list li > a',
1725 'wrapper_margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-brand-category',
1726 ],
1727 'pagination' => [
1728 'typography' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-pagination ul.pagination-list li a, {{WRAPPER}} .rtsb-elementor-container .rtsb-pagination ul.pagination-list li span, {{WRAPPER}} .rtsb-elementor-container .rtsb-pagination-wrap .rtsb-load-more button, {{WRAPPER}} .rtsb-elementor-container .rtsb-archive-pagination-wrap .rtsb-load-more button',
1729 'alignment' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-pagination ul.pagination-list, {{WRAPPER}} .rtsb-elementor-container .rtsb-pagination-wrap, {{WRAPPER}} .rtsb-elementor-container .rtsb-archive-pagination-wrap',
1730 'width' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-pagination ul.pagination-list li a, {{WRAPPER}} .rtsb-elementor-container .rtsb-pagination ul.pagination-list li span, {{WRAPPER}} .rtsb-elementor-container .rtsb-pagination-wrap .rtsb-load-more button, {{WRAPPER}} .rtsb-elementor-container .rtsb-archive-pagination-wrap .rtsb-load-more button',
1731 'height' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-pagination ul.pagination-list li a, {{WRAPPER}} .rtsb-elementor-container .rtsb-pagination ul.pagination-list li span, {{WRAPPER}} .rtsb-elementor-container .rtsb-pagination-wrap .rtsb-load-more button, {{WRAPPER}} .rtsb-elementor-container .rtsb-archive-pagination-wrap .rtsb-load-more button',
1732 'color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-pagination ul.pagination-list li a, {{WRAPPER}} .rtsb-elementor-container .rtsb-pagination-wrap .rtsb-load-more button, {{WRAPPER}} .rtsb-elementor-container .rtsb-archive-pagination-wrap .rtsb-load-more button',
1733 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-pagination ul.pagination-list li a, {{WRAPPER}} .rtsb-elementor-container .rtsb-pagination-wrap .rtsb-load-more button, {{WRAPPER}} .rtsb-elementor-container .rtsb-archive-pagination-wrap .rtsb-load-more button',
1734 'active_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-pagination ul.pagination-list li span',
1735 'active_bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-pagination ul.pagination-list li span',
1736 'hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-pagination ul.pagination-list li a:hover, {{WRAPPER}} .rtsb-elementor-container .rtsb-pagination-wrap .rtsb-load-more button:hover, {{WRAPPER}} .rtsb-elementor-container .rtsb-archive-pagination-wrap .rtsb-load-more button:hover',
1737 'hover_bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-pagination ul.pagination-list li a:hover, {{WRAPPER}} .rtsb-elementor-container .rtsb-pagination-wrap .rtsb-load-more button:hover, {{WRAPPER}} .rtsb-elementor-container .rtsb-archive-pagination-wrap .rtsb-load-more button:hover',
1738 'border' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-pagination ul.pagination-list li a, {{WRAPPER}} .rtsb-elementor-container .rtsb-pagination ul.pagination-list li span, {{WRAPPER}} .rtsb-elementor-container .rtsb-pagination-wrap .rtsb-load-more button, {{WRAPPER}} .rtsb-elementor-container .rtsb-archive-pagination-wrap .rtsb-load-more button',
1739 'border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-pagination ul.pagination-list li a:hover, {{WRAPPER}} .rtsb-elementor-container .rtsb-pagination-wrap .rtsb-load-more button:hover, {{WRAPPER}} .rtsb-elementor-container .rtsb-archive-pagination-wrap .rtsb-load-more button:hover',
1740 'border_active_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-pagination ul.pagination-list li span',
1741 'border_radius' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-pagination ul.pagination-list li a, {{WRAPPER}} .rtsb-elementor-container .rtsb-pagination ul.pagination-list li span, {{WRAPPER}} .rtsb-elementor-container .rtsb-pagination-wrap .rtsb-load-more button, {{WRAPPER}} .rtsb-elementor-container .rtsb-archive-pagination-wrap .rtsb-load-more button',
1742 'spacing' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-pagination ul.pagination-list, {{WRAPPER}} .rtsb-elementor-container .rtsb-pagination-wrap, {{WRAPPER}} .rtsb-elementor-container .rtsb-archive-pagination-wrap',
1743 'padding' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-pagination-wrap .rtsb-load-more button, {{WRAPPER}} .rtsb-elementor-container .rtsb-archive-pagination-wrap .rtsb-load-more button',
1744 'margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-pagination ul.pagination-list, {{WRAPPER}} .rtsb-elementor-container .rtsb-pagination-wrap, {{WRAPPER}} .rtsb-elementor-container .rtsb-archive-pagination-wrap',
1745 ],
1746 'product_add_to_cart' => [
1747 'typography' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn',
1748 'icon_size' => [
1749 'font_size' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn .icon',
1750 'width' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn .icon svg',
1751 ],
1752 'cart_width' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn',
1753 'cart_height' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn',
1754 'color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn',
1755 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn',
1756 'icon_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn .icon',
1757 'hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn:hover',
1758 'hover_bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn:hover',
1759 'hover_icon_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn:hover .icon',
1760 'border' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn',
1761 'border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn:hover',
1762 'border_radius' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn',
1763 'padding' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn',
1764 'margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn',
1765 ],
1766 'product_compare' => [
1767 'icon_size' => [
1768 'font_size' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-compare .rtsb-action-btn .icon',
1769 'width' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-compare .rtsb-action-btn .icon svg',
1770 ],
1771 'width' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-compare .rtsb-action-btn',
1772 'height' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-compare .rtsb-action-btn',
1773 'color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-compare .rtsb-action-btn',
1774 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-compare .rtsb-action-btn',
1775 'hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-compare .rtsb-action-btn:hover',
1776 'hover_bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-compare .rtsb-action-btn:hover',
1777 'border' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-compare .rtsb-action-btn',
1778 'border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-compare .rtsb-action-btn:hover',
1779 'border_radius' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-compare .rtsb-action-btn',
1780 'padding' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-compare .rtsb-action-btn',
1781 'margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-compare .rtsb-action-btn',
1782 ],
1783 'product_wishlist' => [
1784 'icon_size' => [
1785 'font_size' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-wishlist .rtsb-action-btn .icon',
1786 'width' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-wishlist .rtsb-action-btn .icon svg',
1787 ],
1788 'width' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-wishlist .rtsb-action-btn',
1789 'height' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-wishlist .rtsb-action-btn',
1790 'color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-wishlist .rtsb-action-btn',
1791 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-wishlist .rtsb-action-btn',
1792 'hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-wishlist .rtsb-action-btn:hover',
1793 'hover_bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-wishlist .rtsb-action-btn:hover',
1794 'border' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-wishlist .rtsb-action-btn',
1795 'border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-wishlist .rtsb-action-btn:hover',
1796 'border_radius' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-wishlist .rtsb-action-btn',
1797 'padding' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-wishlist .rtsb-action-btn',
1798 'margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-wishlist .rtsb-action-btn',
1799 ],
1800 'product_quick_view' => [
1801 'icon_size' => [
1802 'font_size' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-quick-view .rtsb-action-btn .icon',
1803 'width' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-quick-view .rtsb-action-btn .icon svg',
1804 ],
1805 'width' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-quick-view .rtsb-action-btn',
1806 'height' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-quick-view .rtsb-action-btn',
1807 'color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-quick-view .rtsb-action-btn',
1808 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-quick-view .rtsb-action-btn',
1809 'hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-quick-view .rtsb-action-btn:hover',
1810 'hover_bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-quick-view .rtsb-action-btn:hover',
1811 'border' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-quick-view .rtsb-action-btn',
1812 'border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-quick-view .rtsb-action-btn:hover',
1813 'border_radius' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-quick-view .rtsb-action-btn',
1814 'padding' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-quick-view .rtsb-action-btn',
1815 'margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-quick-view .rtsb-action-btn',
1816 ],
1817 'hover_icon_button' => [
1818 // Include `.text` (the label span): the button is display:inline-flex, so its
1819 // `.text` child is a flex item and `text-decoration` set on the <a> does NOT
1820 // propagate to it (the Text Decoration control would silently do nothing).
1821 // Other typography props inherit fine; decoration must hit `.text` directly.
1822 'typography' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a, {{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a .text',
1823 'icon_size' => [
1824 'font_size' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a .icon',
1825 'svg' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a .icon svg',
1826 ],
1827 'hover_icon_spacing' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a .text + .icon',
1828 'color' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a',
1829 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a',
1830 'icon_color' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a .icon',
1831 'hover_color' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a:hover',
1832 'hover_bg_color' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a:hover',
1833 'hover_icon_color' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a:hover i',
1834 'border' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a',
1835 'border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a:hover',
1836 'border_radius' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a',
1837 'padding' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a',
1838 'margin' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a',
1839 ],
1840 'not_found_notice' => self::not_found_notice_selectors(),
1841 ]
1842 );
1843 }
1844
1845 /**
1846 * Not Found Notice Selectors.
1847 *
1848 * @return array
1849 */
1850 public static function not_found_notice_selectors() {
1851 return array_fill_keys(
1852 [
1853 'typography',
1854 'alignment',
1855 'color',
1856 'bg_color',
1857 'border',
1858 'padding',
1859 'margin',
1860 ],
1861 '{{WRAPPER}} .rtsb-elementor-container .woocommerce-no-products-found .woocommerce-info, {{WRAPPER}} .rtsb-product-catalog .woocommerce-no-products-found .woocommerce-info'
1862 );
1863 }
1864
1865 /**
1866 * Category CSS Selectors.
1867 *
1868 * @return array
1869 */
1870 private static function general_cat_selectors(): array {
1871 return [
1872 'category_single_layout' => [
1873 'cat_alignment' => [
1874 'text_align' => '{{WRAPPER}} .rtsb-elementor-container',
1875 'justify_content' => '{{WRAPPER}} .rtsb-elementor-container [class*=list-layout] .rtsb-product-category, {{WRAPPER}} .rtsb-elementor-container .rtsb-category-grid .category-title-with-count',
1876 ],
1877 'cat_height' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-grid .rtsb-product-image, {{WRAPPER}} .rtsb-elementor-container .rtsb-category-grid .default-img',
1878 ],
1879 'category_multi_layout' => [
1880 'cat_height' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-layout1 .rtsb-product-img .rtsb-product-image, {{WRAPPER}} .rtsb-elementor-container .rtsb-category-layout1 .rtsb-product-img .default-img, {{WRAPPER}} .rtsb-elementor-container .rtsb-category-layout2 .category-title-with-image',
1881 ],
1882 'cat_count_settings' => [
1883 'count_display_type' => '{{WRAPPER}} .rtsb-elementor-container .category-title-with-count',
1884 ],
1885 'cat_title' => [
1886 'typography' => '{{WRAPPER}} .rtsb-elementor-container .category-title',
1887 'alignment' => '{{WRAPPER}} .rtsb-elementor-container .category-title',
1888 'color' => '{{WRAPPER}} .rtsb-elementor-container [class*=category-single-layout] .rtsb-category-grid .single-category-area .category-title, {{WRAPPER}} .rtsb-elementor-container [class*=rtsb-category-layout] .rtsb-category-grid .category-wrapper .category-title, {{WRAPPER}} .rtsb-elementor-container [class*=category-single-layout] .rtsb-category-grid .single-category-area .category-title-with-count',
1889 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container [class*=category-single-layout] .rtsb-category-grid .single-category-area .category-title, {{WRAPPER}} .rtsb-elementor-container [class*=rtsb-category-layout] .rtsb-category-grid .category-wrapper .category-title',
1890 'hover_color' => '{{WRAPPER}} .rtsb-elementor-container [class*=category-single-layout] .rtsb-category-grid .single-category-area .category-title:hover, {{WRAPPER}} .rtsb-elementor-container [class*=rtsb-category-layout] .rtsb-category-grid .category-wrapper .category-title:hover',
1891 'hover_bg_color' => '{{WRAPPER}} .rtsb-elementor-container [class*=category-single-layout] .rtsb-category-grid .single-category-area .category-title:hover, {{WRAPPER}} .rtsb-elementor-container [class*=rtsb-category-layout] .rtsb-category-grid .category-wrapper .category-title:hover',
1892 'border' => '{{WRAPPER}} .rtsb-elementor-container .category-title',
1893 'border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .category-title:hover',
1894 'padding' => '{{WRAPPER}} .rtsb-elementor-container .category-title',
1895 'margin' => '{{WRAPPER}} .rtsb-elementor-container .category-title',
1896 ],
1897 'cat_description' => [
1898 'typography' => '{{WRAPPER}} .rtsb-elementor-container .category-description',
1899 'alignment' => '{{WRAPPER}} .rtsb-elementor-container .category-description',
1900 'color' => '{{WRAPPER}} .rtsb-elementor-container [class*=category-single-layout] .rtsb-category-grid .single-category-area .category-description, {{WRAPPER}} .rtsb-elementor-container [class*=rtsb-category-layout] .rtsb-category-grid .category-wrapper .category-description',
1901 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container [class*=category-single-layout] .rtsb-category-grid .single-category-area .category-description, {{WRAPPER}} .rtsb-elementor-container [class*=rtsb-category-layout] .rtsb-category-grid .category-wrapper .category-description',
1902 'border' => '{{WRAPPER}} .rtsb-elementor-container .category-description',
1903 'padding' => '{{WRAPPER}} .rtsb-elementor-container .category-description',
1904 'margin' => '{{WRAPPER}} .rtsb-elementor-container .category-description',
1905 ],
1906 ];
1907 }
1908
1909 /**
1910 * Social Share CSS Selectors.
1911 *
1912 * @return array
1913 */
1914 private static function social_share(): array {
1915 return apply_filters(
1916 'rtsb/elements/elementor/social_share_selectors',
1917 [
1918 'share_items' => [
1919 'share_icons_spacing' => '{{WRAPPER}} .rtsb-social-share',
1920 'share_items_min_width' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn',
1921 'social_items_color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn svg, {{WRAPPER}} .rtsb-social-share .rtsb-share-btn .rtsb-share-label',
1922 'social_items_bg_color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn',
1923 'facebook_color' => '{{WRAPPER}} .rtsb-social-share .facebook svg, {{WRAPPER}} .rtsb-social-share .facebook .rtsb-share-label',
1924 'twitter_color' => '{{WRAPPER}} .rtsb-social-share .twitter svg, {{WRAPPER}} .rtsb-social-share .twitter .rtsb-share-label',
1925 'linkedin_color' => '{{WRAPPER}} .rtsb-social-share .linkedin svg, {{WRAPPER}} .rtsb-social-share .linkedin .rtsb-share-label',
1926 'pinterest_color' => '{{WRAPPER}} .rtsb-social-share .pinterest svg, {{WRAPPER}} .rtsb-social-share .pinterest .rtsb-share-label',
1927 'skype_color' => '{{WRAPPER}} .rtsb-social-share .skype svg, {{WRAPPER}} .rtsb-social-share .skype .rtsb-share-label',
1928 'whatsapp_color' => '{{WRAPPER}} .rtsb-social-share .whatsapp svg, {{WRAPPER}} .rtsb-social-share .whatsapp .rtsb-share-label',
1929 'reddit_color' => '{{WRAPPER}} .rtsb-social-share .reddit svg, {{WRAPPER}} .rtsb-social-share .reddit .rtsb-share-label',
1930 'telegram_color' => '{{WRAPPER}} .rtsb-social-share .telegram svg, {{WRAPPER}} .rtsb-social-share .telegram .rtsb-share-label',
1931 'facebook_bg_color' => '{{WRAPPER}} .rtsb-social-share .facebook',
1932 'twitter_bg_color' => '{{WRAPPER}} .rtsb-social-share .twitter',
1933 'linkedin_bg_color' => '{{WRAPPER}} .rtsb-social-share .linkedin',
1934 'pinterest_bg_color' => '{{WRAPPER}} .rtsb-social-share .pinterest',
1935 'skype_bg_color' => '{{WRAPPER}} .rtsb-social-share .skype',
1936 'whatsapp_bg_color' => '{{WRAPPER}} .rtsb-social-share .whatsapp',
1937 'reddit_bg_color' => '{{WRAPPER}} .rtsb-social-share .reddit',
1938 'telegram_bg_color' => '{{WRAPPER}} .rtsb-social-share .telegram',
1939 'social_items_hover_color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn:hover svg, {{WRAPPER}} .rtsb-social-share .rtsb-share-btn:hover .rtsb-share-label',
1940 'social_items_hover_bg_color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn:hover',
1941 'facebook_hover_color' => '{{WRAPPER}} .rtsb-social-share .facebook:hover svg, {{WRAPPER}} .rtsb-social-share .facebook:hover .rtsb-share-label',
1942 'twitter_hover_color' => '{{WRAPPER}} .rtsb-social-share .twitter:hover svg, {{WRAPPER}} .rtsb-social-share .twitter:hover .rtsb-share-label',
1943 'linkedin_hover_color' => '{{WRAPPER}} .rtsb-social-share .linkedin:hover svg, {{WRAPPER}} .rtsb-social-share .linkedin:hover .rtsb-share-label',
1944 'pinterest_hover_color' => '{{WRAPPER}} .rtsb-social-share .pinterest:hover svg, {{WRAPPER}} .rtsb-social-share .pinterest:hover .rtsb-share-label',
1945 'skype_hover_color' => '{{WRAPPER}} .rtsb-social-share .skype:hover svg, {{WRAPPER}} .rtsb-social-share .skype:hover .rtsb-share-label',
1946 'whatsapp_hover_color' => '{{WRAPPER}} .rtsb-social-share .whatsapp:hover svg, {{WRAPPER}} .rtsb-social-share .whatsapp:hover .rtsb-share-label',
1947 'reddit_hover_color' => '{{WRAPPER}} .rtsb-social-share .reddit:hover svg, {{WRAPPER}} .rtsb-social-share .reddit:hover .rtsb-share-label',
1948 'telegram_hover_color' => '{{WRAPPER}} .rtsb-social-share .telegram:hover svg, {{WRAPPER}} .rtsb-social-share .telegram:hover .rtsb-share-label',
1949 'facebook_hover_bg_color' => '{{WRAPPER}} .rtsb-social-share .facebook:hover',
1950 'twitter_hover_bg_color' => '{{WRAPPER}} .rtsb-social-share .twitter:hover',
1951 'linkedin_hover_bg_color' => '{{WRAPPER}} .rtsb-social-share .linkedin:hover',
1952 'pinterest_hover_bg_color' => '{{WRAPPER}} .rtsb-social-share .pinterest:hover',
1953 'skype_hover_bg_color' => '{{WRAPPER}} .rtsb-social-share .skype:hover',
1954 'whatsapp_hover_bg_color' => '{{WRAPPER}} .rtsb-social-share .whatsapp:hover',
1955 'reddit_hover_bg_color' => '{{WRAPPER}} .rtsb-social-share .reddit:hover',
1956 'telegram_hover_bg_color' => '{{WRAPPER}} .rtsb-social-share .telegram:hover',
1957 'border' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn',
1958 'border_hover_color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn:hover',
1959 'border_radius' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn',
1960 'padding' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn',
1961 'margin' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn',
1962 ],
1963 'share_icons' => [
1964 'share_icons_width' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn svg',
1965 'share_icons_height' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn svg',
1966 'color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn svg',
1967 'bg_color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn .rtsb-share-icon',
1968 'hover_color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn:hover svg',
1969 'hover_bg_color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn:hover .rtsb-share-icon',
1970 'border' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-icon-label .rtsb-share-icon',
1971 'border_hover_color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn:hover .rtsb-share-icon',
1972 'padding' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-icon-label .rtsb-share-icon',
1973 'margin' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-icon-label .rtsb-share-icon',
1974 ],
1975 'share_text' => [
1976 'typography' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-icon-label .rtsb-share-label',
1977 'alignment' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-icon-label .rtsb-share-label',
1978 'color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-icon-label .rtsb-share-label',
1979 'bg_color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-icon-label .rtsb-share-label',
1980 'hover_color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn:hover .rtsb-share-label',
1981 'hover_bg_color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn:hover .rtsb-share-label',
1982 'border' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-icon-label .rtsb-share-label',
1983 'border_hover_color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn:hover .rtsb-share-label',
1984 'padding' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-icon-label .rtsb-share-label',
1985 'margin' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-icon-label .rtsb-share-label',
1986 ],
1987 'share_header' => [
1988 'typography' => '{{WRAPPER}} .rtsb-social-share-container .rtsb-social-header p',
1989 'share_header_type' => '{{WRAPPER}} .rtsb-social-share-container',
1990 'color' => '{{WRAPPER}} .rtsb-social-share-container .rtsb-social-header p',
1991 'bg_color' => '{{WRAPPER}} .rtsb-social-share-container .rtsb-social-header p',
1992 'border' => '{{WRAPPER}} .rtsb-social-share-container .rtsb-social-header p',
1993 'padding' => '{{WRAPPER}} .rtsb-social-share-container .rtsb-social-header p',
1994 'margin' => '{{WRAPPER}} .rtsb-social-share-container .rtsb-social-header p',
1995 ],
1996 ]
1997 );
1998 }
1999 }
2000