@merchi/product-form 1.19.63 → 1.19.65

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.
@@ -1404,6 +1404,19 @@
1404
1404
  }
1405
1405
 
1406
1406
  .merchi-product-draft-sheet {
1407
+ --merchi-draft-bg: #1b1d22;
1408
+ --merchi-draft-surface: #23252b;
1409
+ --merchi-draft-raised: #33353d;
1410
+ --merchi-draft-hover: #3d4049;
1411
+ --merchi-draft-border: #3a3d46;
1412
+ --merchi-draft-text: #f4f4f5;
1413
+ --merchi-draft-muted: #a1a1aa;
1414
+ --merchi-draft-accent: #2f3cc2;
1415
+ --merchi-draft-accent-text: #ffffff;
1416
+ --merchi-draft-accent-soft: #a5b4fc;
1417
+ --merchi-draft-done: #22c55e;
1418
+ --merchi-draft-done-text: #ffffff;
1419
+ --merchi-draft-danger: #f87171;
1407
1420
  position: fixed;
1408
1421
  inset: 0;
1409
1422
  z-index: 12000;
@@ -1411,8 +1424,8 @@
1411
1424
  flex-direction: column;
1412
1425
  width: 100%;
1413
1426
  height: 100dvh;
1414
- background: #111111;
1415
- color: #f4f4f5;
1427
+ background: var(--merchi-draft-bg);
1428
+ color: var(--merchi-draft-text);
1416
1429
  padding-bottom: env(safe-area-inset-bottom);
1417
1430
  }
1418
1431
 
@@ -1420,9 +1433,9 @@
1420
1433
  display: flex;
1421
1434
  align-items: center;
1422
1435
  gap: 0.75rem;
1423
- min-height: 56px;
1424
- padding: 0.5rem 0.75rem;
1425
- padding-top: calc(0.5rem + env(safe-area-inset-top));
1436
+ min-height: 60px;
1437
+ padding: 0.6rem 0.75rem;
1438
+ padding-top: calc(0.6rem + env(safe-area-inset-top));
1426
1439
  }
1427
1440
 
1428
1441
  .merchi-product-draft-sheet-title {
@@ -1433,12 +1446,25 @@
1433
1446
  }
1434
1447
 
1435
1448
  .merchi-product-draft-sheet-title strong {
1436
- font-size: 0.95rem;
1449
+ overflow: hidden;
1450
+ font-size: 1.05rem;
1451
+ font-weight: 700;
1452
+ text-overflow: ellipsis;
1453
+ white-space: nowrap;
1437
1454
  }
1438
1455
 
1439
1456
  .merchi-product-draft-sheet-title span {
1440
1457
  font-size: 0.75rem;
1441
- color: #a1a1aa;
1458
+ color: var(--merchi-draft-muted);
1459
+ }
1460
+
1461
+ .merchi-product-draft-history {
1462
+ display: flex;
1463
+ gap: 0.35rem;
1464
+ }
1465
+
1466
+ .merchi-product-draft-history .merchi-product-draft-icon-btn {
1467
+ padding: 0;
1442
1468
  }
1443
1469
 
1444
1470
  .merchi-product-draft-icon-btn,
@@ -1448,256 +1474,867 @@
1448
1474
  align-items: center;
1449
1475
  justify-content: center;
1450
1476
  gap: 0.35rem;
1451
- min-width: 44px;
1452
- min-height: 44px;
1477
+ min-width: 40px;
1478
+ min-height: 40px;
1453
1479
  width: max-content;
1454
1480
  max-width: none;
1455
- padding: 0 0.8rem;
1481
+ padding: 0 0.75rem;
1456
1482
  border: 0;
1457
- border-radius: 0.7rem;
1458
- background: #27272a;
1483
+ border-radius: 0.6rem;
1484
+ background: var(--merchi-draft-raised);
1459
1485
  color: inherit;
1460
1486
  font: inherit;
1487
+ font-size: 0.9rem;
1461
1488
  white-space: nowrap;
1462
1489
  flex: 0 0 auto;
1463
1490
  overflow: visible;
1491
+ cursor: pointer;
1492
+ }
1493
+
1494
+ .merchi-product-draft-icon-btn svg {
1495
+ flex-shrink: 0;
1496
+ }
1497
+
1498
+ .merchi-product-draft-icon-btn:hover:not(:disabled),
1499
+ .merchi-product-draft-stepper:hover:not(:disabled) {
1500
+ background: var(--merchi-draft-hover);
1501
+ }
1502
+
1503
+ .merchi-product-draft-icon-btn:disabled,
1504
+ .merchi-product-draft-stepper:disabled {
1505
+ opacity: 0.4;
1506
+ cursor: not-allowed;
1507
+ }
1508
+
1509
+ .merchi-product-draft-done-btn {
1510
+ min-width: 7.5rem;
1511
+ padding: 0 1.5rem;
1512
+ background: var(--merchi-draft-done);
1513
+ color: var(--merchi-draft-done-text);
1514
+ font-weight: 700;
1515
+ }
1516
+
1517
+ .merchi-product-draft-done-btn:hover:not(:disabled) {
1518
+ background: #16a34a;
1519
+ }
1520
+
1521
+ .merchi-product-draft-done-btn:disabled {
1522
+ opacity: 0.7;
1523
+ cursor: progress;
1524
+ }
1525
+
1526
+ .merchi-product-draft-confirm {
1527
+ position: absolute;
1528
+ inset: 0;
1529
+ z-index: 6;
1530
+ display: flex;
1531
+ align-items: center;
1532
+ justify-content: center;
1533
+ padding: 1rem;
1534
+ background: rgba(0, 0, 0, 0.55);
1535
+ }
1536
+
1537
+ .merchi-product-draft-confirm-card {
1538
+ width: min(24rem, 100%);
1539
+ padding: 1.25rem 1.25rem 1rem;
1540
+ border-radius: 0.9rem;
1541
+ background: var(--merchi-draft-surface);
1542
+ box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
1543
+ }
1544
+
1545
+ .merchi-product-draft-confirm-card h2 {
1546
+ margin: 0;
1547
+ font-size: 1.15rem;
1548
+ }
1549
+
1550
+ .merchi-product-draft-confirm-card p {
1551
+ margin: 0.5rem 0 0;
1552
+ color: var(--merchi-draft-muted);
1553
+ font-size: 0.95rem;
1554
+ line-height: 1.45;
1555
+ }
1556
+
1557
+ .merchi-product-draft-confirm-actions {
1558
+ display: flex;
1559
+ justify-content: flex-end;
1560
+ gap: 0.5rem;
1561
+ margin-top: 1.1rem;
1562
+ }
1563
+
1564
+ .merchi-product-draft-confirm-actions button {
1565
+ min-height: 40px;
1566
+ padding: 0 1rem;
1567
+ border: 0;
1568
+ border-radius: 0.6rem;
1569
+ background: var(--merchi-draft-raised);
1570
+ color: inherit;
1571
+ font: inherit;
1572
+ font-weight: 600;
1573
+ cursor: pointer;
1574
+ }
1575
+
1576
+ .merchi-product-draft-confirm-actions button:hover {
1577
+ background: var(--merchi-draft-hover);
1578
+ }
1579
+
1580
+ .merchi-product-draft-confirm-actions button.is-leave {
1581
+ background: var(--merchi-draft-danger);
1582
+ color: #1b1d22;
1583
+ }
1584
+
1585
+ .merchi-product-draft-confirm-actions button.is-leave:hover {
1586
+ background: #ef4444;
1587
+ }
1588
+
1589
+ .merchi-product-draft-icon-btn.is-active {
1590
+ background: var(--merchi-draft-accent);
1591
+ color: var(--merchi-draft-accent-text);
1592
+ }
1593
+
1594
+ .merchi-product-draft-icon-btn.is-danger {
1595
+ background: transparent;
1596
+ color: var(--merchi-draft-danger);
1597
+ }
1598
+
1599
+ .merchi-product-draft-chips {
1600
+ display: flex;
1601
+ gap: 0.5rem;
1602
+ overflow-x: auto;
1603
+ padding: 0 0.75rem 0.6rem;
1604
+ -webkit-overflow-scrolling: touch;
1605
+ }
1606
+
1607
+ .merchi-product-draft-chip {
1608
+ flex: 0 0 auto;
1609
+ min-height: 36px;
1610
+ padding: 0.35rem 0.85rem;
1611
+ border: 1px solid var(--merchi-draft-border);
1612
+ border-radius: 999px;
1613
+ background: transparent;
1614
+ color: inherit;
1615
+ cursor: pointer;
1616
+ }
1617
+
1618
+ .merchi-product-draft-chip.is-active {
1619
+ background: var(--merchi-draft-accent);
1620
+ color: var(--merchi-draft-accent-text);
1621
+ border-color: var(--merchi-draft-accent);
1622
+ }
1623
+
1624
+ .merchi-product-draft-main {
1625
+ flex: 1;
1626
+ min-height: 0;
1627
+ display: flex;
1628
+ flex-direction: column;
1629
+ gap: 0.5rem;
1630
+ padding: 0 0.5rem 0.5rem;
1631
+ }
1632
+
1633
+ .merchi-product-draft-sheet-body {
1634
+ order: 1;
1635
+ flex: 1;
1636
+ min-height: 0;
1637
+ position: relative;
1638
+ display: flex;
1639
+ flex-direction: column;
1640
+ overflow: hidden;
1641
+ border-radius: 0.9rem;
1642
+ background: var(--merchi-draft-surface);
1643
+ }
1644
+
1645
+ .merchi-product-draft-canvas,
1646
+ .merchi-product-draft-canvas-fallback {
1647
+ flex: 1;
1648
+ min-height: 0;
1649
+ width: 100%;
1650
+ height: 100%;
1651
+ }
1652
+
1653
+ .merchi-product-draft-canvas {
1654
+ position: relative;
1655
+ }
1656
+
1657
+ .merchi-product-draft-text-editor {
1658
+ position: absolute;
1659
+ left: 0;
1660
+ top: 0;
1661
+ z-index: 2;
1662
+ box-sizing: border-box;
1663
+ margin: 0;
1664
+ padding: 0;
1665
+ overflow: hidden;
1666
+ border: 0;
1667
+ outline: none;
1668
+ background: transparent;
1669
+ resize: none;
1670
+ white-space: pre;
1671
+ transform-origin: 0 0;
1672
+ }
1673
+
1674
+ .merchi-product-draft-canvas-fallback {
1675
+ display: flex;
1676
+ align-items: center;
1677
+ justify-content: center;
1678
+ color: var(--merchi-draft-muted);
1679
+ }
1680
+
1681
+ .merchi-product-draft-zoom {
1682
+ position: absolute;
1683
+ left: 50%;
1684
+ bottom: 0.75rem;
1685
+ z-index: 1;
1686
+ display: inline-flex;
1687
+ align-items: center;
1688
+ gap: 0.15rem;
1689
+ padding: 0.2rem 0.4rem;
1690
+ border-radius: 999px;
1691
+ background: var(--merchi-draft-raised);
1692
+ font-size: 0.9rem;
1693
+ transform: translateX(-50%);
1694
+ }
1695
+
1696
+ .merchi-product-draft-zoom button {
1697
+ display: inline-flex;
1698
+ align-items: center;
1699
+ justify-content: center;
1700
+ min-width: 32px;
1701
+ min-height: 32px;
1702
+ padding: 0 0.4rem;
1703
+ border: 0;
1704
+ border-radius: 999px;
1705
+ background: transparent;
1706
+ color: inherit;
1707
+ font: inherit;
1708
+ cursor: pointer;
1709
+ }
1710
+
1711
+ .merchi-product-draft-zoom button:hover {
1712
+ background: var(--merchi-draft-hover);
1713
+ }
1714
+
1715
+ .merchi-product-draft-zoom span {
1716
+ min-width: 3.25rem;
1717
+ text-align: center;
1718
+ }
1719
+
1720
+ .merchi-product-draft-zoom .merchi-product-draft-zoom-divider {
1721
+ min-width: 0;
1722
+ width: 1px;
1723
+ height: 1.1rem;
1724
+ margin: 0 0.2rem;
1725
+ background: var(--merchi-draft-border);
1726
+ }
1727
+
1728
+ .merchi-product-draft-error {
1729
+ margin: 0;
1730
+ padding: 0.4rem 0.85rem;
1731
+ color: #fecaca;
1732
+ font-size: 0.8rem;
1733
+ }
1734
+
1735
+ .merchi-product-draft-toolbar {
1736
+ order: 3;
1737
+ display: flex;
1738
+ gap: 0.5rem;
1739
+ padding: 0.4rem;
1740
+ border-radius: 0.9rem;
1741
+ background: var(--merchi-draft-surface);
1742
+ }
1743
+
1744
+ .merchi-product-draft-toolbar button {
1745
+ flex: 1;
1746
+ display: flex;
1747
+ flex-direction: column;
1748
+ align-items: center;
1749
+ justify-content: center;
1750
+ gap: 0.3rem;
1751
+ min-height: 56px;
1752
+ border: 0;
1753
+ border-radius: 0.7rem;
1754
+ background: transparent;
1755
+ color: inherit;
1756
+ font: inherit;
1757
+ font-size: 0.8rem;
1758
+ cursor: pointer;
1759
+ }
1760
+
1761
+ .merchi-product-draft-toolbar button svg {
1762
+ width: 1.1rem;
1763
+ height: 1.1rem;
1764
+ }
1765
+
1766
+ .merchi-product-draft-toolbar button:hover:not(.is-active) {
1767
+ background: var(--merchi-draft-raised);
1768
+ }
1769
+
1770
+ .merchi-product-draft-toolbar button.is-active {
1771
+ background: var(--merchi-draft-accent);
1772
+ color: var(--merchi-draft-accent-text);
1773
+ }
1774
+
1775
+ .merchi-product-draft-dock {
1776
+ order: 2;
1777
+ flex: 0 0 auto;
1778
+ display: flex;
1779
+ flex-direction: column;
1780
+ gap: 1rem;
1781
+ max-height: 42dvh;
1782
+ overflow: auto;
1783
+ padding: 0.9rem;
1784
+ border-radius: 0.9rem;
1785
+ background: var(--merchi-draft-surface);
1786
+ }
1787
+
1788
+ .merchi-product-draft-panel {
1789
+ display: flex;
1790
+ flex-direction: column;
1791
+ gap: 0.85rem;
1792
+ }
1793
+
1794
+ .merchi-product-draft-panel-title {
1795
+ margin: 0;
1796
+ color: inherit;
1797
+ font-size: 1.05rem;
1798
+ font-weight: 700;
1799
+ }
1800
+
1801
+ .merchi-product-draft-field {
1802
+ display: flex;
1803
+ flex-direction: column;
1804
+ gap: 0.4rem;
1805
+ min-width: 0;
1806
+ }
1807
+
1808
+ .merchi-product-draft-field-label {
1809
+ color: var(--merchi-draft-muted);
1810
+ font-size: 0.85rem;
1811
+ }
1812
+
1813
+ .merchi-product-draft-text-input {
1814
+ box-sizing: border-box;
1815
+ width: 100%;
1816
+ min-height: 2.75rem;
1817
+ resize: none;
1818
+ border: 1px solid var(--merchi-draft-border);
1819
+ border-radius: 0.6rem;
1820
+ background: var(--merchi-draft-raised);
1821
+ color: inherit;
1822
+ padding: 0.6rem 0.75rem;
1823
+ font: inherit;
1824
+ }
1825
+
1826
+ .merchi-product-draft-font select {
1827
+ width: 100%;
1828
+ min-height: 44px;
1829
+ padding: 0 0.75rem;
1830
+ border: 1px solid var(--merchi-draft-border);
1831
+ border-radius: 0.6rem;
1832
+ background: var(--merchi-draft-raised);
1833
+ color: inherit;
1834
+ font: inherit;
1835
+ font-size: 0.9rem;
1836
+ }
1837
+
1838
+ .merchi-product-draft-font option {
1839
+ background: var(--merchi-draft-surface);
1840
+ color: var(--merchi-draft-text);
1841
+ }
1842
+
1843
+ .merchi-product-draft-size {
1844
+ display: flex;
1845
+ align-items: center;
1846
+ gap: 0.5rem;
1847
+ }
1848
+
1849
+ .merchi-product-draft-size span {
1850
+ min-width: 2.5rem;
1851
+ text-align: center;
1852
+ }
1853
+
1854
+ .merchi-product-draft-size select {
1855
+ flex: 1;
1856
+ min-width: 0;
1857
+ min-height: 40px;
1858
+ padding: 0 0.6rem;
1859
+ border: 1px solid var(--merchi-draft-border);
1860
+ border-radius: 0.6rem;
1861
+ background: var(--merchi-draft-raised);
1862
+ color: inherit;
1863
+ font: inherit;
1864
+ font-size: 0.9rem;
1865
+ text-align: center;
1866
+ }
1867
+
1868
+ .merchi-product-draft-size option {
1869
+ background: var(--merchi-draft-surface);
1870
+ color: var(--merchi-draft-text);
1871
+ }
1872
+
1873
+ .merchi-product-draft-align {
1874
+ display: flex;
1875
+ gap: 0.25rem;
1876
+ padding: 0.25rem;
1877
+ border-radius: 0.6rem;
1878
+ background: var(--merchi-draft-raised);
1879
+ }
1880
+
1881
+ .merchi-product-draft-align button {
1882
+ display: inline-flex;
1883
+ flex: 1;
1884
+ align-items: center;
1885
+ justify-content: center;
1886
+ min-height: 34px;
1887
+ border: 0;
1888
+ border-radius: 0.45rem;
1889
+ background: transparent;
1890
+ color: inherit;
1891
+ cursor: pointer;
1892
+ }
1893
+
1894
+ .merchi-product-draft-align button:hover:not(.is-active) {
1895
+ background: var(--merchi-draft-hover);
1896
+ }
1897
+
1898
+ .merchi-product-draft-align button.is-active {
1899
+ background: var(--merchi-draft-accent);
1900
+ color: var(--merchi-draft-accent-text);
1901
+ }
1902
+
1903
+ .merchi-product-draft-swatches {
1904
+ display: flex;
1905
+ flex-wrap: wrap;
1906
+ gap: 0.5rem;
1907
+ }
1908
+
1909
+ .merchi-product-draft-swatch {
1910
+ position: relative;
1911
+ display: inline-flex;
1912
+ align-items: center;
1913
+ justify-content: center;
1914
+ width: 32px;
1915
+ height: 32px;
1916
+ padding: 0;
1917
+ overflow: hidden;
1918
+ border: 2px solid rgba(255, 255, 255, 0.18);
1919
+ border-radius: 50%;
1920
+ color: #ffffff;
1921
+ font-size: 0.75rem;
1922
+ cursor: pointer;
1923
+ }
1924
+
1925
+ .merchi-product-draft-swatch svg {
1926
+ filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.9));
1927
+ }
1928
+
1929
+ .merchi-product-draft-swatch.is-active {
1930
+ box-shadow: 0 0 0 2px var(--merchi-draft-surface), 0 0 0 4px var(--merchi-draft-accent-soft);
1931
+ }
1932
+
1933
+ .merchi-product-draft-swatch.is-custom {
1934
+ background: var(--merchi-draft-raised);
1935
+ color: var(--merchi-draft-text);
1936
+ }
1937
+
1938
+ .merchi-product-draft-swatch.is-custom input {
1939
+ position: absolute;
1940
+ inset: 0;
1941
+ width: 100%;
1942
+ height: 100%;
1943
+ padding: 0;
1944
+ border: 0;
1945
+ opacity: 0;
1946
+ cursor: pointer;
1947
+ }
1948
+
1949
+ .merchi-product-draft-upload {
1950
+ display: flex;
1951
+ flex-direction: column;
1952
+ align-items: center;
1953
+ gap: 0.45rem;
1954
+ padding: 1.4rem 1rem;
1955
+ border: 1px dashed var(--merchi-draft-border);
1956
+ border-radius: 0.9rem;
1957
+ background: var(--merchi-draft-raised);
1958
+ text-align: center;
1959
+ }
1960
+
1961
+ .merchi-product-draft-upload.is-dragging {
1962
+ border-color: var(--merchi-draft-accent-soft);
1963
+ background: var(--merchi-draft-hover);
1964
+ }
1965
+
1966
+ .merchi-product-draft-upload strong {
1967
+ font-size: 1rem;
1968
+ }
1969
+
1970
+ .merchi-product-draft-upload span {
1971
+ color: var(--merchi-draft-muted);
1972
+ font-size: 0.85rem;
1973
+ }
1974
+
1975
+ .merchi-product-draft-upload-icon {
1976
+ width: 1.6rem;
1977
+ height: 1.6rem;
1978
+ color: var(--merchi-draft-accent-soft);
1979
+ }
1980
+
1981
+ .merchi-product-draft-primary-btn {
1982
+ min-height: 40px;
1983
+ margin-top: 0.35rem;
1984
+ padding: 0 1.1rem;
1985
+ border: 0;
1986
+ border-radius: 0.6rem;
1987
+ background: var(--merchi-draft-accent);
1988
+ color: var(--merchi-draft-accent-text);
1989
+ font: inherit;
1990
+ font-weight: 600;
1991
+ cursor: pointer;
1992
+ }
1993
+
1994
+ .merchi-product-draft-upload-compact {
1995
+ display: none;
1996
+ }
1997
+
1998
+ .merchi-product-draft-selected-item {
1999
+ display: flex;
2000
+ align-items: center;
2001
+ gap: 0.65rem;
2002
+ padding: 0.55rem 0.75rem;
2003
+ border-radius: 0.7rem;
2004
+ background: var(--merchi-draft-raised);
2005
+ }
2006
+
2007
+ .merchi-product-draft-selected-thumb {
2008
+ width: 36px;
2009
+ height: 36px;
2010
+ flex-shrink: 0;
2011
+ object-fit: contain;
2012
+ border-radius: 0.45rem;
2013
+ background: #ffffff;
2014
+ }
2015
+
2016
+ .merchi-product-draft-selected-item > svg {
2017
+ flex-shrink: 0;
2018
+ color: var(--merchi-draft-accent-soft);
2019
+ }
2020
+
2021
+ .merchi-product-draft-empty {
2022
+ display: flex;
2023
+ flex-direction: column;
2024
+ align-items: center;
2025
+ gap: 0.35rem;
2026
+ padding: 1rem 0.5rem;
2027
+ text-align: center;
2028
+ }
2029
+
2030
+ .merchi-product-draft-empty svg {
2031
+ width: 1.4rem;
2032
+ height: 1.4rem;
2033
+ margin-bottom: 0.35rem;
2034
+ color: var(--merchi-draft-muted);
2035
+ }
2036
+
2037
+ .merchi-product-draft-empty strong {
2038
+ font-size: 1rem;
2039
+ }
2040
+
2041
+ .merchi-product-draft-empty span {
2042
+ color: var(--merchi-draft-muted);
2043
+ font-size: 0.9rem;
2044
+ }
2045
+
2046
+ .merchi-product-draft-transform {
2047
+ display: flex;
2048
+ gap: 0.5rem;
2049
+ }
2050
+
2051
+ .merchi-product-draft-transform button {
2052
+ display: inline-flex;
2053
+ flex: 1;
2054
+ align-items: center;
2055
+ justify-content: center;
2056
+ gap: 0.4rem;
2057
+ min-height: 44px;
2058
+ border: 0;
2059
+ border-radius: 0.7rem;
2060
+ background: var(--merchi-draft-raised);
2061
+ color: inherit;
2062
+ font: inherit;
2063
+ font-size: 0.95rem;
2064
+ cursor: pointer;
2065
+ }
2066
+
2067
+ .merchi-product-draft-transform button:hover:not(.is-active) {
2068
+ background: var(--merchi-draft-hover);
2069
+ }
2070
+
2071
+ .merchi-product-draft-transform button.is-active {
2072
+ background: var(--merchi-draft-accent);
2073
+ color: var(--merchi-draft-accent-text);
2074
+ }
2075
+
2076
+ .merchi-product-draft-dock-handle {
2077
+ display: none;
2078
+ }
2079
+
2080
+ .merchi-product-draft-file {
2081
+ display: none;
2082
+ }
2083
+
2084
+ .merchi-product-draft-layers {
2085
+ display: flex;
2086
+ flex-direction: column;
2087
+ gap: 0.6rem;
2088
+ padding-top: 0.9rem;
2089
+ border-top: 1px solid var(--merchi-draft-border);
2090
+ }
2091
+
2092
+ .merchi-product-draft-layers-head {
2093
+ display: flex;
2094
+ align-items: center;
2095
+ justify-content: space-between;
2096
+ gap: 0.5rem;
2097
+ }
2098
+
2099
+ .merchi-product-draft-layers-toggle {
2100
+ padding: 0;
2101
+ border: 0;
2102
+ background: transparent;
2103
+ color: inherit;
2104
+ font: inherit;
2105
+ cursor: pointer;
2106
+ }
2107
+
2108
+ .merchi-product-draft-layers-head strong {
2109
+ font-size: 1rem;
1464
2110
  }
1465
2111
 
1466
- .merchi-product-draft-icon-btn svg {
1467
- flex-shrink: 0;
2112
+ .merchi-product-draft-layers-actions {
2113
+ display: flex;
2114
+ align-items: center;
2115
+ gap: 0.15rem;
1468
2116
  }
1469
2117
 
1470
- .merchi-product-draft-done-btn {
1471
- padding: 0 0.9rem;
1472
- background: #16a34a;
1473
- font-weight: 600;
2118
+ .merchi-product-draft-layer-action {
2119
+ display: inline-flex;
2120
+ align-items: center;
2121
+ justify-content: center;
2122
+ width: 32px;
2123
+ height: 32px;
2124
+ padding: 0;
2125
+ border: 0;
2126
+ border-radius: 0.45rem;
2127
+ background: transparent;
2128
+ color: var(--merchi-draft-muted);
2129
+ cursor: pointer;
1474
2130
  }
1475
2131
 
1476
- .merchi-product-draft-icon-btn.is-danger {
1477
- background: #7f1d1d;
2132
+ .merchi-product-draft-layer-action:hover:not(:disabled) {
2133
+ background: var(--merchi-draft-raised);
2134
+ color: var(--merchi-draft-text);
1478
2135
  }
1479
2136
 
1480
- .merchi-product-draft-chips {
1481
- display: flex;
1482
- gap: 0.5rem;
1483
- overflow-x: auto;
1484
- padding: 0 0.75rem 0.5rem;
1485
- -webkit-overflow-scrolling: touch;
2137
+ .merchi-product-draft-layer-action.is-danger {
2138
+ color: var(--merchi-draft-danger);
1486
2139
  }
1487
2140
 
1488
- .merchi-product-draft-chip {
1489
- flex: 0 0 auto;
1490
- min-height: 36px;
1491
- padding: 0.35rem 0.8rem;
1492
- border: 1px solid #3f3f46;
1493
- border-radius: 999px;
1494
- background: transparent;
1495
- color: inherit;
2141
+ .merchi-product-draft-layer-action:disabled {
2142
+ opacity: 0.35;
2143
+ cursor: not-allowed;
1496
2144
  }
1497
2145
 
1498
- .merchi-product-draft-chip.is-active {
1499
- background: #f4f4f5;
1500
- color: #111111;
1501
- border-color: #f4f4f5;
2146
+ .merchi-product-draft-layer-list {
2147
+ display: flex;
2148
+ flex-direction: column;
2149
+ gap: 0.45rem;
2150
+ max-height: 16rem;
2151
+ overflow: auto;
1502
2152
  }
1503
2153
 
1504
- .merchi-product-draft-main {
1505
- flex: 1;
1506
- min-height: 0;
2154
+ .merchi-product-draft-layers-empty {
1507
2155
  display: flex;
1508
2156
  flex-direction: column;
2157
+ align-items: center;
2158
+ gap: 0.35rem;
2159
+ padding: 1rem;
2160
+ border: 1px solid var(--merchi-draft-border);
2161
+ border-radius: 0.7rem;
2162
+ color: var(--merchi-draft-muted);
2163
+ font-size: 0.9rem;
1509
2164
  }
1510
2165
 
1511
- .merchi-product-draft-sheet-body {
1512
- flex: 1;
1513
- min-height: 0;
2166
+ .merchi-product-draft-layer {
1514
2167
  position: relative;
2168
+ display: flex;
2169
+ align-items: center;
2170
+ gap: 0.7rem;
2171
+ width: 100%;
2172
+ min-height: 52px;
2173
+ padding: 0.5rem 0.75rem;
2174
+ border: 0;
2175
+ border-radius: 0.7rem;
2176
+ background: var(--merchi-draft-raised);
2177
+ color: inherit;
2178
+ font: inherit;
2179
+ text-align: left;
2180
+ cursor: pointer;
1515
2181
  }
1516
2182
 
1517
- .merchi-product-draft-dock {
1518
- flex: 0 0 auto;
1519
- display: flex;
1520
- flex-direction: column;
1521
- background: #18181b;
1522
- border-top: 1px solid #27272a;
2183
+ .merchi-product-draft-layer:hover:not(.is-active) {
2184
+ background: var(--merchi-draft-hover);
1523
2185
  }
1524
2186
 
1525
- .merchi-product-draft-canvas,
1526
- .merchi-product-draft-canvas-fallback {
1527
- width: 100%;
1528
- height: 100%;
2187
+ .merchi-product-draft-layer.is-active {
2188
+ background: var(--merchi-draft-accent);
2189
+ color: var(--merchi-draft-accent-text);
1529
2190
  }
1530
2191
 
1531
- .merchi-product-draft-canvas-fallback {
1532
- display: flex;
1533
- align-items: center;
1534
- justify-content: center;
1535
- color: #a1a1aa;
2192
+ .merchi-product-draft-layer:focus-visible {
2193
+ outline: 2px solid var(--merchi-draft-accent-soft);
2194
+ outline-offset: 1px;
1536
2195
  }
1537
2196
 
1538
- .merchi-product-draft-error {
1539
- margin: 0;
1540
- padding: 0.4rem 0.85rem;
1541
- color: #fecaca;
1542
- font-size: 0.8rem;
2197
+ .merchi-product-draft-layer.is-dragging {
2198
+ opacity: 0.45;
1543
2199
  }
1544
2200
 
1545
- .merchi-product-draft-inspector,
1546
- .merchi-product-draft-toolbar {
1547
- display: flex;
1548
- align-items: center;
1549
- gap: 0.45rem;
1550
- overflow-x: auto;
1551
- padding: 0.45rem 0.75rem;
2201
+ .merchi-product-draft-layer.is-drop-above {
2202
+ box-shadow: inset 0 2px 0 var(--merchi-draft-accent-soft);
1552
2203
  }
1553
2204
 
1554
- .merchi-product-draft-inspector {
1555
- flex: 0 0 auto;
1556
- flex-wrap: wrap;
2205
+ .merchi-product-draft-layer.is-drop-below {
2206
+ box-shadow: inset 0 -2px 0 var(--merchi-draft-accent-soft);
1557
2207
  }
1558
2208
 
1559
- .merchi-product-draft-text-input {
1560
- flex: 0 0 auto;
1561
- width: 100%;
1562
- height: 2.75rem;
1563
- max-height: 2.75rem;
1564
- min-height: 0;
1565
- resize: none;
1566
- border-radius: 0.6rem;
1567
- border: 1px solid #3f3f46;
1568
- background: #09090b;
1569
- color: inherit;
1570
- padding: 0.5rem 0.6rem;
1571
- font: inherit;
2209
+ .merchi-product-draft-layer[draggable=true] {
2210
+ cursor: grab;
1572
2211
  }
1573
2212
 
1574
- .merchi-product-draft-icon-btn.is-active {
1575
- background: #2563eb;
2213
+ .merchi-product-draft-layer-grip {
2214
+ flex-shrink: 0;
2215
+ margin-right: -0.3rem;
2216
+ color: var(--merchi-draft-muted);
2217
+ touch-action: none;
1576
2218
  }
1577
2219
 
1578
- .merchi-product-draft-toolbar {
1579
- justify-content: space-around;
1580
- border-top: 1px solid #27272a;
1581
- background: #18181b;
2220
+ .merchi-product-draft-layer.is-active .merchi-product-draft-layer-grip {
2221
+ color: inherit;
2222
+ opacity: 0.7;
1582
2223
  }
1583
2224
 
1584
- .merchi-product-draft-toolbar button {
1585
- display: flex;
1586
- flex-direction: column;
1587
- align-items: center;
2225
+ .merchi-product-draft-layer-icon {
2226
+ display: inline-flex;
1588
2227
  justify-content: center;
1589
- gap: 0.2rem;
1590
- min-width: 64px;
1591
- min-height: 52px;
1592
- border: 0;
1593
- background: transparent;
1594
- color: inherit;
1595
- font-size: 0.7rem;
2228
+ flex-shrink: 0;
2229
+ width: 1.25rem;
1596
2230
  }
1597
2231
 
1598
- .merchi-product-draft-toolbar button:disabled {
1599
- opacity: 0.4;
2232
+ .merchi-product-draft-layer-text {
2233
+ display: flex;
2234
+ flex: 1;
2235
+ flex-direction: column;
2236
+ min-width: 0;
1600
2237
  }
1601
2238
 
1602
- .merchi-product-draft-color input {
1603
- width: 44px;
1604
- height: 44px;
1605
- padding: 0;
1606
- border: 0;
1607
- background: transparent;
2239
+ .merchi-product-draft-layer-text strong {
2240
+ overflow: hidden;
2241
+ font-size: 0.95rem;
2242
+ font-weight: 600;
2243
+ text-overflow: ellipsis;
2244
+ white-space: nowrap;
1608
2245
  }
1609
2246
 
1610
- .merchi-product-draft-font {
1611
- flex: 1 1 11rem;
1612
- min-width: 10rem;
2247
+ .merchi-product-draft-layer-text small {
2248
+ color: var(--merchi-draft-muted);
2249
+ font-size: 0.78rem;
1613
2250
  }
1614
2251
 
1615
- .merchi-product-draft-font select {
1616
- width: 100%;
1617
- min-height: 44px;
1618
- padding: 0 0.7rem;
1619
- border: 1px solid #3f3f46;
1620
- border-radius: 0.6rem;
1621
- background: #09090b;
2252
+ .merchi-product-draft-layer.is-active .merchi-product-draft-layer-text small {
1622
2253
  color: inherit;
1623
- font: inherit;
1624
- font-size: 0.85rem;
2254
+ opacity: 0.75;
1625
2255
  }
1626
2256
 
1627
- .merchi-product-draft-file {
1628
- display: none;
2257
+ .merchi-product-draft-layer-more {
2258
+ display: inline-flex;
2259
+ align-items: center;
2260
+ justify-content: center;
2261
+ width: 28px;
2262
+ height: 28px;
2263
+ margin-left: auto;
2264
+ padding: 0;
2265
+ border: 0;
2266
+ border-radius: 0.4rem;
2267
+ background: transparent;
2268
+ color: inherit;
2269
+ cursor: pointer;
1629
2270
  }
1630
2271
 
1631
- .merchi-product-draft-layers,
1632
- .merchi-product-draft-text-sheet {
1633
- position: absolute;
1634
- left: 0;
1635
- right: 0;
1636
- bottom: 0;
1637
- z-index: 2;
1638
- max-height: 45%;
1639
- overflow: auto;
1640
- background: #18181b;
1641
- border-top-left-radius: 1rem;
1642
- border-top-right-radius: 1rem;
1643
- padding: 0.9rem 1rem 1rem;
2272
+ .merchi-product-draft-layer-more:hover,
2273
+ .merchi-product-draft-layer-more[aria-expanded=true] {
2274
+ background: rgba(255, 255, 255, 0.16);
1644
2275
  }
1645
2276
 
1646
- .merchi-product-draft-layers-head,
1647
- .merchi-product-draft-text-sheet {
2277
+ .merchi-product-draft-layer-menu {
2278
+ position: fixed;
2279
+ z-index: 5;
1648
2280
  display: flex;
1649
2281
  flex-direction: column;
1650
- gap: 0.6rem;
1651
- }
1652
-
1653
- .merchi-product-draft-layers-head {
1654
- flex-direction: row;
1655
- justify-content: space-between;
1656
- align-items: center;
2282
+ min-width: 11rem;
2283
+ padding: 0.3rem;
2284
+ border-radius: 0.6rem;
2285
+ background: var(--merchi-draft-surface);
2286
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
1657
2287
  }
1658
2288
 
1659
- .merchi-product-draft-layer {
1660
- display: flex;
2289
+ .merchi-product-draft-layer-menu button {
2290
+ display: inline-flex;
1661
2291
  align-items: center;
1662
- gap: 0.6rem;
1663
- width: 100%;
1664
- min-height: 44px;
1665
- margin-top: 0.35rem;
1666
- padding: 0.45rem 0.6rem;
2292
+ gap: 0.5rem;
2293
+ min-height: 36px;
2294
+ padding: 0 0.6rem;
1667
2295
  border: 0;
1668
- border-radius: 0.6rem;
1669
- background: #27272a;
1670
- color: inherit;
2296
+ border-radius: 0.4rem;
2297
+ background: transparent;
2298
+ color: var(--merchi-draft-text);
2299
+ font: inherit;
2300
+ font-size: 0.9rem;
1671
2301
  text-align: left;
2302
+ cursor: pointer;
1672
2303
  }
1673
2304
 
1674
- .merchi-product-draft-layer.is-active {
1675
- outline: 2px solid #60a5fa;
2305
+ .merchi-product-draft-layer-menu button:hover:not(:disabled) {
2306
+ background: var(--merchi-draft-hover);
1676
2307
  }
1677
2308
 
1678
- .merchi-product-draft-layer span {
1679
- margin-left: auto;
1680
- color: #a1a1aa;
2309
+ .merchi-product-draft-layer-menu button:disabled {
2310
+ opacity: 0.4;
2311
+ cursor: not-allowed;
2312
+ }
2313
+
2314
+ .merchi-product-draft-layers-hint {
2315
+ margin: 0;
2316
+ color: var(--merchi-draft-muted);
2317
+ font-size: 0.8rem;
1681
2318
  }
1682
2319
 
1683
- .merchi-product-draft-text-sheet textarea {
2320
+ .merchi-product-draft-delete {
2321
+ display: inline-flex;
2322
+ align-items: center;
2323
+ gap: 0.5rem;
1684
2324
  width: 100%;
1685
- min-height: 88px;
1686
- border-radius: 0.6rem;
1687
- border: 1px solid #3f3f46;
1688
- background: #09090b;
1689
- color: inherit;
1690
- padding: 0.7rem;
2325
+ padding: 0.75rem 0 0;
2326
+ border: 0;
2327
+ border-top: 1px solid var(--merchi-draft-border);
2328
+ background: transparent;
2329
+ color: var(--merchi-draft-danger);
1691
2330
  font: inherit;
2331
+ font-size: 0.95rem;
2332
+ cursor: pointer;
1692
2333
  }
1693
2334
 
1694
- .merchi-product-draft-text-sheet button {
1695
- min-height: 44px;
1696
- border: 0;
1697
- border-radius: 0.7rem;
1698
- background: #2563eb;
1699
- color: #fff;
1700
- font-weight: 600;
2335
+ .merchi-product-draft-delete:disabled {
2336
+ opacity: 0.4;
2337
+ cursor: not-allowed;
1701
2338
  }
1702
2339
 
1703
2340
  .merchi-product-draft-approve {
@@ -1851,24 +2488,51 @@
1851
2488
  }
1852
2489
 
1853
2490
  @media (min-width: 768px) {
2491
+ .merchi-product-draft-sheet-header.has-tools {
2492
+ display: grid;
2493
+ grid-template-columns: 76px minmax(0, 1fr) auto auto;
2494
+ gap: 0.75rem;
2495
+ align-items: center;
2496
+ justify-items: start;
2497
+ }
2498
+ .merchi-product-draft-sheet-header.has-tools .merchi-product-draft-sheet-title {
2499
+ width: calc(100% + 1.25rem);
2500
+ margin-left: -1.25rem;
2501
+ }
1854
2502
  .merchi-product-draft-main {
1855
- flex-direction: row;
2503
+ display: grid;
2504
+ grid-template-columns: 76px minmax(0, 1fr) 320px;
2505
+ grid-template-rows: minmax(0, 1fr);
2506
+ gap: 0.75rem;
2507
+ padding: 0 0.75rem 0.75rem;
1856
2508
  }
1857
- .merchi-product-draft-dock {
1858
- width: 220px;
1859
- border-top: 0;
1860
- border-left: 1px solid #27272a;
1861
- overflow: auto;
2509
+ .merchi-product-draft-main.is-no-tools {
2510
+ grid-template-columns: minmax(0, 1fr) 320px;
1862
2511
  }
1863
2512
  .merchi-product-draft-toolbar,
1864
- .merchi-product-draft-inspector {
1865
- flex-direction: column;
1866
- overflow: visible;
1867
- justify-content: flex-start;
1868
- border-top: 0;
2513
+ .merchi-product-draft-sheet-body,
2514
+ .merchi-product-draft-dock {
2515
+ order: 0;
1869
2516
  }
1870
2517
  .merchi-product-draft-toolbar {
1871
- margin-top: auto;
2518
+ flex-direction: column;
2519
+ align-self: stretch;
2520
+ }
2521
+ .merchi-product-draft-toolbar button {
2522
+ flex: 0 0 auto;
2523
+ min-height: 64px;
2524
+ }
2525
+ .merchi-product-draft-dock {
2526
+ max-height: none;
2527
+ padding: 1rem;
2528
+ }
2529
+ .merchi-product-draft-text-row {
2530
+ display: contents;
2531
+ }
2532
+ .merchi-product-draft-panel-actions,
2533
+ .merchi-product-draft-mobile-hint,
2534
+ .merchi-product-draft-toolbar .merchi-product-draft-toolbar-layers {
2535
+ display: none;
1872
2536
  }
1873
2537
  .merchi-product-draft-approve {
1874
2538
  align-items: center;
@@ -1884,6 +2548,122 @@
1884
2548
  .merchi-product-draft-btn {
1885
2549
  flex: 1 1 calc(50% - 0.4rem);
1886
2550
  }
2551
+ .merchi-product-draft-sheet-title strong {
2552
+ display: -webkit-box;
2553
+ -webkit-box-orient: vertical;
2554
+ -webkit-line-clamp: 2;
2555
+ font-size: 0.95rem;
2556
+ line-height: 1.25;
2557
+ white-space: normal;
2558
+ }
2559
+ .merchi-product-draft-done-btn {
2560
+ min-width: 0;
2561
+ padding: 0 1rem;
2562
+ }
2563
+ .merchi-product-draft-dock {
2564
+ position: relative;
2565
+ padding-top: 1.25rem;
2566
+ border-radius: 1.25rem 1.25rem 0.9rem 0.9rem;
2567
+ }
2568
+ .merchi-product-draft-dock-handle {
2569
+ display: flex;
2570
+ align-items: center;
2571
+ justify-content: center;
2572
+ position: absolute;
2573
+ top: 0;
2574
+ right: 0;
2575
+ left: 0;
2576
+ height: 1.5rem;
2577
+ touch-action: none;
2578
+ }
2579
+ .merchi-product-draft-dock-handle::before {
2580
+ content: "";
2581
+ width: 2.5rem;
2582
+ height: 4px;
2583
+ border-radius: 999px;
2584
+ background: var(--merchi-draft-border);
2585
+ }
2586
+ .merchi-product-draft-dock.is-empty .merchi-product-draft-dock-handle {
2587
+ display: none;
2588
+ }
2589
+ .merchi-product-draft-upload {
2590
+ display: none;
2591
+ }
2592
+ .merchi-product-draft-upload-compact {
2593
+ display: inline-flex;
2594
+ align-items: center;
2595
+ justify-content: center;
2596
+ gap: 0.45rem;
2597
+ width: 100%;
2598
+ min-height: 40px;
2599
+ border: 1px dashed var(--merchi-draft-border);
2600
+ border-radius: 0.7rem;
2601
+ background: var(--merchi-draft-raised);
2602
+ color: inherit;
2603
+ font: inherit;
2604
+ font-size: 0.9rem;
2605
+ cursor: pointer;
2606
+ }
2607
+ .merchi-product-draft-upload-compact svg {
2608
+ width: 1rem;
2609
+ height: 1rem;
2610
+ color: var(--merchi-draft-accent-soft);
2611
+ }
2612
+ .merchi-product-draft-panel {
2613
+ position: relative;
2614
+ }
2615
+ .merchi-product-draft-panel-actions {
2616
+ position: absolute;
2617
+ top: -0.2rem;
2618
+ right: 0;
2619
+ display: flex;
2620
+ gap: 0.15rem;
2621
+ }
2622
+ .merchi-product-draft-text-row {
2623
+ display: grid;
2624
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
2625
+ gap: 0.6rem;
2626
+ }
2627
+ .merchi-product-draft-text-row .merchi-product-draft-size {
2628
+ gap: 0.3rem;
2629
+ }
2630
+ .merchi-product-draft-text-row .merchi-product-draft-stepper {
2631
+ min-width: 36px;
2632
+ padding: 0;
2633
+ }
2634
+ .merchi-product-draft-text-row .merchi-product-draft-stepper,
2635
+ .merchi-product-draft-text-row .merchi-product-draft-size select {
2636
+ min-height: 44px;
2637
+ }
2638
+ .merchi-product-draft-main:not(.is-no-tools):not(.is-layers-open) .merchi-product-draft-layers,
2639
+ .merchi-product-draft-main.is-layers-open .merchi-product-draft-panel,
2640
+ .merchi-product-draft-main.is-no-tools .merchi-product-draft-panel-actions {
2641
+ display: none;
2642
+ }
2643
+ .merchi-product-draft-main.is-layers-open .merchi-product-draft-layers {
2644
+ padding-top: 0;
2645
+ border-top: 0;
2646
+ }
2647
+ .merchi-product-draft-main:not(.is-no-tools):not(.is-layers-open) .merchi-product-draft-dock.is-empty {
2648
+ padding: 0.25rem;
2649
+ background: transparent;
2650
+ }
2651
+ .merchi-product-draft-main:not(.is-no-tools):not(.is-layers-open) .merchi-product-draft-dock.is-empty::before,
2652
+ .merchi-product-draft-main:not(.is-no-tools):not(.is-layers-open) .merchi-product-draft-dock.is-empty .merchi-product-draft-panel-title,
2653
+ .merchi-product-draft-main:not(.is-no-tools):not(.is-layers-open) .merchi-product-draft-dock.is-empty .merchi-product-draft-empty strong {
2654
+ display: none;
2655
+ }
2656
+ .merchi-product-draft-main:not(.is-no-tools):not(.is-layers-open) .merchi-product-draft-dock.is-empty .merchi-product-draft-empty {
2657
+ flex-direction: row;
2658
+ justify-content: center;
2659
+ gap: 0.5rem;
2660
+ padding: 0.5rem;
2661
+ }
2662
+ .merchi-product-draft-main:not(.is-no-tools):not(.is-layers-open) .merchi-product-draft-dock.is-empty .merchi-product-draft-empty svg {
2663
+ width: 1.1rem;
2664
+ height: 1.1rem;
2665
+ margin: 0;
2666
+ }
1887
2667
  }
1888
2668
  .animate_spin {
1889
2669
  animation: merchi-product-form-spin 0.8s linear infinite;