@hotosm/ui 0.3.0-b7 → 0.3.0-b9

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.
Files changed (69) hide show
  1. package/dist/assets/logo/osm-logo.png +0 -0
  2. package/dist/chunks/chunk.6VU523R3.js +1 -0
  3. package/dist/chunks/chunk.ASODQHWD.js +1 -0
  4. package/dist/chunks/chunk.BPXXHUUZ.js +1 -0
  5. package/dist/chunks/chunk.DH7XQ5FD.js +239 -0
  6. package/dist/chunks/{chunk.7KXDULC3.js → chunk.FRQNABAW.js} +88 -3
  7. package/dist/chunks/chunk.G3D6QL7M.js +218 -0
  8. package/dist/chunks/chunk.HIBNS72H.js +94 -0
  9. package/dist/chunks/chunk.KJNIHMV5.js +1 -0
  10. package/dist/chunks/chunk.KLERXQ4L.js +1 -0
  11. package/dist/chunks/chunk.KO4EOD3I.js +1 -0
  12. package/dist/chunks/chunk.LPP5A7DY.js +36 -0
  13. package/dist/chunks/chunk.N5ZPC4QF.js +1 -0
  14. package/dist/chunks/{chunk.R73PKLI4.js → chunk.PJ3V5264.js} +1 -1
  15. package/dist/chunks/chunk.VQWI2U6Y.js +1 -0
  16. package/dist/chunks/chunk.WEGVR65B.js +1 -0
  17. package/dist/chunks/chunk.YDNYCQ33.js +1 -0
  18. package/dist/components/consent/consent.component.d.ts +5 -3
  19. package/dist/components/consent/consent.component.js +1 -1
  20. package/dist/components/consent/consent.js +1 -1
  21. package/dist/components/consent/consent.styles.js +1 -1
  22. package/dist/components/header/header.component.d.ts +31 -3
  23. package/dist/components/header/header.component.js +1 -1
  24. package/dist/components/header/header.js +1 -1
  25. package/dist/components/header/header.styles.js +1 -1
  26. package/dist/components/icons.js +1 -1
  27. package/dist/components/logo/logo.component.js +1 -1
  28. package/dist/components/logo/logo.js +1 -1
  29. package/dist/components/logo/logo.styles.js +1 -1
  30. package/dist/components/tracking/tracking.component.d.ts +21 -0
  31. package/dist/components/tracking/tracking.component.js +1 -1
  32. package/dist/components/tracking/tracking.js +1 -1
  33. package/dist/hotosm-ui.d.ts +5 -117
  34. package/dist/hotosm-ui.js +1 -1
  35. package/dist/react/consent/index.js +1 -1
  36. package/dist/react/header/index.js +1 -1
  37. package/dist/react/index.js +1 -1
  38. package/dist/react/logo/index.js +1 -1
  39. package/dist/react/tracking/index.js +1 -1
  40. package/dist/style.css +1 -1
  41. package/dist/themes/hot-wa.css +179 -0
  42. package/package.json +1 -1
  43. package/dist/chunks/chunk.3FANZE43.js +0 -1
  44. package/dist/chunks/chunk.AFGPUO4H.js +0 -1
  45. package/dist/chunks/chunk.B3MIQKX3.js +0 -66
  46. package/dist/chunks/chunk.FWYUHKRF.js +0 -1
  47. package/dist/chunks/chunk.GVYEHPTU.js +0 -17
  48. package/dist/chunks/chunk.GY32O3WU.js +0 -26
  49. package/dist/chunks/chunk.JK2P4SXH.js +0 -1
  50. package/dist/chunks/chunk.KGPID6RT.js +0 -1
  51. package/dist/chunks/chunk.N5M5RY5M.js +0 -1
  52. package/dist/chunks/chunk.NZIJQUIE.js +0 -1
  53. package/dist/chunks/chunk.PUMXQ24J.js +0 -4
  54. package/dist/chunks/chunk.Q5SXKMUN.js +0 -18
  55. package/dist/chunks/chunk.WPXUR5EI.js +0 -49
  56. package/dist/components/toolbar/toolbar.component.d.ts +0 -24
  57. package/dist/components/toolbar/toolbar.component.js +0 -1
  58. package/dist/components/toolbar/toolbar.d.ts +0 -8
  59. package/dist/components/toolbar/toolbar.js +0 -1
  60. package/dist/components/toolbar/toolbar.styles.d.ts +0 -2
  61. package/dist/components/toolbar/toolbar.styles.js +0 -1
  62. package/dist/react/consent/index.d.ts +0 -3
  63. package/dist/react/header/index.d.ts +0 -3
  64. package/dist/react/index.d.ts +0 -62
  65. package/dist/react/logo/index.d.ts +0 -3
  66. package/dist/react/toolbar/index.d.ts +0 -3
  67. package/dist/react/toolbar/index.js +0 -1
  68. package/dist/react/tracking/index.d.ts +0 -3
  69. package/dist/themes/hot-sl.css +0 -180
Binary file
@@ -0,0 +1 @@
1
+ import{b as e}from"./chunk.HIBNS72H.js";var r=e;export{r as a};
@@ -0,0 +1 @@
1
+ import{b as e}from"./chunk.LPP5A7DY.js";var t=e;export{t as a};
@@ -0,0 +1 @@
1
+ import{a as e,b as r}from"./chunk.VQWI2U6Y.js";import t from"react";var a=t.forwardRef((d,o)=>t.createElement("hot-header",r(e({},d),{ref:o})));a.displayName="Header";var H=a;export{H as a};
@@ -0,0 +1,239 @@
1
+ import{c as a,d as n,e as s,f as i}from"./chunk.VQWI2U6Y.js";import"https://early.webawesome.com/webawesome@3.0.0-alpha.13/dist/components/callout/callout.js";import"https://early.webawesome.com/webawesome@3.0.0-alpha.13/dist/components/button/button.js";import"https://early.webawesome.com/webawesome@3.0.0-alpha.13/dist/components/icon/icon.js";import{LitElement as x,html as c,css as v}from"lit";import{property as d,state as r}from"lit/decorators.js";var b,u,w,m,f,t=class extends x{constructor(){super(...arguments);this.name="hot-tracking";s(this,b,"");s(this,u,"");s(this,w,"https://matomo.hotosm.org");s(this,m,!0);s(this,f,"We use cookies and similar technologies to help personalize content, tailor and measure ads, and provide a better experience. By clicking 'Accept', you consent to our use of cookies and tracking technologies.");this.consentGiven=!1;this.consentShown=!1;this.errorMessage="";this.showError=!1;this.successMessage="";this.showSuccess=!1;this.infoMessage="";this.showInfo=!1}get siteId(){return n(this,b)}set siteId(e){i(this,b,e)}get domain(){return n(this,u)}set domain(e){i(this,u,e)}get matomoURL(){return n(this,w)}set matomoURL(e){i(this,w,e)}get showConsent(){return n(this,m)}set showConsent(e){i(this,m,e)}get consentMessage(){return n(this,f)}set consentMessage(e){i(this,f,e)}agree(){this.consentGiven=!0,this.consentShown=!1;let e=window._paq=window._paq||[];e.length!==0&&(e.push(["rememberConsentGiven"]),e.push(["trackPageView"]),this.showSuccessCallout("Tracking consent granted. Thank you!"))}disagree(){this.consentGiven=!1,this.consentShown=!1;let e=window._paq=window._paq||[];e.length!==0&&(e.push(["forgetConsentGiven"]),this.showInfoCallout("Tracking disabled. You can change this preference later."))}showConsentBanner(){this.showConsent&&!this.consentGiven&&!this.consentShown&&(this.consentShown=!0)}showErrorCallout(e){this.errorMessage=e,this.showError=!0,setTimeout(()=>{this.showError=!1},1e4)}showSuccessCallout(e){this.successMessage=e,this.showSuccess=!0,setTimeout(()=>{this.showSuccess=!1},5e3)}showInfoCallout(e){this.infoMessage=e,this.showInfo=!0,setTimeout(()=>{this.showInfo=!1},5e3)}render(){return c`
2
+ ${this.showError?c`
3
+ <div class="error-banner">
4
+ <wa-callout style="padding: 1rem;" variant="danger" appearance="outlined filled" size="large">
5
+ <wa-icon slot="icon" family="classic" variant="solid" name="circle-exclamation"></wa-icon>
6
+ <div style="padding: 0 1rem;">
7
+ <strong>Tracking Configuration Error</strong><br />
8
+ ${this.errorMessage}
9
+ </div>
10
+ </wa-callout>
11
+ </div>
12
+ `:""}
13
+
14
+ ${this.showSuccess?c`
15
+ <div class="toast-banner">
16
+ <wa-callout style="padding: 1rem;" variant="success" appearance="outlined accent" size="medium">
17
+ <wa-icon slot="icon" family="classic" variant="solid" name="circle-check"></wa-icon>
18
+ <div style="padding: 0 1rem;">
19
+ <strong>Success!</strong><br />
20
+ ${this.successMessage}
21
+ </div>
22
+ </wa-callout>
23
+ </div>
24
+ `:""}
25
+
26
+ ${this.showInfo?c`
27
+ <div class="toast-banner">
28
+ <wa-callout style="padding: 1rem;" variant="brand" appearance="outlined filled" size="medium">
29
+ <wa-icon slot="icon" family="classic" variant="solid" name="circle-info"></wa-icon>
30
+ <div style="padding: 0 1rem;">
31
+ <strong>Information</strong><br />
32
+ ${this.infoMessage}
33
+ </div>
34
+ </wa-callout>
35
+ </div>
36
+ `:""}
37
+
38
+ ${this.consentShown?c`
39
+ <div class="consent-banner">
40
+ <wa-callout variant="brand" appearance="outlined filled" size="large">
41
+ <wa-icon slot="icon" family="classic" variant="solid" name="shield-check"></wa-icon>
42
+ <div style="padding: 1rem;">
43
+ <strong>Privacy & Tracking</strong><br />
44
+ ${this.consentMessage}
45
+ <div class="consent-actions">
46
+ <wa-button size="small" variant="neutral" @click=${e=>{e.preventDefault(),e.stopPropagation(),this.disagree()}}>
47
+ Decline
48
+ </wa-button>
49
+ <wa-button size="small" variant="brand" @click=${e=>{e.preventDefault(),e.stopPropagation(),this.agree()}}>
50
+ Accept
51
+ </wa-button>
52
+ </div>
53
+ </div>
54
+ </wa-callout>
55
+ </div>
56
+ `:""}
57
+ `}connectedCallback(){if(super.connectedCallback(),window.location.hostname!==this.domain){this.showErrorCallout(`Matomo tracking is not configured for this domain. Current domain: ${window.location.hostname}, Expected: ${this.domain}`);return}let e=this.siteId;if(e.length===0||this.domain.length===0){this.showErrorCallout("Matomo tracking is not properly configured. Please provide both site-id and domain attributes.");return}console.log(`Setting Matomo tracking for site=${e} domain=${this.domain}`);let o=window._paq=window._paq||[];o.push(["requireConsent"]),o.push(["setDomains",[this.domain]]),o.push(["enableLinkTracking"]),o.push(["trackVisibleContentImpressions"]),function(h){o.push(["setTrackerUrl",`${h}/matomo.php`]),o.push(["setSiteId",e]);let g=document,p=g.createElement("script"),l=g.getElementsByTagName("script")[0];(l==null?void 0:l.parentNode)!=null?(p.async=!0,p.src=`${h}/matomo.js`,l.parentNode.insertBefore(p,l)):console.warn("Script insertion failed. Parent node is null.")}(this.matomoURL),setTimeout(()=>{this.showConsentBanner()},1e3)}};b=new WeakMap,u=new WeakMap,w=new WeakMap,m=new WeakMap,f=new WeakMap,t.styles=v`
58
+ :host {
59
+ display: block;
60
+ font-family: var(--wa-font-sans);
61
+ }
62
+
63
+ .consent-banner {
64
+ position: fixed;
65
+ bottom: 0;
66
+ left: 0;
67
+ right: 0;
68
+ z-index: 1000;
69
+ padding: 1rem;
70
+ background: rgba(255, 255, 255, 0.95);
71
+ backdrop-filter: blur(10px);
72
+ border-top: 1px solid rgba(0, 0, 0, 0.1);
73
+ }
74
+
75
+ .error-banner {
76
+ position: fixed;
77
+ top: 1rem;
78
+ left: 1rem;
79
+ right: 1rem;
80
+ z-index: 1001;
81
+ max-width: 600px;
82
+ margin: 0 auto;
83
+ }
84
+
85
+ .toast-banner {
86
+ position: fixed;
87
+ top: 1rem;
88
+ right: 1rem;
89
+ z-index: 1002;
90
+ max-width: 450px;
91
+ animation: slideIn 0.3s ease-out;
92
+ }
93
+
94
+ @keyframes slideIn {
95
+ from {
96
+ transform: translateX(100%);
97
+ opacity: 0;
98
+ }
99
+ to {
100
+ transform: translateX(0);
101
+ opacity: 1;
102
+ }
103
+ }
104
+
105
+ .consent-actions {
106
+ display: flex;
107
+ gap: 0.75rem;
108
+ margin-top: 1rem;
109
+ justify-content: flex-end;
110
+ }
111
+
112
+ wa-callout {
113
+ --wa-callout-spacing: 1.5rem;
114
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
115
+ border-radius: 12px;
116
+ border: 1px solid rgba(0, 0, 0, 0.08);
117
+ backdrop-filter: blur(8px);
118
+ }
119
+
120
+ wa-button {
121
+ min-width: 80px;
122
+ font-weight: 500;
123
+ transition: all 0.2s ease;
124
+ }
125
+
126
+ wa-button:hover {
127
+ transform: translateY(-1px);
128
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
129
+ }
130
+
131
+ .error-banner wa-callout {
132
+ border-radius: 16px;
133
+ box-shadow: 0 16px 48px rgba(243, 77, 71, 0.2);
134
+ border: 1px solid rgba(243, 77, 71, 0.2);
135
+ background: linear-gradient(135deg, rgba(254, 236, 239, 0.95), rgba(253, 208, 214, 0.95));
136
+ }
137
+
138
+ .error-banner wa-callout::before {
139
+ content: '';
140
+ position: absolute;
141
+ top: 0;
142
+ left: 0;
143
+ right: 0;
144
+ height: 4px;
145
+ background: linear-gradient(90deg, var(--hot-color-red-500), var(--hot-color-red-600), var(--hot-color-red-700));
146
+ border-radius: 16px 16px 0 0;
147
+ }
148
+
149
+ .toast-banner wa-callout {
150
+ border-radius: 14px;
151
+ box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
152
+ border: 1px solid rgba(0, 0, 0, 0.06);
153
+ background: rgba(255, 255, 255, 0.98);
154
+ backdrop-filter: blur(12px);
155
+ }
156
+
157
+ .toast-banner wa-callout[variant="success"] {
158
+ box-shadow: 0 12px 40px rgba(34, 197, 94, 0.15);
159
+ border: 1px solid rgba(34, 197, 94, 0.2);
160
+ background: linear-gradient(135deg, rgba(240, 253, 244, 0.95), rgba(220, 252, 231, 0.95));
161
+ }
162
+
163
+ .toast-banner wa-callout[variant="success"]::before {
164
+ content: '';
165
+ position: absolute;
166
+ top: 0;
167
+ left: 0;
168
+ right: 0;
169
+ height: 3px;
170
+ background: linear-gradient(90deg, #22c55e, #16a34a);
171
+ border-radius: 14px 14px 0 0;
172
+ }
173
+
174
+ .toast-banner wa-callout[variant="brand"] {
175
+ box-shadow: 0 12px 40px rgba(243, 77, 71, 0.15);
176
+ border: 1px solid rgba(243, 77, 71, 0.2);
177
+ background: linear-gradient(135deg, rgba(254, 236, 239, 0.95), rgba(253, 208, 214, 0.95));
178
+ }
179
+
180
+ .toast-banner wa-callout[variant="brand"]::before {
181
+ content: '';
182
+ position: absolute;
183
+ top: 0;
184
+ left: 0;
185
+ right: 0;
186
+ height: 3px;
187
+ background: linear-gradient(90deg, var(--hot-color-red-500), var(--hot-color-red-600));
188
+ border-radius: 14px 14px 0 0;
189
+ }
190
+
191
+ .consent-banner wa-callout {
192
+ border-radius: 16px;
193
+ box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
194
+ border: 1px solid rgba(0, 0, 0, 0.08);
195
+ background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 251, 0.98));
196
+ backdrop-filter: blur(16px);
197
+ }
198
+
199
+ .consent-banner wa-callout::before {
200
+ content: '';
201
+ position: absolute;
202
+ top: 0;
203
+ left: 0;
204
+ right: 0;
205
+ height: 4px;
206
+ background: linear-gradient(90deg, var(--hot-color-red-500), var(--hot-color-red-600), var(--hot-color-red-700));
207
+ border-radius: 16px 16px 0 0;
208
+ }
209
+
210
+ wa-icon {
211
+ filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
212
+ }
213
+
214
+ @media (max-width: 768px) {
215
+ .consent-banner {
216
+ padding: 0.75rem;
217
+ }
218
+
219
+ .error-banner {
220
+ left: 0.5rem;
221
+ right: 0.5rem;
222
+ max-width: none;
223
+ }
224
+
225
+ .toast-banner {
226
+ right: 0.5rem;
227
+ max-width: calc(100vw - 1rem);
228
+ }
229
+
230
+ .consent-actions {
231
+ flex-direction: column;
232
+ gap: 0.5rem;
233
+ }
234
+
235
+ wa-button {
236
+ width: 100%;
237
+ }
238
+ }
239
+ `,a([d({type:String,attribute:"site-id"})],t.prototype,"siteId",1),a([d({type:String})],t.prototype,"domain",1),a([d({type:String})],t.prototype,"matomoURL",1),a([d({type:Boolean,attribute:"show-consent"})],t.prototype,"showConsent",1),a([d({type:String,attribute:"consent-message"})],t.prototype,"consentMessage",1),a([r()],t.prototype,"consentGiven",2),a([r()],t.prototype,"consentShown",2),a([r()],t.prototype,"errorMessage",2),a([r()],t.prototype,"showError",2),a([r()],t.prototype,"successMessage",2),a([r()],t.prototype,"showSuccess",2),a([r()],t.prototype,"infoMessage",2),a([r()],t.prototype,"showInfo",2);var q=t;customElements.define("hot-tracking",t);export{t as a,q as b};
@@ -1,4 +1,4 @@
1
- import{css as e}from"lit";import{cva as a}from"class-variance-authority";var o=a(`
1
+ import{css as e}from"lit";import{cva as o}from"class-variance-authority";var a=o(`
2
2
  header
3
3
  `,{variants:{size:{small:"header--size-small",medium:"header--size-medium",large:"header--size-large"},borderBottom:{true:"border-bottom"}}}),i=e`
4
4
  .header {
@@ -69,6 +69,14 @@ import{css as e}from"lit";import{cva as a}from"class-variance-authority";var o=a
69
69
  }
70
70
 
71
71
  .header--right-section {
72
+ display: flex;
73
+ align-items: center;
74
+ gap: var(--hot-spacing-small);
75
+ }
76
+
77
+ .header--login-button {
78
+ --wa-color-brand-600: var(--hot-color-red-500);
79
+ --wa-color-brand-700: var(--hot-color-red-600);
72
80
  }
73
81
 
74
82
  .header--logo-img {
@@ -82,5 +90,82 @@ import{css as e}from"lit";import{cva as a}from"class-variance-authority";var o=a
82
90
  border-color: var(--hot-color-neutral-1000);
83
91
  }
84
92
 
85
- }
86
- `;export{o as a,i as b};
93
+ /* Login Modal Styles */
94
+ .login-modal {
95
+ --width: 35rem;
96
+ --border-radius: 8px;
97
+ --background-color: white;
98
+ }
99
+
100
+ .login-modal::part(header) {
101
+ padding: 1.5rem 1.5rem 0 1.5rem;
102
+ }
103
+
104
+ .login-modal::part(body) {
105
+ padding: 0 1.5rem 1.5rem 1.5rem;
106
+ }
107
+
108
+ .login-content {
109
+ display: flex;
110
+ flex-direction: column;
111
+ align-items: flex-start;
112
+ width: 100%;
113
+ }
114
+
115
+ .login-title {
116
+ font-size: 1.5rem;
117
+ font-weight: 700;
118
+ margin-bottom: 1rem;
119
+ color: #1f2937;
120
+ }
121
+
122
+ .login-options {
123
+ width: 100%;
124
+ display: flex;
125
+ flex-direction: column;
126
+ gap: 1rem;
127
+ }
128
+
129
+ .login-option {
130
+ background-color: #f5f5f5;
131
+ border: 1px solid #d1d5db;
132
+ color: #374151;
133
+ padding: 0.75rem 1rem;
134
+ border-radius: 6px;
135
+ cursor: pointer;
136
+ font-size: 0.875rem;
137
+ display: flex;
138
+ align-items: center;
139
+ gap: 0.75rem;
140
+ transition: all 0.3s ease;
141
+ min-height: 3rem;
142
+ }
143
+
144
+ .login-option:hover {
145
+ border-color: #d73f3f;
146
+ color: #d73f3f;
147
+ }
148
+
149
+ .login-option-icon {
150
+ width: 2.5rem;
151
+ height: 2.5rem;
152
+ max-width: 2.5rem;
153
+ min-width: 2.5rem;
154
+ display: flex;
155
+ align-items: center;
156
+ justify-content: center;
157
+ flex-shrink: 0;
158
+ }
159
+
160
+ .login-option-icon img {
161
+ width: 100%;
162
+ height: 100%;
163
+ object-fit: contain;
164
+ }
165
+
166
+ .login-option-text {
167
+ font-size: 1.125rem;
168
+ font-weight: 400;
169
+ line-height: 1.5;
170
+ }
171
+ `;export{a,i as b};
@@ -0,0 +1,218 @@
1
+ import{css as o}from"lit";var t=o`
2
+ :host {
3
+ display: block;
4
+ }
5
+
6
+ .consent-overlay {
7
+ position: fixed;
8
+ top: 0;
9
+ left: 0;
10
+ right: 0;
11
+ bottom: 0;
12
+ background: rgba(0, 0, 0, 0.5);
13
+ backdrop-filter: blur(4px);
14
+ z-index: 9999;
15
+ display: flex;
16
+ align-items: center;
17
+ justify-content: center;
18
+ padding: 1rem;
19
+ animation: fadeIn 0.3s ease-out;
20
+ }
21
+
22
+ @keyframes fadeIn {
23
+ from {
24
+ opacity: 0;
25
+ }
26
+ to {
27
+ opacity: 1;
28
+ }
29
+ }
30
+
31
+ .consent-container {
32
+ width: 100%;
33
+ max-width: 600px;
34
+ animation: slideUp 0.4s ease-out;
35
+ }
36
+
37
+ @keyframes slideUp {
38
+ from {
39
+ transform: translateY(20px);
40
+ opacity: 0;
41
+ }
42
+ to {
43
+ transform: translateY(0);
44
+ opacity: 1;
45
+ }
46
+ }
47
+
48
+ .consent-callout {
49
+ --wa-callout-spacing: 2rem;
50
+ border-radius: 16px;
51
+ box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
52
+ border: 1px solid rgba(243, 77, 71, 0.2);
53
+ background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 251, 0.98));
54
+ backdrop-filter: blur(16px);
55
+ position: relative;
56
+ overflow: hidden;
57
+ }
58
+
59
+ .consent-callout::before {
60
+ content: '';
61
+ position: absolute;
62
+ top: 0;
63
+ left: 0;
64
+ right: 0;
65
+ height: 4px;
66
+ background: linear-gradient(90deg, var(--hot-color-red-500), var(--hot-color-red-600), var(--hot-color-red-700));
67
+ border-radius: 16px 16px 0 0;
68
+ }
69
+
70
+ .consent-icon {
71
+ filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
72
+ color: var(--hot-color-red-500);
73
+ }
74
+
75
+ .consent-content {
76
+ padding: 1.5rem;
77
+ }
78
+
79
+ .consent-header {
80
+ font-weight: 600;
81
+ font-size: 1.5rem;
82
+ line-height: 1.3;
83
+ margin: 0 0 1rem 0;
84
+ color: #1f2937;
85
+ text-align: center;
86
+ }
87
+
88
+ .consent-message {
89
+ margin-bottom: 2rem;
90
+ text-align: center;
91
+ }
92
+
93
+ .consent-message p {
94
+ margin: 0 0 1rem 0;
95
+ font-size: 1rem;
96
+ line-height: 1.6;
97
+ color: #4b5563;
98
+ }
99
+
100
+ .consent-message p:last-child {
101
+ margin-bottom: 0;
102
+ }
103
+
104
+ .consent-actions {
105
+ display: flex;
106
+ gap: 1rem;
107
+ justify-content: center;
108
+ flex-wrap: wrap;
109
+ }
110
+
111
+ .consent-button {
112
+ min-width: 120px;
113
+ font-weight: 500;
114
+ transition: all 0.2s ease;
115
+ border-radius: 8px;
116
+ }
117
+
118
+ .consent-button:hover {
119
+ transform: translateY(-2px);
120
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
121
+ }
122
+
123
+ .decline-button {
124
+ background: #f3f4f6;
125
+ border: 1px solid #d1d5db;
126
+ color: #374151;
127
+ }
128
+
129
+ .decline-button:hover {
130
+ background: #e5e7eb;
131
+ border-color: #9ca3af;
132
+ }
133
+
134
+ .accept-button {
135
+ background: linear-gradient(135deg, var(--hot-color-red-500), var(--hot-color-red-600));
136
+ border: 1px solid var(--hot-color-red-600);
137
+ color: white;
138
+ }
139
+
140
+ .accept-button:hover {
141
+ background: linear-gradient(135deg, var(--hot-color-red-600), var(--hot-color-red-700));
142
+ border-color: var(--hot-color-red-700);
143
+ }
144
+
145
+ /* Responsive design */
146
+ @media (max-width: 768px) {
147
+ .consent-overlay {
148
+ padding: 0.5rem;
149
+ }
150
+
151
+ .consent-container {
152
+ max-width: 100%;
153
+ }
154
+
155
+ .consent-content {
156
+ padding: 1rem;
157
+ }
158
+
159
+ .consent-header {
160
+ font-size: 1.25rem;
161
+ }
162
+
163
+ .consent-actions {
164
+ flex-direction: column;
165
+ gap: 0.75rem;
166
+ }
167
+
168
+ .consent-button {
169
+ width: 100%;
170
+ min-width: auto;
171
+ }
172
+ }
173
+
174
+ @media (max-width: 480px) {
175
+ .consent-overlay {
176
+ padding: 0.25rem;
177
+ }
178
+
179
+ .consent-content {
180
+ padding: 0.75rem;
181
+ }
182
+
183
+ .consent-header {
184
+ font-size: 1.125rem;
185
+ }
186
+
187
+ .consent-message p {
188
+ font-size: 0.875rem;
189
+ }
190
+ }
191
+
192
+ /* Focus styles for accessibility */
193
+ .consent-button:focus {
194
+ outline: 2px solid var(--hot-color-red-500);
195
+ outline-offset: 2px;
196
+ }
197
+
198
+ /* High contrast mode support */
199
+ @media (prefers-contrast: high) {
200
+ .consent-callout {
201
+ border: 2px solid #000;
202
+ }
203
+
204
+ .consent-button {
205
+ border-width: 2px;
206
+ }
207
+ }
208
+
209
+ /* Reduced motion support */
210
+ @media (prefers-reduced-motion: reduce) {
211
+ .consent-overlay,
212
+ .consent-container,
213
+ .consent-button {
214
+ animation: none;
215
+ transition: none;
216
+ }
217
+ }
218
+ `;export{t as a};