PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.4.1
ShopBuilder – WooCommerce Builder For Elementor v3.4.1
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.1, at app/Elementor/Helper/ControlSelectors.php

1,965 lines 159.7 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 $selectors = [
466 'rtsb-related-product' => array_merge(
467 self::products_loop_default_selector(),
468 self::carousel_selector(),
469 [
470 'section_heading_typography' => '{{WRAPPER}} .rtsb-related-products .related > h2',
471 'section_heading_color' => '{{WRAPPER}} .rtsb-related-products .related > h2',
472 'section_title_margin' => '{{WRAPPER}} .rtsb-related-products .related > h2',
473 'section_title_align' => '{{WRAPPER}} .rtsb-related-products .related > h2',
474 ]
475 ),
476 'rtsb-related-product-custom' => array_merge(
477 self::general_common_selectors(),
478 self::general_product_selectors()
479 ),
480 'rtsb-related-products-slider' => array_merge(
481 self::general_common_selectors(),
482 self::general_product_selectors(),
483 self::general_slider_selectors(),
484 ),
485
486 'rtsb-upsells-product' => array_merge(
487 self::products_loop_default_selector(),
488 self::carousel_selector(),
489 [
490 'section_heading_typography' => '{{WRAPPER}} .rtsb-upsells-products :is(.up-sells, .upsells ) > h2',
491 'section_heading_color' => '{{WRAPPER}} .rtsb-upsells-products :is(.up-sells, .upsells ) > h2',
492 'section_title_margin' => '{{WRAPPER}} .rtsb-upsells-products :is(.up-sells, .upsells ) > h2',
493 'section_title_align' => '{{WRAPPER}} .rtsb-upsells-products :is(.up-sells, .upsells ) > h2',
494 ],
495 ),
496 'rtsb-upsells-product-custom' => array_merge(
497 self::general_common_selectors(),
498 self::general_product_selectors()
499 ),
500
501 'rtsb-upsells-product-slider' => array_merge(
502 self::general_common_selectors(),
503 self::general_product_selectors(),
504 self::general_slider_selectors(),
505 ),
506
507 'rtsb-actions-button' => [
508 'module_width' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn) .icon ',
509 'module_height' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn) .icon',
510 'module_text_color_normal' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn)',
511 'module_bg_color_normal' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn) .icon',
512 'module_border' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn) .icon',
513 'module_text_color_hover' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn):hover',
514 'module_bg_color_hover' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn):hover .icon',
515 'module_border_hover_color' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn):hover .icon',
516 'module_border_radius' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn) .icon',
517 'module_item_gap' => '{{WRAPPER}} :is( .action-button-wrapper, .rtsb-actions-button ) ',
518 'module_wrapper_margin' => '{{WRAPPER}} :is( .action-button-wrapper, .rtsb-actions-button )',
519 'module_item_alignment' => '{{WRAPPER}} :is( .action-button-wrapper, .rtsb-actions-button )',
520 'icon_size' => [
521 'icon' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn) .icon',
522 'svg' => '{{WRAPPER}} a:is(.rtsb-wishlist-btn,.rtsb-compare-btn,.rtsb-quick-view-btn) .icon svg',
523 ],
524
525 'separator_color_normal' => '{{WRAPPER}} .rtsb-actions-button .button-separator',
526 'separator_typography' => '{{WRAPPER}} .rtsb-actions-button .button-separator',
527 'typo' => '{{WRAPPER}} .rtsb-actions-button .button-text',
528 'align' => '{{WRAPPER}} .rtsb-actions-button .button-text',
529 'text_color' => '{{WRAPPER}} .rtsb-actions-button .button-text',
530 'text_hover_color' => '{{WRAPPER}} .rtsb-actions-button .button-text:hover',
531 'text_shadow' => '{{WRAPPER}} .rtsb-actions-button .button-text',
532 'text_margin' => '{{WRAPPER}} .rtsb-actions-button .button-text',
533
534 ],
535 'rtsb-product-additional-info' => [
536 'heading_typography' => '{{WRAPPER}} .rtsb-product-additional-information h2',
537 'heading_color' => '{{WRAPPER}} .rtsb-product-additional-information h2',
538 'heading_margin' => '{{WRAPPER}} .rtsb-product-additional-information h2',
539 // Target the label + value cells (and the value's <p>) directly, by their WooCommerce
540 // classes, so Content Typography (font-weight, text-transform, …) reliably overrides the
541 // theme's higher-specificity `.woocommerce-js table.shop_attributes th` (0,2,2) rule and
542 // applies UNIFORMLY. Styling only `.shop_attributes` (the table) let the theme's direct
543 // th/cell rules win the cascade, so labels and values ended up styled inconsistently.
544 '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',
545 'content_color' => '{{WRAPPER}} .shop_attributes',
546 'content_border' => '{{WRAPPER}} .shop_attributes td, {{WRAPPER}} .shop_attributes th',
547 'content_padding' => '{{WRAPPER}} .shop_attributes td, {{WRAPPER}} .shop_attributes th',
548 ],
549 'rtsb-product-add-to-cart' => [
550 'button_height' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button',
551 'button_width' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button',
552 'cart_icon_align' => [
553 'icon' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button i',
554 'svg' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button svg',
555 ],
556 'cart_icon_gap' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button',
557 'button_typography' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button',
558 'button_text_color_normal' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button',
559 'button_bg_color_normal' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button',
560 'button_border' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button',
561 'button_text_color_hover' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button:hover',
562 'button_bg_color_hover' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button:hover',
563 'button_border_hover_color' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button:hover',
564 'button_border_radius' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button',
565 'button_padding' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button',
566 'button_margin' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button',
567 'cart_icon_size' => [
568 'icon' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button i',
569 'svg' => '{{WRAPPER}} .rtsb-product-add-to-cart .cart .button svg',
570 ],
571 'quantity_height' => [
572 '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',
573 'half' => '{{WRAPPER}} .rtsb-quantity-box-group:is(.rtsb-quantity-box-group-style-3,.rtsb-quantity-box-group-style-4) .rtsb-quantity-btn',
574 ],
575 'quantity_increment_button_padding' => '{{WRAPPER}} .rtsb-product-add-to-cart .rtsb-quantity-box-group .rtsb-quantity-btn.rtsb-quantity-plus',
576 'quantity_decrement_button_padding' => '{{WRAPPER}} .rtsb-product-add-to-cart .rtsb-quantity-box-group .rtsb-quantity-btn.rtsb-quantity-minus',
577 'quantity_input_width' => '{{WRAPPER}} .rtsb-product-add-to-cart input.qty',
578 'quantity_button_width' => '{{WRAPPER}} .rtsb-product-add-to-cart .rtsb-quantity-box-group .rtsb-quantity-btn',
579
580 'icon_size' => [
581 'icon' => '{{WRAPPER}} .rtsb-product-add-to-cart .rtsb-quantity-box-group .rtsb-quantity-btn',
582 'svg' => '{{WRAPPER}} .rtsb-product-add-to-cart .rtsb-quantity-box-group .rtsb-quantity-btn svg',
583 ],
584 'quantity_icon_color' => '{{WRAPPER}} .rtsb-product-add-to-cart .quantity :is(i, svg)',
585 'quantity_icon_hover_color' => '{{WRAPPER}} .rtsb-product-add-to-cart .quantity .rtsb-quantity-btn:hover :is(i, svg)',
586 'text_typography' => '{{WRAPPER}} .rtsb-product-add-to-cart .quantity input',
587 'quantity_number_color' => '{{WRAPPER}} .rtsb-product-add-to-cart .quantity input',
588 'quantity_background_color' => '{{WRAPPER}} .rtsb-product-add-to-cart .quantity input',
589 'quantity_border' => '{{WRAPPER}} .rtsb-product-add-to-cart .quantity input',
590 'quantity_radius' => '{{WRAPPER}} .rtsb-product-add-to-cart .quantity input',
591 'qunatity_padding' => '{{WRAPPER}} .rtsb-product-add-to-cart .quantity input',
592 'quantity_wrapper_background_color' => '{{WRAPPER}} .rtsb-product-add-to-cart .quantity .rtsb-quantity-box-group',
593 'qunatity_wrapper_padding' => '{{WRAPPER}} .rtsb-product-add-to-cart .quantity .rtsb-quantity-box-group',
594 'quantity_wrapper_radius' => '{{WRAPPER}} .rtsb-product-add-to-cart .quantity .rtsb-quantity-box-group',
595 'variation_padding' => '{{WRAPPER}} .rtsb-product-add-to-cart .variations select, .rtwpvs {{WRAPPER}} .rtwpvs-terms-wrapper .rtwpvs-term:not(.rtwpvs-radio-term).rtwpvs-button-term',
596 'variation_label_margin' => '{{WRAPPER}} .rtsb-product-add-to-cart table.variations tr .label label',
597 'variation_item_margin' => '{{WRAPPER}} .rtsb-product-add-to-cart table.variations tr:not(:last-child) .value',
598 'variation_border' => '{{WRAPPER}} .rtsb-product-add-to-cart .variations select',
599 'price_typography' => '.single-product {{WRAPPER}} .single_variation .price',
600 'price_color' => '.single-product {{WRAPPER}} .single_variation :is(.price, .price .amount, .price ins)',
601 'price_margin' => '.single-product {{WRAPPER}} .single_variation :is(.price, .price .amount, .price ins)',
602 'variation_height' => '.rtwpvs {{WRAPPER}} .rtwpvs-terms-wrapper .rtwpvs-term:not(.rtwpvs-radio-term), {{WRAPPER}} .rtsb-product-add-to-cart .variations select',
603 'variation_width' => '.rtwpvs {{WRAPPER}} .rtwpvs-terms-wrapper .rtwpvs-term:not(.rtwpvs-radio-term), {{WRAPPER}} .rtsb-product-add-to-cart .variations select',
604 'variation_border_radius' => '.rtwpvs {{WRAPPER}} .rtwpvs-terms-wrapper .rtwpvs-term:not(.rtwpvs-radio-term), {{WRAPPER}} .rtsb-product-add-to-cart .variations select',
605 'variation_label_typography' => '{{WRAPPER}} .rtsb-product-add-to-cart table.variations tr .label label',
606 'variation_stock_typography' => '{{WRAPPER}} .rtsb-product-add-to-cart .woocommerce-variation-availability .stock',
607 'variation_label_color' => '{{WRAPPER}} .rtsb-product-add-to-cart table.variations tr .label label',
608 'variation_stock_color' => '{{WRAPPER}} .rtsb-product-add-to-cart .woocommerce-variation-availability .stock',
609 'variation_outofstock_color' => '{{WRAPPER}} .rtsb-product-add-to-cart .woocommerce-variation-availability .stock.out-of-stock',
610
611 ],
612 'rtsb-product-categories' => [
613 'align' => '{{WRAPPER}} .rtsb-product-categories',
614 'label_typo' => '{{WRAPPER}} .rtsb-product-categories .categories-title',
615 'meta_label_color' => '{{WRAPPER}} .rtsb-product-categories .categories-title',
616 'value_typo' => '{{WRAPPER}} .rtsb-product-categories a',
617 'meta_value_color' => '{{WRAPPER}} .rtsb-product-categories a',
618 'meta_value_hover_color' => '{{WRAPPER}} .rtsb-product-categories a:hover',
619 ],
620 'rtsb-product-description' => [
621 'typo' => '{{WRAPPER}} .rtsb-description, {{WRAPPER}} .rtsb-description p',
622 'align' => '{{WRAPPER}}',
623 'text_color' => '{{WRAPPER}} :is(.rtsb-description , p)',
624 'text_shadow' => '{{WRAPPER}} .rtsb-description , {{WRAPPER}} .rtsb-description p',
625 ],
626 'rtsb-product-tags' => [
627 'align' => '{{WRAPPER}} .rtsb-product-tags',
628 'label_typo' => '{{WRAPPER}} .rtsb-product-tags .tags-title',
629 'meta_label_color' => '{{WRAPPER}} .rtsb-product-tags .tags-title',
630 'value_typo' => '{{WRAPPER}} .rtsb-product-tags a',
631 'meta_value_color' => '{{WRAPPER}} .rtsb-product-tags a',
632 'meta_value_hover_color' => '{{WRAPPER}} .rtsb-product-tags a:hover',
633 ],
634
635 'rtsb-product-image' => [
636 'image_width' => '{{WRAPPER}} .rtsb-product-images .woocommerce-product-gallery__image a > img',
637 'image_border' => '{{WRAPPER}} .rtwpvg-wrapper .rtwpvg-slider-wrapper,{{WRAPPER}} .rtsb-product-images .woocommerce-product-gallery__image, {{WRAPPER}} .rtsb-product-images .product-vg-gallery',
638 'image_border_radius' => '{{WRAPPER}} .rtsb-product-images .woocommerce-product-gallery__image',
639 'gallery_thumbs_column' => '{{WRAPPER}} div.images .flex-control-thumbs li',
640 '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',
641 '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)',
642 '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',
643 'flash_sale_typography' => '{{WRAPPER}} .rtsb-product-images .onsale',
644 'product_flash_sale_color' => '{{WRAPPER}} .rtsb-product-images .onsale',
645 'flash_sale_bg_color' => '{{WRAPPER}} .rtsb-product-images .onsale',
646 'flash_sale_badge_width' => '{{WRAPPER}} .rtsb-product-images .onsale',
647 'flash_sale_badge_height' => '{{WRAPPER}} .rtsb-product-images .onsale',
648 'flash_sale_badge_border_radius' => '{{WRAPPER}} .rtsb-product-images .onsale',
649 'flash_sale_position_horizontal' => '{{WRAPPER}} .rtsb-product-images .onsale',
650 'flash_sale_position_vertical' => '{{WRAPPER}} .rtsb-product-images .onsale',
651 'zoom_color' => '{{WRAPPER}} .rtsb-product-images .images .woocommerce-product-gallery__trigger,{{WRAPPER}} .rtsb-product-images .rtwpvg-wrapper .rtwpvg-slider-wrapper .rtwpvg-trigger',
652
653 'zoom_bg_color' => '{{WRAPPER}} .rtsb-product-images .images .woocommerce-product-gallery__trigger,{{WRAPPER}} .rtsb-product-images .rtwpvg-wrapper .rtwpvg-slider-wrapper .rtwpvg-trigger',
654 'zoom_icon_size' => [
655 'icon' => '{{WRAPPER}} .rtsb-product-images .images .woocommerce-product-gallery__trigger,{{WRAPPER}} .rtsb-product-images .rtwpvg-wrapper .rtwpvg-slider-wrapper .rtwpvg-trigger :is(span, i)',
656 'svg' => '{{WRAPPER}} .rtsb-product-images .images .woocommerce-product-gallery__trigger svg, {{WRAPPER}} .rtsb-product-images .rtwpvg-wrapper .rtwpvg-slider-wrapper .rtwpvg-trigger svg',
657 ],
658 'zoom_badge_width' => '{{WRAPPER}} .rtsb-product-images .images .woocommerce-product-gallery__trigger,{{WRAPPER}} .rtsb-product-images .rtwpvg-wrapper .rtwpvg-slider-wrapper .rtwpvg-trigger',
659 'zoom_badge_height' => '{{WRAPPER}} .rtsb-product-images .images .woocommerce-product-gallery__trigger,{{WRAPPER}} .rtsb-product-images .rtwpvg-wrapper .rtwpvg-slider-wrapper .rtwpvg-trigger',
660 'zoom_badge_border_radius' => '{{WRAPPER}} .rtsb-product-images .images .woocommerce-product-gallery__trigger,{{WRAPPER}} .rtsb-product-images .rtwpvg-wrapper .rtwpvg-slider-wrapper .rtwpvg-trigger',
661 'zoom_padding' => '{{WRAPPER}} .rtsb-product-images .images .woocommerce-product-gallery__trigger,{{WRAPPER}} .rtsb-product-images .rtwpvg-wrapper .rtwpvg-slider-wrapper .rtwpvg-trigger',
662 'zoom_position_horizontal' => [
663 'zoom_position' => '{{WRAPPER}} .rtsb-product-images .images .woocommerce-product-gallery__trigger',
664 '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)',
665 '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)',
666 ],
667 'zoom_position_vertical' => [
668 'zoom-icon-top' => '{{WRAPPER}} .rtsb-product-images .images .woocommerce-product-gallery__trigger, {{WRAPPER}} .rtsb-product-images .rtwpvg-trigger',
669 '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)',
670 ],
671 ],
672 'rtsb-product-meta' => [
673 'meta_layout' => '{{WRAPPER}} .rtsb-product-meta .product_meta',
674 'align' => '{{WRAPPER}} .product_meta',
675 'row_gap' => '{{WRAPPER}} .rtsb-product-meta .product_meta',
676 'column_gap' => '{{WRAPPER}} .rtsb-product-meta .product_meta',
677 'meta_padding' => '{{WRAPPER}} .rtsb-product-meta .product_meta :is(.sku_wrapper, .posted_in, .tagged_as)',
678 'label_typo' => '{{WRAPPER}} .rtsb-product-meta .product_meta .rtsb-meta-label',
679 'meta_label_color' => '{{WRAPPER}} .rtsb-product-meta .product_meta .rtsb-meta-label',
680 'value_typo' => '{{WRAPPER}} .rtsb-product-meta .product_meta :is(.sku, .posted_in a, .tagged_as a)',
681 'meta_value_color' => '{{WRAPPER}} .rtsb-product-meta .product_meta :is(.sku, .posted_in a, .tagged_as a)',
682 'meta_value_hover_color' => '{{WRAPPER}} .rtsb-product-meta .product_meta :is(.posted_in a, .tagged_as a):hover',
683 ],
684 'rtsb-product-price' => [
685 'price_align' => '{{WRAPPER}}',
686 'space_between' => [
687 'del_price' => '{{WRAPPER}} .rtsb-product-price .price del',
688 'del_price_rtl' => '.rtl {{WRAPPER}} .rtsb-product-price .price del',
689 ],
690 'price_typo' => '{{WRAPPER}} .rtsb-product-price :is(.price, .price .amount, .price ins)',
691 'price_color' => '{{WRAPPER}} .rtsb-product-price :is(.price, .price .amount, .price ins)',
692 'sale_price_typo' => '{{WRAPPER}} .rtsb-product-price .price ins .amount',
693 'sale_price_color' => '{{WRAPPER}} .rtsb-product-price .price ins .amount',
694 ],
695 // New Convension.
696 'rtsb-product-rating' => array_merge(
697 self::review_star_icon_selector(),
698 [
699 'rating_align' => '{{WRAPPER}}',
700 'rating_text_link_color' => '{{WRAPPER}} .woocommerce-review-link',
701 'rating_text_link_hover_color' => '{{WRAPPER}} .woocommerce-review-link:hover',
702 'link_typography' => '{{WRAPPER}} .woocommerce-review-link',
703 'rating_space_between' => [
704 'margin-right' => 'body:not(.rtl) {{WRAPPER}} .star-rating',
705 'margin-left' => 'body.rtl {{WRAPPER}} .star-rating',
706 ],
707 ]
708 ),
709 'rtsb-product-reviews' => self::reviews_settings_selecotor(),
710 'rtsb-product-sku' => [
711 'align' => '{{WRAPPER}} .rtsb-product-sku',
712 'label_typo' => '{{WRAPPER}} .rtsb-product-sku .sku-label',
713 'meta_label_color' => '{{WRAPPER}} .rtsb-product-sku .sku-label',
714 'value_typo' => '{{WRAPPER}} .rtsb-product-sku .sku-value',
715 'meta_value_color' => '{{WRAPPER}} .rtsb-product-sku .sku-value',
716 'meta_value_hover_color' => '{{WRAPPER}} .rtsb-product-sku .sku-value:hover',
717 ],
718 'rtsb-product-stock' => [
719 'stock_text_typography' => '{{WRAPPER}} .rtsb-product-stock .stock .rtsb-stock-text',
720 'in_stock_color' => '{{WRAPPER}} .rtsb-product-stock .stock.in-stock .rtsb-stock-text',
721 'outof_stock_color' => '{{WRAPPER}} .rtsb-product-stock .stock.out-of-stock .rtsb-stock-text',
722 'backorder_stock_color' => '{{WRAPPER}} .rtsb-product-stock .stock.available-on-backorder .rtsb-stock-text',
723 'icon_size' => [
724 'icon' => '{{WRAPPER}} .rtsb-product-stock .stock i',
725 'svg' => '{{WRAPPER}} .rtsb-product-stock .stock svg',
726 ],
727 'icon_gap' => '{{WRAPPER}} .rtsb-product-stock .stock :is(i, svg)',
728 'stock_alignment' => '{{WRAPPER}} .rtsb-product-stock > .stock',
729 'stock_padding' => '{{WRAPPER}} .rtsb-product-stock > .stock',
730 'stock_margin' => '{{WRAPPER}} .rtsb-product-stock > .stock',
731 ],
732 'rtsb-product-tabs' => array_merge(
733 self::reviews_settings_selecotor(),
734 [
735 'nav_typography' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs ul.tabs li a',
736 'nav_position' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs.tabs-custom-layout2 ul.wc-tabs',
737 'nav_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs ul.tabs li a',
738 'nav_bg_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs ul.tabs li a',
739 'nav_border' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs ul.tabs li',
740
741 'nav_active_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs ul.tabs li.active a',
742 'nav_active_bg_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs ul.tabs li.active a',
743 'nav_active_border_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs ul.tabs li.active',
744 'nav_hover_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs ul.tabs li:not(.active):hover a',
745 'nav_hover_bg_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs ul.tabs li:not(.active):hover a',
746 'nav_active_hover_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs ul.tabs li.active:hover a',
747 'nav_active_hover_bg_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs ul.tabs li.active:hover a',
748 'nav_active_hover_border_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs ul.tabs li.active:hover a',
749 'nav_padding' => '#rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs ul.tabs li a ',
750 'content_padding' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs .wc-tab ',
751
752 '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',
753 'tab_title_typography' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs .wc-tab h2',
754 'tab_title_gap' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs .wc-tab h2',
755 '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',
756
757 'additional_info_typography' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs .woocommerce-tabs .wc-tab .shop_attributes :is(th, td, td p)',
758 'attributes_gap' => '.rtsb-builder-content {{WRAPPER}} .rtsb-product-tabs table.shop_attributes td,{{WRAPPER}} .rtsb-product-tabs table.shop_attributes th',
759 ]
760 ),
761 'rtsb-product-title' => [
762 'title_typo' => '{{WRAPPER}} .product_title',
763 'title_align' => '{{WRAPPER}}',
764 'title_color' => '{{WRAPPER}} .product_title',
765 'title_text_stroke' => '{{WRAPPER}} .product_title',
766 'title_text_shadow' => '{{WRAPPER}} .product_title',
767 'title_margin' => '{{WRAPPER}} .product_title',
768 'title_padding' => '{{WRAPPER}} .product_title',
769 'title_border' => '{{WRAPPER}} .product_title',
770 ],
771 'rtsb-short-description' => [
772 'typo' => '{{WRAPPER}} .rtsb-short-description, {{WRAPPER}} .rtsb-short-description p',
773 'align' => '{{WRAPPER}}',
774 'text_color' => '{{WRAPPER}} :is(.rtsb-short-description , p)',
775 'text_shadow' => '{{WRAPPER}} .rtsb-short-description, {{WRAPPER}} .rtsb-short-description p',
776 ],
777 // The widget badge lives inside `{{WRAPPER}} .rtsb-product-onsale`; the Badges
778 // module also renders group badges on the main product gallery (above-image
779 // position). Style both from the same controls by pairing the widget selector
780 // with a gallery-scoped selector for the module group badges. The gallery
781 // scope (`.woocommerce-product-gallery`/`.rtsb-product-images`) keeps related
782 // product card badges untouched.
783 'rtsb-product-onsale' => [
784 '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)',
785 '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)',
786 '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)',
787 '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)',
788 '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)',
789 '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)',
790 '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)',
791 'product_badges' => [
792 // Match BOTH the free wrapper (.rtsb-product-onsale, from
793 // templates/elementor/single-product/product-badges.php) AND the pro wrapper
794 // (.rtsb-product-badges-widgets, from the pro template override). Scoping only to
795 // `.rtsb-product-onsale` made every badge style control (typography/color/bg/
796 // border/padding/margin) silently no-op on pro sites, where that div is absent.
797 // `:is()` matches the most specific arg, preserving the original (0,3,0) specificity.
798 // Padding/margin also target the Badges-module group badges on the product gallery.
799 'typography' => '{{WRAPPER}} :is(.rtsb-product-onsale, .rtsb-product-badges-widgets) :is(.rtsb-tag-fill, .rtsb-tag-outline)',
800 'color' => '{{WRAPPER}} :is(.rtsb-product-onsale, .rtsb-product-badges-widgets) :is(.rtsb-tag-fill,.rtsb-tag-outline)',
801 'bg_color' => '{{WRAPPER}} :is(.rtsb-product-onsale, .rtsb-product-badges-widgets) :is(.rtsb-tag-fill,.rtsb-tag-outline)',
802 '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',
803 'border_radius' => '{{WRAPPER}} :is(.rtsb-product-onsale, .rtsb-product-badges-widgets) :is(.rtsb-tag-fill,.rtsb-tag-outline)',
804 '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)',
805 '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)',
806 'position_x' => '',
807 'position_y' => '',
808 ],
809 'badges_module' => [
810 // Compound (no descendant combinator): `.rtsb-badge-group-style` and `.rtsb-promotion`
811 // are emitted on the SAME element by BadgesFrontEnd::group_badges_html(). The pro
812 // single-product template drops the outer `.rtsb-promotion` wrapper, so a descendant
813 // selector matches nothing and the Direction/Alignment controls silently no-op.
814 'direction' => '{{WRAPPER}} .rtsb-promotion.rtsb-badge-group-style',
815 'alignment' => '{{WRAPPER}} .rtsb-promotion.rtsb-badge-group-style',
816 'alignment_wrap' => '{{WRAPPER}} .rtsb-badge-container .rtsb-promotion:not(.rtsb-badge-group-style)',
817 ],
818 ],
819 ];
820
821 return apply_filters( 'rtsb/elements/elementor/widget/product/selectors', $selectors );
822 }
823
824 /**
825 * Archive Selectors.
826 *
827 * @return array
828 */
829 private static function archive_widget_selectors(): array {
830 $selectors = [
831
832 'rtsb-products-archive' => array_merge(
833 self::products_loop_default_selector(),
834 [
835 'column_per_row' => '{{WRAPPER}} .rtsb-product-catalog.product-catalog-grid-view .products .product',
836 'column_gap' => '{{WRAPPER}} .rtsb-product-catalog.product-catalog-grid-view .products',
837 'row_gap' => '{{WRAPPER}} .rtsb-product-catalog .products',
838 'list_image_width' => '{{WRAPPER}} .rtsb-product-catalog.product-catalog-list-view .rtsb-image-wrapper',
839 'image_gap' => [
840 'margin-right' => '{{WRAPPER}} .rtsb-product-catalog.product-catalog-list-view .rtsb-image-wrapper',
841 'margin-bottom' => '{{WRAPPER}} .rtsb-product-catalog.product-catalog-grid-view .rtsb-image-wrapper',
842 ],
843 ],
844 ),
845
846 'rtsb-products-archive-custom' => array_merge(
847 self::general_common_selectors(),
848 self::general_product_selectors()
849 ),
850
851 'rtsb-archive-title' => [
852 'archive_title_align' => '{{WRAPPER}}',
853 'archive_title_color' => '{{WRAPPER}} .archive-title',
854 'title_typo' => '{{WRAPPER}} .archive-title',
855 'text_stroke' => '{{WRAPPER}} .archive-title',
856 'text_shadow' => '{{WRAPPER}} .archive-title',
857 ],
858 'rtsb-archive-description' => [
859 'typo' => '{{WRAPPER}} .rtsb-archive-description',
860 'align' => '{{WRAPPER}}',
861 'text_color' => '{{WRAPPER}}',
862 'text_shadow' => '{{WRAPPER}} .rtsb-archive-description',
863 ],
864 'rtsb-archive-product-mode' => [
865 'icon_size' => [
866 'icon' => '{{WRAPPER}} .rtsb-archive-view-mode i',
867 'svg' => '{{WRAPPER}} .rtsb-archive-view-mode svg',
868 ],
869 'mode_button_align' => '{{WRAPPER}}',
870 'mode_button_height' => '{{WRAPPER}} .rtsb-archive-view-mode a',
871 'mode_button_width' => '{{WRAPPER}} .rtsb-archive-view-mode a',
872 'mode_button_gap' => '{{WRAPPER}} .rtsb-archive-view-mode',
873 'mode_button_bg_color' => '{{WRAPPER}} .rtsb-archive-view-mode a',
874 'text_color' => '{{WRAPPER}} .rtsb-archive-view-mode a',
875 'mode_button_border' => '{{WRAPPER}} .rtsb-archive-view-mode a',
876 'mode_button_bg_hover_color' => '{{WRAPPER}} .rtsb-archive-view-mode a:hover,{{WRAPPER}} .rtsb-archive-view-mode a.active',
877 'text_hover_color' => '{{WRAPPER}} .rtsb-archive-view-mode a:hover,{{WRAPPER}} .rtsb-archive-view-mode a.active',
878 'mode_button_border_hover_color' => '{{WRAPPER}} .rtsb-archive-view-mode a:hover,{{WRAPPER}} .rtsb-archive-view-mode a.active',
879 'mode_button_radius' => '{{WRAPPER}} .rtsb-archive-view-mode a',
880 ],
881 'rtsb-archive-result-count' => [
882 'align' => '{{WRAPPER}}',
883 'text_color' => '{{WRAPPER}}',
884 // Also target the inner <p> (woocommerce_result_count output): text-decoration
885 // is not inherited and does not draw through the descendant block, so it must
886 // hit the text element directly. Other typography keeps working via the div.
887 'typo' => '{{WRAPPER}} .rtsb-archive-result-count, {{WRAPPER}} .rtsb-archive-result-count .woocommerce-result-count',
888 'text_shadow' => '{{WRAPPER}} .rtsb-archive-result-count',
889 ],
890 'rtsb-products-ordering' => [
891 'typo' => '{{WRAPPER}} .rtsb-archive-catalog-ordering :is( .woocommerce-ordering, select )',
892 'align' => '{{WRAPPER}}',
893 'orderby_height' => '{{WRAPPER}} .rtsb-archive-catalog-ordering .woocommerce-ordering .orderby',
894 'orderby_width' => '{{WRAPPER}} .rtsb-archive-catalog-ordering .woocommerce-ordering,{{WRAPPER}} .rtsb-archive-catalog-ordering .woocommerce-ordering .orderby',
895 'ordering_padding' => '{{WRAPPER}} .rtsb-archive-catalog-ordering .woocommerce-ordering .orderby',
896 'orderby_bg_color' => '{{WRAPPER}} .rtsb-archive-catalog-ordering .woocommerce-ordering .orderby',
897 'text_color' => '{{WRAPPER}} .rtsb-archive-catalog-ordering .woocommerce-ordering .orderby',
898 'orderby_border' => '{{WRAPPER}} .rtsb-archive-catalog-ordering .woocommerce-ordering .orderby',
899 'orderby_bg_hover_color' => '{{WRAPPER}} .rtsb-archive-catalog-ordering .woocommerce-ordering .orderby:hover',
900 'text_hover_color' => '{{WRAPPER}} .rtsb-archive-catalog-ordering .woocommerce-ordering .orderby:hover',
901 'orderby_border_hover_color' => '{{WRAPPER}} .rtsb-archive-catalog-ordering .woocommerce-ordering .orderby:hover',
902 'orderby_radius' => '{{WRAPPER}} .rtsb-archive-catalog-ordering .woocommerce-ordering .orderby',
903 ],
904 'rtsb-product-filters' => ProductFilters\Selectors::get_selectors(),
905 ];
906
907 return apply_filters( 'rtsb/elements/elementor/widget/archive/selectors', $selectors );
908 }
909
910 /**
911 * Cart Selectors.
912 *
913 * @return array
914 */
915 private static function cart_widget_selectors(): array {
916 $selectors = [
917 'rtsb-cross-sells' => array_merge(
918 self::products_loop_default_selector(),
919 self::carousel_selector(),
920 [
921 'section_heading_typography' => '{{WRAPPER}} .rtsb-cross-sell .cross-sells > h2',
922 'section_heading_color' => '{{WRAPPER}} .rtsb-cross-sell .cross-sells > h2',
923 'section_title_margin' => '{{WRAPPER}} .rtsb-cross-sell .cross-sells > h2',
924 'section_title_align' => '{{WRAPPER}} .rtsb-cross-sell .cross-sells > h2',
925 ],
926 ),
927
928 'rtsb-cross-sell-product-custom' => array_merge(
929 self::general_common_selectors(),
930 self::general_product_selectors()
931 ),
932
933 'rtsb-crosssell-product-slider' => array_merge(
934 self::general_common_selectors(),
935 self::general_product_selectors(),
936 self::general_slider_selectors(),
937 ),
938
939 'rtsb-product-cart-totals' => [
940 'show_title' => '{{WRAPPER}} .rtsb-cart-totals h2',
941 'table_min_width' => '.rtsb-builder-content {{WRAPPER}} .rtsb-table-horizontal-scroll-on-mobile table.shop_table',
942 // Title Style.
943 'title_align' => '{{WRAPPER}} .rtsb-cart-totals h2',
944 'title_typo' => '{{WRAPPER}} .rtsb-cart-totals h2',
945 'title_color' => '{{WRAPPER}} .rtsb-cart-totals h2',
946 'title_text_stroke' => '{{WRAPPER}} .rtsb-cart-totals h2',
947 'title_text_shadow' => '{{WRAPPER}} .rtsb-cart-totals h2',
948 'title_margin' => '{{WRAPPER}} .rtsb-cart-totals h2',
949 'title_padding' => '{{WRAPPER}} .rtsb-cart-totals h2',
950 'title_border' => '{{WRAPPER}} .rtsb-cart-totals h2',
951 // Table.
952 'table_heading_cell_border' => '#rtsb-builder-content {{WRAPPER}} .rtsb-cart-totals th,#rtsb-builder-content {{WRAPPER}} .rtsb-cart-totals td',
953 'table_heading_cell_padding' => '{{WRAPPER}} .rtsb-cart-totals th,{{WRAPPER}} .rtsb-cart-totals td',
954 'table_heading_typography' => '{{WRAPPER}} .rtsb-cart-totals th',
955 'table_heading_color' => '{{WRAPPER}} .rtsb-cart-totals th',
956 'table_heading_background_color' => '{{WRAPPER}} .rtsb-cart-totals th',
957 'table_heading_align' => '{{WRAPPER}} .rtsb-cart-totals th',
958 'total_heading_width' => '{{WRAPPER}} .rtsb-cart-totals th',
959 'table_cell_typography' => '{{WRAPPER}} .rtsb-cart-totals td *',
960 'table_cell_color' => '{{WRAPPER}} .rtsb-cart-totals td',
961 'table_cell_background_color' => '{{WRAPPER}} .rtsb-cart-totals td',
962 'table_cell_align' => '{{WRAPPER}} .rtsb-cart-totals td, .woocommerce .rtsb-builder-content {{WRAPPER}} ul#shipping_method li',
963 'total_cell_heading_width' => '{{WRAPPER}} .rtsb-cart-totals td',
964 'table_wrapper_border' => '{{WRAPPER}} .rtsb-cart-totals .shop_table',
965 'table_wrapper_padding' => '{{WRAPPER}} .rtsb-cart-totals .shop_table',
966 'button_typography' => '{{WRAPPER}} .rtsb-cart-totals .button',
967 'button_height' => '{{WRAPPER}} .rtsb-cart-totals .button',
968 'button_width' => '{{WRAPPER}} .rtsb-cart-totals .button',
969 'button_text_color_normal' => '{{WRAPPER}} .rtsb-cart-totals .button',
970 'button_bg_color_normal' => '{{WRAPPER}} .rtsb-cart-totals .button',
971 'button_border' => '{{WRAPPER}} .rtsb-cart-totals .button',
972 'button_text_color_hover' => '{{WRAPPER}} .rtsb-cart-totals .button:hover',
973 'button_bg_color_hover' => '{{WRAPPER}} .rtsb-cart-totals .button:hover',
974 'button_border_hover_color' => '{{WRAPPER}} .rtsb-cart-totals .button:hover',
975 'button_border_radius' => '{{WRAPPER}} .rtsb-cart-totals .button',
976 'button_padding' => '{{WRAPPER}} .rtsb-cart-totals .button',
977 'button_margin' => '{{WRAPPER}} .rtsb-cart-totals .button',
978
979 ],
980 'rtsb-product-carttable' => [
981 'button_typography' => '{{WRAPPER}} .woocommerce-cart-form .button',
982 'button_height' => '{{WRAPPER}} .woocommerce-cart-form .button',
983 'button_width' => '{{WRAPPER}} .woocommerce-cart-form .button',
984 'button_text_color_normal' => '{{WRAPPER}} .woocommerce-cart-form .button',
985 'button_bg_color_normal' => '{{WRAPPER}} .woocommerce-cart-form .button',
986 'button_border' => '{{WRAPPER}} .woocommerce-cart-form .button',
987 'button_text_color_hover' => '{{WRAPPER}} .woocommerce-cart-form .button:hover',
988 'button_bg_color_hover' => '{{WRAPPER}} .woocommerce-cart-form .button:hover',
989 'button_border_hover_color' => '{{WRAPPER}} .woocommerce-cart-form .button:hover',
990 'button_border_radius' => '{{WRAPPER}} .woocommerce-cart-form .button',
991 'button_padding' => '{{WRAPPER}} .woocommerce-cart-form .button',
992 'button_margin' => '{{WRAPPER}} .woocommerce-cart-form .button',
993 'coupon_typography' => '{{WRAPPER}} .woocommerce-cart-form .coupon input',
994 'coupon_input_height' => '{{WRAPPER}} .woocommerce-cart-form .coupon input',
995 'coupon_input_width' => '{{WRAPPER}} .woocommerce-cart-form .coupon input',
996 'coupon_padding' => '{{WRAPPER}} .woocommerce-cart-form .coupon input',
997 'coupon_border_radius' => '{{WRAPPER}} .woocommerce-cart-form .coupon input',
998 'coupon_input_border' => '{{WRAPPER}} .woocommerce-cart-form .coupon .input-text',
999 'input_text_color' => '{{WRAPPER}} .woocommerce-cart-form input, {{WRAPPER}} .woocommerce-cart-form input::placeholder',
1000 'input_bg_color' => '{{WRAPPER}} .woocommerce-cart-form input',
1001
1002 'return_shop_button_typography' => '{{WRAPPER}} .return-to-shop .button',
1003 'return_shop_button_height' => '{{WRAPPER}} .return-to-shop .button',
1004 'return_shop_button_text_color_normal' => '{{WRAPPER}} .return-to-shop .button',
1005 'return_shop_button_bg_color_normal' => '{{WRAPPER}} .return-to-shop .button',
1006 'return_shop_button_border' => '{{WRAPPER}} .return-to-shop .button',
1007 'return_shop_button_text_color_hover' => '{{WRAPPER}} .return-to-shop .button:hover',
1008 'return_shop_button_bg_color_hover' => '{{WRAPPER}} .return-to-shop .button:hover',
1009 'return_shop_button_border_hover_color' => '{{WRAPPER}} .return-to-shop .button:hover',
1010 'return_shop_button_border_radius' => '{{WRAPPER}} .return-to-shop .button',
1011 'return_shop_button_padding' => '{{WRAPPER}} .return-to-shop .button',
1012 'return_shop_button_margin' => '{{WRAPPER}} .return-to-shop .button',
1013
1014 'notice_typography' => '{{WRAPPER}} .rtsb-cart-table .wc-block-components-notice-banner',
1015 'notice_padding' => '{{WRAPPER}} .rtsb-cart-table .wc-block-components-notice-banner',
1016 'notice_bg_color' => '{{WRAPPER}} .rtsb-cart-table .wc-block-components-notice-banner',
1017 'notice_text_color' => '{{WRAPPER}} .rtsb-cart-table .wc-block-components-notice-banner',
1018 'notice_border_color' => '{{WRAPPER}} .rtsb-cart-table .wc-block-components-notice-banner',
1019 'icon_color' => '{{WRAPPER}} .rtsb-cart-table .wc-block-components-notice-banner svg',
1020 'notice_icon_size' => '{{WRAPPER}} .rtsb-cart-table .wc-block-components-notice-banner svg',
1021 'icon_bg_color' => '{{WRAPPER}} .rtsb-cart-table .wc-block-components-notice-banner svg',
1022 'icon_margin' => '{{WRAPPER}} .rtsb-cart-table .wc-block-components-notice-banner svg',
1023
1024 'table_thumbnail_width' => '{{WRAPPER}} .shop_table :is( .product-thumbnail, .product-data ) img',
1025 'table_thumbnail_border_radius' => '{{WRAPPER}} .shop_table :is( .product-thumbnail, .product-data ) img',
1026 'table_thumbnail_padding' => '{{WRAPPER}} .shop_table :is( .product-thumbnail, .product-data )',
1027 'cart_remove_icon_size' => '{{WRAPPER}} .woocommerce table.shop_table tbody tr td.product-remove a',
1028 'cart_remove_button_size' => '{{WRAPPER}} .woocommerce table.shop_table tbody tr td.product-remove a',
1029 'cart_icon_color' => '{{WRAPPER}} .woocommerce table.shop_table tbody tr td.product-remove a',
1030 'cart_icon_bg_color' => '{{WRAPPER}} .woocommerce table.shop_table tbody tr td.product-remove a',
1031 'cart_icon_hover_color' => '{{WRAPPER}} .woocommerce table.shop_table tbody tr td.product-remove a:hover',
1032 'cart_icon_hover_bg_color' => '{{WRAPPER}} .woocommerce table.shop_table tbody tr td.product-remove a:hover',
1033 'table_column_header_padding' => '{{WRAPPER}} .woocommerce table.shop_table thead tr th',
1034 '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',
1035 'cart_table_border' => '{{WRAPPER}} .woocommerce table.shop_table',
1036
1037 'table_wrapper_margin' => '{{WRAPPER}} .woocommerce :is(table.shop_table, form )',
1038 'element_alignment' => '#rtsb-builder-content {{WRAPPER}} th.product-subtotal, #rtsb-builder-content {{WRAPPER}} td.product-subtotal',
1039 'action_button_padding' => '{{WRAPPER}} .woocommerce :is(table.shop_table, from ) .actions-button-wrapper',
1040
1041 'cart_subtotal_price_typo' => '{{WRAPPER}} .rtsb-cart-table table.shop_table tr td .amount',
1042 'cart_price_color' => '{{WRAPPER}} .rtsb-cart-table table.shop_table tr td .amount',
1043
1044 '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',
1045 'cart_product_title_color' => '{{WRAPPER}} .rtsb-cart-table table.shop_table tr td:is(.product-name, .product-data) a',
1046 'cart_product_title_typo' => '{{WRAPPER}} .rtsb-cart-table table.shop_table tr td:is(.product-name, .product-data) a',
1047 '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',
1048
1049 'cart_product_title_meta_typo' => '{{WRAPPER}} .rtsb-cart-table table.shop_table tr td:is(.product-name, .product-data) .product-attributes li',
1050 'cart_product_title_meta_color' => '{{WRAPPER}} .rtsb-cart-table table.shop_table tr td:is(.product-name, .product-data) .product-attributes li',
1051
1052 'cart_subtotal_button_typo' => '{{WRAPPER}} td.product-subtotal .subtotal-action-button-wrapper a',
1053 'cart_subtotal_price_padding' => '{{WRAPPER}} td.product-subtotal .table-column-wrapper .amount',
1054 'cart_subtotal_price_margin' => '{{WRAPPER}} td.product-subtotal .table-column-wrapper .amount',
1055 'cart_subtotal_button_gap' => '{{WRAPPER}} td.product-subtotal .table-column-wrapper .subtotal-action-button-wrapper',
1056 'cart_subtotal_button_wrapper_padding' => '{{WRAPPER}} td.product-subtotal .table-column-wrapper .subtotal-action-button-wrapper',
1057 'cart_subtotal_col_wrapper_padding' => '.rtsb-builder-content {{WRAPPER}} .rtsb-cart-table table.shop_table tbody tr td.product-subtotal',
1058
1059 'table_min_width' => '.rtsb-builder-content {{WRAPPER}} .rtsb-table-horizontal-scroll-on-mobile table.shop_table',
1060 'cart_table_cell_width' => [
1061 'th' => '{{WRAPPER}} .shop_table.cart tr th',
1062 'td' => '{{WRAPPER}} .shop_table.cart tr td',
1063 ],
1064
1065 'clear_cart_button_bg_color' => '{{WRAPPER}} .woocommerce-cart-form .button.rtsb-clear-cart-items',
1066 'clear_cart_button_text_color' => '{{WRAPPER}} .woocommerce-cart-form .button.rtsb-clear-cart-items',
1067 'clear_cart_button_border_color' => '{{WRAPPER}} .woocommerce-cart-form .button.rtsb-clear-cart-items',
1068 'clear_cart_button_bg_color_hover' => '{{WRAPPER}} .woocommerce-cart-form .button.rtsb-clear-cart-items:hover',
1069 'clear_cart_button_text_color_hover' => '{{WRAPPER}} .woocommerce-cart-form .button.rtsb-clear-cart-items:hover',
1070 'clear_cart_button_border_color_hover' => '{{WRAPPER}} .woocommerce-cart-form .button.rtsb-clear-cart-items:hover',
1071
1072 // Table.
1073 'table_row_border' => '.rtsb-builder-content {{WRAPPER}} .rtsb-cart-table table.shop_table :is( thead, tbody ) tr',
1074
1075 'cart_table_header_typography' => '.rtsb-builder-content {{WRAPPER}} .rtsb-cart-table table.shop_table tr th',
1076 'cart_heading_element_alignment' => '#rtsb-builder-content {{WRAPPER}} .woocommerce table.shop_table th',
1077 'cart_table_header_bg_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-cart-table table.shop_table thead',
1078 'cart_table_header_text_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-cart-table table.shop_table tr th',
1079
1080 'cart_table_odd_row_bg_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-cart-table table.shop_table tbody tr:nth-child(odd)',
1081 'cart_table_odd_row_text_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-cart-table table.shop_table tr:nth-child(odd) td',
1082
1083 'cart_table_even_row_bg_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-cart-table table.shop_table tbody tr:nth-child(even)',
1084 'cart_table_even_row_text_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-cart-table table.shop_table tr:nth-child(even) td',
1085
1086 'cart_table_col_padding' => '.rtsb-builder-content {{WRAPPER}} .rtsb-cart-table table.shop_table tbody tr td:not(.product-remove)',
1087 'cart_table_col_attributes_padding' => '{{WRAPPER}} .rtsb-cart-table table.shop_table tbody tr td .product-attributes-wrapper',
1088 'cart_table_row_padding' => '.rtsb-builder-content {{WRAPPER}} .rtsb-cart-table table.shop_table tbody tr',
1089
1090 'cart_link_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-cart-table table.shop_table tr td a',
1091 'cart_link_hover_color' => '.rtsb-builder-content {{WRAPPER}} .rtsb-cart-table table.shop_table tr td a:hover',
1092
1093 // Cart Quantity.
1094 'quantity_input_width' => '{{WRAPPER}} .woocommerce-cart-form input.qty',
1095 'quantity_height' => [
1096 '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',
1097 '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',
1098 ],
1099 'quantity_increment_button_padding' => '{{WRAPPER}} .woocommerce-cart-form .rtsb-quantity-box-group .rtsb-quantity-btn.rtsb-quantity-plus',
1100 'quantity_decrement_button_padding' => '{{WRAPPER}} .woocommerce-cart-form .rtsb-quantity-box-group .rtsb-quantity-btn.rtsb-quantity-minus',
1101
1102 'quantity_button_width' => '{{WRAPPER}} .woocommerce-cart-form .rtsb-quantity-box-group .rtsb-quantity-btn',
1103 'icon_size' => [
1104 'icon' => '{{WRAPPER}} .woocommerce-cart-form .rtsb-quantity-box-group .rtsb-quantity-btn',
1105 'svg' => '{{WRAPPER}} .woocommerce-cart-form .rtsb-quantity-box-group .rtsb-quantity-btn svg',
1106 ],
1107 'quantity_icon_color' => '{{WRAPPER}} .woocommerce-cart-form .quantity :is(i, svg)',
1108 'quantity_icon_hover_color' => '{{WRAPPER}} .woocommerce-cart-form .quantity .rtsb-quantity-btn:hover :is(i, svg)',
1109 'text_typography' => '{{WRAPPER}} .woocommerce-cart-form .quantity input',
1110 'quantity_number_color' => '{{WRAPPER}} .woocommerce-cart-form .quantity input',
1111 'quantity_background_color' => '{{WRAPPER}} .woocommerce-cart-form .quantity input',
1112 'quantity_border' => '{{WRAPPER}} .woocommerce-cart-form .quantity input',
1113 'quantity_radius' => '{{WRAPPER}} .woocommerce-cart-form .quantity input',
1114 'qunatity_padding' => '{{WRAPPER}} .woocommerce-cart-form .quantity input',
1115 'quantity_wrapper_background_color' => '{{WRAPPER}} .woocommerce-cart-form .quantity .rtsb-quantity-box-group',
1116 'qunatity_wrapper_padding' => '{{WRAPPER}} .woocommerce-cart-form .quantity .rtsb-quantity-box-group',
1117 'quantity_wrapper_radius' => '{{WRAPPER}} .woocommerce-cart-form .quantity .rtsb-quantity-box-group',
1118 ],
1119 ];
1120
1121 return apply_filters( 'rtsb/elements/elementor/widget/cart/selectors', $selectors );
1122 }
1123
1124 /**
1125 * Checkout Selectors.
1126 *
1127 * @return array
1128 */
1129 private static function checkout_widget_selectors(): array {
1130 $selectors = [
1131 'rtsb-billing-form' => [
1132 // Title.
1133 'show_title' => '{{WRAPPER}} .woocommerce-billing-fields h3',
1134 'title_typo' => '{{WRAPPER}} .woocommerce-billing-fields h3',
1135 'title_align' => '{{WRAPPER}} .woocommerce-billing-fields h3',
1136 'title_color' => '{{WRAPPER}} .woocommerce-billing-fields h3',
1137 'title_text_stroke' => '{{WRAPPER}} .woocommerce-billing-fields h3',
1138 'title_text_shadow' => '{{WRAPPER}} .woocommerce-billing-fields h3',
1139 'title_margin' => '{{WRAPPER}} .woocommerce-billing-fields h3',
1140 'title_padding' => '{{WRAPPER}} .woocommerce-billing-fields h3',
1141 'title_border' => '{{WRAPPER}} .woocommerce-billing-fields h3',
1142 // Label.
1143 'fields_label_typo' => '{{WRAPPER}} .woocommerce-billing-fields label',
1144 'fields_label_color' => '{{WRAPPER}} .woocommerce-billing-fields label',
1145 'fields_label_reguired_color' => '{{WRAPPER}} .woocommerce-billing-fields label .required',
1146 'fields_label_margin' => '{{WRAPPER}} .woocommerce-billing-fields label:not(.radio)',
1147
1148 // Input Fields.
1149 'textarea_fields_height' => '{{WRAPPER}} .woocommerce-billing-fields textarea',
1150 'fields_height' => '{{WRAPPER}} .woocommerce-billing-fields input:not([type=checkbox],[type=radio]), {{WRAPPER}} .rtsb-form-billing .select2-selection--single, {{WRAPPER}} .woocommerce-billing-fields select',
1151 'fields_border' => '{{WRAPPER}} .woocommerce-billing-fields :is(input, textarea), {{WRAPPER}} .woocommerce-billing-fields .select2-selection--single, {{WRAPPER}} .woocommerce-billing-fields select',
1152
1153 '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',
1154
1155 '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',
1156 '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',
1157
1158 // Hover.
1159 '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)',
1160
1161 '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)',
1162
1163 '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',
1164 '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',
1165 '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 )',
1166
1167 'form_row_margin' => '{{WRAPPER}} .woocommerce-billing-fields p.form-row',
1168 'form_wrapper_margin' => '{{WRAPPER}} .woocommerce-billing-fields .woocommerce-billing-fields__field-wrapper',
1169
1170 ],
1171 'rtsb-shipping-form' => [
1172 // Label.
1173 'form_heading_gap' => '{{WRAPPER}} .rtsb-form-shipping #ship-to-different-address',
1174 'form_heading_color' => '{{WRAPPER}} .rtsb-form-shipping #ship-to-different-address',
1175 'form_heading_typo' => '{{WRAPPER}} .rtsb-form-shipping #ship-to-different-address',
1176
1177 'fields_label_typo' => '{{WRAPPER}} .rtsb-form-shipping .shipping_address label',
1178 'fields_label_color' => '{{WRAPPER}} .rtsb-form-shipping .shipping_address label',
1179 'fields_label_reguired_color' => '{{WRAPPER}} .rtsb-form-shipping .shipping_address label .required',
1180 'fields_label_margin' => '{{WRAPPER}} .rtsb-form-shipping .shipping_address label:not(.radio)',
1181
1182 // Input Fields.
1183 'textarea_fields_height' => '{{WRAPPER}} .rtsb-form-shipping textarea',
1184 'fields_height' => '{{WRAPPER}} .rtsb-form-shipping input:not([type=checkbox],[type=radio]), {{WRAPPER}} .rtsb-form-shipping .select2-selection--single, {{WRAPPER}} .rtsb-form-shipping select',
1185 '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',
1186
1187 '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',
1188
1189 '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',
1190 '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',
1191
1192 // Hover.
1193 '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)',
1194
1195 '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)',
1196
1197 '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',
1198 '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',
1199 '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 )',
1200 'form_row_margin' => '{{WRAPPER}} .rtsb-form-shipping p.form-row',
1201 'form_wrapper_margin' => '{{WRAPPER}} .rtsb-form-shipping .shipping_address',
1202
1203 ],
1204 'rtsb-order-notes' => [
1205 'show_title' => '{{WRAPPER}} .rtsb-form-order-note h3',
1206 'title_typo' => '{{WRAPPER}} .rtsb-form-order-note h3',
1207 'title_align' => '{{WRAPPER}} .rtsb-form-order-note h3',
1208 'title_color' => '{{WRAPPER}} .rtsb-form-order-note h3',
1209 'title_text_stroke' => '{{WRAPPER}} .rtsb-form-order-note h3',
1210 'title_text_shadow' => '{{WRAPPER}} .rtsb-form-order-note h3',
1211 'title_margin' => '{{WRAPPER}} .rtsb-form-order-note h3',
1212 'title_padding' => '{{WRAPPER}} .rtsb-form-order-note h3',
1213 'title_border' => '{{WRAPPER}} .rtsb-form-order-note h3',
1214
1215 'fields_label_typo' => '{{WRAPPER}} .rtsb-form-order-note label',
1216 'fields_label_color' => '{{WRAPPER}} .rtsb-form-order-note label',
1217 'fields_label_reguired_color' => '{{WRAPPER}} .rtsb-form-order-note label .required',
1218 'fields_label_margin' => '{{WRAPPER}} .rtsb-form-order-note label:not(.radio)',
1219
1220 // Input Fields.
1221 'textarea_fields_height' => '{{WRAPPER}} .rtsb-form-order-note textarea',
1222 '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',
1223 'fields_border' => '{{WRAPPER}} .rtsb-form-order-note :is( textarea, input, select, .select2-selection--multiple )',
1224 'fields_border_radius' => '{{WRAPPER}} .rtsb-form-order-note :is( input:not([type=checkbox],[type=radio]), textarea )',
1225 'fields_text_color' => '{{WRAPPER}} .rtsb-form-order-note :is( textarea, input, select, .select2-selection--multiple )',
1226 'fields_bg_color' => '{{WRAPPER}} .rtsb-form-order-note :is( textarea, input, select, .select2-selection--multiple )',
1227
1228 // Hover.
1229 'fields_hover_border' => '{{WRAPPER}} .rtsb-form-order-note :is( input:not([type=checkbox],[type=radio]), textarea ):is(:hover, :focus, :active)',
1230
1231 'fields_border_radius_hover' => '{{WRAPPER}} .rtsb-form-order-note :is( input:not([type=checkbox],[type=radio]), textarea ):is(:hover, :focus, :active)',
1232 'fields_hover_text_color' => '{{WRAPPER}} .rtsb-form-order-note :is( input:not([type=checkbox],[type=radio]), textarea ):is(:hover, :focus, :active)',
1233 'fields_hover_bg_color' => '{{WRAPPER}} .rtsb-form-order-note :is( input:not([type=checkbox],[type=radio]), textarea ):is(:hover, :focus, :active)',
1234
1235 'fields_padding' => '{{WRAPPER}} .rtsb-form-order-note :is( input:not([type=checkbox],[type=radio]), textarea )',
1236 'form_row_margin' => '{{WRAPPER}} .rtsb-form-order-note .woocommerce-input-wrapper',
1237 'form_wrapper_margin' => '{{WRAPPER}} .rtsb-form-order-note .woocommerce-input-wrapper',
1238
1239 ],
1240
1241 'rtsb-order-review' => [
1242 // Title.
1243 'show_title' => '#rtsb-builder-content {{WRAPPER}} .rtsb-checkout-order-review #order_review_heading',
1244 'table_min_width' => '.rtsb-builder-content {{WRAPPER}} .rtsb-table-horizontal-scroll-on-mobile table.shop_table',
1245 'title_typo' => '#rtsb-builder-content {{WRAPPER}} .rtsb-checkout-order-review #order_review_heading',
1246 'title_align' => '#rtsb-builder-content {{WRAPPER}} .rtsb-checkout-order-review #order_review_heading',
1247 'title_color' => '#rtsb-builder-content {{WRAPPER}} .rtsb-checkout-order-review #order_review_heading',
1248 'title_text_stroke' => '#rtsb-builder-content {{WRAPPER}} .rtsb-checkout-order-review #order_review_heading',
1249 'title_text_shadow' => '#rtsb-builder-content {{WRAPPER}} .rtsb-checkout-order-review #order_review_heading',
1250 'title_margin' => '#rtsb-builder-content {{WRAPPER}} .rtsb-checkout-order-review #order_review_heading',
1251 'title_padding' => '#rtsb-builder-content {{WRAPPER}} .rtsb-checkout-order-review #order_review_heading',
1252 'title_border' => '#rtsb-builder-content {{WRAPPER}} .rtsb-checkout-order-review #order_review_heading',
1253 'table_wrapper_border' => '#rtsb-builder-content {{WRAPPER}} #order_review',
1254 'table_wrapper_padding' => '#rtsb-builder-content {{WRAPPER}} #order_review',
1255 'table_wrapper_margin' => '#rtsb-builder-content {{WRAPPER}} #order_review',
1256 'table_border' => '{{WRAPPER}} #order_review table :is( td, th )',
1257 'label_typo' => '{{WRAPPER}} #order_review thead th',
1258 'label_color' => '{{WRAPPER}} #order_review thead th',
1259 'label_bg_color' => '{{WRAPPER}} #order_review thead th',
1260 'label_item_padding' => '{{WRAPPER}} #order_review thead th',
1261 // Table Body.
1262 'body_text_typo' => '{{WRAPPER}} #order_review tbody td',
1263 'body_text_color' => '{{WRAPPER}} #order_review tbody td',
1264 'body_item_padding' => '{{WRAPPER}} #order_review tbody td',
1265 'table_body_bg_color' => '{{WRAPPER}} #order_review tbody td',
1266 // Counter.
1267 'counter_text_color' => '{{WRAPPER}} .product-quantity',
1268 'counter_style' => '{{WRAPPER}} .product-quantity',
1269 // Table Footer.
1270 'table_footer_label_typo' => '{{WRAPPER}} #order_review tfoot :is( th, td )',
1271 'table_footer_label_color' => '{{WRAPPER}} #order_review tfoot th',
1272 'table_footer_text_color' => '{{WRAPPER}} #order_review tfoot td',
1273 'table_footer_label_bg_color' => '{{WRAPPER}} #order_review tfoot :is( th, td )',
1274 'table_footer_item_padding' => '{{WRAPPER}} #order_review tfoot td, {{WRAPPER}} #order_review tfoot th',
1275
1276 ],
1277 'rtsb-checkout-payment' => [
1278 'payment_method_wrapper_bg_color' => '{{WRAPPER}} #payment ul.payment_methods',
1279 'payment_link_color' => '{{WRAPPER}} .rtsb-checkout-payment a',
1280 'payment_link_hover_color' => '{{WRAPPER}} .rtsb-checkout-payment a:hover',
1281
1282 'payment_label_typography' => '{{WRAPPER}} .rtsb-checkout-payment .wc_payment_method label',
1283 'payment_label_color' => '{{WRAPPER}} .rtsb-checkout-payment .wc_payment_method label, {{WRAPPER}} #payment .payment_methods li input[type=radio]:first-child+label:before',
1284 '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',
1285 'payment_label_bg_color' => '{{WRAPPER}} .rtsb-checkout-payment .wc_payment_method label',
1286 'payment_method_space_between' => '{{WRAPPER}} #payment ul.payment_methods li input',
1287 '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',
1288 'payment_method_wrap_padding' => '{{WRAPPER}} #payment ul.payment_methods',
1289 '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',
1290
1291 'payment_description_typography' => '{{WRAPPER}} .rtsb-checkout-payment p',
1292 'payment_description_text_color' => '{{WRAPPER}} .rtsb-checkout-payment p',
1293 'payment_description_bg_color' => '{{WRAPPER}} .rtsb-checkout-payment #payment .payment_methods > li .payment_box',
1294 'payment_description_border' => '{{WRAPPER}} .rtsb-checkout-payment #payment ul.payment_methods',
1295 'payment_method_desc_padding' => '{{WRAPPER}} .rtsb-checkout-payment #payment .payment_methods li .payment_box',
1296 'payment_method_desc_margin' => '{{WRAPPER}} .rtsb-checkout-payment #payment .payment_methods li .payment_box',
1297
1298 'payment_button_description_typography' => '{{WRAPPER}} .rtsb-checkout-payment #payment .place-order p',
1299 'payment_button_description_text_color' => '{{WRAPPER}} .rtsb-checkout-payment #payment .place-order p',
1300 'payment_button_description_bg_color' => '{{WRAPPER}} .rtsb-checkout-payment #payment .place-order',
1301 'payment_button_wrapper_padding' => '{{WRAPPER}} .rtsb-checkout-payment #payment .place-order',
1302 'payment_button_wrapper_margin' => '{{WRAPPER}} .rtsb-checkout-payment #payment .place-order',
1303
1304 // Button section.
1305 'button_height' => '{{WRAPPER}} .rtsb-checkout-payment #place_order',
1306 'button_width' => '{{WRAPPER}} .rtsb-checkout-payment #place_order',
1307 'button_typography' => '{{WRAPPER}} .rtsb-checkout-payment #place_order',
1308 'submit_button_alignment' => [
1309 'text-align' => '{{WRAPPER}} .rtsb-checkout-payment #place_order',
1310 'float' => '{{WRAPPER}} .rtsb-checkout-payment #place_order',
1311 ],
1312 'button_text_color_normal' => '{{WRAPPER}} .rtsb-checkout-payment #place_order',
1313 'button_bg_color_normal' => '{{WRAPPER}} .rtsb-checkout-payment #place_order',
1314 'button_border' => '{{WRAPPER}} .rtsb-checkout-payment #place_order',
1315 'button_text_color_hover' => '{{WRAPPER}} .rtsb-checkout-payment #place_order:hover',
1316 'button_bg_color_hover' => '{{WRAPPER}} .rtsb-checkout-payment #place_order:hover',
1317 'button_border_hover_color' => '{{WRAPPER}} .rtsb-checkout-payment #place_order:hover',
1318 'button_border_radius' => '{{WRAPPER}} .rtsb-checkout-payment #place_order',
1319 'button_padding' => '{{WRAPPER}} .rtsb-checkout-payment #place_order',
1320 'button_margin' => '{{WRAPPER}} .rtsb-checkout-payment #place_order',
1321 ],
1322 'rtsb-coupon-form' => array_merge(
1323 self::button_settings_selector(),
1324 [
1325 'typo' => '{{WRAPPER}} p',
1326 'align' => '{{WRAPPER}} p',
1327 'text_color' => '{{WRAPPER}} p',
1328 'text_shadow' => '{{WRAPPER}} p',
1329 'text_margin' => '{{WRAPPER}} p',
1330
1331 // Input Fields.
1332 'fields_height' => '{{WRAPPER}} .rtsb-checkout-coupon-form input.input-text',
1333 'fields_border' => '{{WRAPPER}} .rtsb-checkout-coupon-form input.input-text',
1334 'fields_text_color' => '{{WRAPPER}} .rtsb-checkout-coupon-form input.input-text',
1335 'fields_bg_color' => '{{WRAPPER}} .rtsb-checkout-coupon-form input.input-text',
1336 'form_fields_border_radius' => '{{WRAPPER}} .rtsb-checkout-coupon-form input.input-text',
1337
1338 // Hover.
1339 'fields_hover_border' => '{{WRAPPER}} .rtsb-checkout-coupon-form input.input-text:is(:hover, :focus, :active)',
1340 'fields_hover_text_color' => '{{WRAPPER}} .rtsb-checkout-coupon-form input.input-text:is(:hover, :focus, :active)',
1341 'fields_hover_bg_color' => '{{WRAPPER}} .rtsb-checkout-coupon-form input.input-text:is(:hover, :focus, :active)',
1342 'form_fields_border_radius_hover' => '{{WRAPPER}} .rtsb-checkout-coupon-form input.input-text:is(:hover, :focus, :active)',
1343
1344 'fields_padding' => '{{WRAPPER}} .rtsb-checkout-coupon-form input.input-text',
1345 'fields_gap' => '{{WRAPPER}} .rtsb-checkout-coupon-form .coupon-form-fields',
1346
1347 'infobox_typography' => '{{WRAPPER}} .rtsb-checkout-coupon-form :is(.woocommerce-info, .wc-block-components-notice-banner__content )',
1348 'infobox_bg_color' => '{{WRAPPER}} .rtsb-checkout-coupon-form :is(.woocommerce-info, .wc-block-components-notice-banner )',
1349 'infobox_text_color' => '{{WRAPPER}} .rtsb-checkout-coupon-form :is(.woocommerce-info, .wc-block-components-notice-banner__content )',
1350
1351 'infobox_text_link_color' => '{{WRAPPER}} .rtsb-checkout-coupon-form a',
1352 'infobox_border_color' => '{{WRAPPER}} .rtsb-checkout-coupon-form :is(.woocommerce-info, .wc-block-components-notice-banner ) ',
1353 'infobox_icon_size' => [
1354 'icon' => '{{WRAPPER}} :is( .woocommerce-info::before, .woocommerce-info i), {{WRAPPER}} .wc-block-components-notice-banner__content i',
1355 'svg' => '{{WRAPPER}} :is( .woocommerce-info svg, .wc-block-components-notice-banner__content svg )',
1356 ],
1357
1358 'infobox_icon_margin' => '{{WRAPPER}} .woocommerce-info::before, {{WRAPPER}} .woocommerce-info :is( i, svg ), {{WRAPPER}} .wc-block-components-notice-banner__content :is( i, svg ) ',
1359
1360 '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 )',
1361
1362 'infobox_wrapper_border' => '{{WRAPPER}} .rtsb-checkout-coupon-form ',
1363 'infobox_border_radius' => '{{WRAPPER}} .rtsb-checkout-coupon-form .wc-block-components-notice-banner',
1364 'infobox_padding' => '{{WRAPPER}} .rtsb-checkout-coupon-form :is( .woocommerce-info, .wc-block-components-notice-banner__content )',
1365 'form_margin' => '{{WRAPPER}} .rtsb-checkout-coupon-form .coupon-form-fields',
1366 'form_area_padding' => '{{WRAPPER}} .rtsb-checkout-coupon-form .woocommerce-form-coupon',
1367 'form_area_margin' => '{{WRAPPER}} .rtsb-checkout-coupon-form .woocommerce-form-coupon',
1368
1369 'form_area_wrapper_border' => '{{WRAPPER}} .rtsb-checkout-coupon-form .woocommerce-form-coupon',
1370 'form_area_border_radius' => '{{WRAPPER}} .rtsb-checkout-coupon-form .woocommerce-form-coupon',
1371
1372 ]
1373 ),
1374 'rtsb-checkout-login-form' => array_merge(
1375 self::button_settings_selector(),
1376 [
1377 'typo' => '{{WRAPPER}} p',
1378 'align' => '{{WRAPPER}} p',
1379 'text_color' => '{{WRAPPER}} p',
1380 'text_shadow' => '{{WRAPPER}} p',
1381 'text_margin' => '{{WRAPPER}} p',
1382
1383 // Input Fields.
1384 'fields_height' => '{{WRAPPER}} input.input-text',
1385 'fields_border' => '{{WRAPPER}} input.input-text',
1386 'form_fields_border_radius' => '{{WRAPPER}} input.input-text',
1387 'fields_text_color' => '{{WRAPPER}} input.input-text',
1388 'fields_bg_color' => '{{WRAPPER}} input.input-text',
1389
1390 // Hover.
1391 'fields_hover_border' => '{{WRAPPER}} input.input-text:is(:hover, :focus, :active)',
1392 'form_fields_border_radius_hover' => '{{WRAPPER}} input.input-text:is(:hover, :focus, :active)',
1393 'fields_hover_text_color' => '{{WRAPPER}} input.input-text:is(:hover, :focus, :active)',
1394 'fields_hover_bg_color' => '{{WRAPPER}} input.input-text:is(:hover, :focus, :active)',
1395
1396 'fields_padding' => '{{WRAPPER}} .rtsb-checkout-login-form input.input-text',
1397 'fields_gap' => '{{WRAPPER}} .rtsb-checkout-login-form .login-form-fields',
1398 'label_gap' => '{{WRAPPER}} .rtsb-checkout-login-form .field-wrapper label',
1399 // Info Box.
1400 'infobox_typography' => '{{WRAPPER}} .rtsb-checkout-login-form :is(.woocommerce-info, .wc-block-components-notice-banner__content )',
1401 'infobox_bg_color' => '{{WRAPPER}} .rtsb-checkout-login-form :is(.woocommerce-info, .wc-block-components-notice-banner.is-info )',
1402 'infobox_text_color' => '{{WRAPPER}} .rtsb-checkout-login-form :is(.woocommerce-info, .wc-block-components-notice-banner__content )',
1403
1404 'infobox_text_link_color' => '{{WRAPPER}} .rtsb-checkout-login-form a',
1405
1406 'infobox_border_color' => '{{WRAPPER}} .rtsb-checkout-login-form :is(.woocommerce-info, .wc-block-components-notice-banner.is-info )',
1407 'infobox_icon_size' => [
1408 'icon' => '{{WRAPPER}} :is( .woocommerce-info::before, .woocommerce-info i), {{WRAPPER}} .wc-block-components-notice-banner__content i',
1409 'svg' => '{{WRAPPER}} :is( .woocommerce-info svg, .wc-block-components-notice-banner__content svg )',
1410 ],
1411
1412 'infobox_icon_margin' => '{{WRAPPER}} .woocommerce-info::before, {{WRAPPER}} .woocommerce-info :is( i, svg ), {{WRAPPER}} .wc-block-components-notice-banner :is( i, svg ) ',
1413
1414 '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 )',
1415
1416 'infobox_wrapper_border' => '{{WRAPPER}} .rtsb-checkout-login-form',
1417 'infobox_border_radius' => '{{WRAPPER}} .rtsb-checkout-login-form .wc-block-components-notice-banner',
1418 'infobox_padding' => '{{WRAPPER}} .rtsb-checkout-login-form :is( .woocommerce-info, .wc-block-components-notice-banner__content ) ',
1419 'form_margin' => '{{WRAPPER}} .rtsb-checkout-login-form .login-form-fields',
1420 'form_area_padding' => '{{WRAPPER}} .rtsb-checkout-login-form .woocommerce-form-login',
1421 'form_area_margin' => '{{WRAPPER}} .rtsb-checkout-login-form .woocommerce-form-login',
1422 'form_area_wrapper_border' => '{{WRAPPER}} .rtsb-checkout-login-form .woocommerce-form-login',
1423 'form_area_border_radius' => '{{WRAPPER}} .rtsb-checkout-login-form .woocommerce-form-login',
1424
1425 ]
1426 ),
1427 'rtsb-shipping-method' => [
1428
1429 // General.
1430 'general_cart_table_border' => '{{WRAPPER}} .rtsb_woocommerce_shipping_methods :is( td )',
1431 'general_cart_table_bg' => '{{WRAPPER}} .rtsb_woocommerce_shipping_methods :is( td )',
1432 'general_table_padding' => '{{WRAPPER}} .rtsb_woocommerce_shipping_methods :is( td )',
1433
1434 // Title.
1435 'show_title' => '{{WRAPPER}} .rtsb-shipping-method .shipping-method-title',
1436 'title_typo' => '{{WRAPPER}} .rtsb-shipping-method .shipping-method-title',
1437 'title_align' => '{{WRAPPER}} .rtsb-shipping-method .shipping-method-title',
1438 'title_color' => '{{WRAPPER}} .rtsb-shipping-method .shipping-method-title',
1439 'title_text_stroke' => '{{WRAPPER}} .rtsb-shipping-method .shipping-method-title',
1440 'title_text_shadow' => '{{WRAPPER}} .rtsb-shipping-method .shipping-method-title',
1441 'title_margin' => '{{WRAPPER}} .rtsb-shipping-method .shipping-method-title',
1442 'title_padding' => '{{WRAPPER}} .rtsb-shipping-method .shipping-method-title',
1443 'title_border' => '{{WRAPPER}} .rtsb-shipping-method .shipping-method-title',
1444 // Label.
1445 'label_title_typo' => '{{WRAPPER}} .rtsb-shipping-method .woocommerce-shipping-methods label',
1446 'label_title_color' => '{{WRAPPER}} .rtsb-shipping-method .woocommerce-shipping-methods label',
1447 'label_space_between' => '{{WRAPPER}} .woocommerce .rtsb-builder-content ul#shipping_method li',
1448 'label_item_space' => '{{WRAPPER}} .woocommerce .rtsb-builder-content ul#shipping_method',
1449 ],
1450 ];
1451
1452 return apply_filters( 'rtsb/elements/elementor/widget/checkout/selectors', $selectors );
1453 }
1454
1455 /**
1456 * Common CSS Selectors.
1457 *
1458 * @return array
1459 */
1460 private static function general_common_selectors(): array {
1461 return apply_filters(
1462 'rtsb/elementor/common_selectors',
1463 [
1464 'columns' => [
1465 'cols' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-row',
1466 'masonry' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-row.rtsb-masonry',
1467 'list_cols' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-row[class*="list-layout"]',
1468 'list_masonry' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-row[class*="list-layout"].rtsb-masonry',
1469 'grid_gap' => [
1470 'padding' => '{{WRAPPER}} .rtsb-elementor-container [class*=rtsb-col-]',
1471 'margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-row',
1472 'slider_layout3' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-slider-layout3',
1473 'slider_layout9' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-slider-layout9',
1474 ],
1475 'image_width' => [
1476 'image' => '{{WRAPPER}} .rtsb-product .rtsb-list-item .rtsb-product-img, {{WRAPPER}} .rtsb-elementor-container .rtsb-list-layout6 .rtsb-content-left',
1477 ],
1478 'v_action_btn_width' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-list-layout3 .rtsb-product .rtsb-action-buttons.after-content',
1479 'image_gap' => '{{WRAPPER}} .rtsb-product .rtsb-list-item,{{WRAPPER}} .rtsb-elementor-container .rtsb-list-layout6 .rtsb-product .rtsb-list-item .rtsb-product-content',
1480 'grid_alignment' => [
1481 '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',
1482 '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',
1483 ],
1484 ],
1485 'color_scheme' => [
1486 'primary_color' => '{{WRAPPER}}',
1487 'secondary_color' => '{{WRAPPER}}',
1488 ],
1489 'count' => [
1490 'typography' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-grid .product-count',
1491 'alignment' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-grid .product-count',
1492 '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',
1493 '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',
1494 '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',
1495 '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',
1496 'border' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-grid .product-count',
1497 'border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-grid .product-count:hover',
1498 'border_radius' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-grid .product-count',
1499 'padding' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-grid .product-count',
1500 'margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-grid .product-count',
1501 ],
1502 'product_badges' => [
1503 'typography' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-tag-fill, {{WRAPPER}} .rtsb-elementor-container .rtsb-tag-outline',
1504 'color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-tag-fill, {{WRAPPER}} .rtsb-elementor-container .rtsb-tag-outline',
1505 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-tag-fill, {{WRAPPER}} .rtsb-elementor-container .rtsb-tag-outline',
1506 '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',
1507 'border_radius' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-tag-fill, {{WRAPPER}} .rtsb-elementor-container .rtsb-tag-outline',
1508 'padding' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-tag-fill, {{WRAPPER}} .rtsb-elementor-container .rtsb-tag-outline, {{WRAPPER}} .rtsb-elementor-container .rtsb-badge.type-image',
1509 'margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-tag-fill, {{WRAPPER}} .rtsb-elementor-container .rtsb-tag-outline, {{WRAPPER}} .rtsb-elementor-container .rtsb-badge.type-image',
1510 'position_x' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-img > .rtsb-promotion',
1511 'position_y' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-img > .rtsb-promotion',
1512 ],
1513 'image' => [
1514 'overlay' => '{{WRAPPER}} .rtsb-elementor-container.has-overlay [class*=category-single-layout] .single-category-area .rtsb-img-link::before',
1515 'hover_overlay' => '{{WRAPPER}} .rtsb-elementor-container.has-overlay .single-category-area .rtsb-img-link::after',
1516 'img_bg_color' => '{{WRAPPER}} .rtsb-product-img .rtsb-product-image, {{WRAPPER}} .rtsb-product-img .default-img',
1517 'img_wrapper_bg_color' => '{{WRAPPER}} .rtsb-product-img figure',
1518 'border' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-img figure',
1519 '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',
1520 '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',
1521 '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',
1522 'margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-img',
1523
1524 ],
1525 'advanced' => [
1526 'wrapper_padding' => '{{WRAPPER}} .rtsb-elementor-container > .rtsb-row',
1527 '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',
1528 'element_margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product, {{WRAPPER}} .rtsb-elementor-container .rtsb-category-grid',
1529 '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',
1530 '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',
1531 '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',
1532 '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',
1533 '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',
1534 '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 )',
1535 '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',
1536 'rtsb_el_wrapper_border' => '{{WRAPPER}} .rtsb-elementor-container > .rtsb-row',
1537 'wrapper_border_radius' => '{{WRAPPER}} .rtsb-elementor-container > .rtsb-row',
1538 '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',
1539 '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',
1540 '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',
1541 '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',
1542 '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',
1543 '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',
1544 ],
1545 'badges_module' => [
1546 'direction' => '{{WRAPPER}} .rtsb-promotion .rtsb-badge-group-style',
1547 'alignment' => '{{WRAPPER}} .rtsb-promotion .rtsb-badge-group-style',
1548 'alignment_wrap' => '{{WRAPPER}} .rtsb-badge-container .rtsb-promotion:not(.rtsb-badge-group-style)',
1549 ],
1550 ]
1551 );
1552 }
1553
1554 /**
1555 * Common CSS Selectors.
1556 *
1557 * @return array
1558 */
1559 public static function general_slider_selectors(): array {
1560 return [
1561 'slider_buttons' => [
1562 'arrow_size' => [
1563 'icon' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-arrow i',
1564 'svg' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-arrow svg',
1565 ],
1566 'arrow_width' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-arrow',
1567 'arrow_height' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-arrow',
1568 'arrow_line_height' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-arrow i',
1569 'dot_width' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-pagination-bullet',
1570 'dot_height' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-pagination-bullet',
1571 'dot_spacing' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-pagination-bullet',
1572 'color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-arrow',
1573 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-arrow',
1574 'hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-arrow:hover',
1575 'hover_bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-arrow:hover',
1576 'dot_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-pagination-bullet',
1577 'dot_active_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-pagination-bullet-active',
1578 'border' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-arrow, {{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-pagination-bullet',
1579 'border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-arrow:hover, {{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-pagination-bullet:hover',
1580 'active_border_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-pagination-bullet-active',
1581 'border_radius' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-arrow, {{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-pagination-bullet',
1582 'wrapper_padding' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-nav, {{WRAPPER}} .rtsb-elementor-container .rtsb-carousel-slider .swiper-pagination',
1583 ],
1584 ];
1585 }
1586
1587 /**
1588 * Category CSS Selectors.
1589 *
1590 * @return array
1591 */
1592 private static function general_product_selectors(): array {
1593 return apply_filters(
1594 'rtsb/elementor/general_product_selectors',
1595 [
1596 'section_title' => [
1597 'typography' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-section-title',
1598 'alignment' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-section-title',
1599 'color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-section-title',
1600 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-section-title',
1601 'hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-section-title:hover',
1602 'hover_bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-section-title:hover',
1603 'border' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-section-title',
1604 'border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-section-title:hover',
1605 'padding' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-section-title',
1606 'margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-section-title',
1607 ],
1608 'product_title' => [
1609 'typography' => '{{WRAPPER}} .rtsb-elementor-container .product-title',
1610 'alignment' => '{{WRAPPER}} .rtsb-elementor-container .product-title',
1611 'color' => '{{WRAPPER}} .rtsb-elementor-container .product-title',
1612 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-title-wrapper,{{WRAPPER}} .rtsb-elementor-container .product-title',
1613 // Layout 2 (grid/slider) reveals a hover button that overlays the title wrapper and captures :hover, so the
1614 // wrapper's own :hover never fires; the extra `.rtsb-product:hover .product-title-with-btn` clause re-applies the
1615 // hover text/bg/border color on product-card hover. NOTE: layout 2 fades the title text out on hover, so the
1616 // hover *text* color is not visibly noticeable there — the wrapper background and border remain visible.
1617 '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',
1618 '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',
1619 'border' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-title-wrapper',
1620 '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',
1621 'padding' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-title-wrapper,{{WRAPPER}} .rtsb-elementor-container .product-title',
1622 'margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-title-wrapper,{{WRAPPER}} .rtsb-elementor-container .product-title',
1623 ],
1624 'short_description' => array_fill_keys(
1625 [
1626 'typography',
1627 'alignment',
1628 'color',
1629 'bg_color',
1630 'border',
1631 'padding',
1632 'margin',
1633 ],
1634 '{{WRAPPER}} .rtsb-elementor-container .product-short-description'
1635 ),
1636 'action_buttons' => [
1637 'action_btn_alignment' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product .rtsb-action-buttons.horizontal-floating-btn .rtsb-action-button-list',
1638 'action_btn_gap' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-action-button-list',
1639 'icon_gap' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-action-btn.has-text',
1640 ],
1641 'product_price' => [
1642 'typography' => '{{WRAPPER}} .rtsb-elementor-container .price-wrapper .price > .woocommerce-Price-amount, {{WRAPPER}} .rtsb-elementor-container .price-wrapper del',
1643 'sale_typography' => '{{WRAPPER}} .rtsb-elementor-container .price-wrapper ins',
1644 'regular_text_decoration' => '{{WRAPPER}} .rtsb-elementor-container .price-wrapper .price > .woocommerce-Price-amount, {{WRAPPER}} .rtsb-elementor-container .price-wrapper del',
1645 'sale_text_decoration' => '{{WRAPPER}} .rtsb-elementor-container .price-wrapper ins',
1646 'alignment' => '{{WRAPPER}} .rtsb-elementor-container .product-price',
1647 'color' => '{{WRAPPER}} .rtsb-elementor-container .price-wrapper :is( ins, ins span bdi)',
1648 'regular_color' => '{{WRAPPER}} .rtsb-elementor-container .price-wrapper :is( bdi, del bdi), {{WRAPPER}} .rtsb-elementor-container.products .price-wrapper del',
1649 'crossed_regular_color' => '{{WRAPPER}} .rtsb-elementor-container .price-wrapper :is(del bdi), {{WRAPPER}} .rtsb-elementor-container.products .price-wrapper del',
1650 'border' => '{{WRAPPER}} .rtsb-elementor-container .price-wrapper',
1651 'border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .price-wrapper:hover',
1652 'padding' => '{{WRAPPER}} .rtsb-elementor-container .product-price',
1653 'margin' => '{{WRAPPER}} .rtsb-elementor-container .product-price',
1654 ],
1655 'product_rating' => [
1656 'typography' => '{{WRAPPER}} .rtsb-elementor-container .star-rating',
1657 'alignment' => '{{WRAPPER}} .rtsb-elementor-container .product-rating',
1658 'color' => '{{WRAPPER}} .rtsb-elementor-container :is(.star-rating span):before',
1659 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container :is(.star-rating):before',
1660 'padding' => '{{WRAPPER}} .rtsb-elementor-container .star-rating',
1661 'spacing_preset2' => '{{WRAPPER}} .rtsb-elementor-container .product-rating.preset2, {{WRAPPER}} .rtsb-elementor-container .product-rating.preset2 .inner-wrapper',
1662 'margin' => '{{WRAPPER}} .rtsb-elementor-container .product-rating',
1663 ],
1664 'product_categories' => [
1665 'typography' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-list li > a',
1666 'alignment' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-content .rtsb-product-category',
1667 'color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-list li > a',
1668 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-list li > a',
1669 'hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-list li > a:hover',
1670 'hover_bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-list li > a:hover',
1671 'border' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-list li > a',
1672 'border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-list li > a:hover',
1673 'border_radius' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-list li > a',
1674 'padding' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-list li > a',
1675 'margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-list li > a',
1676 'wrapper_margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-category',
1677 ],
1678 'product_brands' => [
1679 'typography' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-brand-list li > a',
1680 'alignment' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-product-content .rtsb-brand-category',
1681 'color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-brand-list li > a',
1682 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-brand-list li > a',
1683 'hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-brand-list li > a:hover',
1684 'hover_bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-brand-list li > a:hover',
1685 'border' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-brand-list li > a',
1686 'border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-brand-list li > a:hover',
1687 'border_radius' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-brand-list li > a',
1688 'padding' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-brand-list li > a',
1689 'margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-brand-list li > a',
1690 'wrapper_margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-brand-category',
1691 ],
1692 'pagination' => [
1693 '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',
1694 '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',
1695 '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',
1696 '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',
1697 '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',
1698 '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',
1699 'active_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-pagination ul.pagination-list li span',
1700 'active_bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-pagination ul.pagination-list li span',
1701 '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',
1702 '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',
1703 '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',
1704 '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',
1705 'border_active_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-pagination ul.pagination-list li span',
1706 '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',
1707 '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',
1708 'padding' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-pagination-wrap .rtsb-load-more button, {{WRAPPER}} .rtsb-elementor-container .rtsb-archive-pagination-wrap .rtsb-load-more button',
1709 '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',
1710 ],
1711 'product_add_to_cart' => [
1712 'typography' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn',
1713 'icon_size' => [
1714 'font_size' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn .icon',
1715 'width' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn .icon svg',
1716 ],
1717 'cart_width' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn',
1718 'cart_height' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn',
1719 'color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn',
1720 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn',
1721 'icon_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn .icon',
1722 'hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn:hover',
1723 'hover_bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn:hover',
1724 'hover_icon_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn:hover .icon',
1725 'border' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn',
1726 'border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn:hover',
1727 'border_radius' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn',
1728 'padding' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn',
1729 'margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-cart .rtsb-action-btn',
1730 ],
1731 'product_compare' => [
1732 'icon_size' => [
1733 'font_size' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-compare .rtsb-action-btn .icon',
1734 'width' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-compare .rtsb-action-btn .icon svg',
1735 ],
1736 'width' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-compare .rtsb-action-btn',
1737 'height' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-compare .rtsb-action-btn',
1738 'color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-compare .rtsb-action-btn',
1739 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-compare .rtsb-action-btn',
1740 'hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-compare .rtsb-action-btn:hover',
1741 'hover_bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-compare .rtsb-action-btn:hover',
1742 'border' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-compare .rtsb-action-btn',
1743 'border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-compare .rtsb-action-btn:hover',
1744 'border_radius' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-compare .rtsb-action-btn',
1745 'padding' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-compare .rtsb-action-btn',
1746 'margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-compare .rtsb-action-btn',
1747 ],
1748 'product_wishlist' => [
1749 'icon_size' => [
1750 'font_size' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-wishlist .rtsb-action-btn .icon',
1751 'width' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-wishlist .rtsb-action-btn .icon svg',
1752 ],
1753 'width' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-wishlist .rtsb-action-btn',
1754 'height' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-wishlist .rtsb-action-btn',
1755 'color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-wishlist .rtsb-action-btn',
1756 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-wishlist .rtsb-action-btn',
1757 'hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-wishlist .rtsb-action-btn:hover',
1758 'hover_bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-wishlist .rtsb-action-btn:hover',
1759 'border' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-wishlist .rtsb-action-btn',
1760 'border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-wishlist .rtsb-action-btn:hover',
1761 'border_radius' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-wishlist .rtsb-action-btn',
1762 'padding' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-wishlist .rtsb-action-btn',
1763 'margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-wishlist .rtsb-action-btn',
1764 ],
1765 'product_quick_view' => [
1766 'icon_size' => [
1767 'font_size' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-quick-view .rtsb-action-btn .icon',
1768 'width' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-quick-view .rtsb-action-btn .icon svg',
1769 ],
1770 'width' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-quick-view .rtsb-action-btn',
1771 'height' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-quick-view .rtsb-action-btn',
1772 'color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-quick-view .rtsb-action-btn',
1773 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-quick-view .rtsb-action-btn',
1774 'hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-quick-view .rtsb-action-btn:hover',
1775 'hover_bg_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-quick-view .rtsb-action-btn:hover',
1776 'border' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-quick-view .rtsb-action-btn',
1777 'border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-quick-view .rtsb-action-btn:hover',
1778 'border_radius' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-quick-view .rtsb-action-btn',
1779 'padding' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-quick-view .rtsb-action-btn',
1780 'margin' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-quick-view .rtsb-action-btn',
1781 ],
1782 'hover_icon_button' => [
1783 // Include `.text` (the label span): the button is display:inline-flex, so its
1784 // `.text` child is a flex item and `text-decoration` set on the <a> does NOT
1785 // propagate to it (the Text Decoration control would silently do nothing).
1786 // Other typography props inherit fine; decoration must hit `.text` directly.
1787 'typography' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a, {{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a .text',
1788 'icon_size' => [
1789 'font_size' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a .icon',
1790 'svg' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a .icon svg',
1791 ],
1792 'hover_icon_spacing' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a .text + .icon',
1793 'color' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a',
1794 'bg_color' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a',
1795 'icon_color' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a .icon',
1796 'hover_color' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a:hover',
1797 'hover_bg_color' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a:hover',
1798 'hover_icon_color' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a:hover i',
1799 'border' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a',
1800 'border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a:hover',
1801 'border_radius' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a',
1802 'padding' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a',
1803 'margin' => '{{WRAPPER}} .rtsb-elementor-container .product-title-with-btn .btn-wrap a',
1804 ],
1805 'not_found_notice' => self::not_found_notice_selectors(),
1806 ]
1807 );
1808 }
1809
1810 /**
1811 * Not Found Notice Selectors.
1812 *
1813 * @return array
1814 */
1815 public static function not_found_notice_selectors() {
1816 return array_fill_keys(
1817 [
1818 'typography',
1819 'alignment',
1820 'color',
1821 'bg_color',
1822 'border',
1823 'padding',
1824 'margin',
1825 ],
1826 '{{WRAPPER}} .rtsb-elementor-container .woocommerce-no-products-found .woocommerce-info, {{WRAPPER}} .rtsb-product-catalog .woocommerce-no-products-found .woocommerce-info'
1827 );
1828 }
1829
1830 /**
1831 * Category CSS Selectors.
1832 *
1833 * @return array
1834 */
1835 private static function general_cat_selectors(): array {
1836 return [
1837 'category_single_layout' => [
1838 'cat_alignment' => [
1839 'text_align' => '{{WRAPPER}} .rtsb-elementor-container',
1840 'justify_content' => '{{WRAPPER}} .rtsb-elementor-container [class*=list-layout] .rtsb-product-category, {{WRAPPER}} .rtsb-elementor-container .rtsb-category-grid .category-title-with-count',
1841 ],
1842 'cat_height' => '{{WRAPPER}} .rtsb-elementor-container .rtsb-category-grid .rtsb-product-image, {{WRAPPER}} .rtsb-elementor-container .rtsb-category-grid .default-img',
1843 ],
1844 'category_multi_layout' => [
1845 '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',
1846 ],
1847 'cat_count_settings' => [
1848 'count_display_type' => '{{WRAPPER}} .rtsb-elementor-container .category-title-with-count',
1849 ],
1850 'cat_title' => [
1851 'typography' => '{{WRAPPER}} .rtsb-elementor-container .category-title',
1852 'alignment' => '{{WRAPPER}} .rtsb-elementor-container .category-title',
1853 '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',
1854 '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',
1855 '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',
1856 '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',
1857 'border' => '{{WRAPPER}} .rtsb-elementor-container .category-title',
1858 'border_hover_color' => '{{WRAPPER}} .rtsb-elementor-container .category-title:hover',
1859 'padding' => '{{WRAPPER}} .rtsb-elementor-container .category-title',
1860 'margin' => '{{WRAPPER}} .rtsb-elementor-container .category-title',
1861 ],
1862 'cat_description' => [
1863 'typography' => '{{WRAPPER}} .rtsb-elementor-container .category-description',
1864 'alignment' => '{{WRAPPER}} .rtsb-elementor-container .category-description',
1865 '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',
1866 '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',
1867 'border' => '{{WRAPPER}} .rtsb-elementor-container .category-description',
1868 'padding' => '{{WRAPPER}} .rtsb-elementor-container .category-description',
1869 'margin' => '{{WRAPPER}} .rtsb-elementor-container .category-description',
1870 ],
1871 ];
1872 }
1873
1874 /**
1875 * Social Share CSS Selectors.
1876 *
1877 * @return array
1878 */
1879 private static function social_share(): array {
1880 return apply_filters(
1881 'rtsb/elements/elementor/social_share_selectors',
1882 [
1883 'share_items' => [
1884 'share_icons_spacing' => '{{WRAPPER}} .rtsb-social-share',
1885 'share_items_min_width' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn',
1886 'social_items_color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn svg, {{WRAPPER}} .rtsb-social-share .rtsb-share-btn .rtsb-share-label',
1887 'social_items_bg_color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn',
1888 'facebook_color' => '{{WRAPPER}} .rtsb-social-share .facebook svg, {{WRAPPER}} .rtsb-social-share .facebook .rtsb-share-label',
1889 'twitter_color' => '{{WRAPPER}} .rtsb-social-share .twitter svg, {{WRAPPER}} .rtsb-social-share .twitter .rtsb-share-label',
1890 'linkedin_color' => '{{WRAPPER}} .rtsb-social-share .linkedin svg, {{WRAPPER}} .rtsb-social-share .linkedin .rtsb-share-label',
1891 'pinterest_color' => '{{WRAPPER}} .rtsb-social-share .pinterest svg, {{WRAPPER}} .rtsb-social-share .pinterest .rtsb-share-label',
1892 'skype_color' => '{{WRAPPER}} .rtsb-social-share .skype svg, {{WRAPPER}} .rtsb-social-share .skype .rtsb-share-label',
1893 'whatsapp_color' => '{{WRAPPER}} .rtsb-social-share .whatsapp svg, {{WRAPPER}} .rtsb-social-share .whatsapp .rtsb-share-label',
1894 'reddit_color' => '{{WRAPPER}} .rtsb-social-share .reddit svg, {{WRAPPER}} .rtsb-social-share .reddit .rtsb-share-label',
1895 'telegram_color' => '{{WRAPPER}} .rtsb-social-share .telegram svg, {{WRAPPER}} .rtsb-social-share .telegram .rtsb-share-label',
1896 'facebook_bg_color' => '{{WRAPPER}} .rtsb-social-share .facebook',
1897 'twitter_bg_color' => '{{WRAPPER}} .rtsb-social-share .twitter',
1898 'linkedin_bg_color' => '{{WRAPPER}} .rtsb-social-share .linkedin',
1899 'pinterest_bg_color' => '{{WRAPPER}} .rtsb-social-share .pinterest',
1900 'skype_bg_color' => '{{WRAPPER}} .rtsb-social-share .skype',
1901 'whatsapp_bg_color' => '{{WRAPPER}} .rtsb-social-share .whatsapp',
1902 'reddit_bg_color' => '{{WRAPPER}} .rtsb-social-share .reddit',
1903 'telegram_bg_color' => '{{WRAPPER}} .rtsb-social-share .telegram',
1904 'social_items_hover_color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn:hover svg, {{WRAPPER}} .rtsb-social-share .rtsb-share-btn:hover .rtsb-share-label',
1905 'social_items_hover_bg_color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn:hover',
1906 'facebook_hover_color' => '{{WRAPPER}} .rtsb-social-share .facebook:hover svg, {{WRAPPER}} .rtsb-social-share .facebook:hover .rtsb-share-label',
1907 'twitter_hover_color' => '{{WRAPPER}} .rtsb-social-share .twitter:hover svg, {{WRAPPER}} .rtsb-social-share .twitter:hover .rtsb-share-label',
1908 'linkedin_hover_color' => '{{WRAPPER}} .rtsb-social-share .linkedin:hover svg, {{WRAPPER}} .rtsb-social-share .linkedin:hover .rtsb-share-label',
1909 'pinterest_hover_color' => '{{WRAPPER}} .rtsb-social-share .pinterest:hover svg, {{WRAPPER}} .rtsb-social-share .pinterest:hover .rtsb-share-label',
1910 'skype_hover_color' => '{{WRAPPER}} .rtsb-social-share .skype:hover svg, {{WRAPPER}} .rtsb-social-share .skype:hover .rtsb-share-label',
1911 'whatsapp_hover_color' => '{{WRAPPER}} .rtsb-social-share .whatsapp:hover svg, {{WRAPPER}} .rtsb-social-share .whatsapp:hover .rtsb-share-label',
1912 'reddit_hover_color' => '{{WRAPPER}} .rtsb-social-share .reddit:hover svg, {{WRAPPER}} .rtsb-social-share .reddit:hover .rtsb-share-label',
1913 'telegram_hover_color' => '{{WRAPPER}} .rtsb-social-share .telegram:hover svg, {{WRAPPER}} .rtsb-social-share .telegram:hover .rtsb-share-label',
1914 'facebook_hover_bg_color' => '{{WRAPPER}} .rtsb-social-share .facebook:hover',
1915 'twitter_hover_bg_color' => '{{WRAPPER}} .rtsb-social-share .twitter:hover',
1916 'linkedin_hover_bg_color' => '{{WRAPPER}} .rtsb-social-share .linkedin:hover',
1917 'pinterest_hover_bg_color' => '{{WRAPPER}} .rtsb-social-share .pinterest:hover',
1918 'skype_hover_bg_color' => '{{WRAPPER}} .rtsb-social-share .skype:hover',
1919 'whatsapp_hover_bg_color' => '{{WRAPPER}} .rtsb-social-share .whatsapp:hover',
1920 'reddit_hover_bg_color' => '{{WRAPPER}} .rtsb-social-share .reddit:hover',
1921 'telegram_hover_bg_color' => '{{WRAPPER}} .rtsb-social-share .telegram:hover',
1922 'border' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn',
1923 'border_hover_color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn:hover',
1924 'border_radius' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn',
1925 'padding' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn',
1926 'margin' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn',
1927 ],
1928 'share_icons' => [
1929 'share_icons_width' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn svg',
1930 'share_icons_height' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn svg',
1931 'color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn svg',
1932 'bg_color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn .rtsb-share-icon',
1933 'hover_color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn:hover svg',
1934 'hover_bg_color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn:hover .rtsb-share-icon',
1935 'border' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-icon-label .rtsb-share-icon',
1936 'border_hover_color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn:hover .rtsb-share-icon',
1937 'padding' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-icon-label .rtsb-share-icon',
1938 'margin' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-icon-label .rtsb-share-icon',
1939 ],
1940 'share_text' => [
1941 'typography' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-icon-label .rtsb-share-label',
1942 'alignment' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-icon-label .rtsb-share-label',
1943 'color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-icon-label .rtsb-share-label',
1944 'bg_color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-icon-label .rtsb-share-label',
1945 'hover_color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn:hover .rtsb-share-label',
1946 'hover_bg_color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn:hover .rtsb-share-label',
1947 'border' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-icon-label .rtsb-share-label',
1948 'border_hover_color' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-btn:hover .rtsb-share-label',
1949 'padding' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-icon-label .rtsb-share-label',
1950 'margin' => '{{WRAPPER}} .rtsb-social-share .rtsb-share-icon-label .rtsb-share-label',
1951 ],
1952 'share_header' => [
1953 'typography' => '{{WRAPPER}} .rtsb-social-share-container .rtsb-social-header p',
1954 'share_header_type' => '{{WRAPPER}} .rtsb-social-share-container',
1955 'color' => '{{WRAPPER}} .rtsb-social-share-container .rtsb-social-header p',
1956 'bg_color' => '{{WRAPPER}} .rtsb-social-share-container .rtsb-social-header p',
1957 'border' => '{{WRAPPER}} .rtsb-social-share-container .rtsb-social-header p',
1958 'padding' => '{{WRAPPER}} .rtsb-social-share-container .rtsb-social-header p',
1959 'margin' => '{{WRAPPER}} .rtsb-social-share-container .rtsb-social-header p',
1960 ],
1961 ]
1962 );
1963 }
1964 }
1965