@primestyleai/tryon 4.6.0 → 4.7.1
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.
- package/dist/react/index.js +181 -181
- package/dist/react/styles.d.ts +1 -1
- package/package.json +5 -3
package/dist/react/index.js
CHANGED
|
@@ -278,31 +278,31 @@ function getApiUrl(override) {
|
|
|
278
278
|
const STYLES = `
|
|
279
279
|
.ps-tryon-root {
|
|
280
280
|
display: inline-block; visibility: visible !important;
|
|
281
|
-
--ps-accent: #
|
|
282
|
-
--ps-accent-hover: #
|
|
283
|
-
--ps-accent-light: #
|
|
284
|
-
--ps-text-primary: #
|
|
285
|
-
--ps-text-secondary: #
|
|
286
|
-
--ps-text-muted: #
|
|
287
|
-
--ps-text-dim: #
|
|
288
|
-
--ps-border-color: #
|
|
289
|
-
--ps-border-subtle: #
|
|
290
|
-
--ps-bg-primary: #
|
|
291
|
-
--ps-bg-secondary: #
|
|
292
|
-
--ps-bg-tertiary: #
|
|
293
|
-
--ps-input-bg:
|
|
294
|
-
--ps-input-border: #
|
|
281
|
+
--ps-accent: #2154EF;
|
|
282
|
+
--ps-accent-hover: #193EDC;
|
|
283
|
+
--ps-accent-light: #BED6FF;
|
|
284
|
+
--ps-text-primary: #1C1D1E;
|
|
285
|
+
--ps-text-secondary: #454545;
|
|
286
|
+
--ps-text-muted: #84898C;
|
|
287
|
+
--ps-text-dim: #696E71;
|
|
288
|
+
--ps-border-color: #E7E7E7;
|
|
289
|
+
--ps-border-subtle: #F0F0F0;
|
|
290
|
+
--ps-bg-primary: #FFFFFF;
|
|
291
|
+
--ps-bg-secondary: #F8FAFF;
|
|
292
|
+
--ps-bg-tertiary: #F0F0F0;
|
|
293
|
+
--ps-input-bg: #FFFFFF;
|
|
294
|
+
--ps-input-border: #E7E7E7;
|
|
295
295
|
--ps-input-focus-border: var(--ps-accent);
|
|
296
|
-
--ps-error-color: #
|
|
297
|
-
--ps-success-color: #
|
|
298
|
-
--ps-warning-color: #
|
|
296
|
+
--ps-error-color: #E7000B;
|
|
297
|
+
--ps-success-color: #1C9D4C;
|
|
298
|
+
--ps-warning-color: #DF8400;
|
|
299
299
|
--ps-logo-height: 2.8vw;
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
.ps-tryon-btn {
|
|
303
303
|
display: inline-flex; align-items: center; gap: 0.42vw;
|
|
304
304
|
padding: var(--ps-btn-padding, 0.63vw 1.25vw);
|
|
305
|
-
background: var(--ps-btn-bg, var(--ps-accent)); color: var(--ps-btn-color, #
|
|
305
|
+
background: var(--ps-btn-bg, var(--ps-accent)); color: var(--ps-btn-color, #FFFFFF);
|
|
306
306
|
font-family: var(--ps-btn-font, system-ui, -apple-system, sans-serif);
|
|
307
307
|
font-size: var(--ps-btn-font-size, 0.73vw); font-weight: var(--ps-btn-font-weight, 600);
|
|
308
308
|
border: var(--ps-btn-border, none); border-radius: var(--ps-btn-radius, 0.42vw);
|
|
@@ -326,11 +326,11 @@ const STYLES = `
|
|
|
326
326
|
@keyframes ps-fade-in { from { opacity: 0; } to { opacity: 1; } }
|
|
327
327
|
|
|
328
328
|
.ps-tryon-modal {
|
|
329
|
-
background: var(--ps-modal-bg, #
|
|
329
|
+
background: var(--ps-modal-bg, #FFFFFF); color: var(--ps-modal-color, #1C1D1E);
|
|
330
330
|
border-radius: var(--ps-modal-radius, 0.83vw); width: var(--ps-modal-width, 100%);
|
|
331
331
|
max-width: var(--ps-modal-max-width, 36vw); max-height: 92vh; overflow-y: auto;
|
|
332
332
|
font-family: var(--ps-modal-font, system-ui, -apple-system, sans-serif);
|
|
333
|
-
box-shadow: 0 1.3vw 2.6vw rgba(0,0,0,0.
|
|
333
|
+
box-shadow: 0 1.3vw 2.6vw rgba(0,0,0,0.08); animation: ps-slide-up 0.3s ease;
|
|
334
334
|
scrollbar-width: thin; scrollbar-color: var(--ps-border-color) transparent;
|
|
335
335
|
flex-shrink: 0;
|
|
336
336
|
}
|
|
@@ -341,8 +341,8 @@ const STYLES = `
|
|
|
341
341
|
/* Header */
|
|
342
342
|
.ps-tryon-header {
|
|
343
343
|
display: flex; align-items: center; justify-content: space-between;
|
|
344
|
-
padding: 0.7vw 1.25vw; background: var(--ps-modal-header-bg, rgba(
|
|
345
|
-
border-bottom: 1px solid
|
|
344
|
+
padding: 0.7vw 1.25vw; background: var(--ps-modal-header-bg, rgba(255,255,255,0.95));
|
|
345
|
+
border-bottom: 1px solid var(--ps-border-color);
|
|
346
346
|
border-radius: var(--ps-modal-radius, 0.83vw) var(--ps-modal-radius, 0.83vw) 0 0;
|
|
347
347
|
backdrop-filter: blur(12px);
|
|
348
348
|
}
|
|
@@ -372,7 +372,7 @@ const STYLES = `
|
|
|
372
372
|
background: none; border: none; color: var(--ps-modal-close-color, #999);
|
|
373
373
|
cursor: pointer; border-radius: 0.31vw; transition: background 0.15s;
|
|
374
374
|
}
|
|
375
|
-
.ps-tryon-close:hover { background: rgba(
|
|
375
|
+
.ps-tryon-close:hover { background: rgba(0,0,0,0.06); }
|
|
376
376
|
|
|
377
377
|
/* Language switcher */
|
|
378
378
|
.ps-tryon-lang-wrap { position: relative; z-index: 10; }
|
|
@@ -384,7 +384,7 @@ const STYLES = `
|
|
|
384
384
|
transition: all 0.25s ease; font-family: inherit; white-space: nowrap;
|
|
385
385
|
}
|
|
386
386
|
.ps-tryon-lang-trigger:hover, .ps-tryon-lang-trigger.ps-active {
|
|
387
|
-
border-color: var(--ps-accent); color: var(--ps-accent); background: rgba(
|
|
387
|
+
border-color: var(--ps-accent); color: var(--ps-accent); background: rgba(33,84,239,0.06);
|
|
388
388
|
}
|
|
389
389
|
.ps-tryon-lang-trigger svg { stroke: currentColor; fill: none; flex-shrink: 0; }
|
|
390
390
|
.ps-tryon-lang-current {
|
|
@@ -401,7 +401,7 @@ const STYLES = `
|
|
|
401
401
|
background: var(--ps-bg-secondary); border: 1.5px solid var(--ps-border-color);
|
|
402
402
|
border-radius: 0.73vw;
|
|
403
403
|
box-shadow: 0 1vw 3vw rgba(0,0,0,0.5),
|
|
404
|
-
0 0 0 1px rgba(
|
|
404
|
+
0 0 0 1px rgba(0,0,0,0.02);
|
|
405
405
|
overflow: hidden;
|
|
406
406
|
animation: ps-lang-open 0.2s ease both;
|
|
407
407
|
}
|
|
@@ -421,8 +421,8 @@ const STYLES = `
|
|
|
421
421
|
border-radius: 0.47vw; transition: all 0.15s ease;
|
|
422
422
|
font-family: inherit; text-align: left;
|
|
423
423
|
}
|
|
424
|
-
.ps-tryon-lang-item:hover { background: rgba(
|
|
425
|
-
.ps-tryon-lang-item.ps-selected { background: rgba(
|
|
424
|
+
.ps-tryon-lang-item:hover { background: rgba(0,0,0,0.04); color: var(--ps-text-primary); }
|
|
425
|
+
.ps-tryon-lang-item.ps-selected { background: rgba(33,84,239,0.1); color: var(--ps-accent); }
|
|
426
426
|
.ps-tryon-lang-name {
|
|
427
427
|
flex: 1; font-size: 0.73vw; font-weight: 500;
|
|
428
428
|
}
|
|
@@ -452,7 +452,7 @@ const STYLES = `
|
|
|
452
452
|
.ps-tryon-welcome { text-align: center; padding: 0.5vw 0; }
|
|
453
453
|
.ps-tryon-welcome-hero { margin-bottom: 1.3vw; }
|
|
454
454
|
.ps-tryon-welcome-img-wrap { position: relative; display: inline-block; }
|
|
455
|
-
.ps-tryon-welcome-product { width: 9vw; height: 10.5vw; object-fit: contain; background: var(--ps-modal-bg, #
|
|
455
|
+
.ps-tryon-welcome-product { width: 9vw; height: 10.5vw; object-fit: contain; background: var(--ps-modal-bg, #FFFFFF); border-radius: 0.9vw; border: 2px solid var(--ps-border-color); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
|
|
456
456
|
.ps-tryon-welcome-sparkle { position: absolute; top: -0.5vw; right: -0.5vw; width: 1.8vw; height: 1.8vw; background: var(--ps-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: ps-float 3s ease-in-out infinite; }
|
|
457
457
|
.ps-tryon-welcome-sparkle svg { stroke: #111; width: 0.9vw; height: 0.9vw; }
|
|
458
458
|
@keyframes ps-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
|
|
@@ -466,7 +466,7 @@ const STYLES = `
|
|
|
466
466
|
.ps-tryon-feature-title { font-size: 0.85vw; font-weight: 600; color: var(--ps-text-primary); margin-bottom: 2px; }
|
|
467
467
|
.ps-tryon-feature-desc { font-size: 0.7vw; color: var(--ps-text-secondary); }
|
|
468
468
|
.ps-tryon-cta {
|
|
469
|
-
width: 100%; padding: 1vw; background: var(--ps-accent); color: #
|
|
469
|
+
width: 100%; padding: 1vw; background: var(--ps-accent); color: #fff; border: none;
|
|
470
470
|
border-radius: 0.8vw; font-size: 1vw; font-weight: 700; cursor: pointer;
|
|
471
471
|
display: flex; align-items: center; justify-content: center; gap: 0.5vw; transition: all 0.2s;
|
|
472
472
|
font-family: var(--ps-modal-font, system-ui, sans-serif);
|
|
@@ -477,18 +477,18 @@ const STYLES = `
|
|
|
477
477
|
|
|
478
478
|
/* Upload */
|
|
479
479
|
.ps-tryon-upload {
|
|
480
|
-
border: 2px dashed var(--ps-upload-border,
|
|
480
|
+
border: 2px dashed var(--ps-upload-border, var(--ps-border-color)); border-radius: 0.63vw;
|
|
481
481
|
padding: 2.08vw 1.25vw; text-align: center; cursor: pointer; transition: all 0.2s;
|
|
482
482
|
background: var(--ps-upload-bg, transparent); display: flex; flex-direction: column; align-items: center;
|
|
483
483
|
}
|
|
484
|
-
.ps-tryon-upload:hover, .ps-tryon-drag-over { border-color: var(--ps-accent); background: rgba(
|
|
484
|
+
.ps-tryon-upload:hover, .ps-tryon-drag-over { border-color: var(--ps-accent); background: rgba(33,84,239,0.05); }
|
|
485
485
|
.ps-tryon-upload svg { color: var(--ps-upload-icon-color, var(--ps-accent)); margin-bottom: 0.63vw; }
|
|
486
|
-
.ps-tryon-upload-text { font-size: 0.73vw; color: var(--ps-upload-color,
|
|
486
|
+
.ps-tryon-upload-text { font-size: 0.73vw; color: var(--ps-upload-color, var(--ps-text-primary)); margin: 0 0 0.21vw; }
|
|
487
487
|
.ps-tryon-upload-hint { font-size: 0.63vw; color: var(--ps-text-secondary); margin: 0; }
|
|
488
488
|
.ps-tryon-preview {
|
|
489
489
|
position: relative; margin-bottom: 0.21vw;
|
|
490
490
|
height: 20vw; border-radius: 0.63vw;
|
|
491
|
-
overflow: hidden; background:
|
|
491
|
+
overflow: hidden; background: var(--ps-bg-tertiary);
|
|
492
492
|
}
|
|
493
493
|
.ps-tryon-preview-blur {
|
|
494
494
|
position: absolute; inset: -20px; background-size: cover; background-position: center;
|
|
@@ -706,26 +706,26 @@ const STYLES = `
|
|
|
706
706
|
margin-bottom: 0.6vw;
|
|
707
707
|
}
|
|
708
708
|
.ps-tryon-v2-title {
|
|
709
|
-
font-size: 1.2vw; font-weight: 300; color:
|
|
709
|
+
font-size: 1.2vw; font-weight: 300; color: var(--ps-text-primary);
|
|
710
710
|
letter-spacing: 0.2em; text-transform: uppercase; margin: 0;
|
|
711
711
|
font-family: inherit;
|
|
712
712
|
}
|
|
713
713
|
.ps-tryon-v2-subtitle {
|
|
714
|
-
font-size: 0.65vw; font-weight: 400; color: rgba(
|
|
714
|
+
font-size: 0.65vw; font-weight: 400; color: rgba(0,0,0,0.25);
|
|
715
715
|
margin: 0.15vw 0 0; letter-spacing: 0.03em;
|
|
716
716
|
}
|
|
717
717
|
.ps-tryon-v2-unit-toggle {
|
|
718
718
|
display: flex; gap: 0;
|
|
719
|
-
border: 1px solid rgba(
|
|
719
|
+
border: 1px solid rgba(0,0,0,0.06); border-radius: 2vw; overflow: hidden;
|
|
720
720
|
}
|
|
721
721
|
.ps-tryon-v2-unit {
|
|
722
722
|
background: none; border: none; padding: 0.22vw 0.7vw;
|
|
723
|
-
font-size: 0.55vw; font-weight: 700; color: rgba(
|
|
723
|
+
font-size: 0.55vw; font-weight: 700; color: rgba(0,0,0,0.2);
|
|
724
724
|
cursor: pointer; font-family: inherit; letter-spacing: 0.1em;
|
|
725
725
|
transition: all 0.25s;
|
|
726
726
|
}
|
|
727
727
|
.ps-tryon-v2-unit.ps-on {
|
|
728
|
-
background: rgba(
|
|
728
|
+
background: rgba(33,84,239,0.15); color: var(--ps-accent);
|
|
729
729
|
}
|
|
730
730
|
|
|
731
731
|
/* Body type card selector */
|
|
@@ -739,15 +739,15 @@ const STYLES = `
|
|
|
739
739
|
flex: 1; min-width: 0;
|
|
740
740
|
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
|
741
741
|
gap: 0.2vw; padding: 0.4vw 0.2vw;
|
|
742
|
-
border: 1.5px solid rgba(
|
|
743
|
-
background: transparent; color: rgba(
|
|
742
|
+
border: 1.5px solid rgba(0,0,0,0.06); border-radius: 0.35vw;
|
|
743
|
+
background: transparent; color: rgba(0,0,0,0.3);
|
|
744
744
|
cursor: pointer; font-family: inherit; transition: all 0.2s;
|
|
745
745
|
}
|
|
746
746
|
.ps-tryon-bodytype-card:hover {
|
|
747
|
-
border-color: var(--ps-accent); background: rgba(
|
|
747
|
+
border-color: var(--ps-accent); background: rgba(33,84,239,0.06);
|
|
748
748
|
}
|
|
749
749
|
.ps-tryon-bodytype-card.ps-active {
|
|
750
|
-
border-color: var(--ps-accent); background: rgba(
|
|
750
|
+
border-color: var(--ps-accent); background: rgba(33,84,239,0.12);
|
|
751
751
|
color: var(--ps-accent);
|
|
752
752
|
}
|
|
753
753
|
.ps-tryon-bodytype-label {
|
|
@@ -757,26 +757,26 @@ const STYLES = `
|
|
|
757
757
|
/* Separator */
|
|
758
758
|
.ps-tryon-v2-sep {
|
|
759
759
|
height: 1px;
|
|
760
|
-
background: linear-gradient(90deg, transparent, rgba(
|
|
760
|
+
background: linear-gradient(90deg, transparent, rgba(33,84,239,0.2), transparent);
|
|
761
761
|
margin-bottom: 0.8vw;
|
|
762
762
|
}
|
|
763
763
|
|
|
764
764
|
/* Profile select */
|
|
765
765
|
.ps-tryon-v2-profile {
|
|
766
766
|
width: 100%; padding: 0.3vw 0.5vw; margin-bottom: 0.6vw;
|
|
767
|
-
background: rgba(
|
|
768
|
-
border-radius: 0.3vw; color: rgba(
|
|
767
|
+
background: rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.04);
|
|
768
|
+
border-radius: 0.3vw; color: rgba(0,0,0,0.08);
|
|
769
769
|
font-size: 0.6vw; font-family: inherit; cursor: pointer; outline: none;
|
|
770
770
|
appearance: none; -webkit-appearance: none;
|
|
771
771
|
transition: border-color 0.2s;
|
|
772
772
|
}
|
|
773
|
-
.ps-tryon-v2-profile:focus { border-color: rgba(
|
|
773
|
+
.ps-tryon-v2-profile:focus { border-color: rgba(33,84,239,0.3); }
|
|
774
774
|
|
|
775
775
|
/* Fields container — scrollable */
|
|
776
776
|
.ps-tryon-v2-fields {
|
|
777
777
|
flex: 1; min-height: 0; overflow-y: auto;
|
|
778
778
|
display: flex; flex-direction: column; gap: 0;
|
|
779
|
-
scrollbar-width: thin; scrollbar-color: rgba(
|
|
779
|
+
scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.04) transparent;
|
|
780
780
|
}
|
|
781
781
|
|
|
782
782
|
/* Override float-row for inline look inside v2 */
|
|
@@ -791,7 +791,7 @@ const STYLES = `
|
|
|
791
791
|
.ps-tryon-v2-fields .ps-tryon-sf-float-label {
|
|
792
792
|
flex-shrink: 0;
|
|
793
793
|
font-size: 0.75vw; font-weight: 500;
|
|
794
|
-
color: rgba(
|
|
794
|
+
color: rgba(0,0,0,0.08);
|
|
795
795
|
letter-spacing: 0.04em;
|
|
796
796
|
margin: 0; white-space: nowrap;
|
|
797
797
|
transition: color 0.25s;
|
|
@@ -801,9 +801,9 @@ const STYLES = `
|
|
|
801
801
|
}
|
|
802
802
|
.ps-tryon-v2-fields .ps-tryon-sf-input {
|
|
803
803
|
flex: 1; border: none;
|
|
804
|
-
border-bottom: 1.5px solid rgba(
|
|
804
|
+
border-bottom: 1.5px solid rgba(0,0,0,0.1);
|
|
805
805
|
background: none; padding: 0.25vw 0;
|
|
806
|
-
font-size: 1vw; font-weight: 400; color:
|
|
806
|
+
font-size: 1vw; font-weight: 400; color: var(--ps-text-primary);
|
|
807
807
|
font-family: inherit; outline: none;
|
|
808
808
|
-moz-appearance: textfield;
|
|
809
809
|
transition: border-color 0.3s;
|
|
@@ -812,7 +812,7 @@ const STYLES = `
|
|
|
812
812
|
border-bottom-color: var(--ps-accent);
|
|
813
813
|
}
|
|
814
814
|
.ps-tryon-v2-fields .ps-tryon-sf-input::placeholder {
|
|
815
|
-
color: rgba(
|
|
815
|
+
color: rgba(0,0,0,0.08);
|
|
816
816
|
}
|
|
817
817
|
.ps-tryon-v2-fields .ps-tryon-sf-input::-webkit-outer-spin-button,
|
|
818
818
|
.ps-tryon-v2-fields .ps-tryon-sf-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
|
|
@@ -830,7 +830,7 @@ const STYLES = `
|
|
|
830
830
|
}
|
|
831
831
|
.ps-tryon-v2-cta:hover {
|
|
832
832
|
background: var(--ps-accent-light);
|
|
833
|
-
box-shadow: 0 0.3vw 1.5vw rgba(
|
|
833
|
+
box-shadow: 0 0.3vw 1.5vw rgba(33,84,239,0.25);
|
|
834
834
|
transform: translateY(-1px);
|
|
835
835
|
}
|
|
836
836
|
.ps-tryon-v2-cta svg { width: 0.8vw; height: 0.8vw; stroke: currentColor; }
|
|
@@ -867,7 +867,7 @@ const STYLES = `
|
|
|
867
867
|
display: flex; align-items: center; gap: 0.6vw;
|
|
868
868
|
padding: 0.6vw 0.7vw;
|
|
869
869
|
background: rgba(255,255,255,0.02);
|
|
870
|
-
border: 1px solid rgba(
|
|
870
|
+
border: 1px solid rgba(0,0,0,0.04);
|
|
871
871
|
border-radius: 0.5vw;
|
|
872
872
|
cursor: pointer; font-family: inherit;
|
|
873
873
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -880,13 +880,13 @@ const STYLES = `
|
|
|
880
880
|
.ps-tryon-sr-card-row:nth-child(4) { animation-delay: 0.18s; }
|
|
881
881
|
.ps-tryon-sr-card-row:hover {
|
|
882
882
|
border-color: var(--ps-accent);
|
|
883
|
-
background: rgba(
|
|
883
|
+
background: rgba(33,84,239,0.04);
|
|
884
884
|
transform: translateX(0.15vw);
|
|
885
885
|
}
|
|
886
886
|
.ps-tryon-sr-card-icon {
|
|
887
887
|
width: 2vw; height: 2vw; flex-shrink: 0;
|
|
888
888
|
display: flex; align-items: center; justify-content: center;
|
|
889
|
-
background: rgba(
|
|
889
|
+
background: rgba(33,84,239,0.06); border: 1px solid rgba(33,84,239,0.1);
|
|
890
890
|
border-radius: 50%; color: var(--ps-accent);
|
|
891
891
|
}
|
|
892
892
|
.ps-tryon-sr-card-icon svg { stroke: currentColor; }
|
|
@@ -898,13 +898,13 @@ const STYLES = `
|
|
|
898
898
|
text-transform: capitalize;
|
|
899
899
|
}
|
|
900
900
|
.ps-tryon-sr-card-fit {
|
|
901
|
-
font-size: 0.52vw; color: rgba(
|
|
901
|
+
font-size: 0.52vw; color: rgba(0,0,0,0.3); letter-spacing: 0.03em;
|
|
902
902
|
}
|
|
903
903
|
.ps-tryon-sr-card-size {
|
|
904
904
|
font-size: 1.3vw; font-weight: 300; color: var(--ps-accent);
|
|
905
905
|
letter-spacing: -0.01em;
|
|
906
906
|
}
|
|
907
|
-
.ps-tryon-sr-card-row > svg { color: rgba(
|
|
907
|
+
.ps-tryon-sr-card-row > svg { color: rgba(0,0,0,0.1); flex-shrink: 0; transition: color 0.2s; }
|
|
908
908
|
.ps-tryon-sr-card-row:hover > svg { color: var(--ps-accent); }
|
|
909
909
|
|
|
910
910
|
/* ── Result cards v2: bold, clear, unmissable ── */
|
|
@@ -916,7 +916,7 @@ const STYLES = `
|
|
|
916
916
|
flex: 1 1 45%; max-width: 49%;
|
|
917
917
|
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
|
918
918
|
text-align: center;
|
|
919
|
-
background: rgba(
|
|
919
|
+
background: rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.06);
|
|
920
920
|
border-radius: 0.6vw; padding: 1vw 0.5vw;
|
|
921
921
|
cursor: pointer; font-family: inherit;
|
|
922
922
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -927,7 +927,7 @@ const STYLES = `
|
|
|
927
927
|
.ps-tryon-sr-card-v2.ps-full { flex: 1 1 100%; max-width: 100%; min-height: 5vw; padding: 0.8vw; }
|
|
928
928
|
.ps-tryon-sr-card-v2:hover {
|
|
929
929
|
border-color: var(--ps-accent);
|
|
930
|
-
background: rgba(
|
|
930
|
+
background: rgba(33,84,239,0.06);
|
|
931
931
|
transform: translateY(-2px);
|
|
932
932
|
box-shadow: 0 0.4vw 1.5vw rgba(0,0,0,0.3);
|
|
933
933
|
}
|
|
@@ -935,11 +935,11 @@ const STYLES = `
|
|
|
935
935
|
display: flex; flex-direction: column; align-items: center; gap: 0.15vw; z-index: 1;
|
|
936
936
|
}
|
|
937
937
|
.ps-tryon-sr-card-v2-label {
|
|
938
|
-
font-size: 0.6vw; font-weight: 500; color: rgba(
|
|
938
|
+
font-size: 0.6vw; font-weight: 500; color: rgba(0,0,0,0.08);
|
|
939
939
|
text-transform: uppercase; letter-spacing: 0.1em;
|
|
940
940
|
}
|
|
941
941
|
.ps-tryon-sr-card-v2-value {
|
|
942
|
-
font-size: 2.2vw; font-weight: 200; color:
|
|
942
|
+
font-size: 2.2vw; font-weight: 200; color: var(--ps-text-primary);
|
|
943
943
|
line-height: 1; letter-spacing: -0.02em;
|
|
944
944
|
}
|
|
945
945
|
.ps-tryon-sr-card-v2.ps-full .ps-tryon-sr-card-v2-value { font-size: 1.8vw; }
|
|
@@ -947,7 +947,7 @@ const STYLES = `
|
|
|
947
947
|
font-size: 0.5vw; font-weight: 600; color: var(--ps-accent);
|
|
948
948
|
text-transform: uppercase; letter-spacing: 0.1em;
|
|
949
949
|
margin-top: 0.15vw;
|
|
950
|
-
border: 1px solid rgba(
|
|
950
|
+
border: 1px solid rgba(33,84,239,0.25); border-radius: 2vw;
|
|
951
951
|
padding: 0.1vw 0.5vw;
|
|
952
952
|
}
|
|
953
953
|
.ps-tryon-sr-card-v2-img { display: none; }
|
|
@@ -956,26 +956,26 @@ const STYLES = `
|
|
|
956
956
|
/* ── Photo guide v2 ── */
|
|
957
957
|
.ps-tryon-guide-drop-v2 {
|
|
958
958
|
width: 90%; height: 90%; border-radius: 0.6vw;
|
|
959
|
-
border: 1.5px dashed rgba(
|
|
959
|
+
border: 1.5px dashed rgba(0,0,0,0.08);
|
|
960
960
|
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
|
961
961
|
gap: 0.3vw; cursor: pointer; transition: all 0.25s;
|
|
962
962
|
position: relative; overflow: hidden;
|
|
963
963
|
}
|
|
964
964
|
.ps-tryon-guide-drop-v2:hover, .ps-tryon-guide-drop-v2.ps-drag {
|
|
965
|
-
border-color: var(--ps-accent); background: rgba(
|
|
965
|
+
border-color: var(--ps-accent); background: rgba(33,84,239,0.04);
|
|
966
966
|
}
|
|
967
|
-
.ps-tryon-guide-drop-v2.ps-has { border-style: solid; border-color: rgba(
|
|
968
|
-
.ps-tryon-guide-drop-v2 svg { color: rgba(
|
|
969
|
-
.ps-tryon-guide-drop-v2-text { font-size: 0.8vw; font-weight: 500; color: rgba(
|
|
970
|
-
.ps-tryon-guide-drop-v2-hint { font-size: 0.55vw; color: rgba(
|
|
967
|
+
.ps-tryon-guide-drop-v2.ps-has { border-style: solid; border-color: rgba(0,0,0,0.06); cursor: default; }
|
|
968
|
+
.ps-tryon-guide-drop-v2 svg { color: rgba(0,0,0,0.2); }
|
|
969
|
+
.ps-tryon-guide-drop-v2-text { font-size: 0.8vw; font-weight: 500; color: rgba(0,0,0,0.5); }
|
|
970
|
+
.ps-tryon-guide-drop-v2-hint { font-size: 0.55vw; color: rgba(0,0,0,0.15); }
|
|
971
971
|
.ps-tryon-guide-drop-v2-img {
|
|
972
972
|
width: 100%; height: 100%; object-fit: contain; border-radius: 0.5vw;
|
|
973
973
|
}
|
|
974
974
|
.ps-tryon-guide-drop-v2-remove {
|
|
975
975
|
position: absolute; top: 0.4vw; right: 0.4vw;
|
|
976
976
|
width: 1.4vw; height: 1.4vw; border-radius: 50%;
|
|
977
|
-
background: rgba(0,0,0,0.7); border: 1px solid rgba(
|
|
978
|
-
color:
|
|
977
|
+
background: rgba(0,0,0,0.7); border: 1px solid rgba(0,0,0,0.08);
|
|
978
|
+
color: var(--ps-text-muted); font-size: 0.6vw; cursor: pointer;
|
|
979
979
|
display: flex; align-items: center; justify-content: center;
|
|
980
980
|
transition: background 0.2s;
|
|
981
981
|
}
|
|
@@ -987,7 +987,7 @@ const STYLES = `
|
|
|
987
987
|
}
|
|
988
988
|
.ps-tryon-guide-v2-tip {
|
|
989
989
|
display: flex; align-items: center; gap: 0.4vw;
|
|
990
|
-
font-size: 0.65vw; color: rgba(
|
|
990
|
+
font-size: 0.65vw; color: rgba(0,0,0,0.5);
|
|
991
991
|
}
|
|
992
992
|
.ps-tryon-guide-v2-tip-icon {
|
|
993
993
|
width: 1.2vw; height: 1.2vw; flex-shrink: 0;
|
|
@@ -1033,13 +1033,13 @@ const STYLES = `
|
|
|
1033
1033
|
margin-top: 0.5vw; flex-shrink: 0;
|
|
1034
1034
|
}
|
|
1035
1035
|
.ps-tryon-v2-alt button {
|
|
1036
|
-
background: none; border: none; color: rgba(
|
|
1036
|
+
background: none; border: none; color: rgba(33,84,239,0.5);
|
|
1037
1037
|
font-size: 0.58vw; font-weight: 500; cursor: pointer;
|
|
1038
1038
|
font-family: inherit; letter-spacing: 0.04em;
|
|
1039
1039
|
transition: color 0.2s; padding: 0;
|
|
1040
1040
|
}
|
|
1041
1041
|
.ps-tryon-v2-alt button:hover { color: var(--ps-accent); }
|
|
1042
|
-
.ps-tryon-v2-alt span { color: rgba(
|
|
1042
|
+
.ps-tryon-v2-alt span { color: rgba(0,0,0,0.06); font-size: 0.55vw; }
|
|
1043
1043
|
|
|
1044
1044
|
/* Active field row highlight (legacy) */
|
|
1045
1045
|
.ps-tryon-sf-row-active { border-bottom-color: var(--ps-accent); }
|
|
@@ -1052,21 +1052,21 @@ const STYLES = `
|
|
|
1052
1052
|
font-size: 1.1vw; font-weight: 300; color: var(--ps-text-primary);
|
|
1053
1053
|
margin: 0 0 0.8vw; letter-spacing: 0.12em; text-transform: uppercase;
|
|
1054
1054
|
text-align: left;
|
|
1055
|
-
background: linear-gradient(90deg, #fff 0%, rgba(
|
|
1055
|
+
background: linear-gradient(90deg, #fff 0%, rgba(0,0,0,0.5) 100%);
|
|
1056
1056
|
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
|
|
1057
1057
|
background-clip: text;
|
|
1058
1058
|
}
|
|
1059
1059
|
.ps-tryon-sf-unit-tabs {
|
|
1060
|
-
display: inline-flex; gap: 0; border: 1px solid rgba(
|
|
1060
|
+
display: inline-flex; gap: 0; border: 1px solid rgba(0,0,0,0.06);
|
|
1061
1061
|
border-radius: 0.3vw; overflow: hidden; margin-bottom: 1vw; align-self: flex-start;
|
|
1062
1062
|
}
|
|
1063
1063
|
.ps-tryon-sf-unit-tab {
|
|
1064
1064
|
background: none; border: none; padding: 0.3vw 0.9vw;
|
|
1065
|
-
font-size: 0.62vw; font-weight: 600; color: rgba(
|
|
1065
|
+
font-size: 0.62vw; font-weight: 600; color: rgba(0,0,0,0.25); cursor: pointer;
|
|
1066
1066
|
font-family: inherit; transition: all 0.25s; letter-spacing: 0.06em; text-transform: uppercase;
|
|
1067
1067
|
}
|
|
1068
|
-
.ps-tryon-sf-unit-tab:hover { color: rgba(
|
|
1069
|
-
.ps-tryon-sf-unit-tab.ps-active { color: var(--ps-accent); background: rgba(
|
|
1068
|
+
.ps-tryon-sf-unit-tab:hover { color: rgba(0,0,0,0.5); }
|
|
1069
|
+
.ps-tryon-sf-unit-tab.ps-active { color: var(--ps-accent); background: rgba(33,84,239,0.08); }
|
|
1070
1070
|
|
|
1071
1071
|
.ps-tryon-sf-profile-bar { margin-bottom: 0.7vw; }
|
|
1072
1072
|
.ps-tryon-sf-profile-select {
|
|
@@ -1098,7 +1098,7 @@ const STYLES = `
|
|
|
1098
1098
|
/* Label — subtle, editorial */
|
|
1099
1099
|
.ps-tryon-sf-float-label {
|
|
1100
1100
|
display: block;
|
|
1101
|
-
font-size: 0.58vw; font-weight: 500; color: rgba(
|
|
1101
|
+
font-size: 0.58vw; font-weight: 500; color: rgba(0,0,0,0.25);
|
|
1102
1102
|
letter-spacing: 0.1em; text-transform: uppercase;
|
|
1103
1103
|
margin-bottom: 0.15vw;
|
|
1104
1104
|
transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -1111,7 +1111,7 @@ const STYLES = `
|
|
|
1111
1111
|
.ps-tryon-sf-input {
|
|
1112
1112
|
width: 100%; box-sizing: border-box;
|
|
1113
1113
|
background: none; border: none;
|
|
1114
|
-
border-bottom: 1px solid rgba(
|
|
1114
|
+
border-bottom: 1px solid rgba(0,0,0,0.06);
|
|
1115
1115
|
color: var(--ps-text-primary);
|
|
1116
1116
|
font-size: 0.85vw; font-weight: 300; font-family: inherit;
|
|
1117
1117
|
padding: 0.4vw 0; letter-spacing: 0.02em;
|
|
@@ -1123,12 +1123,12 @@ const STYLES = `
|
|
|
1123
1123
|
border-bottom-color: var(--ps-accent);
|
|
1124
1124
|
}
|
|
1125
1125
|
.ps-tryon-sf-input:not(:placeholder-shown) {
|
|
1126
|
-
border-bottom-color: rgba(
|
|
1126
|
+
border-bottom-color: rgba(0,0,0,0.1);
|
|
1127
1127
|
}
|
|
1128
1128
|
.ps-tryon-sf-input:focus:not(:placeholder-shown) {
|
|
1129
1129
|
border-bottom-color: var(--ps-accent);
|
|
1130
1130
|
}
|
|
1131
|
-
.ps-tryon-sf-input::placeholder { color: rgba(
|
|
1131
|
+
.ps-tryon-sf-input::placeholder { color: rgba(0,0,0,0.08); }
|
|
1132
1132
|
.ps-tryon-sf-input::-webkit-outer-spin-button,
|
|
1133
1133
|
.ps-tryon-sf-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
|
|
1134
1134
|
|
|
@@ -1180,13 +1180,13 @@ const STYLES = `
|
|
|
1180
1180
|
/* Mode switch — below button */
|
|
1181
1181
|
.ps-tryon-sf-mode-switch { margin-top: 0.5vw; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.25vw; }
|
|
1182
1182
|
.ps-tryon-sf-switch-btn {
|
|
1183
|
-
background: none; border: none; color: rgba(
|
|
1183
|
+
background: none; border: none; color: rgba(33,84,239,0.7); font-size: 0.65vw;
|
|
1184
1184
|
font-weight: 500; cursor: pointer; font-family: inherit;
|
|
1185
1185
|
display: inline-flex; align-items: center; gap: 0.2vw;
|
|
1186
1186
|
transition: color 0.25s; padding: 0.15vw 0; letter-spacing: 0.03em;
|
|
1187
1187
|
}
|
|
1188
1188
|
.ps-tryon-sf-switch-btn:hover { color: var(--ps-accent); }
|
|
1189
|
-
.ps-tryon-sf-switch-divider { color: rgba(
|
|
1189
|
+
.ps-tryon-sf-switch-divider { color: rgba(0,0,0,0.08); font-size: 0.65vw; font-weight: 300; }
|
|
1190
1190
|
.ps-tryon-sf-switch-btn svg { stroke: currentColor; width: 0.8vw; height: 0.8vw; }
|
|
1191
1191
|
|
|
1192
1192
|
/* How to measure — overlaid on product image bottom-left */
|
|
@@ -1199,7 +1199,7 @@ const STYLES = `
|
|
|
1199
1199
|
padding: 0.4vw 0.8vw; border-radius: 0.45vw; transition: all 0.2s;
|
|
1200
1200
|
}
|
|
1201
1201
|
.ps-tryon-sf-measure-overlay:hover { border-color: var(--ps-accent); color: var(--ps-text-primary); }
|
|
1202
|
-
.ps-tryon-sf-measure-overlay.ps-active { border-color: var(--ps-accent); color: var(--ps-accent); background: rgba(
|
|
1202
|
+
.ps-tryon-sf-measure-overlay.ps-active { border-color: var(--ps-accent); color: var(--ps-accent); background: rgba(33,84,239,0.15); }
|
|
1203
1203
|
.ps-tryon-sf-measure-overlay svg { stroke: currentColor; }
|
|
1204
1204
|
|
|
1205
1205
|
/* Estimation review view */
|
|
@@ -1211,7 +1211,7 @@ const STYLES = `
|
|
|
1211
1211
|
}
|
|
1212
1212
|
.ps-tryon-sf-estimated-badge {
|
|
1213
1213
|
display: inline-block; font-size: 0.45vw; padding: 0.08vw 0.25vw;
|
|
1214
|
-
border-radius: 0.2vw; background: rgba(
|
|
1214
|
+
border-radius: 0.2vw; background: rgba(33,84,239,0.15); color: var(--ps-accent);
|
|
1215
1215
|
letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; width: fit-content;
|
|
1216
1216
|
}
|
|
1217
1217
|
.ps-tryon-sf-edit-icon {
|
|
@@ -1254,7 +1254,7 @@ const STYLES = `
|
|
|
1254
1254
|
font-weight: 600; cursor: pointer; font-family: inherit;
|
|
1255
1255
|
flex-shrink: 0; letter-spacing: 0.06em; text-transform: uppercase;
|
|
1256
1256
|
transition: background 0.2s ease, opacity 0.2s ease;
|
|
1257
|
-
box-shadow: 0 0.2vw 1vw rgba(
|
|
1257
|
+
box-shadow: 0 0.2vw 1vw rgba(33,84,239,0.15);
|
|
1258
1258
|
display: inline-flex; align-items: center; gap: 0.35vw;
|
|
1259
1259
|
}
|
|
1260
1260
|
.ps-tryon-sf-next:hover { background: var(--ps-accent-hover); }
|
|
@@ -1282,7 +1282,7 @@ const STYLES = `
|
|
|
1282
1282
|
padding: 0.3vw 1.4vw; cursor: pointer; font-family: inherit; transition: all 0.15s;
|
|
1283
1283
|
}
|
|
1284
1284
|
.ps-hpk-toggle button.ps-on {
|
|
1285
|
-
background: var(--ps-accent); color: #
|
|
1285
|
+
background: var(--ps-accent); color: #fff; border-radius: 2vw;
|
|
1286
1286
|
}
|
|
1287
1287
|
|
|
1288
1288
|
/* Main visual area */
|
|
@@ -1344,16 +1344,16 @@ const STYLES = `
|
|
|
1344
1344
|
/* Horizontal indicator line — spans full width */
|
|
1345
1345
|
.ps-hpk-line {
|
|
1346
1346
|
position: absolute; left: 0; right: 0; height: 2px;
|
|
1347
|
-
background: rgba(
|
|
1347
|
+
background: rgba(33,84,239,0.5); z-index: 3;
|
|
1348
1348
|
transform: translateY(50%); pointer-events: none;
|
|
1349
|
-
box-shadow: 0 0 8px rgba(
|
|
1349
|
+
box-shadow: 0 0 8px rgba(33,84,239,0.3);
|
|
1350
1350
|
}
|
|
1351
1351
|
.ps-hpk-line::before {
|
|
1352
1352
|
content: ''; position: absolute; left: 50%; top: 50%;
|
|
1353
1353
|
transform: translate(-50%, -50%);
|
|
1354
1354
|
width: 10px; height: 10px; border-radius: 50%;
|
|
1355
1355
|
border: 2px solid var(--ps-accent); background: var(--ps-bg-secondary);
|
|
1356
|
-
box-shadow: 0 0 8px rgba(
|
|
1356
|
+
box-shadow: 0 0 8px rgba(33,84,239,0.6);
|
|
1357
1357
|
}
|
|
1358
1358
|
|
|
1359
1359
|
/* ══════════ Weight Picker ══════════ */
|
|
@@ -1398,7 +1398,7 @@ const STYLES = `
|
|
|
1398
1398
|
.ps-wpk-ind-dot {
|
|
1399
1399
|
width: 10px; height: 10px; border-radius: 50%;
|
|
1400
1400
|
background: var(--ps-accent); border: 2px solid #fff; flex-shrink: 0;
|
|
1401
|
-
box-shadow: 0 0 8px rgba(
|
|
1401
|
+
box-shadow: 0 0 8px rgba(33,84,239,0.7);
|
|
1402
1402
|
}
|
|
1403
1403
|
|
|
1404
1404
|
.ps-wpk-labels {
|
|
@@ -1480,7 +1480,7 @@ const STYLES = `
|
|
|
1480
1480
|
padding: 0.31vw 0.73vw; background: transparent; border: none; color: var(--ps-text-secondary);
|
|
1481
1481
|
font-size: 0.63vw; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit;
|
|
1482
1482
|
}
|
|
1483
|
-
.ps-tryon-unit-btn.ps-active { background: var(--ps-accent); color: #
|
|
1483
|
+
.ps-tryon-unit-btn.ps-active { background: var(--ps-accent); color: #fff; }
|
|
1484
1484
|
|
|
1485
1485
|
/* Unit tabs (cm / inches) */
|
|
1486
1486
|
.ps-tryon-unit-tabs {
|
|
@@ -1494,9 +1494,9 @@ const STYLES = `
|
|
|
1494
1494
|
position: relative;
|
|
1495
1495
|
}
|
|
1496
1496
|
.ps-tryon-unit-tab:first-child { border-right: 1px solid var(--ps-border-color); }
|
|
1497
|
-
.ps-tryon-unit-tab:hover { color: var(--ps-text-secondary); background: rgba(
|
|
1497
|
+
.ps-tryon-unit-tab:hover { color: var(--ps-text-secondary); background: rgba(0,0,0,0.02); }
|
|
1498
1498
|
.ps-tryon-unit-tab.ps-active {
|
|
1499
|
-
background: var(--ps-accent); color: #
|
|
1499
|
+
background: var(--ps-accent); color: #fff;
|
|
1500
1500
|
}
|
|
1501
1501
|
.ps-tryon-section-label { font-size: 0.57vw; font-weight: 700; color: var(--ps-accent); text-transform: uppercase; letter-spacing: 0.08em; margin: 0.21vw 0 0.1vw; }
|
|
1502
1502
|
.ps-tryon-optional-section { border-top: 1px solid var(--ps-border-color); padding-top: 0.52vw; margin-top: 0.31vw; }
|
|
@@ -1537,13 +1537,13 @@ const STYLES = `
|
|
|
1537
1537
|
}
|
|
1538
1538
|
.ps-tryon-scan-overlay {
|
|
1539
1539
|
position: absolute; inset: 0;
|
|
1540
|
-
background: linear-gradient(180deg, rgba(
|
|
1540
|
+
background: linear-gradient(180deg, rgba(33,84,239,0.05) 0%, transparent 40%, transparent 60%, rgba(33,84,239,0.05) 100%);
|
|
1541
1541
|
pointer-events: none;
|
|
1542
1542
|
}
|
|
1543
1543
|
.ps-tryon-scan-line {
|
|
1544
1544
|
position: absolute; left: 0; right: 0; height: 3px;
|
|
1545
1545
|
background: linear-gradient(90deg, transparent, #bb945c 20%, var(--ps-accent-light) 50%, #bb945c 80%, transparent);
|
|
1546
|
-
box-shadow: 0 0 0.78vw rgba(
|
|
1546
|
+
box-shadow: 0 0 0.78vw rgba(33,84,239,0.6), 0 0 2.08vw rgba(33,84,239,0.2);
|
|
1547
1547
|
animation: ps-scan 2.5s ease-in-out infinite;
|
|
1548
1548
|
pointer-events: none; z-index: 2;
|
|
1549
1549
|
}
|
|
@@ -1671,10 +1671,10 @@ const STYLES = `
|
|
|
1671
1671
|
flex: 1; padding: 0.63vw; font-family: var(--ps-modal-font, system-ui, sans-serif);
|
|
1672
1672
|
font-size: 0.68vw; font-weight: 600; border-radius: 0.52vw; cursor: pointer; transition: all 0.2s; border: none;
|
|
1673
1673
|
}
|
|
1674
|
-
.ps-tryon-btn-download { background: var(--ps-accent); color: #
|
|
1674
|
+
.ps-tryon-btn-download { background: var(--ps-accent); color: #fff; }
|
|
1675
1675
|
.ps-tryon-btn-download:hover { opacity: 0.9; }
|
|
1676
|
-
.ps-tryon-btn-retry { background: rgba(
|
|
1677
|
-
.ps-tryon-btn-retry:hover { background: rgba(
|
|
1676
|
+
.ps-tryon-btn-retry { background: rgba(0,0,0,0.06); color: var(--ps-text-primary); border: 1px solid var(--ps-border-color) !important; }
|
|
1677
|
+
.ps-tryon-btn-retry:hover { background: rgba(0,0,0,0.08); }
|
|
1678
1678
|
|
|
1679
1679
|
/* ── Size Result ── */
|
|
1680
1680
|
.ps-tryon-sr { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
|
|
@@ -1704,7 +1704,7 @@ const STYLES = `
|
|
|
1704
1704
|
}
|
|
1705
1705
|
.ps-tryon-sr-chart-btn {
|
|
1706
1706
|
position: absolute; bottom: 1vw; left: 1vw;
|
|
1707
|
-
background: rgba(255,255,255,0.95); color:
|
|
1707
|
+
background: rgba(255,255,255,0.95); color: var(--ps-text-primary); border: none;
|
|
1708
1708
|
padding: 0.4vw 0.8vw; border-radius: 0.3vw; font-size: 0.7vw; font-weight: 600;
|
|
1709
1709
|
cursor: pointer; font-family: inherit; transition: all 0.2s;
|
|
1710
1710
|
}
|
|
@@ -1742,7 +1742,7 @@ const STYLES = `
|
|
|
1742
1742
|
.ps-tryon-sr-size-changed {
|
|
1743
1743
|
display: inline-flex; align-items: center; gap: 0.3vw;
|
|
1744
1744
|
padding: 0.3vw 0.6vw; border-radius: 0.3vw;
|
|
1745
|
-
background: rgba(
|
|
1745
|
+
background: rgba(33,84,239,0.08); border: 1px solid rgba(33,84,239,0.2);
|
|
1746
1746
|
font-size: 0.7vw; color: var(--ps-accent-light);
|
|
1747
1747
|
}
|
|
1748
1748
|
.ps-tryon-sr-size-changed svg { stroke: var(--ps-accent); }
|
|
@@ -1830,7 +1830,7 @@ const STYLES = `
|
|
|
1830
1830
|
gap: 0.4vw; cursor: pointer; transition: all 0.2s; min-height: 8vw;
|
|
1831
1831
|
}
|
|
1832
1832
|
.ps-tryon-upload-modal-dropzone:hover { border-color: var(--ps-accent); }
|
|
1833
|
-
.ps-tryon-upload-modal-dropzone.ps-drag-over { border-color: var(--ps-accent); background: rgba(
|
|
1833
|
+
.ps-tryon-upload-modal-dropzone.ps-drag-over { border-color: var(--ps-accent); background: rgba(33,84,239,0.06); }
|
|
1834
1834
|
.ps-tryon-upload-modal-dropzone svg { color: var(--ps-text-muted); }
|
|
1835
1835
|
.ps-tryon-upload-modal-dropzone p {
|
|
1836
1836
|
font-size: 0.75vw; color: #ccc; margin: 0; font-weight: 500;
|
|
@@ -1868,7 +1868,7 @@ const STYLES = `
|
|
|
1868
1868
|
/* Full-screen overlay inside the modal */
|
|
1869
1869
|
.ps-tryon-sr-chart-overlay {
|
|
1870
1870
|
position: absolute; inset: -3vw -1.2vw; z-index: 50;
|
|
1871
|
-
background: var(--ps-modal-bg, #
|
|
1871
|
+
background: var(--ps-modal-bg, #FFFFFF);
|
|
1872
1872
|
display: flex; flex-direction: column;
|
|
1873
1873
|
animation: ps-fade-in 0.2s ease;
|
|
1874
1874
|
}
|
|
@@ -1914,7 +1914,7 @@ const STYLES = `
|
|
|
1914
1914
|
cursor: pointer; transition: all 0.2s; text-align: center;
|
|
1915
1915
|
}
|
|
1916
1916
|
.ps-tryon-guide-dropzone:hover, .ps-tryon-guide-dropzone.ps-drag {
|
|
1917
|
-
border-color: var(--ps-accent); background: rgba(
|
|
1917
|
+
border-color: var(--ps-accent); background: rgba(33,84,239,0.05);
|
|
1918
1918
|
}
|
|
1919
1919
|
.ps-tryon-guide-dropzone svg { color: #555; stroke: #555; }
|
|
1920
1920
|
.ps-tryon-guide-dropzone-text { margin: 0; font-size: 0.9vw; color: var(--ps-text-primary); font-weight: 600; }
|
|
@@ -1927,12 +1927,12 @@ const STYLES = `
|
|
|
1927
1927
|
.ps-tryon-guide-preview img {
|
|
1928
1928
|
max-width: 100%; max-height: 100%; object-fit: contain;
|
|
1929
1929
|
display: block; border-radius: 0.5vw;
|
|
1930
|
-
background: var(--ps-modal-bg, #
|
|
1930
|
+
background: var(--ps-modal-bg, #FFFFFF);
|
|
1931
1931
|
}
|
|
1932
1932
|
.ps-tryon-guide-preview-remove {
|
|
1933
1933
|
position: absolute; top: 0.4vw; right: 0.4vw;
|
|
1934
1934
|
width: 1.4vw; height: 1.4vw; display: flex; align-items: center; justify-content: center;
|
|
1935
|
-
background: rgba(0,0,0,0.7); border: 1px solid rgba(
|
|
1935
|
+
background: rgba(0,0,0,0.7); border: 1px solid rgba(0,0,0,0.1); border-radius: 50%;
|
|
1936
1936
|
color: var(--ps-text-primary); font-size: 0.65vw; cursor: pointer; font-family: inherit;
|
|
1937
1937
|
transition: all 0.2s;
|
|
1938
1938
|
}
|
|
@@ -2009,7 +2009,7 @@ const STYLES = `
|
|
|
2009
2009
|
.ps-tryon-chart-section-rec strong {
|
|
2010
2010
|
color: var(--ps-accent); font-weight: 700; font-size: 0.7vw;
|
|
2011
2011
|
}
|
|
2012
|
-
.ps-active-row td { color: var(--ps-text-primary) !important; background: rgba(
|
|
2012
|
+
.ps-active-row td { color: var(--ps-text-primary) !important; background: rgba(33,84,239,0.1); }
|
|
2013
2013
|
.ps-active-row .ps-size-col { color: var(--ps-accent) !important; font-weight: 700; }
|
|
2014
2014
|
|
|
2015
2015
|
.ps-tryon-sr-chart-table-wrap { overflow-x: auto; max-height: 14vw; overflow-y: auto; }
|
|
@@ -2019,7 +2019,7 @@ const STYLES = `
|
|
|
2019
2019
|
border-bottom: 1px solid var(--ps-border-color); position: sticky; top: 0; background: #111211;
|
|
2020
2020
|
}
|
|
2021
2021
|
.ps-tryon-sr-chart-table td { padding: 0.3vw 0.5vw; color: var(--ps-text-secondary); border-bottom: 1px solid #1a1a1a; }
|
|
2022
|
-
.ps-tryon-sr-chart-active td { color: var(--ps-text-primary); background: rgba(
|
|
2022
|
+
.ps-tryon-sr-chart-active td { color: var(--ps-text-primary); background: rgba(33,84,239,0.08); }
|
|
2023
2023
|
|
|
2024
2024
|
/* Size chips */
|
|
2025
2025
|
.ps-tryon-sr-chips { display: flex; flex-wrap: wrap; gap: 0.4vw; justify-content: center; margin-top: 3.5vh; }
|
|
@@ -2040,7 +2040,7 @@ const STYLES = `
|
|
|
2040
2040
|
.ps-tryon-sr-multi-top {
|
|
2041
2041
|
display: flex; align-items: center; justify-content: space-between;
|
|
2042
2042
|
padding-bottom: 0.5vw; margin-bottom: 0.4vw;
|
|
2043
|
-
border-bottom: 1px solid rgba(
|
|
2043
|
+
border-bottom: 1px solid rgba(0,0,0,0.03);
|
|
2044
2044
|
}
|
|
2045
2045
|
.ps-tryon-sr-multi-title {
|
|
2046
2046
|
font-size: 0.9vw; font-weight: 300; color: var(--ps-text-primary);
|
|
@@ -2066,7 +2066,7 @@ const STYLES = `
|
|
|
2066
2066
|
.ps-tryon-sec-bigcard {
|
|
2067
2067
|
position: relative; overflow: hidden;
|
|
2068
2068
|
display: flex; flex-direction: column;
|
|
2069
|
-
background: #0e0e0e; border: 1px solid rgba(
|
|
2069
|
+
background: #0e0e0e; border: 1px solid rgba(0,0,0,0.04); border-radius: 0.7vw;
|
|
2070
2070
|
cursor: pointer; font-family: inherit;
|
|
2071
2071
|
text-align: center; flex: 1; min-width: 0; padding: 0;
|
|
2072
2072
|
transition: border-color 0.4s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
|
|
@@ -2084,7 +2084,7 @@ const STYLES = `
|
|
|
2084
2084
|
.ps-tryon-sec-bigcard:hover {
|
|
2085
2085
|
border-color: var(--ps-accent);
|
|
2086
2086
|
transform: translateY(-0.2vw) scale(1.015);
|
|
2087
|
-
box-shadow: 0 0.8vw 2.5vw rgba(0,0,0,0.5), 0 0 0 1px rgba(
|
|
2087
|
+
box-shadow: 0 0.8vw 2.5vw rgba(0,0,0,0.5), 0 0 0 1px rgba(33,84,239,0.1);
|
|
2088
2088
|
}
|
|
2089
2089
|
.ps-tryon-sec-bigcard:not(.ps-has-img) {
|
|
2090
2090
|
align-items: center; justify-content: center;
|
|
@@ -2121,12 +2121,12 @@ const STYLES = `
|
|
|
2121
2121
|
.ps-tryon-sec-bigcard-icon {
|
|
2122
2122
|
width: 2.8vw; height: 2.8vw;
|
|
2123
2123
|
display: flex; align-items: center; justify-content: center;
|
|
2124
|
-
background: rgba(
|
|
2124
|
+
background: rgba(33,84,239,0.06); border: 1px solid rgba(33,84,239,0.12);
|
|
2125
2125
|
border-radius: 50%;
|
|
2126
2126
|
color: var(--ps-accent); transition: all 0.3s;
|
|
2127
2127
|
}
|
|
2128
2128
|
.ps-tryon-sec-bigcard:hover .ps-tryon-sec-bigcard-icon {
|
|
2129
|
-
background: rgba(
|
|
2129
|
+
background: rgba(33,84,239,0.12); border-color: rgba(33,84,239,0.25);
|
|
2130
2130
|
transform: scale(1.06);
|
|
2131
2131
|
}
|
|
2132
2132
|
.ps-tryon-sec-bigcard-icon svg { stroke: currentColor; }
|
|
@@ -2137,14 +2137,14 @@ const STYLES = `
|
|
|
2137
2137
|
text-shadow: 0 1px 6px rgba(0,0,0,0.8);
|
|
2138
2138
|
}
|
|
2139
2139
|
.ps-tryon-sec-bigcard-size {
|
|
2140
|
-
font-size: 2.2vw; font-weight: 200; color:
|
|
2140
|
+
font-size: 2.2vw; font-weight: 200; color: var(--ps-text-primary);
|
|
2141
2141
|
text-shadow: 0 2px 8px rgba(0,0,0,0.5);
|
|
2142
2142
|
line-height: 1; letter-spacing: -0.02em;
|
|
2143
2143
|
}
|
|
2144
2144
|
.ps-tryon-sec-bigcard-badge {
|
|
2145
2145
|
font-size: 0.45vw; font-weight: 600; text-transform: uppercase;
|
|
2146
2146
|
color: var(--ps-accent); background: none;
|
|
2147
|
-
border: 1px solid rgba(
|
|
2147
|
+
border: 1px solid rgba(33,84,239,0.3);
|
|
2148
2148
|
padding: 0.12vw 0.45vw; border-radius: 2vw; letter-spacing: 0.08em;
|
|
2149
2149
|
}
|
|
2150
2150
|
.ps-tryon-sec-bigcard-fit {
|
|
@@ -2161,11 +2161,11 @@ const STYLES = `
|
|
|
2161
2161
|
display: flex; flex-direction: column; gap: 0.5vw;
|
|
2162
2162
|
animation: ps-v2-fade 0.3s ease forwards;
|
|
2163
2163
|
flex: 1; min-height: 0; overflow-y: auto;
|
|
2164
|
-
scrollbar-width: thin; scrollbar-color: rgba(
|
|
2164
|
+
scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.04) transparent;
|
|
2165
2165
|
}
|
|
2166
2166
|
.ps-tryon-sec-detail-back {
|
|
2167
2167
|
display: inline-flex; align-items: center; gap: 0.25vw;
|
|
2168
|
-
background: none; border: none; color: rgba(
|
|
2168
|
+
background: none; border: none; color: rgba(0,0,0,0.3); cursor: pointer;
|
|
2169
2169
|
font-size: 0.6vw; font-family: inherit; padding: 0;
|
|
2170
2170
|
transition: color 0.2s; align-self: flex-start;
|
|
2171
2171
|
letter-spacing: 0.03em;
|
|
@@ -2175,12 +2175,12 @@ const STYLES = `
|
|
|
2175
2175
|
.ps-tryon-sec-detail-header {
|
|
2176
2176
|
display: flex; align-items: center; gap: 0.5vw;
|
|
2177
2177
|
padding-bottom: 0.4vw;
|
|
2178
|
-
border-bottom: 1px solid rgba(
|
|
2178
|
+
border-bottom: 1px solid rgba(0,0,0,0.04);
|
|
2179
2179
|
}
|
|
2180
2180
|
.ps-tryon-sec-detail-icon {
|
|
2181
2181
|
width: 1.8vw; height: 1.8vw;
|
|
2182
2182
|
display: flex; align-items: center; justify-content: center;
|
|
2183
|
-
background: rgba(
|
|
2183
|
+
background: rgba(33,84,239,0.08); border: 1px solid rgba(33,84,239,0.12);
|
|
2184
2184
|
border-radius: 50%; color: var(--ps-accent);
|
|
2185
2185
|
}
|
|
2186
2186
|
.ps-tryon-sec-detail-icon svg { stroke: currentColor; }
|
|
@@ -2214,7 +2214,7 @@ const STYLES = `
|
|
|
2214
2214
|
}
|
|
2215
2215
|
.ps-tryon-sr-glass-btn {
|
|
2216
2216
|
background: rgba(0,0,0,0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
|
|
2217
|
-
border: 1px solid rgba(
|
|
2217
|
+
border: 1px solid rgba(0,0,0,0.15); border-radius: 0.45vw;
|
|
2218
2218
|
color: var(--ps-text-primary); font-size: 0.62vw; font-weight: 700; font-family: inherit;
|
|
2219
2219
|
padding: 0.4vw 0.8vw; cursor: pointer; transition: all 0.2s;
|
|
2220
2220
|
white-space: nowrap; letter-spacing: 0.02em;
|
|
@@ -2226,14 +2226,14 @@ const STYLES = `
|
|
|
2226
2226
|
position: absolute; bottom: 0.5vw; left: 0.5vw; z-index: 3;
|
|
2227
2227
|
}
|
|
2228
2228
|
.ps-tryon-sr-glass-btn:hover {
|
|
2229
|
-
background: rgba(0,0,0,0.75); border-color: rgba(
|
|
2229
|
+
background: rgba(0,0,0,0.75); border-color: rgba(0,0,0,0.3);
|
|
2230
2230
|
}
|
|
2231
2231
|
.ps-tryon-sr-img-icon {
|
|
2232
2232
|
width: 1.8vw; height: 1.8vw; display: flex; align-items: center; justify-content: center;
|
|
2233
|
-
background: rgba(0,0,0,0.6); border: 1px solid rgba(
|
|
2233
|
+
background: rgba(0,0,0,0.6); border: 1px solid rgba(0,0,0,0.08); border-radius: 0.4vw;
|
|
2234
2234
|
color: #ccc; cursor: pointer; transition: all 0.2s; backdrop-filter: blur(4px);
|
|
2235
2235
|
}
|
|
2236
|
-
.ps-tryon-sr-img-icon:hover { background: rgba(0,0,0,0.8); color: var(--ps-text-primary); border-color: rgba(
|
|
2236
|
+
.ps-tryon-sr-img-icon:hover { background: rgba(0,0,0,0.8); color: var(--ps-text-primary); border-color: rgba(0,0,0,0.2); }
|
|
2237
2237
|
|
|
2238
2238
|
/* See fit visually — below size chips */
|
|
2239
2239
|
.ps-tryon-sr-visual-btn {
|
|
@@ -2308,7 +2308,7 @@ const STYLES = `
|
|
|
2308
2308
|
}
|
|
2309
2309
|
.ps-tryon-sr-cta:hover {
|
|
2310
2310
|
background: var(--ps-accent-light);
|
|
2311
|
-
box-shadow: 0 0.3vw 1.5vw rgba(
|
|
2311
|
+
box-shadow: 0 0.3vw 1.5vw rgba(33,84,239,0.25);
|
|
2312
2312
|
transform: translateY(-1px);
|
|
2313
2313
|
}
|
|
2314
2314
|
|
|
@@ -2319,7 +2319,7 @@ const STYLES = `
|
|
|
2319
2319
|
width: 0.25vw; height: 0.25vw; border-radius: 50%; background: var(--ps-accent);
|
|
2320
2320
|
}
|
|
2321
2321
|
.ps-tryon-sr-chip.ps-active .ps-tryon-sr-rec-dot { background: #fff; }
|
|
2322
|
-
.ps-tryon-sr-chip.ps-recommended { border-color: rgba(
|
|
2322
|
+
.ps-tryon-sr-chip.ps-recommended { border-color: rgba(33,84,239,0.4); }
|
|
2323
2323
|
|
|
2324
2324
|
/* ── Full Size Chart Overlay ── */
|
|
2325
2325
|
.ps-tryon-fc-overlay {
|
|
@@ -2383,10 +2383,10 @@ const STYLES = `
|
|
|
2383
2383
|
color: var(--ps-text-secondary); border-bottom: 1px solid #1e1e1e;
|
|
2384
2384
|
}
|
|
2385
2385
|
.ps-tryon-fc-table td:first-child { text-align: left; font-weight: 600; color: #ccc; }
|
|
2386
|
-
.ps-tryon-fc-rec-row td { color: var(--ps-text-primary); font-weight: 600; background: rgba(
|
|
2386
|
+
.ps-tryon-fc-rec-row td { color: var(--ps-text-primary); font-weight: 600; background: rgba(33,84,239,0.05); }
|
|
2387
2387
|
.ps-tryon-fc-rec-pill {
|
|
2388
2388
|
display: inline-flex; align-items: center; justify-content: center;
|
|
2389
|
-
background: #fff; color:
|
|
2389
|
+
background: #fff; color: var(--ps-text-primary); padding: 0.15vw 0.5vw;
|
|
2390
2390
|
border-radius: 1vw; font-weight: 800; font-size: 0.7vw;
|
|
2391
2391
|
}
|
|
2392
2392
|
|
|
@@ -2404,13 +2404,13 @@ const STYLES = `
|
|
|
2404
2404
|
}
|
|
2405
2405
|
.ps-tryon-save-row input:focus { border-color: var(--ps-accent); }
|
|
2406
2406
|
.ps-tryon-save-row button {
|
|
2407
|
-
padding: 0.52vw 1.04vw; background: var(--ps-accent); color: #
|
|
2407
|
+
padding: 0.52vw 1.04vw; background: var(--ps-accent); color: #fff; border: none; border-radius: 0.52vw;
|
|
2408
2408
|
font-size: 0.68vw; font-weight: 600; cursor: pointer; transition: opacity 0.2s; font-family: inherit;
|
|
2409
2409
|
}
|
|
2410
2410
|
.ps-tryon-save-row button:hover { opacity: 0.9; }
|
|
2411
2411
|
.ps-tryon-save-btn-group { display: flex; gap: 0.31vw; }
|
|
2412
2412
|
.ps-tryon-save-new-btn { background: transparent !important; border: 1.5px solid var(--ps-accent) !important; color: var(--ps-accent) !important; }
|
|
2413
|
-
.ps-tryon-save-new-btn:hover { background: rgba(
|
|
2413
|
+
.ps-tryon-save-new-btn:hover { background: rgba(33,84,239,0.1) !important; }
|
|
2414
2414
|
.ps-tryon-save-done { font-size: 0.63vw; color: #4ade80; margin-top: 0.52vw; display: flex; align-items: center; gap: 0.31vw; justify-content: center; }
|
|
2415
2415
|
.ps-tryon-save-done svg { stroke: currentColor; }
|
|
2416
2416
|
|
|
@@ -2426,7 +2426,7 @@ const STYLES = `
|
|
|
2426
2426
|
|
|
2427
2427
|
/* Drawer */
|
|
2428
2428
|
.ps-tryon-drawer {
|
|
2429
|
-
position: absolute; inset: 0; z-index: 20; background: var(--ps-modal-bg, #
|
|
2429
|
+
position: absolute; inset: 0; z-index: 20; background: var(--ps-modal-bg, #FFFFFF);
|
|
2430
2430
|
overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; padding: 1.04vw 1.25vw;
|
|
2431
2431
|
transform: translateX(100%); transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
|
|
2432
2432
|
box-sizing: border-box;
|
|
@@ -2446,7 +2446,7 @@ const STYLES = `
|
|
|
2446
2446
|
color: var(--ps-accent); font-size: 1vw; font-weight: 600; cursor: pointer;
|
|
2447
2447
|
font-family: inherit; transition: all 0.2s; flex-shrink: 0; line-height: 1;
|
|
2448
2448
|
}
|
|
2449
|
-
.ps-tryon-drawer-add-btn:hover { border-color: var(--ps-accent); background: rgba(
|
|
2449
|
+
.ps-tryon-drawer-add-btn:hover { border-color: var(--ps-accent); background: rgba(33,84,239,0.1); }
|
|
2450
2450
|
.ps-tryon-drawer-list { display: flex; flex-direction: column; gap: 0.52vw; max-width: 100%; overflow-x: hidden; }
|
|
2451
2451
|
.ps-tryon-drawer-empty { text-align: center; padding: 1.67vw 0.83vw; color: var(--ps-text-muted); font-size: 0.73vw; }
|
|
2452
2452
|
|
|
@@ -2459,7 +2459,7 @@ const STYLES = `
|
|
|
2459
2459
|
.ps-tryon-profile-avatar {
|
|
2460
2460
|
width: 2.08vw; height: 2.08vw; border-radius: 50%;
|
|
2461
2461
|
display: flex; align-items: center; justify-content: center;
|
|
2462
|
-
background: rgba(
|
|
2462
|
+
background: rgba(33,84,239,0.1); flex-shrink: 0;
|
|
2463
2463
|
}
|
|
2464
2464
|
.ps-tryon-profile-avatar svg { stroke: var(--ps-accent); fill: none; }
|
|
2465
2465
|
.ps-tryon-profile-info { flex: 1; min-width: 0; }
|
|
@@ -2473,9 +2473,9 @@ const STYLES = `
|
|
|
2473
2473
|
display: flex; gap: 0.73vw; padding: 0.73vw;
|
|
2474
2474
|
border: 1px solid var(--ps-border-color); border-radius: 0.63vw; align-items: flex-start; transition: all 0.2s;
|
|
2475
2475
|
}
|
|
2476
|
-
.ps-tryon-history-item:hover { border-color: var(--ps-accent); box-shadow: 0 0.21vw 0.63vw rgba(
|
|
2476
|
+
.ps-tryon-history-item:hover { border-color: var(--ps-accent); box-shadow: 0 0.21vw 0.63vw rgba(33,84,239,0.06); }
|
|
2477
2477
|
.ps-tryon-history-images { display: flex; gap: 0.42vw; flex-shrink: 0; }
|
|
2478
|
-
.ps-tryon-history-thumb { width: 3.33vw; height: 4.17vw; border-radius: 0.52vw; object-fit: contain; background: var(--ps-modal-bg, #
|
|
2478
|
+
.ps-tryon-history-thumb { width: 3.33vw; height: 4.17vw; border-radius: 0.52vw; object-fit: contain; background: var(--ps-modal-bg, #FFFFFF); flex-shrink: 0; }
|
|
2479
2479
|
.ps-tryon-history-info { flex: 1; min-width: 0; }
|
|
2480
2480
|
.ps-tryon-history-product { font-size: 0.68vw; font-weight: 600; color: var(--ps-text-primary); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
|
|
2481
2481
|
.ps-tryon-history-meta { font-size: 0.57vw; color: var(--ps-text-muted); margin-top: 3px; }
|
|
@@ -2485,9 +2485,9 @@ const STYLES = `
|
|
|
2485
2485
|
flex-shrink: 0; width: 2.08vw; height: 2.08vw; border-radius: 50%;
|
|
2486
2486
|
display: flex; align-items: center; justify-content: center;
|
|
2487
2487
|
background: linear-gradient(135deg, var(--ps-accent), var(--ps-accent-light));
|
|
2488
|
-
color:
|
|
2488
|
+
color: var(--ps-text-primary); font-size: 0.68vw; font-weight: 700;
|
|
2489
2489
|
}
|
|
2490
|
-
.ps-tryon-history-result-img { width: 3.33vw; height: 4.17vw; border-radius: 0.52vw; object-fit: contain; background: var(--ps-modal-bg, #
|
|
2490
|
+
.ps-tryon-history-result-img { width: 3.33vw; height: 4.17vw; border-radius: 0.52vw; object-fit: contain; background: var(--ps-modal-bg, #FFFFFF); flex-shrink: 0; border: 2px solid var(--ps-accent); }
|
|
2491
2491
|
.ps-tryon-history-delete {
|
|
2492
2492
|
width: 1.46vw; height: 1.46vw; display: flex; align-items: center; justify-content: center;
|
|
2493
2493
|
border: none; background: transparent; cursor: pointer; color: var(--ps-text-muted); border-radius: 0.31vw; transition: all 0.2s; flex-shrink: 0;
|
|
@@ -2497,12 +2497,12 @@ const STYLES = `
|
|
|
2497
2497
|
.ps-tryon-history-clickable { cursor: pointer; }
|
|
2498
2498
|
.ps-tryon-history-sections { display: flex; flex-wrap: wrap; gap: 0.3vw; margin-top: 0.31vw; }
|
|
2499
2499
|
.ps-tryon-history-section-chip {
|
|
2500
|
-
font-size: 0.55vw; font-weight: 600; color: var(--ps-text-primary); background: rgba(
|
|
2501
|
-
border: 1px solid rgba(
|
|
2500
|
+
font-size: 0.55vw; font-weight: 600; color: var(--ps-text-primary); background: rgba(33,84,239,0.18);
|
|
2501
|
+
border: 1px solid rgba(33,84,239,0.3); border-radius: 0.3vw; padding: 0.15vw 0.4vw;
|
|
2502
2502
|
}
|
|
2503
2503
|
.ps-tryon-history-tryon-badge {
|
|
2504
2504
|
display: inline-block; font-size: 0.5vw; font-weight: 600; color: var(--ps-accent);
|
|
2505
|
-
background: rgba(
|
|
2505
|
+
background: rgba(33,84,239,0.12); border: 1px solid rgba(33,84,239,0.25);
|
|
2506
2506
|
border-radius: 0.25vw; padding: 0.1vw 0.35vw; margin-top: 0.25vw;
|
|
2507
2507
|
}
|
|
2508
2508
|
|
|
@@ -2523,8 +2523,8 @@ const STYLES = `
|
|
|
2523
2523
|
font-family: inherit; text-align: left; transition: all 0.2s;
|
|
2524
2524
|
flex: 1;
|
|
2525
2525
|
}
|
|
2526
|
-
.ps-tryon-quiz-option:hover { border-color: var(--ps-accent); background: rgba(
|
|
2527
|
-
.ps-tryon-quiz-option.ps-active { border-color: var(--ps-accent); background: rgba(
|
|
2526
|
+
.ps-tryon-quiz-option:hover { border-color: var(--ps-accent); background: rgba(33,84,239,0.06); }
|
|
2527
|
+
.ps-tryon-quiz-option.ps-active { border-color: var(--ps-accent); background: rgba(33,84,239,0.12); }
|
|
2528
2528
|
.ps-tryon-quiz-option-label { font-size: 0.8vw; font-weight: 600; }
|
|
2529
2529
|
.ps-tryon-quiz-option-desc { font-size: 0.6vw; color: var(--ps-text-secondary); }
|
|
2530
2530
|
|
|
@@ -2541,8 +2541,8 @@ const STYLES = `
|
|
|
2541
2541
|
color: var(--ps-text-muted); font-size: 0.62vw; font-weight: 600; cursor: pointer;
|
|
2542
2542
|
font-family: inherit; transition: all 0.15s; white-space: nowrap; line-height: 1.2;
|
|
2543
2543
|
}
|
|
2544
|
-
.ps-tryon-pe-pill-btn.ps-active { background: var(--ps-accent); color: #
|
|
2545
|
-
.ps-tryon-pe-pill-btn:not(.ps-active):hover { color: var(--ps-text-secondary); background: rgba(
|
|
2544
|
+
.ps-tryon-pe-pill-btn.ps-active { background: var(--ps-accent); color: #fff; }
|
|
2545
|
+
.ps-tryon-pe-pill-btn:not(.ps-active):hover { color: var(--ps-text-secondary); background: rgba(0,0,0,0.03); }
|
|
2546
2546
|
.ps-tryon-pe-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1vw 1.6vw; width: 100%; box-sizing: border-box; }
|
|
2547
2547
|
.ps-tryon-pe-fields .ps-tryon-sf-float-field {
|
|
2548
2548
|
min-width: 0; padding: 0.15vw 0.4vw;
|
|
@@ -2550,7 +2550,7 @@ const STYLES = `
|
|
|
2550
2550
|
}
|
|
2551
2551
|
.ps-tryon-pe-fields .ps-tryon-sf-float-label {
|
|
2552
2552
|
flex-shrink: 0; margin: 0; white-space: nowrap;
|
|
2553
|
-
font-size: 0.58vw; color: rgba(
|
|
2553
|
+
font-size: 0.58vw; color: rgba(0,0,0,0.3);
|
|
2554
2554
|
}
|
|
2555
2555
|
.ps-tryon-pe-fields .ps-tryon-sf-float-field:focus-within .ps-tryon-sf-float-label { color: var(--ps-accent); }
|
|
2556
2556
|
.ps-tryon-pe-fields .ps-tryon-sf-input {
|
|
@@ -2564,7 +2564,7 @@ const STYLES = `
|
|
|
2564
2564
|
.ps-tryon-pe-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.8vw; margin-top: 1.2vw; }
|
|
2565
2565
|
.ps-tryon-pe-actions .ps-tryon-est-back { font-size: 0.65vw; }
|
|
2566
2566
|
.ps-tryon-pe-save {
|
|
2567
|
-
padding: 0.45vw 1.2vw; background: var(--ps-accent); color: #
|
|
2567
|
+
padding: 0.45vw 1.2vw; background: var(--ps-accent); color: #fff; border: none;
|
|
2568
2568
|
border-radius: 0.4vw; font-size: 0.65vw; font-weight: 600; cursor: pointer;
|
|
2569
2569
|
font-family: inherit; letter-spacing: 0.06em; text-transform: uppercase;
|
|
2570
2570
|
display: inline-flex; align-items: center; gap: 0.3vw;
|
|
@@ -2577,7 +2577,7 @@ const STYLES = `
|
|
|
2577
2577
|
font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.2s;
|
|
2578
2578
|
display: flex; align-items: center; justify-content: center; gap: 0.3vw;
|
|
2579
2579
|
}
|
|
2580
|
-
.ps-tryon-drawer-create:hover { border-color: var(--ps-accent); background: rgba(
|
|
2580
|
+
.ps-tryon-drawer-create:hover { border-color: var(--ps-accent); background: rgba(33,84,239,0.06); }
|
|
2581
2581
|
.ps-tryon-drawer-clear {
|
|
2582
2582
|
background: none; border: none; color: var(--ps-text-muted); font-size: 0.6vw;
|
|
2583
2583
|
font-weight: 500; cursor: pointer; font-family: inherit; padding: 0.3vw 0;
|
|
@@ -2602,7 +2602,7 @@ const STYLES = `
|
|
|
2602
2602
|
}
|
|
2603
2603
|
.ps-tryon-detail-header span { font-size: 0.78vw; font-weight: 600; }
|
|
2604
2604
|
.ps-tryon-detail-header button { background: none; border: none; color: var(--ps-text-secondary); cursor: pointer; display: flex; align-items: center; border-radius: 0.31vw; padding: 0.21vw; transition: background 0.15s; }
|
|
2605
|
-
.ps-tryon-detail-header button:hover { background: rgba(
|
|
2605
|
+
.ps-tryon-detail-header button:hover { background: rgba(0,0,0,0.06); }
|
|
2606
2606
|
.ps-tryon-detail-body { padding: 1.04vw 1.25vw; }
|
|
2607
2607
|
.ps-tryon-detail-gender { display: flex; align-items: center; gap: 0.42vw; font-size: 0.73vw; font-weight: 600; padding-bottom: 0.73vw; border-bottom: 1px solid var(--ps-border-color); margin-bottom: 0.73vw; }
|
|
2608
2608
|
.ps-tryon-detail-gender svg { stroke: var(--ps-accent); fill: none; }
|
|
@@ -2720,7 +2720,7 @@ const STYLES = `
|
|
|
2720
2720
|
.ps-bp-wrapper { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
|
|
2721
2721
|
.ps-bp-shapes-header { flex-shrink: 0; margin-bottom: 0.6vw; text-align: left; }
|
|
2722
2722
|
.ps-bp-shapes-header .ps-bp-title { font-size: 1vw; font-weight: 600; }
|
|
2723
|
-
.ps-bp-shapes-header .ps-bp-subtitle { font-size: 0.55vw; color:
|
|
2723
|
+
.ps-bp-shapes-header .ps-bp-subtitle { font-size: 0.55vw; color: var(--ps-text-muted); font-weight: 400; }
|
|
2724
2724
|
|
|
2725
2725
|
/* Split layout: product left, form right — FIXED vh height, never changes */
|
|
2726
2726
|
.ps-bp-layout {
|
|
@@ -2742,7 +2742,7 @@ const STYLES = `
|
|
|
2742
2742
|
cursor: pointer; border: 2px dashed var(--ps-border-color);
|
|
2743
2743
|
align-self: stretch; align-items: center; justify-content: center;
|
|
2744
2744
|
}
|
|
2745
|
-
.ps-bp-upload-zone:hover { border-color: var(--ps-accent); background: rgba(
|
|
2745
|
+
.ps-bp-upload-zone:hover { border-color: var(--ps-accent); background: rgba(33,84,239,0.04); }
|
|
2746
2746
|
.ps-bp-upload-placeholder {
|
|
2747
2747
|
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6vw;
|
|
2748
2748
|
color: var(--ps-text-muted);
|
|
@@ -2755,7 +2755,7 @@ const STYLES = `
|
|
|
2755
2755
|
position: absolute; top: 0.5vw; right: 0.5vw;
|
|
2756
2756
|
width: 1.6vw; height: 1.6vw; display: flex; align-items: center; justify-content: center;
|
|
2757
2757
|
background: rgba(0,0,0,0.6); border: none; border-radius: 50%;
|
|
2758
|
-
color:
|
|
2758
|
+
color: var(--ps-text-primary); font-size: 1vw; cursor: pointer; line-height: 1;
|
|
2759
2759
|
transition: background 0.15s; z-index: 2;
|
|
2760
2760
|
}
|
|
2761
2761
|
.ps-bp-image-remove:hover { background: rgba(0,0,0,0.8); }
|
|
@@ -2881,7 +2881,7 @@ const STYLES = `
|
|
|
2881
2881
|
.ps-bp-bra-region-wrap { position: relative; z-index: 100; }
|
|
2882
2882
|
.ps-bp-bra-region-trigger {
|
|
2883
2883
|
display: flex; align-items: center; gap: 0.35vw;
|
|
2884
|
-
padding: 0.45vw 0.9vw; border: 1.5px solid rgba(
|
|
2884
|
+
padding: 0.45vw 0.9vw; border: 1.5px solid rgba(0,0,0,0.1);
|
|
2885
2885
|
border-radius: 0.4vw; background: transparent;
|
|
2886
2886
|
color: rgba(255,255,255,0.7); font-size: 0.8vw; font-weight: 600;
|
|
2887
2887
|
cursor: pointer; font-family: inherit; transition: all 0.25s;
|
|
@@ -2894,7 +2894,7 @@ const STYLES = `
|
|
|
2894
2894
|
.ps-bp-bra-region-dropdown {
|
|
2895
2895
|
position: absolute; top: calc(100% + 0.3vw); right: 0;
|
|
2896
2896
|
min-width: 5vw; background: var(--ps-bg-secondary);
|
|
2897
|
-
border: 1.5px solid rgba(
|
|
2897
|
+
border: 1.5px solid rgba(0,0,0,0.08); border-radius: 0.4vw;
|
|
2898
2898
|
box-shadow: 0 0.5vw 1.5vw rgba(0,0,0,0.5);
|
|
2899
2899
|
overflow: hidden; animation: ps-bp-fade 0.2s ease both;
|
|
2900
2900
|
padding: 0.25vw; z-index: 200;
|
|
@@ -2902,30 +2902,30 @@ const STYLES = `
|
|
|
2902
2902
|
.ps-bp-bra-region-item {
|
|
2903
2903
|
display: block; width: 100%; padding: 0.4vw 0.7vw;
|
|
2904
2904
|
background: transparent; border: none; border-radius: 0.3vw;
|
|
2905
|
-
color: rgba(
|
|
2905
|
+
color: rgba(0,0,0,0.08); font-size: 0.75vw; font-weight: 600;
|
|
2906
2906
|
cursor: pointer; font-family: inherit; text-align: left;
|
|
2907
2907
|
transition: all 0.15s;
|
|
2908
2908
|
}
|
|
2909
|
-
.ps-bp-bra-region-item:hover { background: rgba(
|
|
2910
|
-
.ps-bp-bra-region-item.ps-selected { color: var(--ps-accent); background: rgba(
|
|
2909
|
+
.ps-bp-bra-region-item:hover { background: rgba(0,0,0,0.04); color: var(--ps-text-primary); }
|
|
2910
|
+
.ps-bp-bra-region-item.ps-selected { color: var(--ps-accent); background: rgba(33,84,239,0.1); }
|
|
2911
2911
|
.ps-bp-bra-grid {
|
|
2912
2912
|
display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.35vw;
|
|
2913
2913
|
}
|
|
2914
2914
|
.ps-bp-bra-btn {
|
|
2915
2915
|
padding: 0.4vw 0; text-align: center;
|
|
2916
|
-
background: transparent; border: 1px solid rgba(
|
|
2917
|
-
border-radius: 0.35vw; color:
|
|
2916
|
+
background: transparent; border: 1px solid rgba(0,0,0,0.08);
|
|
2917
|
+
border-radius: 0.35vw; color: var(--ps-text-secondary);
|
|
2918
2918
|
font-size: 0.65vw; font-weight: 500; cursor: pointer;
|
|
2919
2919
|
font-family: inherit; transition: all 0.2s;
|
|
2920
2920
|
}
|
|
2921
|
-
.ps-bp-bra-btn:hover { border-color: rgba(
|
|
2921
|
+
.ps-bp-bra-btn:hover { border-color: rgba(0,0,0,0.3); color: var(--ps-text-primary); }
|
|
2922
2922
|
.ps-bp-bra-btn-selected {
|
|
2923
2923
|
background: var(--ps-accent) !important; border-color: var(--ps-accent) !important;
|
|
2924
|
-
color: #
|
|
2924
|
+
color: #fff !important; font-weight: 700;
|
|
2925
2925
|
}
|
|
2926
2926
|
/* Bra result */
|
|
2927
2927
|
.ps-bp-bra-result {
|
|
2928
|
-
text-align: center; font-size: 0.85vw; color: rgba(
|
|
2928
|
+
text-align: center; font-size: 0.85vw; color: rgba(0,0,0,0.5);
|
|
2929
2929
|
margin-top: 0.8vw; font-weight: 400;
|
|
2930
2930
|
}
|
|
2931
2931
|
.ps-bp-bra-result strong {
|
|
@@ -2933,7 +2933,7 @@ const STYLES = `
|
|
|
2933
2933
|
}
|
|
2934
2934
|
.ps-bp-bra-bust {
|
|
2935
2935
|
display: block; margin-top: 0.2vw;
|
|
2936
|
-
font-size: 0.75vw; color: rgba(
|
|
2936
|
+
font-size: 0.75vw; color: rgba(0,0,0,0.3); font-weight: 400;
|
|
2937
2937
|
}
|
|
2938
2938
|
|
|
2939
2939
|
/* Profile option rows — WAIR style stacked list */
|
|
@@ -2950,14 +2950,14 @@ const STYLES = `
|
|
|
2950
2950
|
box-shadow: 0 1px 4px rgba(0,0,0,0.05);
|
|
2951
2951
|
}
|
|
2952
2952
|
.ps-bp-option:hover {
|
|
2953
|
-
border-color: rgba(
|
|
2953
|
+
border-color: rgba(33,84,239,0.5);
|
|
2954
2954
|
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
|
2955
2955
|
transform: translateY(-1px);
|
|
2956
2956
|
}
|
|
2957
2957
|
.ps-bp-option:hover .ps-bp-illust svg { transform: scale(1.05); }
|
|
2958
2958
|
.ps-bp-option-selected {
|
|
2959
2959
|
border-color: var(--ps-accent) !important;
|
|
2960
|
-
box-shadow: 0 4px 12px rgba(
|
|
2960
|
+
box-shadow: 0 4px 12px rgba(33,84,239,0.18) !important;
|
|
2961
2961
|
}
|
|
2962
2962
|
.ps-bp-option-icon {
|
|
2963
2963
|
width: 6vw; height: 6vw; flex-shrink: 0;
|
|
@@ -2970,7 +2970,7 @@ const STYLES = `
|
|
|
2970
2970
|
flex: 1; font-size: 0.73vw; font-weight: 500;
|
|
2971
2971
|
color: #555; text-align: center;
|
|
2972
2972
|
}
|
|
2973
|
-
.ps-bp-option-selected .ps-bp-option-label { color:
|
|
2973
|
+
.ps-bp-option-selected .ps-bp-option-label { color: var(--ps-accent); font-weight: 600; }
|
|
2974
2974
|
.ps-bp-option::after {
|
|
2975
2975
|
content: "›"; font-size: 1.1vw; color: #ccc; flex-shrink: 0;
|
|
2976
2976
|
transition: all 0.25s ease;
|
|
@@ -2999,7 +2999,7 @@ const STYLES = `
|
|
|
2999
2999
|
}
|
|
3000
3000
|
.ps-bp-shape-label::after {
|
|
3001
3001
|
content: ""; flex: 1; height: 1px;
|
|
3002
|
-
background: linear-gradient(to right, rgba(
|
|
3002
|
+
background: linear-gradient(to right, rgba(0,0,0,0.08), transparent);
|
|
3003
3003
|
}
|
|
3004
3004
|
.ps-bp-shape-row {
|
|
3005
3005
|
display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5vw;
|
|
@@ -3007,13 +3007,13 @@ const STYLES = `
|
|
|
3007
3007
|
}
|
|
3008
3008
|
.ps-bp-img-card {
|
|
3009
3009
|
display: flex; flex-direction: column; align-items: center;
|
|
3010
|
-
background: transparent; border: 2px solid rgba(
|
|
3010
|
+
background: transparent; border: 2px solid rgba(0,0,0,0.08);
|
|
3011
3011
|
border-radius: 0.5vw; overflow: hidden; cursor: pointer;
|
|
3012
3012
|
transition: all 0.2s ease; padding: 0; font-family: inherit;
|
|
3013
3013
|
position: relative;
|
|
3014
3014
|
}
|
|
3015
3015
|
.ps-bp-img-card:hover {
|
|
3016
|
-
border-color: rgba(
|
|
3016
|
+
border-color: rgba(33,84,239,0.4);
|
|
3017
3017
|
transform: translateY(-1px);
|
|
3018
3018
|
}
|
|
3019
3019
|
.ps-bp-img-card-selected {
|
|
@@ -3021,7 +3021,7 @@ const STYLES = `
|
|
|
3021
3021
|
border-width: 2.5px !important;
|
|
3022
3022
|
}
|
|
3023
3023
|
.ps-bp-img-card-selected .ps-bp-img-card-label {
|
|
3024
|
-
font-weight: 700; color:
|
|
3024
|
+
font-weight: 700; color: var(--ps-accent);
|
|
3025
3025
|
}
|
|
3026
3026
|
.ps-bp-img-card-check {
|
|
3027
3027
|
display: none; position: absolute; top: 0.3vw; right: 0.3vw;
|
|
@@ -3038,18 +3038,18 @@ const STYLES = `
|
|
|
3038
3038
|
background: transparent;
|
|
3039
3039
|
}
|
|
3040
3040
|
.ps-bp-img-card-img {
|
|
3041
|
-
width: 100%; height: 100%; object-fit:
|
|
3041
|
+
width: 100%; height: 100%; object-fit: contain;
|
|
3042
3042
|
}
|
|
3043
3043
|
.ps-bp-img-card .ps-bp-illust { width: 80%; height: 80%; }
|
|
3044
3044
|
.ps-bp-img-card .ps-bp-illust svg { width: 100%; height: 100%; }
|
|
3045
3045
|
.ps-bp-img-card-label {
|
|
3046
3046
|
padding: 0.3vw 0.2vw; font-size: 0.6vw; font-weight: 600;
|
|
3047
|
-
color:
|
|
3047
|
+
color: var(--ps-text-secondary); text-align: center; width: 100%;
|
|
3048
3048
|
transition: opacity 0.2s;
|
|
3049
3049
|
}
|
|
3050
3050
|
/* Hover hint text below cards */
|
|
3051
3051
|
.ps-bp-hover-hint {
|
|
3052
|
-
text-align: center; font-size: 0.7vw; color: rgba(
|
|
3052
|
+
text-align: center; font-size: 0.7vw; color: rgba(0,0,0,0.25);
|
|
3053
3053
|
margin: 0.15vw 0 0; min-height: 1em; transition: opacity 0.2s;
|
|
3054
3054
|
font-weight: 400; letter-spacing: 0.01em;
|
|
3055
3055
|
}
|
|
@@ -3064,7 +3064,7 @@ const STYLES = `
|
|
|
3064
3064
|
font-family: inherit; text-align: left;
|
|
3065
3065
|
}
|
|
3066
3066
|
.ps-bp-photo-upload:hover {
|
|
3067
|
-
border-color: var(--ps-accent); background: rgba(
|
|
3067
|
+
border-color: var(--ps-accent); background: rgba(33,84,239,0.04);
|
|
3068
3068
|
color: var(--ps-text-secondary);
|
|
3069
3069
|
}
|
|
3070
3070
|
.ps-bp-photo-upload svg { flex-shrink: 0; opacity: 0.6; }
|
|
@@ -3074,7 +3074,7 @@ const STYLES = `
|
|
|
3074
3074
|
.ps-bp-photo-preview {
|
|
3075
3075
|
display: flex; align-items: center; gap: 0.6vw;
|
|
3076
3076
|
padding: 0.5vw; border: 1.5px solid var(--ps-accent);
|
|
3077
|
-
border-radius: 0.5vw; background: rgba(
|
|
3077
|
+
border-radius: 0.5vw; background: rgba(33,84,239,0.06);
|
|
3078
3078
|
}
|
|
3079
3079
|
.ps-bp-photo-thumb {
|
|
3080
3080
|
width: 2.8vw; height: 2.8vw; object-fit: cover;
|
|
@@ -3092,7 +3092,7 @@ const STYLES = `
|
|
|
3092
3092
|
cursor: pointer; font-size: 1vw; line-height: 1; border-radius: 0.25vw;
|
|
3093
3093
|
transition: all 0.15s; flex-shrink: 0;
|
|
3094
3094
|
}
|
|
3095
|
-
.ps-bp-photo-remove:hover { background: rgba(
|
|
3095
|
+
.ps-bp-photo-remove:hover { background: rgba(0,0,0,0.06); color: var(--ps-text-primary); }
|
|
3096
3096
|
|
|
3097
3097
|
/* Error */
|
|
3098
3098
|
.ps-bp-error {
|
|
@@ -3843,8 +3843,8 @@ function SizingChoiceView({
|
|
|
3843
3843
|
const renderExactFields = () => {
|
|
3844
3844
|
if (sizeGuideFetching) {
|
|
3845
3845
|
return /* @__PURE__ */ jsx(Fragment, { children: [1, 2, 3].map((i) => /* @__PURE__ */ jsxs("div", { className: "ps-tryon-sf-row ps-tryon-sf-skeleton", children: [
|
|
3846
|
-
/* @__PURE__ */ jsx("div", { className: "ps-tryon-sf-label ps-tryon-skel-bar", style: { width: "40%", height: "0.9em", borderRadius: "4px", background: "rgba(
|
|
3847
|
-
/* @__PURE__ */ jsx("div", { className: "ps-tryon-sf-input-wrap", children: /* @__PURE__ */ jsx("div", { className: "ps-tryon-skel-bar", style: { width: "100%", height: "2.2em", borderRadius: "6px", background: "rgba(
|
|
3846
|
+
/* @__PURE__ */ jsx("div", { className: "ps-tryon-sf-label ps-tryon-skel-bar", style: { width: "40%", height: "0.9em", borderRadius: "4px", background: "rgba(0,0,0,0.05)" } }),
|
|
3847
|
+
/* @__PURE__ */ jsx("div", { className: "ps-tryon-sf-input-wrap", children: /* @__PURE__ */ jsx("div", { className: "ps-tryon-skel-bar", style: { width: "100%", height: "2.2em", borderRadius: "6px", background: "rgba(0,0,0,0.04)" } }) })
|
|
3848
3848
|
] }, `skel-${i}`)) });
|
|
3849
3849
|
}
|
|
3850
3850
|
const reqFields = dynamicFields.filter((f) => f.required);
|
|
@@ -4142,7 +4142,7 @@ function MeasurementOverlay({ lines, fitRows, show, imgWidth, imgHeight }) {
|
|
|
4142
4142
|
const curveDepth = width * 0.06;
|
|
4143
4143
|
const midX = (x1 + x2) / 2;
|
|
4144
4144
|
const fitRow = fitRows.find((r) => r.area.toLowerCase() === key);
|
|
4145
|
-
const color = fitRow ? fitColor(fitRow.fit) : "#
|
|
4145
|
+
const color = fitRow ? fitColor(fitRow.fit) : "#2154EF";
|
|
4146
4146
|
const delay = i * 0.35;
|
|
4147
4147
|
const curvePath = `M ${x1} ${cy} Q ${midX} ${cy + curveDepth} ${x2} ${cy}`;
|
|
4148
4148
|
const lineLen = width * 1.05;
|
|
@@ -4199,7 +4199,7 @@ function MeasurementOverlay({ lines, fitRows, show, imgWidth, imgHeight }) {
|
|
|
4199
4199
|
{
|
|
4200
4200
|
x: x2 + 10 * scale,
|
|
4201
4201
|
y: cy + 1 * scale,
|
|
4202
|
-
fill: "rgba(
|
|
4202
|
+
fill: "rgba(0,0,0,0.7)",
|
|
4203
4203
|
fontSize: Math.round(11 * scale),
|
|
4204
4204
|
fontWeight: "500",
|
|
4205
4205
|
fontFamily: "system-ui, -apple-system, sans-serif",
|
|
@@ -4933,7 +4933,7 @@ function SizeResultView({
|
|
|
4933
4933
|
/* @__PURE__ */ jsxs("div", { className: "ps-tryon-v2-panel", children: [
|
|
4934
4934
|
/* @__PURE__ */ jsxs("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "flex-start" }, children: [
|
|
4935
4935
|
/* @__PURE__ */ jsx("h3", { className: "ps-tryon-v2-title", children: t("Virtual Try-On") }),
|
|
4936
|
-
/* @__PURE__ */ jsx("button", { style: { background: "none", border: "none", color: "rgba(
|
|
4936
|
+
/* @__PURE__ */ jsx("button", { style: { background: "none", border: "none", color: "rgba(0,0,0,0.3)", cursor: "pointer", fontSize: "1.2vw" }, onClick: () => setShowPhotoGuide(false), children: "✕" })
|
|
4937
4937
|
] }),
|
|
4938
4938
|
/* @__PURE__ */ jsx("p", { className: "ps-tryon-v2-subtitle", children: t("Upload a full-body photo to see how it looks on you") }),
|
|
4939
4939
|
/* @__PURE__ */ jsx("div", { className: "ps-tryon-v2-sep" }),
|
|
@@ -4966,7 +4966,7 @@ function SizeResultView({
|
|
|
4966
4966
|
" ",
|
|
4967
4967
|
t("Start Try-On")
|
|
4968
4968
|
] }),
|
|
4969
|
-
/* @__PURE__ */ jsx("p", { style: { fontSize: "0.5vw", color: "rgba(
|
|
4969
|
+
/* @__PURE__ */ jsx("p", { style: { fontSize: "0.5vw", color: "rgba(0,0,0,0.25)", textAlign: "center", marginTop: "0.3vw" }, children: t("Your photo is private and never shared") })
|
|
4970
4970
|
] }, "panel-guide")
|
|
4971
4971
|
] }) }),
|
|
4972
4972
|
showFullChart && sizeGuide && /* @__PURE__ */ jsx("div", { className: "ps-tryon-sr-chart-overlay", children: /* @__PURE__ */ jsxs("div", { className: "ps-tryon-sr-chart-modal", children: [
|