@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.
@@ -1533,6 +1533,19 @@
1533
1533
  }
1534
1534
 
1535
1535
  .merchi-product-draft-sheet {
1536
+ --merchi-draft-bg: #1b1d22;
1537
+ --merchi-draft-surface: #23252b;
1538
+ --merchi-draft-raised: #33353d;
1539
+ --merchi-draft-hover: #3d4049;
1540
+ --merchi-draft-border: #3a3d46;
1541
+ --merchi-draft-text: #f4f4f5;
1542
+ --merchi-draft-muted: #a1a1aa;
1543
+ --merchi-draft-accent: #2f3cc2;
1544
+ --merchi-draft-accent-text: #ffffff;
1545
+ --merchi-draft-accent-soft: #a5b4fc;
1546
+ --merchi-draft-done: #22c55e;
1547
+ --merchi-draft-done-text: #ffffff;
1548
+ --merchi-draft-danger: #f87171;
1536
1549
  position: fixed;
1537
1550
  inset: 0;
1538
1551
  z-index: 12000;
@@ -1540,8 +1553,8 @@
1540
1553
  flex-direction: column;
1541
1554
  width: 100%;
1542
1555
  height: 100dvh;
1543
- background: #111111;
1544
- color: #f4f4f5;
1556
+ background: var(--merchi-draft-bg);
1557
+ color: var(--merchi-draft-text);
1545
1558
  padding-bottom: env(safe-area-inset-bottom);
1546
1559
  }
1547
1560
 
@@ -1549,9 +1562,9 @@
1549
1562
  display: flex;
1550
1563
  align-items: center;
1551
1564
  gap: 0.75rem;
1552
- min-height: 56px;
1553
- padding: 0.5rem 0.75rem;
1554
- padding-top: calc(0.5rem + env(safe-area-inset-top));
1565
+ min-height: 60px;
1566
+ padding: 0.6rem 0.75rem;
1567
+ padding-top: calc(0.6rem + env(safe-area-inset-top));
1555
1568
  }
1556
1569
 
1557
1570
  .merchi-product-draft-sheet-title {
@@ -1562,12 +1575,25 @@
1562
1575
  }
1563
1576
 
1564
1577
  .merchi-product-draft-sheet-title strong {
1565
- font-size: 0.95rem;
1578
+ overflow: hidden;
1579
+ font-size: 1.05rem;
1580
+ font-weight: 700;
1581
+ text-overflow: ellipsis;
1582
+ white-space: nowrap;
1566
1583
  }
1567
1584
 
1568
1585
  .merchi-product-draft-sheet-title span {
1569
1586
  font-size: 0.75rem;
1570
- color: #a1a1aa;
1587
+ color: var(--merchi-draft-muted);
1588
+ }
1589
+
1590
+ .merchi-product-draft-history {
1591
+ display: flex;
1592
+ gap: 0.35rem;
1593
+ }
1594
+
1595
+ .merchi-product-draft-history .merchi-product-draft-icon-btn {
1596
+ padding: 0;
1571
1597
  }
1572
1598
 
1573
1599
  .merchi-product-draft-icon-btn,
@@ -1577,57 +1603,151 @@
1577
1603
  align-items: center;
1578
1604
  justify-content: center;
1579
1605
  gap: 0.35rem;
1580
- min-width: 44px;
1581
- min-height: 44px;
1606
+ min-width: 40px;
1607
+ min-height: 40px;
1582
1608
  width: max-content;
1583
1609
  max-width: none;
1584
- padding: 0 0.8rem;
1610
+ padding: 0 0.75rem;
1585
1611
  border: 0;
1586
- border-radius: 0.7rem;
1587
- background: #27272a;
1612
+ border-radius: 0.6rem;
1613
+ background: var(--merchi-draft-raised);
1588
1614
  color: inherit;
1589
1615
  font: inherit;
1616
+ font-size: 0.9rem;
1590
1617
  white-space: nowrap;
1591
1618
  flex: 0 0 auto;
1592
1619
  overflow: visible;
1620
+ cursor: pointer;
1593
1621
  }
1594
1622
 
1595
1623
  .merchi-product-draft-icon-btn svg {
1596
1624
  flex-shrink: 0;
1597
1625
  }
1598
1626
 
1627
+ .merchi-product-draft-icon-btn:hover:not(:disabled),
1628
+ .merchi-product-draft-stepper:hover:not(:disabled) {
1629
+ background: var(--merchi-draft-hover);
1630
+ }
1631
+
1632
+ .merchi-product-draft-icon-btn:disabled,
1633
+ .merchi-product-draft-stepper:disabled {
1634
+ opacity: 0.4;
1635
+ cursor: not-allowed;
1636
+ }
1637
+
1599
1638
  .merchi-product-draft-done-btn {
1600
- padding: 0 0.9rem;
1639
+ min-width: 7.5rem;
1640
+ padding: 0 1.5rem;
1641
+ background: var(--merchi-draft-done);
1642
+ color: var(--merchi-draft-done-text);
1643
+ font-weight: 700;
1644
+ }
1645
+
1646
+ .merchi-product-draft-done-btn:hover:not(:disabled) {
1601
1647
  background: #16a34a;
1648
+ }
1649
+
1650
+ .merchi-product-draft-done-btn:disabled {
1651
+ opacity: 0.7;
1652
+ cursor: progress;
1653
+ }
1654
+
1655
+ .merchi-product-draft-confirm {
1656
+ position: absolute;
1657
+ inset: 0;
1658
+ z-index: 6;
1659
+ display: flex;
1660
+ align-items: center;
1661
+ justify-content: center;
1662
+ padding: 1rem;
1663
+ background: rgba(0, 0, 0, 0.55);
1664
+ }
1665
+
1666
+ .merchi-product-draft-confirm-card {
1667
+ width: min(24rem, 100%);
1668
+ padding: 1.25rem 1.25rem 1rem;
1669
+ border-radius: 0.9rem;
1670
+ background: var(--merchi-draft-surface);
1671
+ box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
1672
+ }
1673
+
1674
+ .merchi-product-draft-confirm-card h2 {
1675
+ margin: 0;
1676
+ font-size: 1.15rem;
1677
+ }
1678
+
1679
+ .merchi-product-draft-confirm-card p {
1680
+ margin: 0.5rem 0 0;
1681
+ color: var(--merchi-draft-muted);
1682
+ font-size: 0.95rem;
1683
+ line-height: 1.45;
1684
+ }
1685
+
1686
+ .merchi-product-draft-confirm-actions {
1687
+ display: flex;
1688
+ justify-content: flex-end;
1689
+ gap: 0.5rem;
1690
+ margin-top: 1.1rem;
1691
+ }
1692
+
1693
+ .merchi-product-draft-confirm-actions button {
1694
+ min-height: 40px;
1695
+ padding: 0 1rem;
1696
+ border: 0;
1697
+ border-radius: 0.6rem;
1698
+ background: var(--merchi-draft-raised);
1699
+ color: inherit;
1700
+ font: inherit;
1602
1701
  font-weight: 600;
1702
+ cursor: pointer;
1703
+ }
1704
+
1705
+ .merchi-product-draft-confirm-actions button:hover {
1706
+ background: var(--merchi-draft-hover);
1707
+ }
1708
+
1709
+ .merchi-product-draft-confirm-actions button.is-leave {
1710
+ background: var(--merchi-draft-danger);
1711
+ color: #1b1d22;
1712
+ }
1713
+
1714
+ .merchi-product-draft-confirm-actions button.is-leave:hover {
1715
+ background: #ef4444;
1716
+ }
1717
+
1718
+ .merchi-product-draft-icon-btn.is-active {
1719
+ background: var(--merchi-draft-accent);
1720
+ color: var(--merchi-draft-accent-text);
1603
1721
  }
1604
1722
 
1605
1723
  .merchi-product-draft-icon-btn.is-danger {
1606
- background: #7f1d1d;
1724
+ background: transparent;
1725
+ color: var(--merchi-draft-danger);
1607
1726
  }
1608
1727
 
1609
1728
  .merchi-product-draft-chips {
1610
1729
  display: flex;
1611
1730
  gap: 0.5rem;
1612
1731
  overflow-x: auto;
1613
- padding: 0 0.75rem 0.5rem;
1732
+ padding: 0 0.75rem 0.6rem;
1614
1733
  -webkit-overflow-scrolling: touch;
1615
1734
  }
1616
1735
 
1617
1736
  .merchi-product-draft-chip {
1618
1737
  flex: 0 0 auto;
1619
1738
  min-height: 36px;
1620
- padding: 0.35rem 0.8rem;
1621
- border: 1px solid #3f3f46;
1739
+ padding: 0.35rem 0.85rem;
1740
+ border: 1px solid var(--merchi-draft-border);
1622
1741
  border-radius: 999px;
1623
1742
  background: transparent;
1624
1743
  color: inherit;
1744
+ cursor: pointer;
1625
1745
  }
1626
1746
 
1627
1747
  .merchi-product-draft-chip.is-active {
1628
- background: #f4f4f5;
1629
- color: #111111;
1630
- border-color: #f4f4f5;
1748
+ background: var(--merchi-draft-accent);
1749
+ color: var(--merchi-draft-accent-text);
1750
+ border-color: var(--merchi-draft-accent);
1631
1751
  }
1632
1752
 
1633
1753
  .merchi-product-draft-main {
@@ -1635,198 +1755,715 @@
1635
1755
  min-height: 0;
1636
1756
  display: flex;
1637
1757
  flex-direction: column;
1758
+ gap: 0.5rem;
1759
+ padding: 0 0.5rem 0.5rem;
1638
1760
  }
1639
1761
 
1640
1762
  .merchi-product-draft-sheet-body {
1763
+ order: 1;
1641
1764
  flex: 1;
1642
1765
  min-height: 0;
1643
1766
  position: relative;
1767
+ display: flex;
1768
+ flex-direction: column;
1769
+ overflow: hidden;
1770
+ border-radius: 0.9rem;
1771
+ background: var(--merchi-draft-surface);
1772
+ }
1773
+
1774
+ .merchi-product-draft-canvas,
1775
+ .merchi-product-draft-canvas-fallback {
1776
+ flex: 1;
1777
+ min-height: 0;
1778
+ width: 100%;
1779
+ height: 100%;
1780
+ }
1781
+
1782
+ .merchi-product-draft-canvas {
1783
+ position: relative;
1784
+ }
1785
+
1786
+ .merchi-product-draft-text-editor {
1787
+ position: absolute;
1788
+ left: 0;
1789
+ top: 0;
1790
+ z-index: 2;
1791
+ box-sizing: border-box;
1792
+ margin: 0;
1793
+ padding: 0;
1794
+ overflow: hidden;
1795
+ border: 0;
1796
+ outline: none;
1797
+ background: transparent;
1798
+ resize: none;
1799
+ white-space: pre;
1800
+ transform-origin: 0 0;
1801
+ }
1802
+
1803
+ .merchi-product-draft-canvas-fallback {
1804
+ display: flex;
1805
+ align-items: center;
1806
+ justify-content: center;
1807
+ color: var(--merchi-draft-muted);
1808
+ }
1809
+
1810
+ .merchi-product-draft-zoom {
1811
+ position: absolute;
1812
+ left: 50%;
1813
+ bottom: 0.75rem;
1814
+ z-index: 1;
1815
+ display: inline-flex;
1816
+ align-items: center;
1817
+ gap: 0.15rem;
1818
+ padding: 0.2rem 0.4rem;
1819
+ border-radius: 999px;
1820
+ background: var(--merchi-draft-raised);
1821
+ font-size: 0.9rem;
1822
+ transform: translateX(-50%);
1823
+ }
1824
+
1825
+ .merchi-product-draft-zoom button {
1826
+ display: inline-flex;
1827
+ align-items: center;
1828
+ justify-content: center;
1829
+ min-width: 32px;
1830
+ min-height: 32px;
1831
+ padding: 0 0.4rem;
1832
+ border: 0;
1833
+ border-radius: 999px;
1834
+ background: transparent;
1835
+ color: inherit;
1836
+ font: inherit;
1837
+ cursor: pointer;
1838
+ }
1839
+
1840
+ .merchi-product-draft-zoom button:hover {
1841
+ background: var(--merchi-draft-hover);
1842
+ }
1843
+
1844
+ .merchi-product-draft-zoom span {
1845
+ min-width: 3.25rem;
1846
+ text-align: center;
1847
+ }
1848
+
1849
+ .merchi-product-draft-zoom .merchi-product-draft-zoom-divider {
1850
+ min-width: 0;
1851
+ width: 1px;
1852
+ height: 1.1rem;
1853
+ margin: 0 0.2rem;
1854
+ background: var(--merchi-draft-border);
1855
+ }
1856
+
1857
+ .merchi-product-draft-error {
1858
+ margin: 0;
1859
+ padding: 0.4rem 0.85rem;
1860
+ color: #fecaca;
1861
+ font-size: 0.8rem;
1862
+ }
1863
+
1864
+ .merchi-product-draft-toolbar {
1865
+ order: 3;
1866
+ display: flex;
1867
+ gap: 0.5rem;
1868
+ padding: 0.4rem;
1869
+ border-radius: 0.9rem;
1870
+ background: var(--merchi-draft-surface);
1871
+ }
1872
+
1873
+ .merchi-product-draft-toolbar button {
1874
+ flex: 1;
1875
+ display: flex;
1876
+ flex-direction: column;
1877
+ align-items: center;
1878
+ justify-content: center;
1879
+ gap: 0.3rem;
1880
+ min-height: 56px;
1881
+ border: 0;
1882
+ border-radius: 0.7rem;
1883
+ background: transparent;
1884
+ color: inherit;
1885
+ font: inherit;
1886
+ font-size: 0.8rem;
1887
+ cursor: pointer;
1888
+ }
1889
+
1890
+ .merchi-product-draft-toolbar button svg {
1891
+ width: 1.1rem;
1892
+ height: 1.1rem;
1893
+ }
1894
+
1895
+ .merchi-product-draft-toolbar button:hover:not(.is-active) {
1896
+ background: var(--merchi-draft-raised);
1897
+ }
1898
+
1899
+ .merchi-product-draft-toolbar button.is-active {
1900
+ background: var(--merchi-draft-accent);
1901
+ color: var(--merchi-draft-accent-text);
1644
1902
  }
1645
1903
 
1646
1904
  .merchi-product-draft-dock {
1905
+ order: 2;
1647
1906
  flex: 0 0 auto;
1648
1907
  display: flex;
1649
1908
  flex-direction: column;
1650
- background: #18181b;
1651
- border-top: 1px solid #27272a;
1909
+ gap: 1rem;
1910
+ max-height: 42dvh;
1911
+ overflow: auto;
1912
+ padding: 0.9rem;
1913
+ border-radius: 0.9rem;
1914
+ background: var(--merchi-draft-surface);
1915
+ }
1916
+
1917
+ .merchi-product-draft-panel {
1918
+ display: flex;
1919
+ flex-direction: column;
1920
+ gap: 0.85rem;
1921
+ }
1922
+
1923
+ .merchi-product-draft-panel-title {
1924
+ margin: 0;
1925
+ color: inherit;
1926
+ font-size: 1.05rem;
1927
+ font-weight: 700;
1928
+ }
1929
+
1930
+ .merchi-product-draft-field {
1931
+ display: flex;
1932
+ flex-direction: column;
1933
+ gap: 0.4rem;
1934
+ min-width: 0;
1935
+ }
1936
+
1937
+ .merchi-product-draft-field-label {
1938
+ color: var(--merchi-draft-muted);
1939
+ font-size: 0.85rem;
1940
+ }
1941
+
1942
+ .merchi-product-draft-text-input {
1943
+ box-sizing: border-box;
1944
+ width: 100%;
1945
+ min-height: 2.75rem;
1946
+ resize: none;
1947
+ border: 1px solid var(--merchi-draft-border);
1948
+ border-radius: 0.6rem;
1949
+ background: var(--merchi-draft-raised);
1950
+ color: inherit;
1951
+ padding: 0.6rem 0.75rem;
1952
+ font: inherit;
1953
+ }
1954
+
1955
+ .merchi-product-draft-font select {
1956
+ width: 100%;
1957
+ min-height: 44px;
1958
+ padding: 0 0.75rem;
1959
+ border: 1px solid var(--merchi-draft-border);
1960
+ border-radius: 0.6rem;
1961
+ background: var(--merchi-draft-raised);
1962
+ color: inherit;
1963
+ font: inherit;
1964
+ font-size: 0.9rem;
1965
+ }
1966
+
1967
+ .merchi-product-draft-font option {
1968
+ background: var(--merchi-draft-surface);
1969
+ color: var(--merchi-draft-text);
1970
+ }
1971
+
1972
+ .merchi-product-draft-size {
1973
+ display: flex;
1974
+ align-items: center;
1975
+ gap: 0.5rem;
1976
+ }
1977
+
1978
+ .merchi-product-draft-size span {
1979
+ min-width: 2.5rem;
1980
+ text-align: center;
1981
+ }
1982
+
1983
+ .merchi-product-draft-size select {
1984
+ flex: 1;
1985
+ min-width: 0;
1986
+ min-height: 40px;
1987
+ padding: 0 0.6rem;
1988
+ border: 1px solid var(--merchi-draft-border);
1989
+ border-radius: 0.6rem;
1990
+ background: var(--merchi-draft-raised);
1991
+ color: inherit;
1992
+ font: inherit;
1993
+ font-size: 0.9rem;
1994
+ text-align: center;
1995
+ }
1996
+
1997
+ .merchi-product-draft-size option {
1998
+ background: var(--merchi-draft-surface);
1999
+ color: var(--merchi-draft-text);
2000
+ }
2001
+
2002
+ .merchi-product-draft-align {
2003
+ display: flex;
2004
+ gap: 0.25rem;
2005
+ padding: 0.25rem;
2006
+ border-radius: 0.6rem;
2007
+ background: var(--merchi-draft-raised);
2008
+ }
2009
+
2010
+ .merchi-product-draft-align button {
2011
+ display: inline-flex;
2012
+ flex: 1;
2013
+ align-items: center;
2014
+ justify-content: center;
2015
+ min-height: 34px;
2016
+ border: 0;
2017
+ border-radius: 0.45rem;
2018
+ background: transparent;
2019
+ color: inherit;
2020
+ cursor: pointer;
2021
+ }
2022
+
2023
+ .merchi-product-draft-align button:hover:not(.is-active) {
2024
+ background: var(--merchi-draft-hover);
2025
+ }
2026
+
2027
+ .merchi-product-draft-align button.is-active {
2028
+ background: var(--merchi-draft-accent);
2029
+ color: var(--merchi-draft-accent-text);
2030
+ }
2031
+
2032
+ .merchi-product-draft-swatches {
2033
+ display: flex;
2034
+ flex-wrap: wrap;
2035
+ gap: 0.5rem;
2036
+ }
2037
+
2038
+ .merchi-product-draft-swatch {
2039
+ position: relative;
2040
+ display: inline-flex;
2041
+ align-items: center;
2042
+ justify-content: center;
2043
+ width: 32px;
2044
+ height: 32px;
2045
+ padding: 0;
2046
+ overflow: hidden;
2047
+ border: 2px solid rgba(255, 255, 255, 0.18);
2048
+ border-radius: 50%;
2049
+ color: #ffffff;
2050
+ font-size: 0.75rem;
2051
+ cursor: pointer;
2052
+ }
2053
+
2054
+ .merchi-product-draft-swatch svg {
2055
+ filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.9));
2056
+ }
2057
+
2058
+ .merchi-product-draft-swatch.is-active {
2059
+ box-shadow: 0 0 0 2px var(--merchi-draft-surface), 0 0 0 4px var(--merchi-draft-accent-soft);
2060
+ }
2061
+
2062
+ .merchi-product-draft-swatch.is-custom {
2063
+ background: var(--merchi-draft-raised);
2064
+ color: var(--merchi-draft-text);
2065
+ }
2066
+
2067
+ .merchi-product-draft-swatch.is-custom input {
2068
+ position: absolute;
2069
+ inset: 0;
2070
+ width: 100%;
2071
+ height: 100%;
2072
+ padding: 0;
2073
+ border: 0;
2074
+ opacity: 0;
2075
+ cursor: pointer;
2076
+ }
2077
+
2078
+ .merchi-product-draft-upload {
2079
+ display: flex;
2080
+ flex-direction: column;
2081
+ align-items: center;
2082
+ gap: 0.45rem;
2083
+ padding: 1.4rem 1rem;
2084
+ border: 1px dashed var(--merchi-draft-border);
2085
+ border-radius: 0.9rem;
2086
+ background: var(--merchi-draft-raised);
2087
+ text-align: center;
2088
+ }
2089
+
2090
+ .merchi-product-draft-upload.is-dragging {
2091
+ border-color: var(--merchi-draft-accent-soft);
2092
+ background: var(--merchi-draft-hover);
2093
+ }
2094
+
2095
+ .merchi-product-draft-upload strong {
2096
+ font-size: 1rem;
2097
+ }
2098
+
2099
+ .merchi-product-draft-upload span {
2100
+ color: var(--merchi-draft-muted);
2101
+ font-size: 0.85rem;
2102
+ }
2103
+
2104
+ .merchi-product-draft-upload-icon {
2105
+ width: 1.6rem;
2106
+ height: 1.6rem;
2107
+ color: var(--merchi-draft-accent-soft);
2108
+ }
2109
+
2110
+ .merchi-product-draft-primary-btn {
2111
+ min-height: 40px;
2112
+ margin-top: 0.35rem;
2113
+ padding: 0 1.1rem;
2114
+ border: 0;
2115
+ border-radius: 0.6rem;
2116
+ background: var(--merchi-draft-accent);
2117
+ color: var(--merchi-draft-accent-text);
2118
+ font: inherit;
2119
+ font-weight: 600;
2120
+ cursor: pointer;
2121
+ }
2122
+
2123
+ .merchi-product-draft-upload-compact {
2124
+ display: none;
2125
+ }
2126
+
2127
+ .merchi-product-draft-selected-item {
2128
+ display: flex;
2129
+ align-items: center;
2130
+ gap: 0.65rem;
2131
+ padding: 0.55rem 0.75rem;
2132
+ border-radius: 0.7rem;
2133
+ background: var(--merchi-draft-raised);
2134
+ }
2135
+
2136
+ .merchi-product-draft-selected-thumb {
2137
+ width: 36px;
2138
+ height: 36px;
2139
+ flex-shrink: 0;
2140
+ object-fit: contain;
2141
+ border-radius: 0.45rem;
2142
+ background: #ffffff;
2143
+ }
2144
+
2145
+ .merchi-product-draft-selected-item > svg {
2146
+ flex-shrink: 0;
2147
+ color: var(--merchi-draft-accent-soft);
2148
+ }
2149
+
2150
+ .merchi-product-draft-empty {
2151
+ display: flex;
2152
+ flex-direction: column;
2153
+ align-items: center;
2154
+ gap: 0.35rem;
2155
+ padding: 1rem 0.5rem;
2156
+ text-align: center;
2157
+ }
2158
+
2159
+ .merchi-product-draft-empty svg {
2160
+ width: 1.4rem;
2161
+ height: 1.4rem;
2162
+ margin-bottom: 0.35rem;
2163
+ color: var(--merchi-draft-muted);
2164
+ }
2165
+
2166
+ .merchi-product-draft-empty strong {
2167
+ font-size: 1rem;
2168
+ }
2169
+
2170
+ .merchi-product-draft-empty span {
2171
+ color: var(--merchi-draft-muted);
2172
+ font-size: 0.9rem;
2173
+ }
2174
+
2175
+ .merchi-product-draft-transform {
2176
+ display: flex;
2177
+ gap: 0.5rem;
2178
+ }
2179
+
2180
+ .merchi-product-draft-transform button {
2181
+ display: inline-flex;
2182
+ flex: 1;
2183
+ align-items: center;
2184
+ justify-content: center;
2185
+ gap: 0.4rem;
2186
+ min-height: 44px;
2187
+ border: 0;
2188
+ border-radius: 0.7rem;
2189
+ background: var(--merchi-draft-raised);
2190
+ color: inherit;
2191
+ font: inherit;
2192
+ font-size: 0.95rem;
2193
+ cursor: pointer;
2194
+ }
2195
+
2196
+ .merchi-product-draft-transform button:hover:not(.is-active) {
2197
+ background: var(--merchi-draft-hover);
2198
+ }
2199
+
2200
+ .merchi-product-draft-transform button.is-active {
2201
+ background: var(--merchi-draft-accent);
2202
+ color: var(--merchi-draft-accent-text);
2203
+ }
2204
+
2205
+ .merchi-product-draft-dock-handle {
2206
+ display: none;
2207
+ }
2208
+
2209
+ .merchi-product-draft-file {
2210
+ display: none;
2211
+ }
2212
+
2213
+ .merchi-product-draft-layers {
2214
+ display: flex;
2215
+ flex-direction: column;
2216
+ gap: 0.6rem;
2217
+ padding-top: 0.9rem;
2218
+ border-top: 1px solid var(--merchi-draft-border);
2219
+ }
2220
+
2221
+ .merchi-product-draft-layers-head {
2222
+ display: flex;
2223
+ align-items: center;
2224
+ justify-content: space-between;
2225
+ gap: 0.5rem;
2226
+ }
2227
+
2228
+ .merchi-product-draft-layers-toggle {
2229
+ padding: 0;
2230
+ border: 0;
2231
+ background: transparent;
2232
+ color: inherit;
2233
+ font: inherit;
2234
+ cursor: pointer;
2235
+ }
2236
+
2237
+ .merchi-product-draft-layers-head strong {
2238
+ font-size: 1rem;
2239
+ }
2240
+
2241
+ .merchi-product-draft-layers-actions {
2242
+ display: flex;
2243
+ align-items: center;
2244
+ gap: 0.15rem;
2245
+ }
2246
+
2247
+ .merchi-product-draft-layer-action {
2248
+ display: inline-flex;
2249
+ align-items: center;
2250
+ justify-content: center;
2251
+ width: 32px;
2252
+ height: 32px;
2253
+ padding: 0;
2254
+ border: 0;
2255
+ border-radius: 0.45rem;
2256
+ background: transparent;
2257
+ color: var(--merchi-draft-muted);
2258
+ cursor: pointer;
1652
2259
  }
1653
2260
 
1654
- .merchi-product-draft-canvas,
1655
- .merchi-product-draft-canvas-fallback {
1656
- width: 100%;
1657
- height: 100%;
2261
+ .merchi-product-draft-layer-action:hover:not(:disabled) {
2262
+ background: var(--merchi-draft-raised);
2263
+ color: var(--merchi-draft-text);
1658
2264
  }
1659
2265
 
1660
- .merchi-product-draft-canvas-fallback {
1661
- display: flex;
1662
- align-items: center;
1663
- justify-content: center;
1664
- color: #a1a1aa;
2266
+ .merchi-product-draft-layer-action.is-danger {
2267
+ color: var(--merchi-draft-danger);
1665
2268
  }
1666
2269
 
1667
- .merchi-product-draft-error {
1668
- margin: 0;
1669
- padding: 0.4rem 0.85rem;
1670
- color: #fecaca;
1671
- font-size: 0.8rem;
2270
+ .merchi-product-draft-layer-action:disabled {
2271
+ opacity: 0.35;
2272
+ cursor: not-allowed;
1672
2273
  }
1673
2274
 
1674
- .merchi-product-draft-inspector,
1675
- .merchi-product-draft-toolbar {
2275
+ .merchi-product-draft-layer-list {
1676
2276
  display: flex;
1677
- align-items: center;
2277
+ flex-direction: column;
1678
2278
  gap: 0.45rem;
1679
- overflow-x: auto;
1680
- padding: 0.45rem 0.75rem;
2279
+ max-height: 16rem;
2280
+ overflow: auto;
1681
2281
  }
1682
2282
 
1683
- .merchi-product-draft-inspector {
1684
- flex: 0 0 auto;
1685
- flex-wrap: wrap;
2283
+ .merchi-product-draft-layers-empty {
2284
+ display: flex;
2285
+ flex-direction: column;
2286
+ align-items: center;
2287
+ gap: 0.35rem;
2288
+ padding: 1rem;
2289
+ border: 1px solid var(--merchi-draft-border);
2290
+ border-radius: 0.7rem;
2291
+ color: var(--merchi-draft-muted);
2292
+ font-size: 0.9rem;
1686
2293
  }
1687
2294
 
1688
- .merchi-product-draft-text-input {
1689
- flex: 0 0 auto;
2295
+ .merchi-product-draft-layer {
2296
+ position: relative;
2297
+ display: flex;
2298
+ align-items: center;
2299
+ gap: 0.7rem;
1690
2300
  width: 100%;
1691
- height: 2.75rem;
1692
- max-height: 2.75rem;
1693
- min-height: 0;
1694
- resize: none;
1695
- border-radius: 0.6rem;
1696
- border: 1px solid #3f3f46;
1697
- background: #09090b;
2301
+ min-height: 52px;
2302
+ padding: 0.5rem 0.75rem;
2303
+ border: 0;
2304
+ border-radius: 0.7rem;
2305
+ background: var(--merchi-draft-raised);
1698
2306
  color: inherit;
1699
- padding: 0.5rem 0.6rem;
1700
2307
  font: inherit;
2308
+ text-align: left;
2309
+ cursor: pointer;
1701
2310
  }
1702
2311
 
1703
- .merchi-product-draft-icon-btn.is-active {
1704
- background: #2563eb;
2312
+ .merchi-product-draft-layer:hover:not(.is-active) {
2313
+ background: var(--merchi-draft-hover);
1705
2314
  }
1706
2315
 
1707
- .merchi-product-draft-toolbar {
1708
- justify-content: space-around;
1709
- border-top: 1px solid #27272a;
1710
- background: #18181b;
2316
+ .merchi-product-draft-layer.is-active {
2317
+ background: var(--merchi-draft-accent);
2318
+ color: var(--merchi-draft-accent-text);
1711
2319
  }
1712
2320
 
1713
- .merchi-product-draft-toolbar button {
1714
- display: flex;
1715
- flex-direction: column;
1716
- align-items: center;
1717
- justify-content: center;
1718
- gap: 0.2rem;
1719
- min-width: 64px;
1720
- min-height: 52px;
1721
- border: 0;
1722
- background: transparent;
1723
- color: inherit;
1724
- font-size: 0.7rem;
2321
+ .merchi-product-draft-layer:focus-visible {
2322
+ outline: 2px solid var(--merchi-draft-accent-soft);
2323
+ outline-offset: 1px;
1725
2324
  }
1726
2325
 
1727
- .merchi-product-draft-toolbar button:disabled {
1728
- opacity: 0.4;
2326
+ .merchi-product-draft-layer.is-dragging {
2327
+ opacity: 0.45;
1729
2328
  }
1730
2329
 
1731
- .merchi-product-draft-color input {
1732
- width: 44px;
1733
- height: 44px;
1734
- padding: 0;
1735
- border: 0;
1736
- background: transparent;
2330
+ .merchi-product-draft-layer.is-drop-above {
2331
+ box-shadow: inset 0 2px 0 var(--merchi-draft-accent-soft);
1737
2332
  }
1738
2333
 
1739
- .merchi-product-draft-font {
1740
- flex: 1 1 11rem;
1741
- min-width: 10rem;
2334
+ .merchi-product-draft-layer.is-drop-below {
2335
+ box-shadow: inset 0 -2px 0 var(--merchi-draft-accent-soft);
1742
2336
  }
1743
2337
 
1744
- .merchi-product-draft-font select {
1745
- width: 100%;
1746
- min-height: 44px;
1747
- padding: 0 0.7rem;
1748
- border: 1px solid #3f3f46;
1749
- border-radius: 0.6rem;
1750
- background: #09090b;
1751
- color: inherit;
1752
- font: inherit;
1753
- font-size: 0.85rem;
2338
+ .merchi-product-draft-layer[draggable='true'] {
2339
+ cursor: grab;
1754
2340
  }
1755
2341
 
1756
- .merchi-product-draft-file {
1757
- display: none;
2342
+ .merchi-product-draft-layer-grip {
2343
+ flex-shrink: 0;
2344
+ margin-right: -0.3rem;
2345
+ color: var(--merchi-draft-muted);
2346
+ touch-action: none;
1758
2347
  }
1759
2348
 
1760
- .merchi-product-draft-layers,
1761
- .merchi-product-draft-text-sheet {
1762
- position: absolute;
1763
- left: 0;
1764
- right: 0;
1765
- bottom: 0;
1766
- z-index: 2;
1767
- max-height: 45%;
1768
- overflow: auto;
1769
- background: #18181b;
1770
- border-top-left-radius: 1rem;
1771
- border-top-right-radius: 1rem;
1772
- padding: 0.9rem 1rem 1rem;
2349
+ .merchi-product-draft-layer.is-active .merchi-product-draft-layer-grip {
2350
+ color: inherit;
2351
+ opacity: 0.7;
2352
+ }
2353
+
2354
+ .merchi-product-draft-layer-icon {
2355
+ display: inline-flex;
2356
+ justify-content: center;
2357
+ flex-shrink: 0;
2358
+ width: 1.25rem;
1773
2359
  }
1774
2360
 
1775
- .merchi-product-draft-layers-head,
1776
- .merchi-product-draft-text-sheet {
2361
+ .merchi-product-draft-layer-text {
1777
2362
  display: flex;
2363
+ flex: 1;
1778
2364
  flex-direction: column;
1779
- gap: 0.6rem;
2365
+ min-width: 0;
1780
2366
  }
1781
2367
 
1782
- .merchi-product-draft-layers-head {
1783
- flex-direction: row;
1784
- justify-content: space-between;
2368
+ .merchi-product-draft-layer-text strong {
2369
+ overflow: hidden;
2370
+ font-size: 0.95rem;
2371
+ font-weight: 600;
2372
+ text-overflow: ellipsis;
2373
+ white-space: nowrap;
2374
+ }
2375
+
2376
+ .merchi-product-draft-layer-text small {
2377
+ color: var(--merchi-draft-muted);
2378
+ font-size: 0.78rem;
2379
+ }
2380
+
2381
+ .merchi-product-draft-layer.is-active .merchi-product-draft-layer-text small {
2382
+ color: inherit;
2383
+ opacity: 0.75;
2384
+ }
2385
+
2386
+ .merchi-product-draft-layer-more {
2387
+ display: inline-flex;
1785
2388
  align-items: center;
2389
+ justify-content: center;
2390
+ width: 28px;
2391
+ height: 28px;
2392
+ margin-left: auto;
2393
+ padding: 0;
2394
+ border: 0;
2395
+ border-radius: 0.4rem;
2396
+ background: transparent;
2397
+ color: inherit;
2398
+ cursor: pointer;
1786
2399
  }
1787
2400
 
1788
- .merchi-product-draft-layer {
2401
+ .merchi-product-draft-layer-more:hover,
2402
+ .merchi-product-draft-layer-more[aria-expanded='true'] {
2403
+ background: rgba(255, 255, 255, 0.16);
2404
+ }
2405
+
2406
+ .merchi-product-draft-layer-menu {
2407
+ position: fixed;
2408
+ z-index: 5;
1789
2409
  display: flex;
2410
+ flex-direction: column;
2411
+ min-width: 11rem;
2412
+ padding: 0.3rem;
2413
+ border-radius: 0.6rem;
2414
+ background: var(--merchi-draft-surface);
2415
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
2416
+ }
2417
+
2418
+ .merchi-product-draft-layer-menu button {
2419
+ display: inline-flex;
1790
2420
  align-items: center;
1791
- gap: 0.6rem;
1792
- width: 100%;
1793
- min-height: 44px;
1794
- margin-top: 0.35rem;
1795
- padding: 0.45rem 0.6rem;
2421
+ gap: 0.5rem;
2422
+ min-height: 36px;
2423
+ padding: 0 0.6rem;
1796
2424
  border: 0;
1797
- border-radius: 0.6rem;
1798
- background: #27272a;
1799
- color: inherit;
2425
+ border-radius: 0.4rem;
2426
+ background: transparent;
2427
+ color: var(--merchi-draft-text);
2428
+ font: inherit;
2429
+ font-size: 0.9rem;
1800
2430
  text-align: left;
2431
+ cursor: pointer;
1801
2432
  }
1802
2433
 
1803
- .merchi-product-draft-layer.is-active {
1804
- outline: 2px solid #60a5fa;
2434
+ .merchi-product-draft-layer-menu button:hover:not(:disabled) {
2435
+ background: var(--merchi-draft-hover);
1805
2436
  }
1806
2437
 
1807
- .merchi-product-draft-layer span {
1808
- margin-left: auto;
1809
- color: #a1a1aa;
2438
+ .merchi-product-draft-layer-menu button:disabled {
2439
+ opacity: 0.4;
2440
+ cursor: not-allowed;
2441
+ }
2442
+
2443
+ .merchi-product-draft-layers-hint {
2444
+ margin: 0;
2445
+ color: var(--merchi-draft-muted);
2446
+ font-size: 0.8rem;
1810
2447
  }
1811
2448
 
1812
- .merchi-product-draft-text-sheet textarea {
2449
+ .merchi-product-draft-delete {
2450
+ display: inline-flex;
2451
+ align-items: center;
2452
+ gap: 0.5rem;
1813
2453
  width: 100%;
1814
- min-height: 88px;
1815
- border-radius: 0.6rem;
1816
- border: 1px solid #3f3f46;
1817
- background: #09090b;
1818
- color: inherit;
1819
- padding: 0.7rem;
2454
+ padding: 0.75rem 0 0;
2455
+ border: 0;
2456
+ border-top: 1px solid var(--merchi-draft-border);
2457
+ background: transparent;
2458
+ color: var(--merchi-draft-danger);
1820
2459
  font: inherit;
2460
+ font-size: 0.95rem;
2461
+ cursor: pointer;
1821
2462
  }
1822
2463
 
1823
- .merchi-product-draft-text-sheet button {
1824
- min-height: 44px;
1825
- border: 0;
1826
- border-radius: 0.7rem;
1827
- background: #2563eb;
1828
- color: #fff;
1829
- font-weight: 600;
2464
+ .merchi-product-draft-delete:disabled {
2465
+ opacity: 0.4;
2466
+ cursor: not-allowed;
1830
2467
  }
1831
2468
 
1832
2469
  .merchi-product-draft-approve {
@@ -1980,27 +2617,60 @@
1980
2617
  }
1981
2618
 
1982
2619
  @media (min-width: 768px) {
2620
+ .merchi-product-draft-sheet-header.has-tools {
2621
+ display: grid;
2622
+ grid-template-columns: 76px minmax(0, 1fr) auto auto;
2623
+ gap: 0.75rem;
2624
+ align-items: center;
2625
+ justify-items: start;
2626
+ }
2627
+
2628
+ .merchi-product-draft-sheet-header.has-tools .merchi-product-draft-sheet-title {
2629
+ width: calc(100% + 1.25rem);
2630
+ margin-left: -1.25rem;
2631
+ }
2632
+
1983
2633
  .merchi-product-draft-main {
1984
- flex-direction: row;
2634
+ display: grid;
2635
+ grid-template-columns: 76px minmax(0, 1fr) 320px;
2636
+ grid-template-rows: minmax(0, 1fr);
2637
+ gap: 0.75rem;
2638
+ padding: 0 0.75rem 0.75rem;
1985
2639
  }
1986
2640
 
1987
- .merchi-product-draft-dock {
1988
- width: 220px;
1989
- border-top: 0;
1990
- border-left: 1px solid #27272a;
1991
- overflow: auto;
2641
+ .merchi-product-draft-main.is-no-tools {
2642
+ grid-template-columns: minmax(0, 1fr) 320px;
1992
2643
  }
1993
2644
 
1994
2645
  .merchi-product-draft-toolbar,
1995
- .merchi-product-draft-inspector {
1996
- flex-direction: column;
1997
- overflow: visible;
1998
- justify-content: flex-start;
1999
- border-top: 0;
2646
+ .merchi-product-draft-sheet-body,
2647
+ .merchi-product-draft-dock {
2648
+ order: 0;
2000
2649
  }
2001
2650
 
2002
2651
  .merchi-product-draft-toolbar {
2003
- margin-top: auto;
2652
+ flex-direction: column;
2653
+ align-self: stretch;
2654
+ }
2655
+
2656
+ .merchi-product-draft-toolbar button {
2657
+ flex: 0 0 auto;
2658
+ min-height: 64px;
2659
+ }
2660
+
2661
+ .merchi-product-draft-dock {
2662
+ max-height: none;
2663
+ padding: 1rem;
2664
+ }
2665
+
2666
+ .merchi-product-draft-text-row {
2667
+ display: contents;
2668
+ }
2669
+
2670
+ .merchi-product-draft-panel-actions,
2671
+ .merchi-product-draft-mobile-hint,
2672
+ .merchi-product-draft-toolbar .merchi-product-draft-toolbar-layers {
2673
+ display: none;
2004
2674
  }
2005
2675
 
2006
2676
  .merchi-product-draft-approve {
@@ -2019,6 +2689,143 @@
2019
2689
  .merchi-product-draft-btn {
2020
2690
  flex: 1 1 calc(50% - 0.4rem);
2021
2691
  }
2692
+
2693
+ .merchi-product-draft-sheet-title strong {
2694
+ display: -webkit-box;
2695
+ -webkit-box-orient: vertical;
2696
+ -webkit-line-clamp: 2;
2697
+ font-size: 0.95rem;
2698
+ line-height: 1.25;
2699
+ white-space: normal;
2700
+ }
2701
+
2702
+ .merchi-product-draft-done-btn {
2703
+ min-width: 0;
2704
+ padding: 0 1rem;
2705
+ }
2706
+
2707
+ .merchi-product-draft-dock {
2708
+ position: relative;
2709
+ padding-top: 1.25rem;
2710
+ border-radius: 1.25rem 1.25rem 0.9rem 0.9rem;
2711
+ }
2712
+
2713
+ .merchi-product-draft-dock-handle {
2714
+ display: flex;
2715
+ align-items: center;
2716
+ justify-content: center;
2717
+ position: absolute;
2718
+ top: 0;
2719
+ right: 0;
2720
+ left: 0;
2721
+ height: 1.5rem;
2722
+ touch-action: none;
2723
+ }
2724
+
2725
+ .merchi-product-draft-dock-handle::before {
2726
+ content: '';
2727
+ width: 2.5rem;
2728
+ height: 4px;
2729
+ border-radius: 999px;
2730
+ background: var(--merchi-draft-border);
2731
+ }
2732
+
2733
+ .merchi-product-draft-dock.is-empty .merchi-product-draft-dock-handle {
2734
+ display: none;
2735
+ }
2736
+
2737
+ .merchi-product-draft-upload {
2738
+ display: none;
2739
+ }
2740
+
2741
+ .merchi-product-draft-upload-compact {
2742
+ display: inline-flex;
2743
+ align-items: center;
2744
+ justify-content: center;
2745
+ gap: 0.45rem;
2746
+ width: 100%;
2747
+ min-height: 40px;
2748
+ border: 1px dashed var(--merchi-draft-border);
2749
+ border-radius: 0.7rem;
2750
+ background: var(--merchi-draft-raised);
2751
+ color: inherit;
2752
+ font: inherit;
2753
+ font-size: 0.9rem;
2754
+ cursor: pointer;
2755
+ }
2756
+
2757
+ .merchi-product-draft-upload-compact svg {
2758
+ width: 1rem;
2759
+ height: 1rem;
2760
+ color: var(--merchi-draft-accent-soft);
2761
+ }
2762
+
2763
+ .merchi-product-draft-panel {
2764
+ position: relative;
2765
+ }
2766
+
2767
+ .merchi-product-draft-panel-actions {
2768
+ position: absolute;
2769
+ top: -0.2rem;
2770
+ right: 0;
2771
+ display: flex;
2772
+ gap: 0.15rem;
2773
+ }
2774
+
2775
+ .merchi-product-draft-text-row {
2776
+ display: grid;
2777
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
2778
+ gap: 0.6rem;
2779
+ }
2780
+
2781
+ .merchi-product-draft-text-row .merchi-product-draft-size {
2782
+ gap: 0.3rem;
2783
+ }
2784
+
2785
+ .merchi-product-draft-text-row .merchi-product-draft-stepper {
2786
+ min-width: 36px;
2787
+ padding: 0;
2788
+ }
2789
+
2790
+ .merchi-product-draft-text-row .merchi-product-draft-stepper,
2791
+ .merchi-product-draft-text-row .merchi-product-draft-size select {
2792
+ min-height: 44px;
2793
+ }
2794
+
2795
+ .merchi-product-draft-main:not(.is-no-tools):not(.is-layers-open) .merchi-product-draft-layers,
2796
+ .merchi-product-draft-main.is-layers-open .merchi-product-draft-panel,
2797
+ .merchi-product-draft-main.is-no-tools .merchi-product-draft-panel-actions {
2798
+ display: none;
2799
+ }
2800
+
2801
+ .merchi-product-draft-main.is-layers-open .merchi-product-draft-layers {
2802
+ padding-top: 0;
2803
+ border-top: 0;
2804
+ }
2805
+
2806
+ .merchi-product-draft-main:not(.is-no-tools):not(.is-layers-open) .merchi-product-draft-dock.is-empty {
2807
+ padding: 0.25rem;
2808
+ background: transparent;
2809
+ }
2810
+
2811
+ .merchi-product-draft-main:not(.is-no-tools):not(.is-layers-open) .merchi-product-draft-dock.is-empty::before,
2812
+ .merchi-product-draft-main:not(.is-no-tools):not(.is-layers-open) .merchi-product-draft-dock.is-empty .merchi-product-draft-panel-title,
2813
+ .merchi-product-draft-main:not(.is-no-tools):not(.is-layers-open) .merchi-product-draft-dock.is-empty .merchi-product-draft-empty strong {
2814
+ display: none;
2815
+ }
2816
+
2817
+ .merchi-product-draft-main:not(.is-no-tools):not(.is-layers-open) .merchi-product-draft-dock.is-empty .merchi-product-draft-empty {
2818
+ flex-direction: row;
2819
+ justify-content: center;
2820
+ gap: 0.5rem;
2821
+ padding: 0.5rem;
2822
+ }
2823
+
2824
+ .merchi-product-draft-main:not(.is-no-tools):not(.is-layers-open) .merchi-product-draft-dock.is-empty .merchi-product-draft-empty svg {
2825
+ width: 1.1rem;
2826
+ height: 1.1rem;
2827
+ margin: 0;
2828
+ }
2022
2829
  }
2023
2830
 
2024
2831
  .animate_spin {