@merchi/product-form 1.19.12

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 (188) hide show
  1. package/README.md +272 -0
  2. package/lib/actions/jobs.d.ts +3 -0
  3. package/lib/actions/jobs.js +80 -0
  4. package/lib/actions/leads.d.ts +7 -0
  5. package/lib/actions/leads.js +67 -0
  6. package/lib/components/AlertVariationSellerEditable.d.ts +6 -0
  7. package/lib/components/AlertVariationSellerEditable.js +46 -0
  8. package/lib/components/Collapse.d.ts +3 -0
  9. package/lib/components/Collapse.js +34 -0
  10. package/lib/components/DateCountdown.d.ts +44 -0
  11. package/lib/components/DateCountdown.js +188 -0
  12. package/lib/components/DropzoneInput.d.ts +10 -0
  13. package/lib/components/DropzoneInput.js +169 -0
  14. package/lib/components/DynamicVariationInput.d.ts +9 -0
  15. package/lib/components/DynamicVariationInput.js +71 -0
  16. package/lib/components/FormLead.d.ts +10 -0
  17. package/lib/components/FormLead.js +215 -0
  18. package/lib/components/GroupInventory.d.ts +6 -0
  19. package/lib/components/GroupInventory.js +16 -0
  20. package/lib/components/InputGroupQuantity.d.ts +8 -0
  21. package/lib/components/InputGroupQuantity.js +117 -0
  22. package/lib/components/InputHiddenStatic.d.ts +8 -0
  23. package/lib/components/InputHiddenStatic.js +24 -0
  24. package/lib/components/InputProductQuantity.d.ts +7 -0
  25. package/lib/components/InputProductQuantity.js +102 -0
  26. package/lib/components/InventoryStatus.d.ts +7 -0
  27. package/lib/components/InventoryStatus.js +67 -0
  28. package/lib/components/MerchiProductForm.d.ts +62 -0
  29. package/lib/components/MerchiProductForm.js +51 -0
  30. package/lib/components/PriceMatrix.d.ts +27 -0
  31. package/lib/components/PriceMatrix.js +106 -0
  32. package/lib/components/ProductButtonsSubmit.d.ts +3 -0
  33. package/lib/components/ProductButtonsSubmit.js +52 -0
  34. package/lib/components/ProductFeatureDeadline.d.ts +3 -0
  35. package/lib/components/ProductFeatureDeadline.js +25 -0
  36. package/lib/components/ProductGroupBuyStatus.d.ts +3 -0
  37. package/lib/components/ProductGroupBuyStatus.js +47 -0
  38. package/lib/components/ProductPriceMatrix.d.ts +3 -0
  39. package/lib/components/ProductPriceMatrix.js +51 -0
  40. package/lib/components/ProductTitle.d.ts +3 -0
  41. package/lib/components/ProductTitle.js +36 -0
  42. package/lib/components/ProductTotalCost.d.ts +3 -0
  43. package/lib/components/ProductTotalCost.js +74 -0
  44. package/lib/components/ProductUnitPrice.d.ts +7 -0
  45. package/lib/components/ProductUnitPrice.js +51 -0
  46. package/lib/components/TooltipElement.d.ts +9 -0
  47. package/lib/components/TooltipElement.js +35 -0
  48. package/lib/components/VariationAreaInput.d.ts +8 -0
  49. package/lib/components/VariationAreaInput.js +219 -0
  50. package/lib/components/VariationCheckBoxOrRadioOption.d.ts +10 -0
  51. package/lib/components/VariationCheckBoxOrRadioOption.js +82 -0
  52. package/lib/components/VariationCheckboxRadio.d.ts +17 -0
  53. package/lib/components/VariationCheckboxRadio.js +57 -0
  54. package/lib/components/VariationColourExtractInput.d.ts +8 -0
  55. package/lib/components/VariationColourExtractInput.js +395 -0
  56. package/lib/components/VariationError.d.ts +7 -0
  57. package/lib/components/VariationError.js +52 -0
  58. package/lib/components/VariationFieldInputInstructions.d.ts +10 -0
  59. package/lib/components/VariationFieldInputInstructions.js +50 -0
  60. package/lib/components/VariationFieldInstructions.d.ts +3 -0
  61. package/lib/components/VariationFieldInstructions.js +22 -0
  62. package/lib/components/VariationFieldNameAndCostInputs.d.ts +7 -0
  63. package/lib/components/VariationFieldNameAndCostInputs.js +34 -0
  64. package/lib/components/VariationFieldOptionDefaultInputs.d.ts +7 -0
  65. package/lib/components/VariationFieldOptionDefaultInputs.js +48 -0
  66. package/lib/components/VariationFieldStaticValues.d.ts +8 -0
  67. package/lib/components/VariationFieldStaticValues.js +57 -0
  68. package/lib/components/VariationFileInput.d.ts +8 -0
  69. package/lib/components/VariationFileInput.js +229 -0
  70. package/lib/components/VariationInput.d.ts +11 -0
  71. package/lib/components/VariationInput.js +97 -0
  72. package/lib/components/VariationLabel.d.ts +11 -0
  73. package/lib/components/VariationLabel.js +85 -0
  74. package/lib/components/VariationOptionColour.d.ts +8 -0
  75. package/lib/components/VariationOptionColour.js +50 -0
  76. package/lib/components/VariationOptionImage.d.ts +8 -0
  77. package/lib/components/VariationOptionImage.js +52 -0
  78. package/lib/components/VariationSelect.d.ts +8 -0
  79. package/lib/components/VariationSelect.js +66 -0
  80. package/lib/components/VariationSelectElements.d.ts +16 -0
  81. package/lib/components/VariationSelectElements.js +141 -0
  82. package/lib/components/VariationTurnaroundTime.d.ts +9 -0
  83. package/lib/components/VariationTurnaroundTime.js +156 -0
  84. package/lib/components/Variations.d.ts +9 -0
  85. package/lib/components/Variations.js +109 -0
  86. package/lib/components/VariationsGroups.d.ts +8 -0
  87. package/lib/components/VariationsGroups.js +79 -0
  88. package/lib/components/buttons/ButtonAddGroup.d.ts +7 -0
  89. package/lib/components/buttons/ButtonAddGroup.js +38 -0
  90. package/lib/components/buttons/ButtonProductSubmit.d.ts +7 -0
  91. package/lib/components/buttons/ButtonProductSubmit.js +33 -0
  92. package/lib/components/buttons/ButtonRemoveGroup.d.ts +8 -0
  93. package/lib/components/buttons/ButtonRemoveGroup.js +25 -0
  94. package/lib/components/buttons/index.d.ts +4 -0
  95. package/lib/components/buttons/index.js +5 -0
  96. package/lib/components/cost.d.ts +11 -0
  97. package/lib/components/cost.js +44 -0
  98. package/lib/components/currency.d.ts +16 -0
  99. package/lib/components/currency.js +184 -0
  100. package/lib/components/drafts/DraftApprovePanel.d.ts +6 -0
  101. package/lib/components/drafts/DraftApprovePanel.js +315 -0
  102. package/lib/components/drafts/DraftCanvas.d.ts +13 -0
  103. package/lib/components/drafts/DraftCanvas.js +496 -0
  104. package/lib/components/drafts/DraftDesignerSheet.d.ts +9 -0
  105. package/lib/components/drafts/DraftDesignerSheet.js +685 -0
  106. package/lib/components/drafts/ProductDraftsHost.d.ts +3 -0
  107. package/lib/components/drafts/ProductDraftsHost.js +207 -0
  108. package/lib/components/drafts/useHtmlImage.d.ts +1 -0
  109. package/lib/components/drafts/useHtmlImage.js +45 -0
  110. package/lib/components/icons/IconChecked.d.ts +3 -0
  111. package/lib/components/icons/IconChecked.js +10 -0
  112. package/lib/components/icons/IconCheckedOrNoStock.d.ts +7 -0
  113. package/lib/components/icons/IconCheckedOrNoStock.js +13 -0
  114. package/lib/components/icons/IconCountryFlag.d.ts +8 -0
  115. package/lib/components/icons/IconCountryFlag.js +27 -0
  116. package/lib/components/icons/IconFile.d.ts +7 -0
  117. package/lib/components/icons/IconFile.js +41 -0
  118. package/lib/components/icons/IconNoStock.d.ts +3 -0
  119. package/lib/components/icons/IconNoStock.js +12 -0
  120. package/lib/components/icons/index.d.ts +5 -0
  121. package/lib/components/icons/index.js +6 -0
  122. package/lib/components/quoteAfterFieldChange.d.ts +7 -0
  123. package/lib/components/quoteAfterFieldChange.js +11 -0
  124. package/lib/components/quoteAfterFieldChange.test.js +58 -0
  125. package/lib/components/utils.d.ts +26 -0
  126. package/lib/components/utils.js +500 -0
  127. package/lib/context/MerchiProductFormProvider.d.ts +177 -0
  128. package/lib/context/MerchiProductFormProvider.js +1020 -0
  129. package/lib/images/product-not-found.png +0 -0
  130. package/lib/index.d.ts +42 -0
  131. package/lib/index.js +41 -0
  132. package/lib/styles/globals.css +1590 -0
  133. package/lib/styles/globals.css.map +1 -0
  134. package/lib/styles/globals.scss +1698 -0
  135. package/lib/utils/area.d.ts +77 -0
  136. package/lib/utils/area.js +298 -0
  137. package/lib/utils/cleanFormVariationJson.d.ts +5 -0
  138. package/lib/utils/cleanFormVariationJson.js +39 -0
  139. package/lib/utils/cleanFormVariationJson.test.js +54 -0
  140. package/lib/utils/countries.d.ts +7 -0
  141. package/lib/utils/countries.js +290 -0
  142. package/lib/utils/currency.d.ts +2 -0
  143. package/lib/utils/currency.js +188 -0
  144. package/lib/utils/draftExport.d.ts +21 -0
  145. package/lib/utils/draftExport.js +481 -0
  146. package/lib/utils/draftExport.test.js +78 -0
  147. package/lib/utils/draftFonts.d.ts +55 -0
  148. package/lib/utils/draftFonts.js +68 -0
  149. package/lib/utils/draftStorage.d.ts +25 -0
  150. package/lib/utils/draftStorage.js +148 -0
  151. package/lib/utils/draftStorage.test.js +125 -0
  152. package/lib/utils/draftTemplates.d.ts +87 -0
  153. package/lib/utils/draftTemplates.js +579 -0
  154. package/lib/utils/draftTemplates.test.js +476 -0
  155. package/lib/utils/formErrors.d.ts +2 -0
  156. package/lib/utils/formErrors.js +29 -0
  157. package/lib/utils/index.d.ts +3 -0
  158. package/lib/utils/index.js +4 -0
  159. package/lib/utils/priceMatrix.d.ts +57 -0
  160. package/lib/utils/priceMatrix.js +82 -0
  161. package/lib/utils/priceMatrix.test.js +200 -0
  162. package/lib/utils/products.d.ts +40 -0
  163. package/lib/utils/products.js +68 -0
  164. package/lib/utils/quantity.d.ts +7 -0
  165. package/lib/utils/quantity.js +19 -0
  166. package/lib/utils/quantity.test.js +42 -0
  167. package/lib/utils/reconcileVariations.d.ts +25 -0
  168. package/lib/utils/reconcileVariations.js +246 -0
  169. package/lib/utils/reconcileVariations.test.js +239 -0
  170. package/lib/utils/selectedVariationCosts.d.ts +6 -0
  171. package/lib/utils/selectedVariationCosts.js +59 -0
  172. package/lib/utils/selectedVariationCosts.test.js +66 -0
  173. package/lib/utils/selections.d.ts +23 -0
  174. package/lib/utils/selections.js +76 -0
  175. package/lib/utils/selections.test.js +159 -0
  176. package/lib/utils/singleOptionVariation.d.ts +2 -0
  177. package/lib/utils/singleOptionVariation.js +22 -0
  178. package/lib/utils/singleOptionVariation.test.js +59 -0
  179. package/lib/utils/supportedNumbers.d.ts +1 -0
  180. package/lib/utils/supportedNumbers.js +27 -0
  181. package/lib/utils/types.d.ts +114 -0
  182. package/lib/utils/types.js +50 -0
  183. package/lib/utils/url.d.ts +3 -0
  184. package/lib/utils/url.js +65 -0
  185. package/lib/utils/variationFields.d.ts +5 -0
  186. package/lib/utils/variationFields.js +116 -0
  187. package/lib/utils/variationFields.test.js +108 -0
  188. package/package.json +93 -0
@@ -0,0 +1,1590 @@
1
+ @charset "UTF-8";
2
+ /* **********
3
+ Embed form
4
+ ********** */
5
+ .merchi-embed-form {
6
+ /* buttons */
7
+ }
8
+ .merchi-embed-form_button-submit {
9
+ margin: 4px !important;
10
+ flex: 1 1 0;
11
+ min-width: 0;
12
+ white-space: nowrap;
13
+ font-size: 0.8125rem;
14
+ font-weight: 600;
15
+ line-height: 1.25;
16
+ padding: 0.4rem 0.75rem;
17
+ min-height: 2.25rem;
18
+ }
19
+ .merchi-embed-form {
20
+ /* variant container */
21
+ }
22
+ .merchi-embed-form_variantion-container {
23
+ gap: 1.25rem;
24
+ display: flex;
25
+ flex-direction: column;
26
+ padding: 0;
27
+ }
28
+ .merchi-embed-form fieldset.merchi-embed-form_product-group-container,
29
+ .merchi-embed-form fieldset.merchi-embed-form_product-group-variation-container, .merchi-embed-form_variantion-container > fieldset {
30
+ border: none;
31
+ margin: 0;
32
+ padding: 0;
33
+ min-width: 0;
34
+ }
35
+ .merchi-embed-form {
36
+ /* information */
37
+ }
38
+ .merchi-embed-form_information-container {
39
+ margin-top: 1rem;
40
+ }
41
+ @media (min-width: 992px) {
42
+ .merchi-embed-form_information-container {
43
+ padding: 0;
44
+ }
45
+ }
46
+ .merchi-embed-form_information-container ul {
47
+ gap: 1rem;
48
+ }
49
+ .merchi-embed-form_information-container .nav-item {
50
+ padding: 0 !important;
51
+ }
52
+ .merchi-embed-form_information-container-list-group-item {
53
+ padding: 0.5rem !important;
54
+ list-style-type: none;
55
+ }
56
+ .merchi-embed-form {
57
+ /* images */
58
+ }
59
+ .merchi-embed-form_img-product-pic img {
60
+ max-width: 100%;
61
+ border-radius: 0.5rem;
62
+ }
63
+ .merchi-embed-form_img-preview-container {
64
+ flex-direction: column;
65
+ }
66
+ .merchi-embed-form_img-preview-container-main-image {
67
+ align-items: center;
68
+ display: flex;
69
+ justify-content: center;
70
+ width: 100%;
71
+ }
72
+ .merchi-embed-form_img-thumbnails {
73
+ gap: 1rem;
74
+ flex-wrap: wrap;
75
+ justify-content: center;
76
+ padding: 0.5rem;
77
+ }
78
+ .merchi-embed-form {
79
+ /* react zoom package */
80
+ }
81
+ .merchi-embed-form_zoom-img button {
82
+ font-size: 1.5rem;
83
+ display: flex;
84
+ }
85
+ .merchi-embed-form {
86
+ /* cost summary */
87
+ }
88
+ .merchi-embed-form_summary-product-cost {
89
+ display: flex;
90
+ flex-direction: row;
91
+ justify-content: space-between;
92
+ width: 100%;
93
+ margin: 1rem 0;
94
+ flex-direction: wrap;
95
+ }
96
+ .merchi-embed-form_summary-product-cost-container {
97
+ display: flex;
98
+ flex-direction: column;
99
+ font-size: 1.2rem;
100
+ margin-top: 1.5rem;
101
+ }
102
+ .merchi-embed-form_summary-button-submit-container {
103
+ display: flex;
104
+ }
105
+ .merchi-embed-form {
106
+ /* variation dropzone */
107
+ }
108
+ .merchi-embed-form_dropzone {
109
+ padding: 0;
110
+ border: none;
111
+ color: inherit;
112
+ padding: 2rem 1rem;
113
+ background-color: #fff;
114
+ border: 1px dashed #dee2e6;
115
+ border-radius: 0.375rem;
116
+ text-align: center;
117
+ color: #8898aa;
118
+ order: -1;
119
+ cursor: pointer;
120
+ z-index: 999;
121
+ transition: all 0.2s ease-in-out;
122
+ }
123
+ .merchi-embed-form_dropzone:hover {
124
+ box-shadow: 0 0.5em 0.75em rgba(0, 0, 0, 0.0784313725);
125
+ scale: 1.002;
126
+ }
127
+ .merchi-embed-form_dropzone-text-container {
128
+ display: flex;
129
+ }
130
+ .merchi-embed-form_dropzone-icon-container {
131
+ display: inline-block;
132
+ width: 50px;
133
+ height: 50px;
134
+ background: #dfdfdf;
135
+ border-radius: 100%;
136
+ position: relative;
137
+ margin-right: 1rem;
138
+ }
139
+ .merchi-embed-form_dropzone-icon {
140
+ position: absolute;
141
+ display: block;
142
+ top: 50%;
143
+ height: 24px;
144
+ left: 50%;
145
+ transform: translate(-50%, -50%);
146
+ }
147
+ .merchi-embed-form_dropzone-icon-plus {
148
+ transition: all 0.15s ease-in-out;
149
+ position: absolute;
150
+ background: white;
151
+ height: 30px;
152
+ width: 30px !important;
153
+ border-radius: 100%;
154
+ border: 1px solid #dfdfdf;
155
+ padding: 5px;
156
+ display: block;
157
+ right: -8px;
158
+ bottom: -14px;
159
+ top: initial;
160
+ left: initial;
161
+ }
162
+ .merchi-embed-form_dropzone-icon-plus:hover {
163
+ scale: 1.2;
164
+ }
165
+ .merchi-embed-form {
166
+ /* variation image select */
167
+ }
168
+ .merchi-embed-form_image-select-option-container {
169
+ display: flex;
170
+ gap: 1rem;
171
+ flex-wrap: wrap;
172
+ }
173
+ .merchi-embed-form_image-select-option-item-container {
174
+ flex-grow: 1;
175
+ flex: 0 0 calc(50% - 0.5rem);
176
+ }
177
+ @media (min-width: 782px) {
178
+ .merchi-embed-form_image-select-option-item-container {
179
+ flex: 0 0 calc(33.33% - 0.67rem);
180
+ }
181
+ }
182
+ .merchi-embed-form_image-select-option-item {
183
+ background: #fff;
184
+ border-radius: 0.5em;
185
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
186
+ cursor: pointer;
187
+ transition-duration: 0.15s;
188
+ position: relative;
189
+ text-align: center;
190
+ padding: 1rem 0.5rem;
191
+ }
192
+ .merchi-embed-form_image-select-option-item:hover {
193
+ box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
194
+ transition-duration: 0.25s;
195
+ }
196
+ .merchi-embed-form_image-select-option-item-img {
197
+ display: block;
198
+ height: 150px;
199
+ margin: auto;
200
+ max-width: 150px;
201
+ width: 100%;
202
+ background-repeat: no-repeat;
203
+ background-size: contain;
204
+ }
205
+ .merchi-embed-form_image-select-option-item svg {
206
+ position: absolute;
207
+ top: 0.5rem;
208
+ right: 0.5rem;
209
+ background: #fff;
210
+ padding: 2px;
211
+ padding-bottom: 1px;
212
+ border-radius: 0.4rem;
213
+ font-size: 28px !important;
214
+ -webkit-animation-name: fadeInOpacity;
215
+ -webkit-animation-iteration-count: 1;
216
+ -webkit-animation-duration: 0.2s;
217
+ animation-name: fadeInOpacity;
218
+ animation-iteration-count: 1;
219
+ animation-duration: 0.2s;
220
+ }
221
+ .merchi-embed-form {
222
+ /* variation color select */
223
+ }
224
+ .merchi-embed-form_color-select-container {
225
+ display: flex;
226
+ flex-wrap: wrap;
227
+ gap: 2rem;
228
+ }
229
+ @media (max-width: 768px) {
230
+ .merchi-embed-form_color-select-container {
231
+ justify-content: center;
232
+ }
233
+ }
234
+ .merchi-embed-form_color-select-indicator {
235
+ border-radius: 100%;
236
+ height: 65px;
237
+ width: 65px;
238
+ }
239
+ .merchi-embed-form_color-select-item {
240
+ align-items: center;
241
+ display: flex;
242
+ flex-direction: column;
243
+ position: relative;
244
+ }
245
+ .merchi-embed-form_color-select-description {
246
+ white-space: nowrap;
247
+ text-overflow: ellipsis;
248
+ overflow: clip;
249
+ max-width: 125px;
250
+ text-transform: capitalize;
251
+ background-color: white;
252
+ padding: 0 0.4rem;
253
+ margin: 6px 0 0 0;
254
+ cursor: pointer;
255
+ border-radius: 5px;
256
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
257
+ font-size: 0.8rem;
258
+ font-weight: 600;
259
+ }
260
+ .merchi-embed-form_color-select-option {
261
+ border: 4px solid #fff;
262
+ border-radius: 100%;
263
+ box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
264
+ transition: all 0.2s ease-in-out;
265
+ z-index: 1;
266
+ height: 50px;
267
+ width: 50px;
268
+ }
269
+ .merchi-embed-form_color-select-option:hover {
270
+ box-shadow: 0 5px 4px rgba(0, 0, 0, 0.1);
271
+ }
272
+ .merchi-embed-form_color-select-option i,
273
+ .merchi-embed-form_color-select-option svg {
274
+ position: absolute;
275
+ top: 0;
276
+ right: 0;
277
+ background: #fff;
278
+ border-radius: 100%;
279
+ font-size: 21px;
280
+ }
281
+ .merchi-embed-form {
282
+ /* variation checkbox and radio */
283
+ }
284
+ .merchi-embed-form_checkbox_radio-container {
285
+ display: flex;
286
+ flex-direction: column;
287
+ }
288
+ .merchi-embed-form_checkbox_radio-item-container {
289
+ display: flex;
290
+ flex-direction: row;
291
+ gap: 1rem;
292
+ flex-wrap: wrap;
293
+ }
294
+ .merchi-embed-form_checkbox_radio-input {
295
+ position: absolute;
296
+ opacity: 0;
297
+ cursor: pointer;
298
+ z-index: 999;
299
+ height: 33px;
300
+ width: 33px;
301
+ }
302
+ .merchi-embed-form_checkbox_radio-input + label {
303
+ position: relative;
304
+ cursor: pointer;
305
+ display: flex;
306
+ align-items: center;
307
+ margin-bottom: 0;
308
+ }
309
+ .merchi-embed-form_checkbox_radio-input + label::before {
310
+ content: " ";
311
+ display: inline-block;
312
+ margin-right: 0.5rem;
313
+ width: 33px;
314
+ height: 33px;
315
+ background-color: white;
316
+ border-radius: 6px;
317
+ box-shadow: rgba(42, 42, 42, 0.15) 0px 2px 2px 0px;
318
+ transition: all 0.1s ease-in-out;
319
+ cursor: pointer;
320
+ }
321
+ .merchi-embed-form_checkbox_radio-input + label::after {
322
+ content: "";
323
+ width: 11px;
324
+ height: 11px;
325
+ border-radius: 100%;
326
+ background-color: #2a2a2a;
327
+ position: absolute;
328
+ top: 50%;
329
+ left: 11px;
330
+ transform: translateY(-50%);
331
+ opacity: 0;
332
+ transition: all 0.3s ease;
333
+ cursor: pointer;
334
+ }
335
+ .merchi-embed-form_checkbox_radio-input:disabled + label::before {
336
+ opacity: 0.8;
337
+ box-shadow: none;
338
+ cursor: not-allowed;
339
+ border: inset 1px rgba(0, 0, 0, 0.168627451);
340
+ background-color: transparent;
341
+ }
342
+ .merchi-embed-form_checkbox_radio-input:disabled + label::after {
343
+ cursor: not-allowed;
344
+ }
345
+ .merchi-embed-form_checkbox_radio-input:disabled + label .merchi-embed-form_checkbox_radio-input-label {
346
+ opacity: 0.8;
347
+ box-shadow: none;
348
+ cursor: not-allowed;
349
+ border: inset 1px rgba(0, 0, 0, 0.168627451);
350
+ background-color: transparent;
351
+ }
352
+ .merchi-embed-form_checkbox_radio-input:disabled + label:hover::before {
353
+ box-shadow: none;
354
+ border: inset 1px rgba(0, 0, 0, 0.168627451);
355
+ }
356
+ .merchi-embed-form_checkbox_radio-input:checked + label::before {
357
+ box-shadow: rgba(42, 42, 42, 0.15) 0px 1px 1px 0px;
358
+ }
359
+ .merchi-embed-form_checkbox_radio-input:checked + label::after {
360
+ opacity: 1;
361
+ }
362
+ .merchi-embed-form_checkbox_radio-label {
363
+ position: relative;
364
+ cursor: auto !important;
365
+ display: inline-flex;
366
+ align-items: center;
367
+ height: 33px;
368
+ }
369
+ .merchi-embed-form_checkbox_radio-super {
370
+ display: block;
371
+ color: rgb(129, 136, 155);
372
+ padding: 3px 10px;
373
+ font-weight: bold;
374
+ border-radius: 8px;
375
+ font-size: 11px;
376
+ margin-top: 10px;
377
+ width: -moz-fit-content;
378
+ width: fit-content;
379
+ box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1490196078);
380
+ background: #f2f4fb;
381
+ border-top: 1px solid white;
382
+ border-left: 1px solid white;
383
+ }
384
+ .merchi-embed-form {
385
+ /* titles */
386
+ }
387
+ .merchi-embed-form_input-radio {
388
+ font-size: 12.6px;
389
+ font-weight: 800;
390
+ padding-bottom: 0.25rem;
391
+ }
392
+ .merchi-embed-form_input-checkbox {
393
+ font-size: 12.6px;
394
+ font-weight: 800;
395
+ padding-bottom: 0.25rem;
396
+ }
397
+ .merchi-embed-form_input-select {
398
+ font-size: 12.6px;
399
+ font-weight: 800;
400
+ padding-bottom: 0.25rem;
401
+ }
402
+ .merchi-embed-form_input-image-select {
403
+ font-size: 12.6px;
404
+ font-weight: 800;
405
+ padding-bottom: 0.25rem;
406
+ }
407
+ .merchi-embed-form_input-file {
408
+ font-size: 12.6px;
409
+ font-weight: 800;
410
+ padding-bottom: 0.25rem;
411
+ }
412
+ .merchi-embed-form {
413
+ /* other */
414
+ }
415
+ .merchi-embed-form_option-cost-detail {
416
+ display: block;
417
+ color: rgb(129, 136, 155);
418
+ font-size: 0.75rem;
419
+ font-weight: 600;
420
+ line-height: 1.2;
421
+ margin-top: 0.25rem;
422
+ text-align: center;
423
+ }
424
+ .merchi-embed-form_variation-cost-detail {
425
+ display: block;
426
+ color: rgb(129, 136, 155);
427
+ padding: 3px 10px;
428
+ font-weight: bold;
429
+ border-radius: 8px;
430
+ font-size: 14px;
431
+ width: -moz-fit-content;
432
+ width: fit-content;
433
+ box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1490196078);
434
+ background: #f2f4fb;
435
+ border-top: 1px solid white;
436
+ border-left: 1px solid white;
437
+ margin: 0.25rem 0rem 0.5rem;
438
+ }
439
+ .merchi-embed-form {
440
+ /* product groups */
441
+ }
442
+ .merchi-embed-form_product-group-container {
443
+ background: transparent;
444
+ border-radius: 0;
445
+ padding: 0;
446
+ display: flex;
447
+ flex-direction: column;
448
+ gap: 1.25rem;
449
+ }
450
+ .merchi-embed-form_product-group-actions-container {
451
+ display: flex;
452
+ align-items: center;
453
+ justify-content: space-between;
454
+ width: 100%;
455
+ }
456
+ @media (min-width: 500px) {
457
+ .merchi-embed-form_product-group-actions-container {
458
+ width: auto;
459
+ }
460
+ }
461
+ .merchi-embed-form_product-group-actions-cost-container {
462
+ align-items: center;
463
+ display: flex;
464
+ justify-content: space-between;
465
+ margin-top: 2rem;
466
+ flex-wrap: wrap;
467
+ gap: 1rem;
468
+ }
469
+ .merchi-embed-form_product-group-total-cost {
470
+ font-weight: 800;
471
+ }
472
+ .merchi-embed-form_product-group-button-remove {
473
+ width: 100%;
474
+ }
475
+ @media (min-width: 500px) {
476
+ .merchi-embed-form_product-group-button-remove {
477
+ width: fit-content;
478
+ }
479
+ }
480
+ .merchi-embed-form_product-group-button-add-group {
481
+ display: flex;
482
+ align-items: center;
483
+ justify-content: center;
484
+ width: 100%;
485
+ margin: 1rem 0;
486
+ }
487
+ .merchi-embed-form_product-group-inventory-status {
488
+ width: fit-content;
489
+ border-radius: 50px;
490
+ color: white;
491
+ font-weight: bold;
492
+ font-size: 0.75rem;
493
+ padding: 3px;
494
+ display: flex;
495
+ gap: 0.25rem;
496
+ align-items: center;
497
+ }
498
+ .merchi-embed-form_product-group-variation-container {
499
+ display: block;
500
+ }
501
+ .merchi-embed-form_product-group-input-qty-container {
502
+ font-size: 12.6px;
503
+ font-weight: 800;
504
+ }
505
+ .merchi-embed-form_product-group-input-qty-container + .merchi-embed-form_variantion-container {
506
+ margin-top: 1.25rem;
507
+ }
508
+ .merchi-embed-form {
509
+ /* quantity input */
510
+ }
511
+ .merchi-embed-form_quantity-label-container {
512
+ font-size: 12.6px;
513
+ font-weight: 800;
514
+ margin-bottom: 0.5rem;
515
+ }
516
+
517
+ /* **********
518
+ END Embed from
519
+ ********** */
520
+ /* native colour picker (COLOUR_PICKER) — circle, own line under instructions */
521
+ .merchi-input-color-container {
522
+ display: block;
523
+ }
524
+ .merchi-input-color-container .variation-field-instructions {
525
+ display: block;
526
+ width: 100%;
527
+ }
528
+ .merchi-input-color-container input[type=color] {
529
+ display: block;
530
+ clear: both;
531
+ box-sizing: border-box;
532
+ width: 50px;
533
+ height: 50px;
534
+ max-width: 50px;
535
+ margin-top: 0.35rem;
536
+ padding: 0;
537
+ border: 4px solid #fff;
538
+ border-radius: 50%;
539
+ box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
540
+ cursor: pointer;
541
+ overflow: hidden;
542
+ -webkit-appearance: none;
543
+ appearance: none;
544
+ }
545
+ .merchi-input-color-container input[type=color]::-webkit-color-swatch-wrapper {
546
+ padding: 0;
547
+ }
548
+ .merchi-input-color-container input[type=color]::-webkit-color-swatch {
549
+ border: none;
550
+ border-radius: 50%;
551
+ }
552
+ .merchi-input-color-container input[type=color]::-moz-color-swatch {
553
+ border: none;
554
+ border-radius: 50%;
555
+ }
556
+
557
+ /* Draft js RTE styles */
558
+ .rte-editor-iframeContainer {
559
+ width: 100%;
560
+ height: 0;
561
+ position: relative;
562
+ min-height: 300px;
563
+ padding-bottom: 56.25%;
564
+ }
565
+
566
+ .rte-editor-iframe {
567
+ width: 100%;
568
+ height: 100%;
569
+ position: absolute;
570
+ top: 0;
571
+ left: 0;
572
+ }
573
+
574
+ .rte-editor-invalidVideoSrc {
575
+ text-align: center;
576
+ background-color: #eaeaea;
577
+ padding: 1em;
578
+ }
579
+
580
+ .rte-editor-video {
581
+ width: 100%;
582
+ height: 100%;
583
+ }
584
+
585
+ [data-rmiz-wrap=visible],
586
+ [data-rmiz-wrap=hidden] {
587
+ position: relative;
588
+ display: inline-flex;
589
+ align-items: flex-start;
590
+ }
591
+
592
+ [data-rmiz-wrap=hidden] {
593
+ visibility: hidden;
594
+ }
595
+
596
+ [data-rmiz-overlay] {
597
+ position: fixed;
598
+ top: 0;
599
+ right: 0;
600
+ bottom: 0;
601
+ left: 0;
602
+ width: 100%;
603
+ height: 100%;
604
+ transition-property: background-color;
605
+ }
606
+
607
+ [data-rmiz-btn-open],
608
+ [data-rmiz-btn-close] {
609
+ position: absolute;
610
+ top: 0;
611
+ right: 0;
612
+ bottom: 0;
613
+ left: 0;
614
+ width: 100%;
615
+ height: 100%;
616
+ /* reset styles */
617
+ margin: 0;
618
+ padding: 0;
619
+ border: none;
620
+ border-radius: 0;
621
+ font: inherit;
622
+ color: inherit;
623
+ background: none;
624
+ -webkit-appearance: none;
625
+ -moz-appearance: none;
626
+ appearance: none;
627
+ }
628
+
629
+ [data-rmiz-btn-open] {
630
+ cursor: zoom-in;
631
+ }
632
+
633
+ [data-rmiz-btn-close] {
634
+ cursor: zoom-out;
635
+ }
636
+
637
+ [data-rmiz-modal-content] {
638
+ position: absolute;
639
+ transition-property: transform;
640
+ transform-origin: center center;
641
+ }
642
+
643
+ /* Product Images */
644
+ .preview-container {
645
+ display: flex;
646
+ height: 490px;
647
+ padding-bottom: 1rem !important;
648
+ padding-top: 1rem !important;
649
+ }
650
+
651
+ .preview-container-stacked {
652
+ display: flex;
653
+ padding-bottom: 1rem !important;
654
+ padding-top: 1rem !important;
655
+ }
656
+
657
+ .preview-container-main-image {
658
+ align-items: center;
659
+ display: flex;
660
+ justify-content: center;
661
+ width: 100%;
662
+ }
663
+
664
+ .product-pic img {
665
+ width: 100%;
666
+ border-radius: 0.375rem;
667
+ height: auto;
668
+ max-width: 470px;
669
+ max-height: 446px;
670
+ }
671
+
672
+ .fit-image {
673
+ width: 100%;
674
+ object-fit: cover;
675
+ border-radius: 0.375rem;
676
+ }
677
+
678
+ .variation-field-instructions .DraftEditor-root .DraftEditor-editorContainer {
679
+ min-height: 1px;
680
+ }
681
+
682
+ .variation-field-instructions .DraftEditor-root .DraftEditor-editorContainer .public-DraftEditor-content {
683
+ min-height: 1px;
684
+ }
685
+
686
+ .variation-field-instructions img {
687
+ max-width: 100%;
688
+ }
689
+
690
+ .merchi-product-title {
691
+ font-size: 1.4rem;
692
+ font-weight: 700;
693
+ line-height: 1.25;
694
+ margin: 0 0 0.5rem;
695
+ }
696
+
697
+ .merchi-product-origin-title {
698
+ font-size: 0.7875rem;
699
+ line-height: 1.3;
700
+ }
701
+
702
+ .merchi-product-origin-title h5 {
703
+ font-size: inherit;
704
+ font-weight: 600;
705
+ margin: 0 0 0.25rem;
706
+ }
707
+
708
+ .input-alert-container {
709
+ font-size: 12.6px;
710
+ font-weight: 600;
711
+ margin-top: 0.25rem;
712
+ }
713
+
714
+ .merchi-product-buttons-submit-container {
715
+ display: flex;
716
+ flex-direction: row;
717
+ flex-wrap: wrap;
718
+ align-items: stretch;
719
+ gap: 0.5rem;
720
+ width: 100%;
721
+ }
722
+ .merchi-product-buttons-submit-container > * {
723
+ flex: 1 1 0;
724
+ min-width: 0;
725
+ }
726
+ .merchi-product-buttons-submit-container > span {
727
+ display: flex;
728
+ }
729
+ .merchi-product-buttons-submit-container > span > .merchi-embed-form_button-submit,
730
+ .merchi-product-buttons-submit-container > .merchi-embed-form_button-submit {
731
+ width: 100%;
732
+ font-size: 0.8125rem;
733
+ font-weight: 600;
734
+ line-height: 1.25;
735
+ padding: 0.4rem 0.75rem;
736
+ min-height: 2.25rem;
737
+ }
738
+
739
+ .merchi-area-modality-toggle {
740
+ display: flex;
741
+ align-items: center;
742
+ flex-wrap: wrap;
743
+ gap: 0.5rem;
744
+ margin-bottom: 0.75rem;
745
+ }
746
+
747
+ .merchi-area-modality-label {
748
+ font-size: 0.875rem;
749
+ line-height: 1.25;
750
+ color: #6c757d;
751
+ font-weight: 400;
752
+ }
753
+
754
+ .merchi-area-modality-label.is-active {
755
+ color: inherit;
756
+ font-weight: 600;
757
+ }
758
+
759
+ .merchi-area-modality-switch {
760
+ position: relative;
761
+ display: inline-flex;
762
+ align-items: center;
763
+ width: 2.25rem;
764
+ height: 1.25rem;
765
+ padding: 0;
766
+ border: none;
767
+ border-radius: 999px;
768
+ background: #ced4da;
769
+ cursor: pointer;
770
+ transition: background-color 0.15s ease;
771
+ flex-shrink: 0;
772
+ }
773
+ .merchi-area-modality-switch:disabled {
774
+ cursor: not-allowed;
775
+ opacity: 0.55;
776
+ }
777
+ .merchi-area-modality-switch:focus {
778
+ outline: none;
779
+ }
780
+ .merchi-area-modality-switch:focus-visible {
781
+ outline: 2px solid #0d6efd;
782
+ outline-offset: 2px;
783
+ }
784
+ .merchi-area-modality-switch.is-on {
785
+ background: #0d6efd;
786
+ }
787
+
788
+ .merchi-area-modality-switch-thumb {
789
+ position: absolute;
790
+ top: 0.125rem;
791
+ left: 0.125rem;
792
+ width: 1rem;
793
+ height: 1rem;
794
+ border-radius: 50%;
795
+ background: #fff;
796
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
797
+ transition: transform 0.15s ease;
798
+ }
799
+
800
+ .merchi-area-modality-switch.is-on .merchi-area-modality-switch-thumb {
801
+ transform: translateX(1rem);
802
+ }
803
+
804
+ .merchi-area-aspect-lock {
805
+ margin-left: auto;
806
+ font-size: 0.75rem;
807
+ opacity: 0.75;
808
+ }
809
+
810
+ .merchi-area-dimensions {
811
+ display: flex;
812
+ flex-direction: column;
813
+ gap: 0.875rem;
814
+ }
815
+
816
+ .merchi-area-dimension-row {
817
+ display: flex;
818
+ flex-direction: column;
819
+ gap: 0.35rem;
820
+ }
821
+
822
+ .merchi-area-dimension-label {
823
+ display: flex;
824
+ align-items: baseline;
825
+ justify-content: space-between;
826
+ gap: 0.75rem;
827
+ font-size: 0.875rem;
828
+ line-height: 1.25;
829
+ }
830
+
831
+ .merchi-area-dimension-name {
832
+ font-weight: 500;
833
+ }
834
+
835
+ .merchi-area-dimension-meta {
836
+ margin-left: auto;
837
+ color: #6c757d;
838
+ font-variant-numeric: tabular-nums;
839
+ white-space: nowrap;
840
+ }
841
+
842
+ .merchi-area-slider {
843
+ -webkit-appearance: none;
844
+ appearance: none;
845
+ width: 100%;
846
+ height: 1.5rem;
847
+ margin: 0;
848
+ padding: 0;
849
+ background: transparent;
850
+ border: none;
851
+ border-radius: 0;
852
+ box-shadow: none;
853
+ cursor: pointer;
854
+ }
855
+ .merchi-area-slider:disabled {
856
+ cursor: not-allowed;
857
+ opacity: 0.55;
858
+ }
859
+ .merchi-area-slider:focus {
860
+ outline: none;
861
+ }
862
+ .merchi-area-slider:focus-visible {
863
+ outline: 2px solid #0d6efd;
864
+ outline-offset: 2px;
865
+ }
866
+ .merchi-area-slider::-webkit-slider-runnable-track {
867
+ height: 0.375rem;
868
+ border-radius: 999px;
869
+ background: #dee2e6;
870
+ }
871
+ .merchi-area-slider::-webkit-slider-thumb {
872
+ -webkit-appearance: none;
873
+ appearance: none;
874
+ width: 1.125rem;
875
+ height: 1.125rem;
876
+ margin-top: -0.375rem;
877
+ border: 2px solid #0d6efd;
878
+ border-radius: 50%;
879
+ background: #fff;
880
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
881
+ }
882
+ .merchi-area-slider::-moz-range-track {
883
+ height: 0.375rem;
884
+ border: none;
885
+ border-radius: 999px;
886
+ background: #dee2e6;
887
+ }
888
+ .merchi-area-slider::-moz-range-thumb {
889
+ width: 1.125rem;
890
+ height: 1.125rem;
891
+ border: 2px solid #0d6efd;
892
+ border-radius: 50%;
893
+ background: #fff;
894
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
895
+ }
896
+
897
+ .merchi-area-slider.is-invalid::-webkit-slider-runnable-track, .merchi-area-slider.is-invalid::-moz-range-track {
898
+ background: #f1aeb5;
899
+ }
900
+ .merchi-area-slider.is-invalid::-webkit-slider-thumb, .merchi-area-slider.is-invalid::-moz-range-thumb {
901
+ border-color: #dc3545;
902
+ }
903
+
904
+ .merchi-price-matrix {
905
+ margin: 0.75rem 0;
906
+ overflow-x: auto;
907
+ }
908
+
909
+ .merchi-price-matrix_caption {
910
+ caption-side: top;
911
+ text-align: left;
912
+ font-size: 0.8125rem;
913
+ font-weight: 600;
914
+ margin-bottom: 0.4rem;
915
+ }
916
+
917
+ .merchi-price-matrix_caption-title {
918
+ display: block;
919
+ }
920
+
921
+ .merchi-price-matrix_setup {
922
+ display: block;
923
+ font-size: 0.8125rem;
924
+ font-weight: 400;
925
+ color: #71717a;
926
+ margin-top: 0.25rem;
927
+ }
928
+
929
+ .merchi-price-matrix_table {
930
+ width: 100%;
931
+ border-collapse: collapse;
932
+ font-size: 0.8125rem;
933
+ }
934
+
935
+ .merchi-price-matrix_table th,
936
+ .merchi-price-matrix_table td {
937
+ padding: 0.45rem 0.65rem;
938
+ text-align: center;
939
+ border: 1px solid rgb(227, 228, 247);
940
+ white-space: nowrap;
941
+ }
942
+
943
+ .merchi-price-matrix_corner,
944
+ .merchi-price-matrix_row-label {
945
+ text-align: left;
946
+ font-weight: 600;
947
+ background: #f7f7fb;
948
+ }
949
+
950
+ .merchi-price-matrix_th {
951
+ font-weight: 600;
952
+ background: #f7f7fb;
953
+ }
954
+
955
+ .merchi-price-matrix_col-active {
956
+ background: #eef4ff;
957
+ font-weight: 600;
958
+ }
959
+
960
+ .merchi-price-matrix_band {
961
+ appearance: none;
962
+ background: none;
963
+ border: 0;
964
+ color: inherit;
965
+ cursor: pointer;
966
+ font: inherit;
967
+ font-weight: inherit;
968
+ padding: 0;
969
+ text-decoration: underline;
970
+ text-underline-offset: 0.15em;
971
+ }
972
+
973
+ .merchi-sr-only {
974
+ position: absolute;
975
+ width: 1px;
976
+ height: 1px;
977
+ padding: 0;
978
+ margin: -1px;
979
+ overflow: hidden;
980
+ clip: rect(0, 0, 0, 0);
981
+ white-space: nowrap;
982
+ border: 0;
983
+ }
984
+
985
+ .merchi-product-draft-cta {
986
+ display: flex;
987
+ flex-direction: column;
988
+ align-items: stretch;
989
+ gap: 0.75rem;
990
+ margin-top: 1rem;
991
+ margin-bottom: 0.75rem;
992
+ padding: 0.9rem 1rem;
993
+ border: 1px solid #e4e4e7;
994
+ border-radius: 0.85rem;
995
+ background: #fafafa;
996
+ }
997
+
998
+ .merchi-product-draft-cta-heading {
999
+ font-size: 0.95rem;
1000
+ }
1001
+
1002
+ .merchi-product-draft-cta-tabs {
1003
+ display: grid;
1004
+ grid-template-columns: 1fr 1fr;
1005
+ gap: 4px;
1006
+ padding: 4px;
1007
+ border: 1px solid #e4e4e7;
1008
+ border-radius: 0.85rem;
1009
+ background: #f4f4f5;
1010
+ }
1011
+
1012
+ .merchi-product-draft-cta-tab {
1013
+ appearance: none;
1014
+ min-height: 40px;
1015
+ padding: 0.45rem 0.6rem;
1016
+ border: 1px solid transparent;
1017
+ border-radius: 0.7rem;
1018
+ background: transparent;
1019
+ color: #71717a;
1020
+ font: inherit;
1021
+ font-size: 0.85rem;
1022
+ font-weight: 600;
1023
+ line-height: 1.2;
1024
+ cursor: pointer;
1025
+ }
1026
+
1027
+ .merchi-product-draft-cta-tab.is-active {
1028
+ background: #fff;
1029
+ color: #111827;
1030
+ border-color: #2563eb;
1031
+ }
1032
+
1033
+ .merchi-product-draft-cta-panel {
1034
+ display: flex;
1035
+ flex-direction: column;
1036
+ gap: 0.65rem;
1037
+ padding: 0.85rem 1rem;
1038
+ border: 1px solid #e4e4e7;
1039
+ border-radius: 0.75rem;
1040
+ background: #fff;
1041
+ }
1042
+
1043
+ .merchi-product-draft-cta-panel span {
1044
+ font-size: 0.8rem;
1045
+ color: #71717a;
1046
+ }
1047
+
1048
+ .merchi-product-draft-cta + .merchi-product-buttons-submit-container,
1049
+ .merchi-product-draft-cta + .merchi-action-buttons-container {
1050
+ margin-top: 0;
1051
+ }
1052
+
1053
+ .merchi-product-draft-cta-copy {
1054
+ display: flex;
1055
+ flex-direction: column;
1056
+ gap: 0.15rem;
1057
+ min-width: 0;
1058
+ }
1059
+
1060
+ .merchi-product-draft-cta-copy strong {
1061
+ font-size: 0.95rem;
1062
+ }
1063
+
1064
+ .merchi-product-draft-cta-copy span {
1065
+ font-size: 0.8rem;
1066
+ color: #71717a;
1067
+ }
1068
+
1069
+ .merchi-product-draft-cta-actions {
1070
+ display: flex;
1071
+ flex-wrap: wrap;
1072
+ align-items: center;
1073
+ gap: 0.45rem;
1074
+ }
1075
+
1076
+ .merchi-product-draft-cta-btn {
1077
+ display: inline-flex;
1078
+ align-items: center;
1079
+ justify-content: center;
1080
+ gap: 0.4rem;
1081
+ min-height: 44px;
1082
+ padding: 0.55rem 0.95rem;
1083
+ border: 0;
1084
+ border-radius: 0.7rem;
1085
+ background: #111827;
1086
+ color: #fff;
1087
+ font-weight: 600;
1088
+ font-size: 0.9rem;
1089
+ }
1090
+
1091
+ .merchi-product-draft-cta-reset {
1092
+ appearance: none;
1093
+ border: 0;
1094
+ background: transparent;
1095
+ color: #71717a;
1096
+ font: inherit;
1097
+ font-size: 0.8rem;
1098
+ font-weight: 500;
1099
+ line-height: 1.2;
1100
+ text-decoration: underline;
1101
+ text-underline-offset: 0.15em;
1102
+ cursor: pointer;
1103
+ min-height: 32px;
1104
+ padding: 0 0.25rem;
1105
+ }
1106
+
1107
+ .merchi-product-draft-sheet {
1108
+ position: fixed;
1109
+ inset: 0;
1110
+ z-index: 12000;
1111
+ display: flex;
1112
+ flex-direction: column;
1113
+ width: 100%;
1114
+ height: 100dvh;
1115
+ background: #111111;
1116
+ color: #f4f4f5;
1117
+ padding-bottom: env(safe-area-inset-bottom);
1118
+ }
1119
+
1120
+ .merchi-product-draft-sheet-header {
1121
+ display: flex;
1122
+ align-items: center;
1123
+ gap: 0.75rem;
1124
+ min-height: 56px;
1125
+ padding: 0.5rem 0.75rem;
1126
+ padding-top: calc(0.5rem + env(safe-area-inset-top));
1127
+ }
1128
+
1129
+ .merchi-product-draft-sheet-title {
1130
+ flex: 1;
1131
+ min-width: 0;
1132
+ display: flex;
1133
+ flex-direction: column;
1134
+ }
1135
+
1136
+ .merchi-product-draft-sheet-title strong {
1137
+ font-size: 0.95rem;
1138
+ }
1139
+
1140
+ .merchi-product-draft-sheet-title span {
1141
+ font-size: 0.75rem;
1142
+ color: #a1a1aa;
1143
+ }
1144
+
1145
+ .merchi-product-draft-icon-btn,
1146
+ .merchi-product-draft-done-btn,
1147
+ .merchi-product-draft-stepper {
1148
+ display: inline-flex;
1149
+ align-items: center;
1150
+ justify-content: center;
1151
+ gap: 0.35rem;
1152
+ min-width: 44px;
1153
+ min-height: 44px;
1154
+ width: max-content;
1155
+ max-width: none;
1156
+ padding: 0 0.8rem;
1157
+ border: 0;
1158
+ border-radius: 0.7rem;
1159
+ background: #27272a;
1160
+ color: inherit;
1161
+ font: inherit;
1162
+ white-space: nowrap;
1163
+ flex: 0 0 auto;
1164
+ overflow: visible;
1165
+ }
1166
+
1167
+ .merchi-product-draft-icon-btn svg {
1168
+ flex-shrink: 0;
1169
+ }
1170
+
1171
+ .merchi-product-draft-done-btn {
1172
+ padding: 0 0.9rem;
1173
+ background: #16a34a;
1174
+ font-weight: 600;
1175
+ }
1176
+
1177
+ .merchi-product-draft-icon-btn.is-danger {
1178
+ background: #7f1d1d;
1179
+ }
1180
+
1181
+ .merchi-product-draft-chips {
1182
+ display: flex;
1183
+ gap: 0.5rem;
1184
+ overflow-x: auto;
1185
+ padding: 0 0.75rem 0.5rem;
1186
+ -webkit-overflow-scrolling: touch;
1187
+ }
1188
+
1189
+ .merchi-product-draft-chip {
1190
+ flex: 0 0 auto;
1191
+ min-height: 36px;
1192
+ padding: 0.35rem 0.8rem;
1193
+ border: 1px solid #3f3f46;
1194
+ border-radius: 999px;
1195
+ background: transparent;
1196
+ color: inherit;
1197
+ }
1198
+
1199
+ .merchi-product-draft-chip.is-active {
1200
+ background: #f4f4f5;
1201
+ color: #111111;
1202
+ border-color: #f4f4f5;
1203
+ }
1204
+
1205
+ .merchi-product-draft-main {
1206
+ flex: 1;
1207
+ min-height: 0;
1208
+ display: flex;
1209
+ flex-direction: column;
1210
+ }
1211
+
1212
+ .merchi-product-draft-sheet-body {
1213
+ flex: 1;
1214
+ min-height: 0;
1215
+ position: relative;
1216
+ }
1217
+
1218
+ .merchi-product-draft-dock {
1219
+ flex: 0 0 auto;
1220
+ display: flex;
1221
+ flex-direction: column;
1222
+ background: #18181b;
1223
+ border-top: 1px solid #27272a;
1224
+ }
1225
+
1226
+ .merchi-product-draft-canvas,
1227
+ .merchi-product-draft-canvas-fallback {
1228
+ width: 100%;
1229
+ height: 100%;
1230
+ }
1231
+
1232
+ .merchi-product-draft-canvas-fallback {
1233
+ display: flex;
1234
+ align-items: center;
1235
+ justify-content: center;
1236
+ color: #a1a1aa;
1237
+ }
1238
+
1239
+ .merchi-product-draft-error {
1240
+ margin: 0;
1241
+ padding: 0.4rem 0.85rem;
1242
+ color: #fecaca;
1243
+ font-size: 0.8rem;
1244
+ }
1245
+
1246
+ .merchi-product-draft-inspector,
1247
+ .merchi-product-draft-toolbar {
1248
+ display: flex;
1249
+ align-items: center;
1250
+ gap: 0.45rem;
1251
+ overflow-x: auto;
1252
+ padding: 0.45rem 0.75rem;
1253
+ }
1254
+
1255
+ .merchi-product-draft-inspector {
1256
+ flex: 0 0 auto;
1257
+ flex-wrap: wrap;
1258
+ }
1259
+
1260
+ .merchi-product-draft-text-input {
1261
+ flex: 0 0 auto;
1262
+ width: 100%;
1263
+ height: 2.75rem;
1264
+ max-height: 2.75rem;
1265
+ min-height: 0;
1266
+ resize: none;
1267
+ border-radius: 0.6rem;
1268
+ border: 1px solid #3f3f46;
1269
+ background: #09090b;
1270
+ color: inherit;
1271
+ padding: 0.5rem 0.6rem;
1272
+ font: inherit;
1273
+ }
1274
+
1275
+ .merchi-product-draft-icon-btn.is-active {
1276
+ background: #2563eb;
1277
+ }
1278
+
1279
+ .merchi-product-draft-toolbar {
1280
+ justify-content: space-around;
1281
+ border-top: 1px solid #27272a;
1282
+ background: #18181b;
1283
+ }
1284
+
1285
+ .merchi-product-draft-toolbar button {
1286
+ display: flex;
1287
+ flex-direction: column;
1288
+ align-items: center;
1289
+ justify-content: center;
1290
+ gap: 0.2rem;
1291
+ min-width: 64px;
1292
+ min-height: 52px;
1293
+ border: 0;
1294
+ background: transparent;
1295
+ color: inherit;
1296
+ font-size: 0.7rem;
1297
+ }
1298
+
1299
+ .merchi-product-draft-toolbar button:disabled {
1300
+ opacity: 0.4;
1301
+ }
1302
+
1303
+ .merchi-product-draft-color input {
1304
+ width: 44px;
1305
+ height: 44px;
1306
+ padding: 0;
1307
+ border: 0;
1308
+ background: transparent;
1309
+ }
1310
+
1311
+ .merchi-product-draft-font {
1312
+ flex: 1 1 11rem;
1313
+ min-width: 10rem;
1314
+ }
1315
+
1316
+ .merchi-product-draft-font select {
1317
+ width: 100%;
1318
+ min-height: 44px;
1319
+ padding: 0 0.7rem;
1320
+ border: 1px solid #3f3f46;
1321
+ border-radius: 0.6rem;
1322
+ background: #09090b;
1323
+ color: inherit;
1324
+ font: inherit;
1325
+ font-size: 0.85rem;
1326
+ }
1327
+
1328
+ .merchi-product-draft-file {
1329
+ display: none;
1330
+ }
1331
+
1332
+ .merchi-product-draft-layers,
1333
+ .merchi-product-draft-text-sheet {
1334
+ position: absolute;
1335
+ left: 0;
1336
+ right: 0;
1337
+ bottom: 0;
1338
+ z-index: 2;
1339
+ max-height: 45%;
1340
+ overflow: auto;
1341
+ background: #18181b;
1342
+ border-top-left-radius: 1rem;
1343
+ border-top-right-radius: 1rem;
1344
+ padding: 0.9rem 1rem 1rem;
1345
+ }
1346
+
1347
+ .merchi-product-draft-layers-head,
1348
+ .merchi-product-draft-text-sheet {
1349
+ display: flex;
1350
+ flex-direction: column;
1351
+ gap: 0.6rem;
1352
+ }
1353
+
1354
+ .merchi-product-draft-layers-head {
1355
+ flex-direction: row;
1356
+ justify-content: space-between;
1357
+ align-items: center;
1358
+ }
1359
+
1360
+ .merchi-product-draft-layer {
1361
+ display: flex;
1362
+ align-items: center;
1363
+ gap: 0.6rem;
1364
+ width: 100%;
1365
+ min-height: 44px;
1366
+ margin-top: 0.35rem;
1367
+ padding: 0.45rem 0.6rem;
1368
+ border: 0;
1369
+ border-radius: 0.6rem;
1370
+ background: #27272a;
1371
+ color: inherit;
1372
+ text-align: left;
1373
+ }
1374
+
1375
+ .merchi-product-draft-layer.is-active {
1376
+ outline: 2px solid #60a5fa;
1377
+ }
1378
+
1379
+ .merchi-product-draft-layer span {
1380
+ margin-left: auto;
1381
+ color: #a1a1aa;
1382
+ }
1383
+
1384
+ .merchi-product-draft-text-sheet textarea {
1385
+ width: 100%;
1386
+ min-height: 88px;
1387
+ border-radius: 0.6rem;
1388
+ border: 1px solid #3f3f46;
1389
+ background: #09090b;
1390
+ color: inherit;
1391
+ padding: 0.7rem;
1392
+ font: inherit;
1393
+ }
1394
+
1395
+ .merchi-product-draft-text-sheet button {
1396
+ min-height: 44px;
1397
+ border: 0;
1398
+ border-radius: 0.7rem;
1399
+ background: #2563eb;
1400
+ color: #fff;
1401
+ font-weight: 600;
1402
+ }
1403
+
1404
+ .merchi-product-draft-approve {
1405
+ position: fixed;
1406
+ inset: 0;
1407
+ z-index: 12100;
1408
+ display: flex;
1409
+ align-items: flex-end;
1410
+ background: rgba(0, 0, 0, 0.45);
1411
+ }
1412
+
1413
+ .merchi-product-draft-approve-panel {
1414
+ display: flex;
1415
+ flex-direction: column;
1416
+ width: 100%;
1417
+ height: 90dvh;
1418
+ max-height: 90dvh;
1419
+ overflow: hidden;
1420
+ background: #fff;
1421
+ color: #111;
1422
+ border-top-left-radius: 1rem;
1423
+ border-top-right-radius: 1rem;
1424
+ }
1425
+
1426
+ .merchi-product-draft-approve-layout {
1427
+ display: flex;
1428
+ flex-direction: column;
1429
+ min-height: 0;
1430
+ flex: 1;
1431
+ }
1432
+
1433
+ .merchi-product-draft-approve-intro {
1434
+ flex-shrink: 0;
1435
+ padding: 1.1rem 1.15rem 0.9rem;
1436
+ border-bottom: 1px solid #e5e7eb;
1437
+ }
1438
+
1439
+ .merchi-product-draft-approve-intro h2 {
1440
+ margin: 0 0 0.35rem;
1441
+ font-size: 1.05rem;
1442
+ font-weight: 700;
1443
+ }
1444
+
1445
+ .merchi-product-draft-approve-intro p {
1446
+ margin: 0;
1447
+ font-size: 0.9rem;
1448
+ line-height: 1.45;
1449
+ color: #52525b;
1450
+ }
1451
+
1452
+ .merchi-product-draft-approve-body {
1453
+ flex: 1;
1454
+ min-height: 0;
1455
+ overflow: auto;
1456
+ padding: 1rem 1.15rem;
1457
+ }
1458
+
1459
+ .merchi-product-draft-button-container {
1460
+ display: flex;
1461
+ flex-wrap: wrap;
1462
+ justify-content: flex-end;
1463
+ gap: 0.75rem;
1464
+ margin-top: 0;
1465
+ padding: 1rem 1.15rem;
1466
+ border-top: 1px solid #e5e7eb;
1467
+ background: #fff;
1468
+ }
1469
+
1470
+ .merchi-product-draft-approve-footer {
1471
+ display: grid;
1472
+ grid-template-columns: 1fr 1fr;
1473
+ align-items: stretch;
1474
+ gap: 0.75rem;
1475
+ flex-shrink: 0;
1476
+ margin: 0;
1477
+ padding: 1rem 1.15rem;
1478
+ border-top: 1px solid #e5e7eb;
1479
+ background: #fff;
1480
+ }
1481
+
1482
+ .merchi-product-draft-approve-footer > :not(button) {
1483
+ grid-column: 1/-1;
1484
+ }
1485
+
1486
+ .merchi-product-draft-approve-footer > button {
1487
+ display: inline-flex;
1488
+ align-items: center;
1489
+ justify-content: center;
1490
+ width: 100%;
1491
+ min-width: 0;
1492
+ min-height: 44px;
1493
+ height: 44px;
1494
+ margin: 0;
1495
+ padding: 0 1rem;
1496
+ text-align: center;
1497
+ font-size: 0.95rem;
1498
+ font-weight: 600;
1499
+ line-height: 1;
1500
+ }
1501
+
1502
+ .merchi-product-draft-btn {
1503
+ appearance: none;
1504
+ display: inline-flex;
1505
+ align-items: center;
1506
+ justify-content: center;
1507
+ min-height: 44px;
1508
+ min-width: 7.5rem;
1509
+ padding: 0.65rem 1.2rem;
1510
+ border: 1px solid transparent;
1511
+ border-radius: 0.7rem;
1512
+ background: #f4f4f5;
1513
+ color: #18181b;
1514
+ font: inherit;
1515
+ font-size: 0.9rem;
1516
+ font-weight: 600;
1517
+ line-height: 1.2;
1518
+ cursor: pointer;
1519
+ }
1520
+
1521
+ .merchi-product-draft-btn:disabled {
1522
+ opacity: 0.6;
1523
+ cursor: not-allowed;
1524
+ }
1525
+
1526
+ .merchi-product-draft-btn-secondary {
1527
+ background: #f4f4f5;
1528
+ color: #18181b;
1529
+ border-color: #e4e4e7;
1530
+ }
1531
+
1532
+ .merchi-product-draft-btn-primary {
1533
+ background: var(--primary, #2563eb);
1534
+ color: var(--primary-foreground, #fff);
1535
+ }
1536
+
1537
+ .merchi-product-draft-approve-panel img {
1538
+ display: block;
1539
+ width: 100%;
1540
+ height: auto;
1541
+ border-radius: 0.65rem;
1542
+ background: #f4f4f5;
1543
+ }
1544
+
1545
+ .merchi-product-draft-group-container {
1546
+ margin-bottom: 1rem;
1547
+ }
1548
+
1549
+ .merchi-product-draft-group-title {
1550
+ margin: 0 0 0.5rem;
1551
+ font-size: 0.95rem;
1552
+ }
1553
+
1554
+ @media (min-width: 768px) {
1555
+ .merchi-product-draft-main {
1556
+ flex-direction: row;
1557
+ }
1558
+ .merchi-product-draft-dock {
1559
+ width: 220px;
1560
+ border-top: 0;
1561
+ border-left: 1px solid #27272a;
1562
+ overflow: auto;
1563
+ }
1564
+ .merchi-product-draft-toolbar,
1565
+ .merchi-product-draft-inspector {
1566
+ flex-direction: column;
1567
+ overflow: visible;
1568
+ justify-content: flex-start;
1569
+ border-top: 0;
1570
+ }
1571
+ .merchi-product-draft-toolbar {
1572
+ margin-top: auto;
1573
+ }
1574
+ .merchi-product-draft-approve {
1575
+ align-items: center;
1576
+ justify-content: center;
1577
+ }
1578
+ .merchi-product-draft-approve-panel {
1579
+ max-width: 560px;
1580
+ height: min(90dvh, 52rem);
1581
+ border-radius: 1rem;
1582
+ }
1583
+ }
1584
+ @media (max-width: 767px) {
1585
+ .merchi-product-draft-btn {
1586
+ flex: 1 1 calc(50% - 0.4rem);
1587
+ }
1588
+ }
1589
+
1590
+ /*# sourceMappingURL=globals.css.map */