@everymatrix/player-account-self-exclusion 0.0.367 → 0.0.368

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,321 +1,321 @@
1
- <svelte:options tag={null} />
2
-
3
- <script lang="ts">
4
- import { onMount } from 'svelte';
5
- import { getDevice } from 'rvhelper';
6
- import moment from 'moment';
7
- import { _, addNewMessages, setLocale } from './i18n';
8
- import { PlayerSelfExclusionTranslations } from './translations';
9
-
10
- import '@vaadin/vaadin-date-picker/vaadin-date-picker.js';
11
-
12
- export let lang:string = 'en';
13
- export let operator:string = 'Everymatrix';
14
-
15
- let userAgent:string = window.navigator.userAgent;
16
- let isMobile:boolean = (getDevice(userAgent) === 'PC') ? false : true;
17
- let calendar:HTMLElement;
18
-
19
- let permanentSelfExclusion:boolean = false;
20
-
21
- let selfExclusionPeriod:string = '';
22
- let selfExclusionExpiryDate:string = '';
23
- let currentDate:Date = new Date();
24
- let minDate:string;
25
- let maxDate:string;
26
-
27
- Object.keys(PlayerSelfExclusionTranslations).forEach((item:any) => {
28
- addNewMessages(item, PlayerSelfExclusionTranslations[item]);
29
- });
30
-
31
- minDate = moment(currentDate.setDate(currentDate.getDate())).add(6, 'M').format('YYYY-MM-DD');
32
- maxDate = moment(currentDate.setDate(currentDate.getDate())).add(5, 'y').format('YYYY-MM-DD');
33
- selfExclusionExpiryDate = minDate;
34
-
35
- // Toggle permanent self exclusion
36
- const togglePermanentSelfExclusion = () => {
37
- if (permanentSelfExclusion == false) {
38
- permanentSelfExclusion = true;
39
- } else {
40
- permanentSelfExclusion = false;
41
- }
42
- }
43
-
44
- // Set self exclusion period
45
- const setSelfExclusionPeriod = (date?:string) => {
46
- if (permanentSelfExclusion == true) {
47
- selfExclusionPeriod = 'SelfExclusionPermanent';
48
- } else {
49
- selfExclusionPeriod = 'SelfExclusionUntilSelectedDate';
50
-
51
- if (date && date.length > 0) {
52
- selfExclusionExpiryDate = date;
53
- }
54
- }
55
- }
56
-
57
- // Send self exclusion period and date
58
- const saveSelfExclusion = (e):void => {
59
- e.preventDefault();
60
- setSelfExclusionPeriod();
61
-
62
- window.postMessage({
63
- type: 'SetSelfExclusion',
64
- selfExclusionPeriod,
65
- selfExclusionExpiryDate
66
- }, window.location.href);
67
- }
68
-
69
- // Mobile back button
70
- const toggleScreen = () => {
71
- window.postMessage({type: 'PlayerAccountMenuActive', isMobile}, window.location.href);
72
- }
73
-
74
- const calendarHandler = (e:any) => {
75
- setSelfExclusionPeriod(e.target.value);
76
- }
77
-
78
- const setCalendarEventListener = () => {
79
- calendar.addEventListener('change', calendarHandler, false);
80
- }
81
-
82
- onMount(() => {
83
- return () => {
84
- calendar.removeEventListener('change', calendarHandler);
85
- }
86
- });
87
-
88
- const initialLoad = () => {
89
- setLocale(lang);
90
- }
91
-
92
- $: calendar && setCalendarEventListener();
93
- $: lang && initialLoad();
94
- </script>
95
-
96
- <form class="SelfExclusionWrapper {isMobile ? 'SelfExclusionWrapperMobile' : ''}" part="SelfExclusionWrapper {isMobile ? 'SelfExclusionWrapperMobile' : ''}">
97
- {#if isMobile}
98
- <div class="MenuReturnButton" part="MenuReturnButton" on:click={() => toggleScreen()}>
99
- <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15"><defs><style>.aaa{fill:var(--emfe-w-color-primary, #D0046C);}</style></defs><g transform="translate(-20 -158)">
100
- <g transform="translate(20 158)">
101
- <path class="aaa" d="M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z" transform="translate(15 15) rotate(180)"/>
102
- </g></g>
103
- </svg>
104
- <h2 class="PlayerSelfExclusionTitleMobile" part="PlayerSelfExclusionTitleMobile">{$_('selfExclusion.title')}</h2>
105
- </div>
106
- {/if}
107
- <h2 class="PlayerSelfExclusionTitle {isMobile ? 'PlayerSelfExclusionTitleNone' : ''}" part="PlayerSelfExclusionTitle {isMobile ? 'PlayerSelfExclusionTitleNone' : ''}">{$_('selfExclusion.title')}</h2>
108
-
109
-
110
- <div class="SelfExclusionDescription {isMobile ? 'SelfExclusionDescriptionMobile' : ''}" part="SelfExclusionDescription {isMobile ? 'SelfExclusionDescriptionMobile' : ''}">
111
- <p class="SelfExclusionDescriptionText" part="SelfExclusionDescriptionText">{$_('selfExclusion.selfExclusionText1', { values: { operatorname: operator}})}</p>
112
- <p class="SelfExclusionDescriptionText" part="SelfExclusionDescriptionText">{$_('selfExclusion.selfExclusionText2')}</p>
113
- <p class="SelfExclusionDescriptionText" part="SelfExclusionDescriptionText">{$_('selfExclusion.selfExclusionText3')} support@everymatrix.com</p>
114
- <p class="SelfExclusionDescriptionText" part="SelfExclusionDescriptionText">{$_('selfExclusion.selfExclusionText4')} <a href="mailto:support@everymatrix.com">support@everymatrix.com</a></p>
115
- </div>
116
- <div class="SelfExclusionDateWrapper {isMobile ? 'SelfExclusionDateWrapperMobile' : ''}" part="SelfExclusionDateWrapper {isMobile ? 'SelfExclusionDateWrapperMobile' : ''}">
117
- <label for="SelfExclusionDate">{$_('selfExclusion.duration')}</label>
118
- <vaadin-date-picker bind:this={calendar} min={minDate} max={maxDate} value={minDate}></vaadin-date-picker>
119
- </div>
120
- <div class="SelfExclusionRadioWrapper {isMobile ? 'SelfExclusionRadioWrapperMobile' : ''}" part="SelfExclusionRadioWrapper {isMobile ? 'SelfExclusionRadioWrapperMobile' : ''}">
121
- <label class="SelfExclusionRadio" part="SelfExclusionRadio">{$_('selfExclusion.forever')}
122
- <input type="Checkbox" on:click={() => togglePermanentSelfExclusion()}>
123
- <span class="Checkmark" part="Checkmark"></span>
124
- </label>
125
- </div>
126
- <div class="SelfExclusionDescription {isMobile ? 'SelfExclusionDescriptionMobile' : ''}" part="SelfExclusionDescription {isMobile ? 'SelfExclusionDescriptionMobile' : ''}">
127
- {#if permanentSelfExclusion}
128
- <p class="SelfExclusionDescriptionText" part="SelfExclusionDescriptionText"><strong>{$_('selfExclusion.permanentSelfExclusion')}</strong></p>
129
- {:else}
130
- <p class="SelfExclusionDescriptionText" part="SelfExclusionDescriptionText"><strong>{$_('selfExclusion.temporarySelfExclusion', { values: { date: selfExclusionExpiryDate}})}</strong></p>
131
- {/if}
132
- </div>
133
- <div class="SelfExclusionActionButtons {isMobile ? 'SelfExclusionActionButtonsMobile' : ''}" part="SelfExclusionActionButtons {isMobile ? 'SelfExclusionActionButtonsMobile' : ''}">
134
- <button class="SelfExclusionSave" part="SelfExclusionSave" on:click={(e) => saveSelfExclusion(e)}>{$_('selfExclusion.save')}</button>
135
- </div>
136
- </form>
137
-
138
- <style lang="scss">
139
-
140
- :host {
141
- font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
142
- }
143
-
144
- .PlayerSelfExclusionTitle {
145
- font-size: 26px;
146
- color: var(--emfe-w-color-primary, #D0046C);
147
- font-weight: 400;
148
- }
149
-
150
- .PlayerSelfExclusionTitleMobile {
151
- font-size: 16px;
152
- color: var(--emfe-w-color-primary, #D0046C);
153
- }
154
-
155
- .PlayerSelfExclusionTitleNone {
156
- display: none;
157
- }
158
-
159
- .SelfExclusionWrapper {
160
- color: var(--emfe-w-color-contrast, #07072A);
161
- padding: 50px;
162
- max-width: 760px;
163
- &.SelfExclusionWrapperMobile {
164
- padding: 20px 15px;
165
- background: var(--emfe-w-color-white, #FFFFFF);
166
- max-width: unset;
167
- }
168
- }
169
-
170
- .MenuReturnButton{
171
- color: var(--emfe-w-color-gray-300, #58586B);
172
- display: inline-flex;
173
- align-items: center;
174
- column-gap: 10px;
175
- margin-bottom: 10px;
176
- }
177
-
178
-
179
- .SelfExclusionTitle {
180
- font-size: 26px;
181
- color: var(--emfe-w-color-primary, #D0046C);
182
- font-weight: 400;
183
- &.SelfExclusionTitleMobile {
184
- font-size: 14px;
185
- }
186
- }
187
-
188
- .SelfExclusionDescription {
189
- color: var(--emfe-w-color-gray-300, #58586B);
190
- line-height: 24px;
191
- &.SelfExclusionDescriptionMobile {
192
- font-size: 12px;
193
- line-height: 19px;
194
- }
195
- .SelfExclusionDescriptionText a {
196
- color: var(--emfe-w-color-primary, #D0046C);
197
- }
198
- }
199
-
200
- .SelfExclusionDateWrapper {
201
- color: var(--emfe-w-color-gray-300, #58586B);
202
- display: flex;
203
- flex-direction: column;
204
- padding-bottom: 16px;
205
- position: relative;
206
- width: 50%;
207
-
208
- label {
209
- font-size: 14px;
210
- font-weight: 300;
211
- padding-bottom: 5px;
212
- }
213
-
214
- input {
215
- width: 100%;
216
- height: 44px;
217
- border: 1px solid var(--emfe-w-color-gray-100, #E6E6E6);
218
- border-radius: 5px;
219
- box-sizing: border-box;
220
- padding: 5px 15px;
221
- font-size: 16px;
222
- line-height: 18px;
223
- }
224
-
225
- &.SelfExclusionDateWrapperMobile {
226
- width: 100%;
227
- }
228
- }
229
-
230
- .SelfExclusionRadioWrapper {
231
- display: block;
232
- position: relative;
233
- padding: 4px 0 0 0;
234
- margin-bottom: 16px;
235
- font-size: 16px;
236
- user-select: none;
237
- line-height: 18px;
238
-
239
- label {
240
- font-size: 16px;
241
- cursor: pointer;
242
- padding-left: 35px;
243
- }
244
-
245
- input {
246
- position: absolute;
247
- opacity: 0;
248
- cursor: pointer;
249
- height: 0;
250
- width: 0;
251
- }
252
-
253
- .Checkmark {
254
- position: absolute;
255
- top: 0;
256
- left: 0;
257
- height: 25px;
258
- width: 25px;
259
- background-color: var(--emfe-w-color-gray-100, #E6E6E6);
260
- border-radius: 50%;
261
- }
262
-
263
- input:checked ~ .Checkmark {
264
- background-color: var(--emfe-w-color-primary, #D0046C);
265
- }
266
-
267
- .Checkmark:after {
268
- content: "";
269
- position: absolute;
270
- display: none;
271
- left: 9px;
272
- top: 5px;
273
- width: 5px;
274
- height: 10px;
275
- border: solid white;
276
- border-width: 0 2px 2px 0;
277
- transform: rotate(45deg);
278
- }
279
-
280
- input:checked ~ .Checkmark:after {
281
- display: block;
282
- }
283
-
284
- &.SelfExclusionRadioWrapperMobile {
285
- label {
286
- font-size: 12px;
287
- }
288
- }
289
- }
290
-
291
- .SelfExclusionActionButtons {
292
- margin-top: 40px;
293
- width: 50%;
294
-
295
- .SelfExclusionSave {
296
- cursor: pointer;
297
- border-radius: 5px;
298
- width: 100%;
299
- height: 50px;
300
- display: flex;
301
- align-items: center;
302
- justify-content: center;
303
- font-size: 16px;
304
- text-transform: uppercase;
305
- transition-duration: 0.3s;
306
- box-sizing: border-box;
307
- background: var(--emfe-w-color-primary, #D0046C);
308
- border: 1px solid var(--emfe-w-color-primary, #D0046C);
309
- color: var(--emfe-w-color-white, #FFFFFF);
310
- }
311
-
312
- &.SelfExclusionActionButtonsMobile {
313
- width: 100%;
314
- grid-template-columns: 1fr 1fr;
315
- .SelfExclusionSave {
316
- height: 40px;
317
- font-size: 12px;
318
- }
319
- }
320
- }
321
- </style>
1
+ <svelte:options tag={null} />
2
+
3
+ <script lang="ts">
4
+ import { onMount } from 'svelte';
5
+ import { getDevice } from 'rvhelper';
6
+ import moment from 'moment';
7
+ import { _, addNewMessages, setLocale } from './i18n';
8
+ import { PlayerSelfExclusionTranslations } from './translations';
9
+
10
+ import '@vaadin/vaadin-date-picker/vaadin-date-picker.js';
11
+
12
+ export let lang:string = 'en';
13
+ export let operator:string = 'Everymatrix';
14
+
15
+ let userAgent:string = window.navigator.userAgent;
16
+ let isMobile:boolean = (getDevice(userAgent) === 'PC') ? false : true;
17
+ let calendar:HTMLElement;
18
+
19
+ let permanentSelfExclusion:boolean = false;
20
+
21
+ let selfExclusionPeriod:string = '';
22
+ let selfExclusionExpiryDate:string = '';
23
+ let currentDate:Date = new Date();
24
+ let minDate:string;
25
+ let maxDate:string;
26
+
27
+ Object.keys(PlayerSelfExclusionTranslations).forEach((item:any) => {
28
+ addNewMessages(item, PlayerSelfExclusionTranslations[item]);
29
+ });
30
+
31
+ minDate = moment(currentDate.setDate(currentDate.getDate())).add(6, 'M').format('YYYY-MM-DD');
32
+ maxDate = moment(currentDate.setDate(currentDate.getDate())).add(5, 'y').format('YYYY-MM-DD');
33
+ selfExclusionExpiryDate = minDate;
34
+
35
+ // Toggle permanent self exclusion
36
+ const togglePermanentSelfExclusion = () => {
37
+ if (permanentSelfExclusion == false) {
38
+ permanentSelfExclusion = true;
39
+ } else {
40
+ permanentSelfExclusion = false;
41
+ }
42
+ }
43
+
44
+ // Set self exclusion period
45
+ const setSelfExclusionPeriod = (date?:string) => {
46
+ if (permanentSelfExclusion == true) {
47
+ selfExclusionPeriod = 'SelfExclusionPermanent';
48
+ } else {
49
+ selfExclusionPeriod = 'SelfExclusionUntilSelectedDate';
50
+
51
+ if (date && date.length > 0) {
52
+ selfExclusionExpiryDate = date;
53
+ }
54
+ }
55
+ }
56
+
57
+ // Send self exclusion period and date
58
+ const saveSelfExclusion = (e):void => {
59
+ e.preventDefault();
60
+ setSelfExclusionPeriod();
61
+
62
+ window.postMessage({
63
+ type: 'SetSelfExclusion',
64
+ selfExclusionPeriod,
65
+ selfExclusionExpiryDate
66
+ }, window.location.href);
67
+ }
68
+
69
+ // Mobile back button
70
+ const toggleScreen = () => {
71
+ window.postMessage({type: 'PlayerAccountMenuActive', isMobile}, window.location.href);
72
+ }
73
+
74
+ const calendarHandler = (e:any) => {
75
+ setSelfExclusionPeriod(e.target.value);
76
+ }
77
+
78
+ const setCalendarEventListener = () => {
79
+ calendar.addEventListener('change', calendarHandler, false);
80
+ }
81
+
82
+ onMount(() => {
83
+ return () => {
84
+ calendar.removeEventListener('change', calendarHandler);
85
+ }
86
+ });
87
+
88
+ const initialLoad = () => {
89
+ setLocale(lang);
90
+ }
91
+
92
+ $: calendar && setCalendarEventListener();
93
+ $: lang && initialLoad();
94
+ </script>
95
+
96
+ <form class="SelfExclusionWrapper {isMobile ? 'SelfExclusionWrapperMobile' : ''}" part="SelfExclusionWrapper {isMobile ? 'SelfExclusionWrapperMobile' : ''}">
97
+ {#if isMobile}
98
+ <div class="MenuReturnButton" part="MenuReturnButton" on:click={() => toggleScreen()}>
99
+ <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15"><defs><style>.aaa{fill:var(--emfe-w-color-primary, #D0046C);}</style></defs><g transform="translate(-20 -158)">
100
+ <g transform="translate(20 158)">
101
+ <path class="aaa" d="M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z" transform="translate(15 15) rotate(180)"/>
102
+ </g></g>
103
+ </svg>
104
+ <h2 class="PlayerSelfExclusionTitleMobile" part="PlayerSelfExclusionTitleMobile">{$_('selfExclusion.title')}</h2>
105
+ </div>
106
+ {/if}
107
+ <h2 class="PlayerSelfExclusionTitle {isMobile ? 'PlayerSelfExclusionTitleNone' : ''}" part="PlayerSelfExclusionTitle {isMobile ? 'PlayerSelfExclusionTitleNone' : ''}">{$_('selfExclusion.title')}</h2>
108
+
109
+
110
+ <div class="SelfExclusionDescription {isMobile ? 'SelfExclusionDescriptionMobile' : ''}" part="SelfExclusionDescription {isMobile ? 'SelfExclusionDescriptionMobile' : ''}">
111
+ <p class="SelfExclusionDescriptionText" part="SelfExclusionDescriptionText">{$_('selfExclusion.selfExclusionText1', { values: { operatorname: operator}})}</p>
112
+ <p class="SelfExclusionDescriptionText" part="SelfExclusionDescriptionText">{$_('selfExclusion.selfExclusionText2')}</p>
113
+ <p class="SelfExclusionDescriptionText" part="SelfExclusionDescriptionText">{$_('selfExclusion.selfExclusionText3')} support@everymatrix.com</p>
114
+ <p class="SelfExclusionDescriptionText" part="SelfExclusionDescriptionText">{$_('selfExclusion.selfExclusionText4')} <a href="mailto:support@everymatrix.com">support@everymatrix.com</a></p>
115
+ </div>
116
+ <div class="SelfExclusionDateWrapper {isMobile ? 'SelfExclusionDateWrapperMobile' : ''}" part="SelfExclusionDateWrapper {isMobile ? 'SelfExclusionDateWrapperMobile' : ''}">
117
+ <label for="SelfExclusionDate">{$_('selfExclusion.duration')}</label>
118
+ <vaadin-date-picker bind:this={calendar} min={minDate} max={maxDate} value={minDate}></vaadin-date-picker>
119
+ </div>
120
+ <div class="SelfExclusionRadioWrapper {isMobile ? 'SelfExclusionRadioWrapperMobile' : ''}" part="SelfExclusionRadioWrapper {isMobile ? 'SelfExclusionRadioWrapperMobile' : ''}">
121
+ <label class="SelfExclusionRadio" part="SelfExclusionRadio">{$_('selfExclusion.forever')}
122
+ <input type="Checkbox" on:click={() => togglePermanentSelfExclusion()}>
123
+ <span class="Checkmark" part="Checkmark"></span>
124
+ </label>
125
+ </div>
126
+ <div class="SelfExclusionDescription {isMobile ? 'SelfExclusionDescriptionMobile' : ''}" part="SelfExclusionDescription {isMobile ? 'SelfExclusionDescriptionMobile' : ''}">
127
+ {#if permanentSelfExclusion}
128
+ <p class="SelfExclusionDescriptionText" part="SelfExclusionDescriptionText"><strong>{$_('selfExclusion.permanentSelfExclusion')}</strong></p>
129
+ {:else}
130
+ <p class="SelfExclusionDescriptionText" part="SelfExclusionDescriptionText"><strong>{$_('selfExclusion.temporarySelfExclusion', { values: { date: selfExclusionExpiryDate}})}</strong></p>
131
+ {/if}
132
+ </div>
133
+ <div class="SelfExclusionActionButtons {isMobile ? 'SelfExclusionActionButtonsMobile' : ''}" part="SelfExclusionActionButtons {isMobile ? 'SelfExclusionActionButtonsMobile' : ''}">
134
+ <button class="SelfExclusionSave" part="SelfExclusionSave" on:click={(e) => saveSelfExclusion(e)}>{$_('selfExclusion.save')}</button>
135
+ </div>
136
+ </form>
137
+
138
+ <style lang="scss">
139
+
140
+ :host {
141
+ font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
142
+ }
143
+
144
+ .PlayerSelfExclusionTitle {
145
+ font-size: 26px;
146
+ color: var(--emfe-w-color-primary, #D0046C);
147
+ font-weight: 400;
148
+ }
149
+
150
+ .PlayerSelfExclusionTitleMobile {
151
+ font-size: 16px;
152
+ color: var(--emfe-w-color-primary, #D0046C);
153
+ }
154
+
155
+ .PlayerSelfExclusionTitleNone {
156
+ display: none;
157
+ }
158
+
159
+ .SelfExclusionWrapper {
160
+ color: var(--emfe-w-color-contrast, #07072A);
161
+ padding: 50px;
162
+ max-width: 760px;
163
+ &.SelfExclusionWrapperMobile {
164
+ padding: 20px 15px;
165
+ background: var(--emfe-w-color-white, #FFFFFF);
166
+ max-width: unset;
167
+ }
168
+ }
169
+
170
+ .MenuReturnButton{
171
+ color: var(--emfe-w-color-gray-300, #58586B);
172
+ display: inline-flex;
173
+ align-items: center;
174
+ column-gap: 10px;
175
+ margin-bottom: 10px;
176
+ }
177
+
178
+
179
+ .SelfExclusionTitle {
180
+ font-size: 26px;
181
+ color: var(--emfe-w-color-primary, #D0046C);
182
+ font-weight: 400;
183
+ &.SelfExclusionTitleMobile {
184
+ font-size: 14px;
185
+ }
186
+ }
187
+
188
+ .SelfExclusionDescription {
189
+ color: var(--emfe-w-color-gray-300, #58586B);
190
+ line-height: 24px;
191
+ &.SelfExclusionDescriptionMobile {
192
+ font-size: 12px;
193
+ line-height: 19px;
194
+ }
195
+ .SelfExclusionDescriptionText a {
196
+ color: var(--emfe-w-color-primary, #D0046C);
197
+ }
198
+ }
199
+
200
+ .SelfExclusionDateWrapper {
201
+ color: var(--emfe-w-color-gray-300, #58586B);
202
+ display: flex;
203
+ flex-direction: column;
204
+ padding-bottom: 16px;
205
+ position: relative;
206
+ width: 50%;
207
+
208
+ label {
209
+ font-size: 14px;
210
+ font-weight: 300;
211
+ padding-bottom: 5px;
212
+ }
213
+
214
+ input {
215
+ width: 100%;
216
+ height: 44px;
217
+ border: 1px solid var(--emfe-w-color-gray-100, #E6E6E6);
218
+ border-radius: 5px;
219
+ box-sizing: border-box;
220
+ padding: 5px 15px;
221
+ font-size: 16px;
222
+ line-height: 18px;
223
+ }
224
+
225
+ &.SelfExclusionDateWrapperMobile {
226
+ width: 100%;
227
+ }
228
+ }
229
+
230
+ .SelfExclusionRadioWrapper {
231
+ display: block;
232
+ position: relative;
233
+ padding: 4px 0 0 0;
234
+ margin-bottom: 16px;
235
+ font-size: 16px;
236
+ user-select: none;
237
+ line-height: 18px;
238
+
239
+ label {
240
+ font-size: 16px;
241
+ cursor: pointer;
242
+ padding-left: 35px;
243
+ }
244
+
245
+ input {
246
+ position: absolute;
247
+ opacity: 0;
248
+ cursor: pointer;
249
+ height: 0;
250
+ width: 0;
251
+ }
252
+
253
+ .Checkmark {
254
+ position: absolute;
255
+ top: 0;
256
+ left: 0;
257
+ height: 25px;
258
+ width: 25px;
259
+ background-color: var(--emfe-w-color-gray-100, #E6E6E6);
260
+ border-radius: 50%;
261
+ }
262
+
263
+ input:checked ~ .Checkmark {
264
+ background-color: var(--emfe-w-color-primary, #D0046C);
265
+ }
266
+
267
+ .Checkmark:after {
268
+ content: "";
269
+ position: absolute;
270
+ display: none;
271
+ left: 9px;
272
+ top: 5px;
273
+ width: 5px;
274
+ height: 10px;
275
+ border: solid white;
276
+ border-width: 0 2px 2px 0;
277
+ transform: rotate(45deg);
278
+ }
279
+
280
+ input:checked ~ .Checkmark:after {
281
+ display: block;
282
+ }
283
+
284
+ &.SelfExclusionRadioWrapperMobile {
285
+ label {
286
+ font-size: 12px;
287
+ }
288
+ }
289
+ }
290
+
291
+ .SelfExclusionActionButtons {
292
+ margin-top: 40px;
293
+ width: 50%;
294
+
295
+ .SelfExclusionSave {
296
+ cursor: pointer;
297
+ border-radius: 5px;
298
+ width: 100%;
299
+ height: 50px;
300
+ display: flex;
301
+ align-items: center;
302
+ justify-content: center;
303
+ font-size: 16px;
304
+ text-transform: uppercase;
305
+ transition-duration: 0.3s;
306
+ box-sizing: border-box;
307
+ background: var(--emfe-w-color-primary, #D0046C);
308
+ border: 1px solid var(--emfe-w-color-primary, #D0046C);
309
+ color: var(--emfe-w-color-white, #FFFFFF);
310
+ }
311
+
312
+ &.SelfExclusionActionButtonsMobile {
313
+ width: 100%;
314
+ grid-template-columns: 1fr 1fr;
315
+ .SelfExclusionSave {
316
+ height: 40px;
317
+ font-size: 12px;
318
+ }
319
+ }
320
+ }
321
+ </style>