@sonordev/site-kit 1.4.2 → 1.4.4

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.
@@ -1350,25 +1350,18 @@ var STYLE_BLOCK = `
1350
1350
  }
1351
1351
 
1352
1352
  .skc-detail {
1353
- --commerce-bg: transparent;
1354
- --commerce-surface: #f9fafb;
1355
- --commerce-surface-hover: #f3f4f6;
1356
- --commerce-border: #e5e7eb;
1357
- --commerce-text: #111827;
1358
- --commerce-text-secondary: #6b7280;
1359
- --commerce-text-muted: #9ca3af;
1360
- --commerce-accent: #2563eb;
1361
- --commerce-accent-hover: #1d4ed8;
1362
- --commerce-accent-text: #ffffff;
1363
- --commerce-success: #059669;
1364
- --commerce-warning: #d97706;
1365
- --commerce-danger: #dc2626;
1366
- --commerce-radius: 12px;
1367
- --commerce-radius-sm: 8px;
1368
-
1369
1353
  animation: skc-fadeIn 0.3s ease-out;
1370
1354
  }
1371
1355
 
1356
+ /*
1357
+ * Commerce CSS custom properties are NOT set here \u2014 they inherit from the host site's :root.
1358
+ * If the host site does not define them, the inline var() fallbacks in each usage provide defaults.
1359
+ * Example: color: var(--commerce-text, #111827) \u2014 uses #111827 if --commerce-text is not defined.
1360
+ *
1361
+ * Host sites should define these in their CSS:
1362
+ * :root { --commerce-accent: #d9b338; --commerce-surface: #0f0f17; ... }
1363
+ */
1364
+
1372
1365
  .skc-detail *, .skc-detail *::before, .skc-detail *::after {
1373
1366
  box-sizing: border-box;
1374
1367
  }
@@ -1378,6 +1371,9 @@ var STYLE_BLOCK = `
1378
1371
  grid-template-columns: 1fr 1fr;
1379
1372
  gap: 2.5rem;
1380
1373
  align-items: start;
1374
+ max-width: 1200px;
1375
+ margin: 0 auto;
1376
+ padding: 1.5rem;
1381
1377
  }
1382
1378
 
1383
1379
  @media (max-width: 768px) {
@@ -1399,8 +1395,8 @@ var STYLE_BLOCK = `
1399
1395
  .skc-gallery-main {
1400
1396
  position: relative;
1401
1397
  overflow: hidden;
1402
- border-radius: var(--commerce-radius);
1403
- background: var(--commerce-surface);
1398
+ border-radius: var(--commerce-radius, 12px);
1399
+ background: var(--commerce-surface, #f9fafb);
1404
1400
  cursor: crosshair;
1405
1401
  aspect-ratio: 1;
1406
1402
  }
@@ -1424,19 +1420,19 @@ var STYLE_BLOCK = `
1424
1420
  flex: 0 0 auto;
1425
1421
  width: 64px;
1426
1422
  height: 64px;
1427
- border-radius: var(--commerce-radius-sm);
1423
+ border-radius: var(--commerce-radius-sm, 8px);
1428
1424
  overflow: hidden;
1429
1425
  border: 2px solid transparent;
1430
1426
  padding: 0;
1431
1427
  cursor: pointer;
1432
- background: var(--commerce-surface);
1428
+ background: var(--commerce-surface, #f9fafb);
1433
1429
  transition: border-color 0.15s ease;
1434
1430
  }
1435
1431
  .skc-gallery-thumb:hover {
1436
- border-color: var(--commerce-text-muted);
1432
+ border-color: var(--commerce-text-muted, #9ca3af);
1437
1433
  }
1438
1434
  .skc-gallery-thumb.skc-active {
1439
- border-color: var(--commerce-accent);
1435
+ border-color: var(--commerce-accent, #2563eb);
1440
1436
  }
1441
1437
  .skc-gallery-thumb img {
1442
1438
  width: 100%;
@@ -1452,7 +1448,7 @@ var STYLE_BLOCK = `
1452
1448
  right: 0;
1453
1449
  z-index: 999;
1454
1450
  background: white;
1455
- border-top: 1px solid var(--commerce-border);
1451
+ border-top: 1px solid var(--commerce-border, #e5e7eb);
1456
1452
  padding: 0.75rem 1rem;
1457
1453
  display: flex;
1458
1454
  align-items: center;
@@ -1468,7 +1464,7 @@ var STYLE_BLOCK = `
1468
1464
  /* Tabs */
1469
1465
  .skc-tabs-list {
1470
1466
  display: flex;
1471
- border-bottom: 1px solid var(--commerce-border);
1467
+ border-bottom: 1px solid var(--commerce-border, #e5e7eb);
1472
1468
  gap: 0;
1473
1469
  overflow-x: auto;
1474
1470
  scrollbar-width: none;
@@ -1480,18 +1476,18 @@ var STYLE_BLOCK = `
1480
1476
  background: none;
1481
1477
  font-size: 0.875rem;
1482
1478
  font-weight: 500;
1483
- color: var(--commerce-text-secondary);
1479
+ color: var(--commerce-text-secondary, #6b7280);
1484
1480
  cursor: pointer;
1485
1481
  border-bottom: 2px solid transparent;
1486
1482
  white-space: nowrap;
1487
1483
  transition: color 0.15s ease, border-color 0.15s ease;
1488
1484
  }
1489
1485
  .skc-tab-btn:hover {
1490
- color: var(--commerce-text);
1486
+ color: var(--commerce-text, #111827);
1491
1487
  }
1492
1488
  .skc-tab-btn.skc-active {
1493
- color: var(--commerce-accent);
1494
- border-bottom-color: var(--commerce-accent);
1489
+ color: var(--commerce-accent, #2563eb);
1490
+ border-bottom-color: var(--commerce-accent, #2563eb);
1495
1491
  }
1496
1492
 
1497
1493
  /* Checkout overlay */
@@ -1514,7 +1510,7 @@ var STYLE_BLOCK = `
1514
1510
  max-height: 90vh;
1515
1511
  overflow-y: auto;
1516
1512
  background: white;
1517
- border-radius: calc(var(--commerce-radius) + 4px);
1513
+ border-radius: calc(var(--commerce-radius, 12px) + 4px);
1518
1514
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
1519
1515
  animation: skc-scaleIn 0.25s ease-out;
1520
1516
  }
@@ -1523,20 +1519,20 @@ var STYLE_BLOCK = `
1523
1519
  .skc-input {
1524
1520
  width: 100%;
1525
1521
  padding: 0.625rem 0.75rem;
1526
- border-radius: var(--commerce-radius-sm);
1527
- border: 1px solid var(--commerce-border);
1522
+ border-radius: var(--commerce-radius-sm, 8px);
1523
+ border: 1px solid var(--commerce-border, #e5e7eb);
1528
1524
  font-size: 0.9375rem;
1529
- color: var(--commerce-text);
1525
+ color: var(--commerce-text, #111827);
1530
1526
  background: white;
1531
1527
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
1532
1528
  outline: none;
1533
1529
  }
1534
1530
  .skc-input:focus {
1535
- border-color: var(--commerce-accent);
1531
+ border-color: var(--commerce-accent, #2563eb);
1536
1532
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
1537
1533
  }
1538
1534
  .skc-input::placeholder {
1539
- color: var(--commerce-text-muted);
1535
+ color: var(--commerce-text-muted, #9ca3af);
1540
1536
  }
1541
1537
 
1542
1538
  /* Primary button */
@@ -1547,17 +1543,17 @@ var STYLE_BLOCK = `
1547
1543
  gap: 0.5rem;
1548
1544
  width: 100%;
1549
1545
  padding: 0.875rem 1.5rem;
1550
- border-radius: var(--commerce-radius-sm);
1546
+ border-radius: var(--commerce-radius-sm, 8px);
1551
1547
  border: none;
1552
- background: var(--commerce-accent);
1553
- color: var(--commerce-accent-text);
1548
+ background: var(--commerce-accent, #2563eb);
1549
+ color: var(--commerce-accent-text, #ffffff);
1554
1550
  font-size: 1rem;
1555
1551
  font-weight: 600;
1556
1552
  cursor: pointer;
1557
1553
  transition: background-color 0.15s ease, transform 0.1s ease;
1558
1554
  }
1559
1555
  .skc-btn-primary:hover:not(:disabled) {
1560
- background: var(--commerce-accent-hover);
1556
+ background: var(--commerce-accent-hover, #1d4ed8);
1561
1557
  }
1562
1558
  .skc-btn-primary:active:not(:disabled) {
1563
1559
  transform: scale(0.98);
@@ -1575,10 +1571,10 @@ var STYLE_BLOCK = `
1575
1571
  gap: 0.5rem;
1576
1572
  width: 100%;
1577
1573
  padding: 0.875rem 1.5rem;
1578
- border-radius: var(--commerce-radius-sm);
1579
- border: 2px solid var(--commerce-accent);
1574
+ border-radius: var(--commerce-radius-sm, 8px);
1575
+ border: 2px solid var(--commerce-accent, #2563eb);
1580
1576
  background: transparent;
1581
- color: var(--commerce-accent);
1577
+ color: var(--commerce-accent, #2563eb);
1582
1578
  font-size: 1rem;
1583
1579
  font-weight: 600;
1584
1580
  cursor: pointer;
@@ -1609,24 +1605,24 @@ var STYLE_BLOCK = `
1609
1605
  width: 8px;
1610
1606
  height: 8px;
1611
1607
  border-radius: 50%;
1612
- background: var(--commerce-border);
1608
+ background: var(--commerce-border, #e5e7eb);
1613
1609
  transition: background 0.2s ease, transform 0.2s ease;
1614
1610
  }
1615
1611
  .skc-step-dot.skc-active {
1616
- background: var(--commerce-accent);
1612
+ background: var(--commerce-accent, #2563eb);
1617
1613
  transform: scale(1.3);
1618
1614
  }
1619
1615
  .skc-step-dot.skc-done {
1620
- background: var(--commerce-success);
1616
+ background: var(--commerce-success, #059669);
1621
1617
  }
1622
1618
  .skc-step-connector {
1623
1619
  width: 24px;
1624
1620
  height: 2px;
1625
- background: var(--commerce-border);
1621
+ background: var(--commerce-border, #e5e7eb);
1626
1622
  transition: background 0.2s ease;
1627
1623
  }
1628
1624
  .skc-step-connector.skc-done {
1629
- background: var(--commerce-success);
1625
+ background: var(--commerce-success, #059669);
1630
1626
  }
1631
1627
  `;
1632
1628
  function loadSquareSDK(env) {
@@ -1847,11 +1843,11 @@ function VariantSelector({ variants, selected, isClothing, showInventory, onSele
1847
1843
  style: {
1848
1844
  fontSize: "0.875rem",
1849
1845
  fontWeight: 600,
1850
- color: "var(--commerce-text)"
1846
+ color: "var(--commerce-text, #111827)"
1851
1847
  },
1852
1848
  children: [
1853
1849
  label,
1854
- selected && /* @__PURE__ */ jsxs("span", { style: { fontWeight: 400, color: "var(--commerce-text-secondary)", marginLeft: 6 }, children: [
1850
+ selected && /* @__PURE__ */ jsxs("span", { style: { fontWeight: 400, color: "var(--commerce-text-secondary, #6b7280)", marginLeft: 6 }, children: [
1855
1851
  "\u2014 ",
1856
1852
  selected.options?.Size || selected.name
1857
1853
  ] })
@@ -1873,10 +1869,10 @@ function VariantSelector({ variants, selected, isClothing, showInventory, onSele
1873
1869
  style: {
1874
1870
  position: "relative",
1875
1871
  padding: "0.5rem 1rem",
1876
- borderRadius: "var(--commerce-radius-sm)",
1877
- border: isSelected ? "2px solid var(--commerce-accent)" : "1px solid var(--commerce-border)",
1878
- backgroundColor: isSelected ? "rgba(37,99,235,0.05)" : "white",
1879
- color: variantOutOfStock ? "var(--commerce-text-muted)" : "var(--commerce-text)",
1872
+ borderRadius: "var(--commerce-radius-sm, 8px)",
1873
+ border: isSelected ? "2px solid var(--commerce-accent, #2563eb)" : "1px solid var(--commerce-border, #e5e7eb)",
1874
+ backgroundColor: isSelected ? "color-mix(in srgb, var(--commerce-accent, #2563eb) 8%, transparent)" : "var(--commerce-surface, #f9fafb)",
1875
+ color: variantOutOfStock ? "var(--commerce-text-muted, #9ca3af)" : "var(--commerce-text, #111827)",
1880
1876
  fontSize: "0.875rem",
1881
1877
  fontWeight: 500,
1882
1878
  cursor: variantOutOfStock ? "not-allowed" : "pointer",
@@ -1896,8 +1892,8 @@ function VariantSelector({ variants, selected, isClothing, showInventory, onSele
1896
1892
  width: 8,
1897
1893
  height: 8,
1898
1894
  borderRadius: "50%",
1899
- backgroundColor: isLow ? "var(--commerce-warning)" : "var(--commerce-success)",
1900
- border: "2px solid white"
1895
+ backgroundColor: isLow ? "var(--commerce-warning, #d97706)" : "var(--commerce-success, #059669)",
1896
+ border: "2px solid var(--commerce-surface, #f9fafb)"
1901
1897
  },
1902
1898
  title: isLow ? `Only ${variant.inventory_count} left` : "In stock"
1903
1899
  }
@@ -1918,7 +1914,7 @@ function QuantitySelector({ quantity, max, onChange }) {
1918
1914
  display: "block",
1919
1915
  fontSize: "0.875rem",
1920
1916
  fontWeight: 600,
1921
- color: "var(--commerce-text)",
1917
+ color: "var(--commerce-text, #111827)",
1922
1918
  marginBottom: "0.5rem"
1923
1919
  },
1924
1920
  children: "Quantity"
@@ -1930,8 +1926,8 @@ function QuantitySelector({ quantity, max, onChange }) {
1930
1926
  style: {
1931
1927
  display: "inline-flex",
1932
1928
  alignItems: "center",
1933
- border: "1px solid var(--commerce-border)",
1934
- borderRadius: "var(--commerce-radius-sm)",
1929
+ border: "1px solid var(--commerce-border, #e5e7eb)",
1930
+ borderRadius: "var(--commerce-radius-sm, 8px)",
1935
1931
  overflow: "hidden"
1936
1932
  },
1937
1933
  children: [
@@ -1945,14 +1941,14 @@ function QuantitySelector({ quantity, max, onChange }) {
1945
1941
  width: 40,
1946
1942
  height: 40,
1947
1943
  border: "none",
1948
- background: "var(--commerce-surface)",
1944
+ background: "var(--commerce-surface, #f9fafb)",
1949
1945
  fontSize: "1.125rem",
1950
1946
  cursor: quantity <= 1 ? "not-allowed" : "pointer",
1951
1947
  opacity: quantity <= 1 ? 0.4 : 1,
1952
1948
  display: "flex",
1953
1949
  alignItems: "center",
1954
1950
  justifyContent: "center",
1955
- color: "var(--commerce-text)"
1951
+ color: "var(--commerce-text, #111827)"
1956
1952
  },
1957
1953
  children: "-"
1958
1954
  }
@@ -1974,11 +1970,11 @@ function QuantitySelector({ quantity, max, onChange }) {
1974
1970
  height: 40,
1975
1971
  textAlign: "center",
1976
1972
  border: "none",
1977
- borderLeft: "1px solid var(--commerce-border)",
1978
- borderRight: "1px solid var(--commerce-border)",
1973
+ borderLeft: "1px solid var(--commerce-border, #e5e7eb)",
1974
+ borderRight: "1px solid var(--commerce-border, #e5e7eb)",
1979
1975
  fontSize: "0.9375rem",
1980
1976
  fontWeight: 500,
1981
- color: "var(--commerce-text)",
1977
+ color: "var(--commerce-text, #111827)",
1982
1978
  outline: "none",
1983
1979
  MozAppearance: "textfield",
1984
1980
  appearance: "textfield"
@@ -1995,14 +1991,14 @@ function QuantitySelector({ quantity, max, onChange }) {
1995
1991
  width: 40,
1996
1992
  height: 40,
1997
1993
  border: "none",
1998
- background: "var(--commerce-surface)",
1994
+ background: "var(--commerce-surface, #f9fafb)",
1999
1995
  fontSize: "1.125rem",
2000
1996
  cursor: quantity >= max ? "not-allowed" : "pointer",
2001
1997
  opacity: quantity >= max ? 0.4 : 1,
2002
1998
  display: "flex",
2003
1999
  alignItems: "center",
2004
2000
  justifyContent: "center",
2005
- color: "var(--commerce-text)"
2001
+ color: "var(--commerce-text, #111827)"
2006
2002
  },
2007
2003
  children: "+"
2008
2004
  }
@@ -2038,18 +2034,18 @@ function TrustBadges({ badges = DEFAULT_TRUST_BADGES }) {
2038
2034
  alignItems: "center",
2039
2035
  textAlign: "center",
2040
2036
  padding: "0.75rem 0.5rem",
2041
- borderRadius: "var(--commerce-radius-sm)",
2042
- background: "var(--commerce-surface)"
2037
+ borderRadius: "var(--commerce-radius-sm, 8px)",
2038
+ background: "var(--commerce-surface, #f9fafb)"
2043
2039
  },
2044
2040
  children: [
2045
- /* @__PURE__ */ jsx("span", { style: { color: "var(--commerce-text-secondary)", marginBottom: 4 }, children: Icon && /* @__PURE__ */ jsx(Icon, {}) }),
2041
+ /* @__PURE__ */ jsx("span", { style: { color: "var(--commerce-text-secondary, #6b7280)", marginBottom: 4 }, children: Icon && /* @__PURE__ */ jsx(Icon, {}) }),
2046
2042
  /* @__PURE__ */ jsx(
2047
2043
  "span",
2048
2044
  {
2049
2045
  style: {
2050
2046
  fontSize: "0.75rem",
2051
2047
  fontWeight: 600,
2052
- color: "var(--commerce-text)",
2048
+ color: "var(--commerce-text, #111827)",
2053
2049
  lineHeight: 1.3
2054
2050
  },
2055
2051
  children: badge.label
@@ -2060,7 +2056,7 @@ function TrustBadges({ badges = DEFAULT_TRUST_BADGES }) {
2060
2056
  {
2061
2057
  style: {
2062
2058
  fontSize: "0.6875rem",
2063
- color: "var(--commerce-text-muted)",
2059
+ color: "var(--commerce-text-muted, #9ca3af)",
2064
2060
  lineHeight: 1.3
2065
2061
  },
2066
2062
  children: badge.sublabel
@@ -2122,7 +2118,7 @@ function ProductTabs({
2122
2118
  "li",
2123
2119
  {
2124
2120
  style: {
2125
- color: "var(--commerce-text-secondary)",
2121
+ color: "var(--commerce-text-secondary, #6b7280)",
2126
2122
  fontSize: "0.9375rem",
2127
2123
  lineHeight: 1.6
2128
2124
  },
@@ -2147,7 +2143,7 @@ function ProductTabs({
2147
2143
  {
2148
2144
  style: {
2149
2145
  fontSize: "0.875rem",
2150
- color: "var(--commerce-text-muted)",
2146
+ color: "var(--commerce-text-muted, #9ca3af)",
2151
2147
  fontWeight: 500
2152
2148
  },
2153
2149
  children: key
@@ -2159,7 +2155,7 @@ function ProductTabs({
2159
2155
  style: {
2160
2156
  margin: 0,
2161
2157
  fontSize: "0.875rem",
2162
- color: "var(--commerce-text)"
2158
+ color: "var(--commerce-text, #111827)"
2163
2159
  },
2164
2160
  children: value
2165
2161
  }
@@ -2173,7 +2169,7 @@ function ProductTabs({
2173
2169
  id: "skc-tabpanel-description",
2174
2170
  role: "tabpanel",
2175
2171
  style: {
2176
- color: "var(--commerce-text-secondary)",
2172
+ color: "var(--commerce-text-secondary, #6b7280)",
2177
2173
  lineHeight: 1.7,
2178
2174
  fontSize: "0.9375rem"
2179
2175
  },
@@ -2192,14 +2188,14 @@ function EventInfoBlock({ product, schedule }) {
2192
2188
  style: {
2193
2189
  marginTop: "1.25rem",
2194
2190
  padding: "1rem",
2195
- borderRadius: "var(--commerce-radius-sm)",
2196
- background: "var(--commerce-surface)",
2191
+ borderRadius: "var(--commerce-radius-sm, 8px)",
2192
+ background: "var(--commerce-surface, #f9fafb)",
2197
2193
  display: "flex",
2198
2194
  flexDirection: "column",
2199
2195
  gap: "0.5rem"
2200
2196
  },
2201
2197
  children: [
2202
- schedule && /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--commerce-text-secondary)" }, children: [
2198
+ schedule && /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--commerce-text-secondary, #6b7280)" }, children: [
2203
2199
  /* @__PURE__ */ jsx(IconCalendar, {}),
2204
2200
  /* @__PURE__ */ jsxs("span", { children: [
2205
2201
  formatDate(schedule.starts_at),
@@ -2207,17 +2203,17 @@ function EventInfoBlock({ product, schedule }) {
2207
2203
  formatTime(schedule.starts_at)
2208
2204
  ] })
2209
2205
  ] }),
2210
- product.location && /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--commerce-text-secondary)" }, children: [
2206
+ product.location && /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--commerce-text-secondary, #6b7280)" }, children: [
2211
2207
  /* @__PURE__ */ jsx(IconMapPin, {}),
2212
2208
  /* @__PURE__ */ jsx("span", { children: product.location })
2213
2209
  ] }),
2214
- product.is_virtual && product.virtual_meeting_url && /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--commerce-accent)" }, children: [
2210
+ product.is_virtual && product.virtual_meeting_url && /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--commerce-accent, #2563eb)" }, children: [
2215
2211
  /* @__PURE__ */ jsx(IconExternalLink, {}),
2216
2212
  /* @__PURE__ */ jsx("span", { children: "Virtual Event" })
2217
2213
  ] }),
2218
- schedule?.capacity != null && /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--commerce-text-secondary)" }, children: [
2214
+ schedule?.capacity != null && /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--commerce-text-secondary, #6b7280)" }, children: [
2219
2215
  /* @__PURE__ */ jsx(IconUsers, {}),
2220
- /* @__PURE__ */ jsx("span", { children: soldOut ? /* @__PURE__ */ jsx("span", { style: { color: "var(--commerce-danger)", fontWeight: 600 }, children: "Sold Out" }) : schedule.spots_remaining != null && schedule.spots_remaining <= 10 ? /* @__PURE__ */ jsxs("span", { className: "skc-pulse", style: { color: "var(--commerce-warning)", fontWeight: 600 }, children: [
2216
+ /* @__PURE__ */ jsx("span", { children: soldOut ? /* @__PURE__ */ jsx("span", { style: { color: "var(--commerce-danger, #dc2626)", fontWeight: 600 }, children: "Sold Out" }) : schedule.spots_remaining != null && schedule.spots_remaining <= 10 ? /* @__PURE__ */ jsxs("span", { className: "skc-pulse", style: { color: "var(--commerce-warning, #d97706)", fontWeight: 600 }, children: [
2221
2217
  "Only ",
2222
2218
  schedule.spots_remaining,
2223
2219
  " spot",
@@ -2251,9 +2247,9 @@ function CustomerInfoStep({ customer, onChange, onNext, onBack }) {
2251
2247
  onNext();
2252
2248
  };
2253
2249
  return /* @__PURE__ */ jsxs("form", { onSubmit: handleSubmit, style: { display: "flex", flexDirection: "column", gap: "0.875rem" }, children: [
2254
- /* @__PURE__ */ jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--commerce-text)" }, children: "Contact Information" }),
2250
+ /* @__PURE__ */ jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--commerce-text, #111827)" }, children: "Contact Information" }),
2255
2251
  /* @__PURE__ */ jsxs("div", { children: [
2256
- /* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary)", marginBottom: 4 }, children: "Full Name *" }),
2252
+ /* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary, #6b7280)", marginBottom: 4 }, children: "Full Name *" }),
2257
2253
  /* @__PURE__ */ jsx(
2258
2254
  "input",
2259
2255
  {
@@ -2268,7 +2264,7 @@ function CustomerInfoStep({ customer, onChange, onNext, onBack }) {
2268
2264
  )
2269
2265
  ] }),
2270
2266
  /* @__PURE__ */ jsxs("div", { children: [
2271
- /* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary)", marginBottom: 4 }, children: "Email Address *" }),
2267
+ /* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary, #6b7280)", marginBottom: 4 }, children: "Email Address *" }),
2272
2268
  /* @__PURE__ */ jsx(
2273
2269
  "input",
2274
2270
  {
@@ -2282,7 +2278,7 @@ function CustomerInfoStep({ customer, onChange, onNext, onBack }) {
2282
2278
  )
2283
2279
  ] }),
2284
2280
  /* @__PURE__ */ jsxs("div", { children: [
2285
- /* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary)", marginBottom: 4 }, children: "Phone Number" }),
2281
+ /* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary, #6b7280)", marginBottom: 4 }, children: "Phone Number" }),
2286
2282
  /* @__PURE__ */ jsx(
2287
2283
  "input",
2288
2284
  {
@@ -2302,10 +2298,10 @@ function CustomerInfoStep({ customer, onChange, onNext, onBack }) {
2302
2298
  onClick: onBack,
2303
2299
  style: {
2304
2300
  padding: "0.75rem 1.25rem",
2305
- borderRadius: "var(--commerce-radius-sm)",
2306
- border: "1px solid var(--commerce-border)",
2301
+ borderRadius: "var(--commerce-radius-sm, 8px)",
2302
+ border: "1px solid var(--commerce-border, #e5e7eb)",
2307
2303
  background: "white",
2308
- color: "var(--commerce-text-secondary)",
2304
+ color: "var(--commerce-text-secondary, #6b7280)",
2309
2305
  fontSize: "0.875rem",
2310
2306
  fontWeight: 500,
2311
2307
  cursor: "pointer"
@@ -2326,9 +2322,9 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
2326
2322
  onChange({ ...address, [field]: value });
2327
2323
  };
2328
2324
  return /* @__PURE__ */ jsxs("form", { onSubmit: handleSubmit, style: { display: "flex", flexDirection: "column", gap: "0.875rem" }, children: [
2329
- /* @__PURE__ */ jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--commerce-text)" }, children: "Shipping Address" }),
2325
+ /* @__PURE__ */ jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--commerce-text, #111827)" }, children: "Shipping Address" }),
2330
2326
  /* @__PURE__ */ jsxs("div", { children: [
2331
- /* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary)", marginBottom: 4 }, children: "Street Address *" }),
2327
+ /* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary, #6b7280)", marginBottom: 4 }, children: "Street Address *" }),
2332
2328
  /* @__PURE__ */ jsx(
2333
2329
  "input",
2334
2330
  {
@@ -2343,7 +2339,7 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
2343
2339
  )
2344
2340
  ] }),
2345
2341
  /* @__PURE__ */ jsxs("div", { children: [
2346
- /* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary)", marginBottom: 4 }, children: "Apt / Suite" }),
2342
+ /* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary, #6b7280)", marginBottom: 4 }, children: "Apt / Suite" }),
2347
2343
  /* @__PURE__ */ jsx(
2348
2344
  "input",
2349
2345
  {
@@ -2357,7 +2353,7 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
2357
2353
  ] }),
2358
2354
  /* @__PURE__ */ jsxs("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "0.75rem" }, children: [
2359
2355
  /* @__PURE__ */ jsxs("div", { children: [
2360
- /* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary)", marginBottom: 4 }, children: "City *" }),
2356
+ /* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary, #6b7280)", marginBottom: 4 }, children: "City *" }),
2361
2357
  /* @__PURE__ */ jsx(
2362
2358
  "input",
2363
2359
  {
@@ -2371,7 +2367,7 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
2371
2367
  )
2372
2368
  ] }),
2373
2369
  /* @__PURE__ */ jsxs("div", { children: [
2374
- /* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary)", marginBottom: 4 }, children: "State *" }),
2370
+ /* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary, #6b7280)", marginBottom: 4 }, children: "State *" }),
2375
2371
  /* @__PURE__ */ jsx(
2376
2372
  "input",
2377
2373
  {
@@ -2387,7 +2383,7 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
2387
2383
  ] }),
2388
2384
  /* @__PURE__ */ jsxs("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "0.75rem" }, children: [
2389
2385
  /* @__PURE__ */ jsxs("div", { children: [
2390
- /* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary)", marginBottom: 4 }, children: "ZIP Code *" }),
2386
+ /* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary, #6b7280)", marginBottom: 4 }, children: "ZIP Code *" }),
2391
2387
  /* @__PURE__ */ jsx(
2392
2388
  "input",
2393
2389
  {
@@ -2401,7 +2397,7 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
2401
2397
  )
2402
2398
  ] }),
2403
2399
  /* @__PURE__ */ jsxs("div", { children: [
2404
- /* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary)", marginBottom: 4 }, children: "Country" }),
2400
+ /* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--commerce-text-secondary, #6b7280)", marginBottom: 4 }, children: "Country" }),
2405
2401
  /* @__PURE__ */ jsx(
2406
2402
  "input",
2407
2403
  {
@@ -2422,10 +2418,10 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
2422
2418
  onClick: onBack,
2423
2419
  style: {
2424
2420
  padding: "0.75rem 1.25rem",
2425
- borderRadius: "var(--commerce-radius-sm)",
2426
- border: "1px solid var(--commerce-border)",
2421
+ borderRadius: "var(--commerce-radius-sm, 8px)",
2422
+ border: "1px solid var(--commerce-border, #e5e7eb)",
2427
2423
  background: "white",
2428
- color: "var(--commerce-text-secondary)",
2424
+ color: "var(--commerce-text-secondary, #6b7280)",
2429
2425
  fontSize: "0.875rem",
2430
2426
  fontWeight: 500,
2431
2427
  cursor: "pointer"
@@ -2446,20 +2442,20 @@ function ShippingRatesStep({ rates, selected, onSelect, onNext, onBack, loading,
2446
2442
  style: {
2447
2443
  width: 32,
2448
2444
  height: 32,
2449
- border: "3px solid var(--commerce-border)",
2450
- borderTopColor: "var(--commerce-accent)",
2445
+ border: "3px solid var(--commerce-border, #e5e7eb)",
2446
+ borderTopColor: "var(--commerce-accent, #2563eb)",
2451
2447
  borderRadius: "50%",
2452
2448
  animation: "skc-spin 1s linear infinite",
2453
2449
  margin: "0 auto 1rem"
2454
2450
  }
2455
2451
  }
2456
2452
  ),
2457
- /* @__PURE__ */ jsx("p", { style: { color: "var(--commerce-text-secondary)", fontSize: "0.875rem", margin: 0 }, children: "Calculating shipping rates..." })
2453
+ /* @__PURE__ */ jsx("p", { style: { color: "var(--commerce-text-secondary, #6b7280)", fontSize: "0.875rem", margin: 0 }, children: "Calculating shipping rates..." })
2458
2454
  ] });
2459
2455
  }
2460
2456
  if (!rates.length) {
2461
2457
  return /* @__PURE__ */ jsxs("div", { style: { textAlign: "center", padding: "1.5rem 0" }, children: [
2462
- /* @__PURE__ */ jsx("p", { style: { color: "var(--commerce-text-secondary)", fontSize: "0.875rem", margin: "0 0 1rem" }, children: "No shipping rates available for this address. Please check your address and try again." }),
2458
+ /* @__PURE__ */ jsx("p", { style: { color: "var(--commerce-text-secondary, #6b7280)", fontSize: "0.875rem", margin: "0 0 1rem" }, children: "No shipping rates available for this address. Please check your address and try again." }),
2463
2459
  /* @__PURE__ */ jsx(
2464
2460
  "button",
2465
2461
  {
@@ -2467,10 +2463,10 @@ function ShippingRatesStep({ rates, selected, onSelect, onNext, onBack, loading,
2467
2463
  onClick: onBack,
2468
2464
  style: {
2469
2465
  padding: "0.75rem 1.5rem",
2470
- borderRadius: "var(--commerce-radius-sm)",
2471
- border: "1px solid var(--commerce-border)",
2466
+ borderRadius: "var(--commerce-radius-sm, 8px)",
2467
+ border: "1px solid var(--commerce-border, #e5e7eb)",
2472
2468
  background: "white",
2473
- color: "var(--commerce-text-secondary)",
2469
+ color: "var(--commerce-text-secondary, #6b7280)",
2474
2470
  fontSize: "0.875rem",
2475
2471
  fontWeight: 500,
2476
2472
  cursor: "pointer"
@@ -2481,7 +2477,7 @@ function ShippingRatesStep({ rates, selected, onSelect, onNext, onBack, loading,
2481
2477
  ] });
2482
2478
  }
2483
2479
  return /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "0.875rem" }, children: [
2484
- /* @__PURE__ */ jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--commerce-text)" }, children: "Shipping Method" }),
2480
+ /* @__PURE__ */ jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--commerce-text, #111827)" }, children: "Shipping Method" }),
2485
2481
  /* @__PURE__ */ jsx("div", { style: { display: "flex", flexDirection: "column", gap: "0.5rem" }, role: "radiogroup", "aria-label": "Shipping options", children: rates.map((rate, idx) => {
2486
2482
  const isSelected = selected?.objectId === rate.objectId || selected === null && idx === 0;
2487
2483
  return /* @__PURE__ */ jsxs(
@@ -2495,8 +2491,8 @@ function ShippingRatesStep({ rates, selected, onSelect, onNext, onBack, loading,
2495
2491
  alignItems: "center",
2496
2492
  justifyContent: "space-between",
2497
2493
  padding: "0.875rem 1rem",
2498
- borderRadius: "var(--commerce-radius-sm)",
2499
- border: isSelected ? "2px solid var(--commerce-accent)" : "1px solid var(--commerce-border)",
2494
+ borderRadius: "var(--commerce-radius-sm, 8px)",
2495
+ border: isSelected ? "2px solid var(--commerce-accent, #2563eb)" : "1px solid var(--commerce-border, #e5e7eb)",
2500
2496
  background: isSelected ? "rgba(37,99,235,0.03)" : "white",
2501
2497
  cursor: "pointer",
2502
2498
  textAlign: "left",
@@ -2504,14 +2500,14 @@ function ShippingRatesStep({ rates, selected, onSelect, onNext, onBack, loading,
2504
2500
  },
2505
2501
  children: [
2506
2502
  /* @__PURE__ */ jsxs("div", { children: [
2507
- /* @__PURE__ */ jsxs("div", { style: { fontSize: "0.875rem", fontWeight: 600, color: "var(--commerce-text)" }, children: [
2503
+ /* @__PURE__ */ jsxs("div", { style: { fontSize: "0.875rem", fontWeight: 600, color: "var(--commerce-text, #111827)" }, children: [
2508
2504
  rate.carrier,
2509
2505
  " \u2014 ",
2510
2506
  rate.service
2511
2507
  ] }),
2512
- rate.estimatedDays != null && /* @__PURE__ */ jsx("div", { style: { fontSize: "0.8125rem", color: "var(--commerce-text-muted)", marginTop: 2 }, children: rate.estimatedDays === 1 ? "1 business day" : `${rate.estimatedDays} business days` })
2508
+ rate.estimatedDays != null && /* @__PURE__ */ jsx("div", { style: { fontSize: "0.8125rem", color: "var(--commerce-text-muted, #9ca3af)", marginTop: 2 }, children: rate.estimatedDays === 1 ? "1 business day" : `${rate.estimatedDays} business days` })
2513
2509
  ] }),
2514
- /* @__PURE__ */ jsx("span", { style: { fontSize: "0.9375rem", fontWeight: 600, color: "var(--commerce-text)" }, children: formatPrice(parseFloat(rate.amount), rate.currency || currency) })
2510
+ /* @__PURE__ */ jsx("span", { style: { fontSize: "0.9375rem", fontWeight: 600, color: "var(--commerce-text, #111827)" }, children: formatPrice(parseFloat(rate.amount), rate.currency || currency) })
2515
2511
  ]
2516
2512
  },
2517
2513
  rate.objectId || idx
@@ -2525,10 +2521,10 @@ function ShippingRatesStep({ rates, selected, onSelect, onNext, onBack, loading,
2525
2521
  onClick: onBack,
2526
2522
  style: {
2527
2523
  padding: "0.75rem 1.25rem",
2528
- borderRadius: "var(--commerce-radius-sm)",
2529
- border: "1px solid var(--commerce-border)",
2524
+ borderRadius: "var(--commerce-radius-sm, 8px)",
2525
+ border: "1px solid var(--commerce-border, #e5e7eb)",
2530
2526
  background: "white",
2531
- color: "var(--commerce-text-secondary)",
2527
+ color: "var(--commerce-text-secondary, #6b7280)",
2532
2528
  fontSize: "0.875rem",
2533
2529
  fontWeight: 500,
2534
2530
  cursor: "pointer"
@@ -2751,21 +2747,21 @@ function PaymentStep({
2751
2747
  }
2752
2748
  };
2753
2749
  return /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "1rem" }, children: [
2754
- /* @__PURE__ */ jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--commerce-text)" }, children: "Payment" }),
2750
+ /* @__PURE__ */ jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--commerce-text, #111827)" }, children: "Payment" }),
2755
2751
  /* @__PURE__ */ jsxs(
2756
2752
  "div",
2757
2753
  {
2758
2754
  style: {
2759
2755
  padding: "1rem",
2760
- borderRadius: "var(--commerce-radius-sm)",
2761
- background: "var(--commerce-surface)",
2756
+ borderRadius: "var(--commerce-radius-sm, 8px)",
2757
+ background: "var(--commerce-surface, #f9fafb)",
2762
2758
  display: "flex",
2763
2759
  flexDirection: "column",
2764
2760
  gap: "0.375rem",
2765
2761
  fontSize: "0.875rem"
2766
2762
  },
2767
2763
  children: [
2768
- /* @__PURE__ */ jsxs("div", { style: { display: "flex", justifyContent: "space-between", color: "var(--commerce-text-secondary)" }, children: [
2764
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", justifyContent: "space-between", color: "var(--commerce-text-secondary, #6b7280)" }, children: [
2769
2765
  /* @__PURE__ */ jsxs("span", { children: [
2770
2766
  product.name,
2771
2767
  " ",
@@ -2775,7 +2771,7 @@ function PaymentStep({
2775
2771
  ] }),
2776
2772
  /* @__PURE__ */ jsx("span", { children: formatPrice(subtotal, product.currency) })
2777
2773
  ] }),
2778
- shippingRate && /* @__PURE__ */ jsxs("div", { style: { display: "flex", justifyContent: "space-between", color: "var(--commerce-text-secondary)" }, children: [
2774
+ shippingRate && /* @__PURE__ */ jsxs("div", { style: { display: "flex", justifyContent: "space-between", color: "var(--commerce-text-secondary, #6b7280)" }, children: [
2779
2775
  /* @__PURE__ */ jsxs("span", { children: [
2780
2776
  "Shipping (",
2781
2777
  shippingRate.carrier,
@@ -2792,10 +2788,10 @@ function PaymentStep({
2792
2788
  display: "flex",
2793
2789
  justifyContent: "space-between",
2794
2790
  fontWeight: 700,
2795
- color: "var(--commerce-text)",
2791
+ color: "var(--commerce-text, #111827)",
2796
2792
  fontSize: "1rem",
2797
2793
  paddingTop: "0.5rem",
2798
- borderTop: "1px solid var(--commerce-border)",
2794
+ borderTop: "1px solid var(--commerce-border, #e5e7eb)",
2799
2795
  marginTop: "0.25rem"
2800
2796
  },
2801
2797
  children: [
@@ -2815,7 +2811,7 @@ function PaymentStep({
2815
2811
  display: "block",
2816
2812
  fontSize: "0.8125rem",
2817
2813
  fontWeight: 500,
2818
- color: "var(--commerce-text-secondary)",
2814
+ color: "var(--commerce-text-secondary, #6b7280)",
2819
2815
  marginBottom: 6
2820
2816
  },
2821
2817
  children: "Card Details"
@@ -2828,14 +2824,14 @@ function PaymentStep({
2828
2824
  ref: cardContainerRef,
2829
2825
  style: {
2830
2826
  minHeight: processor === "stripe" ? 80 : 44,
2831
- border: "1px solid var(--commerce-border)",
2832
- borderRadius: "var(--commerce-radius-sm)",
2827
+ border: "1px solid var(--commerce-border, #e5e7eb)",
2828
+ borderRadius: "var(--commerce-radius-sm, 8px)",
2833
2829
  padding: processor === "stripe" ? "0.75rem" : "0.5rem 0.75rem",
2834
2830
  background: "white"
2835
2831
  }
2836
2832
  }
2837
2833
  ),
2838
- !cardReady && !error && /* @__PURE__ */ jsx("p", { style: { fontSize: "0.75rem", color: "var(--commerce-text-muted)", marginTop: 4, marginBottom: 0 }, children: "Loading secure payment form..." })
2834
+ !cardReady && !error && /* @__PURE__ */ jsx("p", { style: { fontSize: "0.75rem", color: "var(--commerce-text-muted, #9ca3af)", marginTop: 4, marginBottom: 0 }, children: "Loading secure payment form..." })
2839
2835
  ] }),
2840
2836
  error && /* @__PURE__ */ jsxs(
2841
2837
  "div",
@@ -2847,8 +2843,8 @@ function PaymentStep({
2847
2843
  padding: "0.75rem",
2848
2844
  background: "#fef2f2",
2849
2845
  border: "1px solid #fecaca",
2850
- borderRadius: "var(--commerce-radius-sm)",
2851
- color: "var(--commerce-danger)",
2846
+ borderRadius: "var(--commerce-radius-sm, 8px)",
2847
+ color: "var(--commerce-danger, #dc2626)",
2852
2848
  fontSize: "0.875rem"
2853
2849
  },
2854
2850
  children: [
@@ -2866,10 +2862,10 @@ function PaymentStep({
2866
2862
  disabled: submitting,
2867
2863
  style: {
2868
2864
  padding: "0.75rem 1.25rem",
2869
- borderRadius: "var(--commerce-radius-sm)",
2870
- border: "1px solid var(--commerce-border)",
2865
+ borderRadius: "var(--commerce-radius-sm, 8px)",
2866
+ border: "1px solid var(--commerce-border, #e5e7eb)",
2871
2867
  background: "white",
2872
- color: "var(--commerce-text-secondary)",
2868
+ color: "var(--commerce-text-secondary, #6b7280)",
2873
2869
  fontSize: "0.875rem",
2874
2870
  fontWeight: 500,
2875
2871
  cursor: submitting ? "not-allowed" : "pointer",
@@ -2916,7 +2912,7 @@ function PaymentStep({
2916
2912
  style: {
2917
2913
  textAlign: "center",
2918
2914
  fontSize: "0.6875rem",
2919
- color: "var(--commerce-text-muted)",
2915
+ color: "var(--commerce-text-muted, #9ca3af)",
2920
2916
  margin: "0.25rem 0 0"
2921
2917
  },
2922
2918
  children: [
@@ -2957,7 +2953,7 @@ function SuccessStep({ result, product, onClose }) {
2957
2953
  height: "32",
2958
2954
  viewBox: "0 0 24 24",
2959
2955
  fill: "none",
2960
- stroke: "var(--commerce-success)",
2956
+ stroke: "var(--commerce-success, #059669)",
2961
2957
  strokeWidth: "2.5",
2962
2958
  strokeLinecap: "round",
2963
2959
  strokeLinejoin: "round",
@@ -2979,21 +2975,21 @@ function SuccessStep({ result, product, onClose }) {
2979
2975
  margin: "0 0 0.5rem",
2980
2976
  fontSize: "1.375rem",
2981
2977
  fontWeight: 700,
2982
- color: "var(--commerce-success)"
2978
+ color: "var(--commerce-success, #059669)"
2983
2979
  },
2984
2980
  children: "Order Confirmed!"
2985
2981
  }
2986
2982
  ),
2987
- /* @__PURE__ */ jsxs("p", { style: { color: "var(--commerce-text-secondary)", margin: "0 0 0.5rem", fontSize: "0.9375rem" }, children: [
2983
+ /* @__PURE__ */ jsxs("p", { style: { color: "var(--commerce-text-secondary, #6b7280)", margin: "0 0 0.5rem", fontSize: "0.9375rem" }, children: [
2988
2984
  "Thank you for your purchase of ",
2989
2985
  product.name,
2990
2986
  "."
2991
2987
  ] }),
2992
- result.confirmation_number && /* @__PURE__ */ jsxs("p", { style: { color: "var(--commerce-text-muted)", margin: "0 0 1rem", fontSize: "0.8125rem" }, children: [
2988
+ result.confirmation_number && /* @__PURE__ */ jsxs("p", { style: { color: "var(--commerce-text-muted, #9ca3af)", margin: "0 0 1rem", fontSize: "0.8125rem" }, children: [
2993
2989
  "Confirmation: ",
2994
- /* @__PURE__ */ jsx("strong", { style: { color: "var(--commerce-text)" }, children: result.confirmation_number })
2990
+ /* @__PURE__ */ jsx("strong", { style: { color: "var(--commerce-text, #111827)" }, children: result.confirmation_number })
2995
2991
  ] }),
2996
- /* @__PURE__ */ jsx("p", { style: { color: "var(--commerce-text-muted)", margin: "0 0 1.5rem", fontSize: "0.875rem" }, children: "A confirmation email has been sent to your inbox." }),
2992
+ /* @__PURE__ */ jsx("p", { style: { color: "var(--commerce-text-muted, #9ca3af)", margin: "0 0 1.5rem", fontSize: "0.875rem" }, children: "A confirmation email has been sent to your inbox." }),
2997
2993
  /* @__PURE__ */ jsx("button", { className: "skc-btn-primary", onClick: onClose, style: { maxWidth: 240 }, children: "Done" })
2998
2994
  ]
2999
2995
  }
@@ -3160,8 +3156,8 @@ function ProductDetail({
3160
3156
  style: {
3161
3157
  width: 48,
3162
3158
  height: 48,
3163
- border: "3px solid var(--commerce-border)",
3164
- borderTopColor: "var(--commerce-accent)",
3159
+ border: "3px solid var(--commerce-border, #e5e7eb)",
3160
+ borderTopColor: "var(--commerce-accent, #2563eb)",
3165
3161
  borderRadius: "50%",
3166
3162
  animation: "skc-spin 1s linear infinite"
3167
3163
  }
@@ -3171,8 +3167,8 @@ function ProductDetail({
3171
3167
  }
3172
3168
  return /* @__PURE__ */ jsxs("div", { className: `skc-detail ${className}`, style: customStyle, children: [
3173
3169
  /* @__PURE__ */ jsx("style", { children: STYLE_BLOCK }),
3174
- /* @__PURE__ */ jsxs("div", { style: { textAlign: "center", padding: "4rem 2rem", color: "var(--commerce-text-secondary)" }, children: [
3175
- /* @__PURE__ */ jsx("h2", { style: { margin: 0, fontSize: "1.5rem", color: "var(--commerce-text)" }, children: "Product Not Found" }),
3170
+ /* @__PURE__ */ jsxs("div", { style: { textAlign: "center", padding: "4rem 2rem", color: "var(--commerce-text-secondary, #6b7280)" }, children: [
3171
+ /* @__PURE__ */ jsx("h2", { style: { margin: 0, fontSize: "1.5rem", color: "var(--commerce-text, #111827)" }, children: "Product Not Found" }),
3176
3172
  /* @__PURE__ */ jsx("p", { style: { marginTop: "0.5rem" }, children: "The product you are looking for does not exist or has been removed." })
3177
3173
  ] })
3178
3174
  ] });
@@ -3340,7 +3336,7 @@ function ProductDetail({
3340
3336
  style: {
3341
3337
  fontSize: "0.75rem",
3342
3338
  fontWeight: 600,
3343
- color: "var(--commerce-accent)",
3339
+ color: "var(--commerce-accent, #2563eb)",
3344
3340
  textTransform: "uppercase",
3345
3341
  letterSpacing: "0.05em",
3346
3342
  marginBottom: "0.375rem"
@@ -3355,7 +3351,7 @@ function ProductDetail({
3355
3351
  margin: 0,
3356
3352
  fontSize: "1.875rem",
3357
3353
  fontWeight: 700,
3358
- color: "var(--commerce-text)",
3354
+ color: "var(--commerce-text, #111827)",
3359
3355
  lineHeight: 1.2
3360
3356
  },
3361
3357
  children: product.name
@@ -3368,7 +3364,7 @@ function ProductDetail({
3368
3364
  marginTop: "0.625rem",
3369
3365
  marginBottom: 0,
3370
3366
  fontSize: "1rem",
3371
- color: "var(--commerce-text-secondary)",
3367
+ color: "var(--commerce-text-secondary, #6b7280)",
3372
3368
  lineHeight: 1.6
3373
3369
  },
3374
3370
  children: product.short_description
@@ -3391,7 +3387,7 @@ function ProductDetail({
3391
3387
  style: {
3392
3388
  fontSize: "1.75rem",
3393
3389
  fontWeight: 700,
3394
- color: hasDiscount ? "var(--commerce-danger)" : "var(--commerce-text)"
3390
+ color: hasDiscount ? "var(--commerce-danger, #dc2626)" : "var(--commerce-text, #111827)"
3395
3391
  },
3396
3392
  children: formatPrice(currentPrice, product.currency)
3397
3393
  }
@@ -3402,7 +3398,7 @@ function ProductDetail({
3402
3398
  {
3403
3399
  style: {
3404
3400
  fontSize: "1.125rem",
3405
- color: "var(--commerce-text-muted)",
3401
+ color: "var(--commerce-text-muted, #9ca3af)",
3406
3402
  textDecoration: "line-through"
3407
3403
  },
3408
3404
  children: formatPrice(compareAtPrice, product.currency)
@@ -3414,8 +3410,8 @@ function ProductDetail({
3414
3410
  style: {
3415
3411
  fontSize: "0.75rem",
3416
3412
  fontWeight: 700,
3417
- color: "var(--commerce-accent-text)",
3418
- background: "var(--commerce-danger)",
3413
+ color: "var(--commerce-accent-text, #ffffff)",
3414
+ background: "var(--commerce-danger, #dc2626)",
3419
3415
  padding: "2px 8px",
3420
3416
  borderRadius: 4
3421
3417
  },
@@ -3427,7 +3423,7 @@ function ProductDetail({
3427
3423
  }
3428
3424
  )
3429
3425
  ] }),
3430
- product.billing_period && /* @__PURE__ */ jsxs("span", { style: { fontSize: "0.875rem", color: "var(--commerce-text-muted)" }, children: [
3426
+ product.billing_period && /* @__PURE__ */ jsxs("span", { style: { fontSize: "0.875rem", color: "var(--commerce-text-muted, #9ca3af)" }, children: [
3431
3427
  "/ ",
3432
3428
  product.billing_period
3433
3429
  ] })
@@ -3440,7 +3436,7 @@ function ProductDetail({
3440
3436
  style: {
3441
3437
  fontSize: "0.8125rem",
3442
3438
  fontWeight: 600,
3443
- color: "var(--commerce-danger)",
3439
+ color: "var(--commerce-danger, #dc2626)",
3444
3440
  display: "flex",
3445
3441
  alignItems: "center",
3446
3442
  gap: 4
@@ -3457,7 +3453,7 @@ function ProductDetail({
3457
3453
  style: {
3458
3454
  fontSize: "0.8125rem",
3459
3455
  fontWeight: 600,
3460
- color: "var(--commerce-warning)",
3456
+ color: "var(--commerce-warning, #d97706)",
3461
3457
  display: "flex",
3462
3458
  alignItems: "center",
3463
3459
  gap: 4
@@ -3475,7 +3471,7 @@ function ProductDetail({
3475
3471
  style: {
3476
3472
  fontSize: "0.8125rem",
3477
3473
  fontWeight: 500,
3478
- color: "var(--commerce-success)",
3474
+ color: "var(--commerce-success, #059669)",
3479
3475
  display: "flex",
3480
3476
  alignItems: "center",
3481
3477
  gap: 4
@@ -3497,11 +3493,38 @@ function ProductDetail({
3497
3493
  onSelect: handleVariantChange
3498
3494
  }
3499
3495
  ),
3496
+ product.size_chart?.fit_note && /* @__PURE__ */ jsxs(
3497
+ "div",
3498
+ {
3499
+ style: {
3500
+ marginTop: "0.75rem",
3501
+ padding: "0.625rem 0.875rem",
3502
+ borderRadius: "var(--commerce-radius-sm, 8px)",
3503
+ backgroundColor: "color-mix(in srgb, var(--commerce-warning, #d97706) 10%, transparent)",
3504
+ border: "1px solid color-mix(in srgb, var(--commerce-warning, #d97706) 25%, transparent)",
3505
+ display: "flex",
3506
+ alignItems: "flex-start",
3507
+ gap: "0.5rem",
3508
+ fontSize: "0.8125rem",
3509
+ color: "var(--commerce-warning, #d97706)",
3510
+ fontWeight: 500,
3511
+ lineHeight: 1.4
3512
+ },
3513
+ children: [
3514
+ /* @__PURE__ */ jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", style: { flexShrink: 0, marginTop: 1 }, children: [
3515
+ /* @__PURE__ */ jsx("path", { d: "M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z" }),
3516
+ /* @__PURE__ */ jsx("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
3517
+ /* @__PURE__ */ jsx("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
3518
+ ] }),
3519
+ product.size_chart.fit_note
3520
+ ]
3521
+ }
3522
+ ),
3500
3523
  showSizeChart && product.is_clothing && product.size_chart && /* @__PURE__ */ jsx("div", { style: { marginTop: "0.625rem" }, children: /* @__PURE__ */ jsx(
3501
3524
  SizeChart,
3502
3525
  {
3503
3526
  chart: product.size_chart,
3504
- selectedSize: selectedVariant?.options?.["Size"]
3527
+ selectedSize: selectedVariant?.options?.Size || selectedVariant?.name
3505
3528
  }
3506
3529
  ) }),
3507
3530
  showQuantity && !isOutOfStock && !isEvent && !isService && /* @__PURE__ */ jsx(
@@ -3545,8 +3568,8 @@ function ProductDetail({
3545
3568
  padding: "0.75rem",
3546
3569
  background: "#fef2f2",
3547
3570
  border: "1px solid #fecaca",
3548
- borderRadius: "var(--commerce-radius-sm)",
3549
- color: "var(--commerce-danger)",
3571
+ borderRadius: "var(--commerce-radius-sm, 8px)",
3572
+ color: "var(--commerce-danger, #dc2626)",
3550
3573
  fontSize: "0.875rem",
3551
3574
  display: "flex",
3552
3575
  alignItems: "flex-start",
@@ -3574,8 +3597,8 @@ function ProductDetail({
3574
3597
  ] }),
3575
3598
  showStickyBar && checkoutState === "browsing" && !isOutOfStock && !needsVariantSelection && /* @__PURE__ */ jsxs("div", { className: "skc-sticky-bar", children: [
3576
3599
  /* @__PURE__ */ jsxs("div", { children: [
3577
- /* @__PURE__ */ jsx("div", { style: { fontWeight: 600, fontSize: "0.875rem", color: "var(--commerce-text)", lineHeight: 1.2 }, children: product.name }),
3578
- product.price_is_public && currentPrice != null && /* @__PURE__ */ jsx("div", { style: { fontWeight: 700, fontSize: "1rem", color: hasDiscount ? "var(--commerce-danger)" : "var(--commerce-text)" }, children: formatPrice(currentPrice, product.currency) })
3600
+ /* @__PURE__ */ jsx("div", { style: { fontWeight: 600, fontSize: "0.875rem", color: "var(--commerce-text, #111827)", lineHeight: 1.2 }, children: product.name }),
3601
+ product.price_is_public && currentPrice != null && /* @__PURE__ */ jsx("div", { style: { fontWeight: 700, fontSize: "1rem", color: hasDiscount ? "var(--commerce-danger, #dc2626)" : "var(--commerce-text, #111827)" }, children: formatPrice(currentPrice, product.currency) })
3579
3602
  ] }),
3580
3603
  /* @__PURE__ */ jsx(
3581
3604
  "button",
@@ -3618,13 +3641,13 @@ function ProductDetail({
3618
3641
  height: 32,
3619
3642
  borderRadius: "50%",
3620
3643
  border: "none",
3621
- background: "var(--commerce-surface)",
3644
+ background: "var(--commerce-surface, #f9fafb)",
3622
3645
  cursor: "pointer",
3623
3646
  display: "flex",
3624
3647
  alignItems: "center",
3625
3648
  justifyContent: "center",
3626
3649
  zIndex: 10,
3627
- color: "var(--commerce-text-secondary)"
3650
+ color: "var(--commerce-text-secondary, #6b7280)"
3628
3651
  },
3629
3652
  children: /* @__PURE__ */ jsx(IconX, {})
3630
3653
  }
@@ -3638,15 +3661,15 @@ function ProductDetail({
3638
3661
  style: {
3639
3662
  width: 48,
3640
3663
  height: 48,
3641
- border: "3px solid var(--commerce-border)",
3642
- borderTopColor: "var(--commerce-accent)",
3664
+ border: "3px solid var(--commerce-border, #e5e7eb)",
3665
+ borderTopColor: "var(--commerce-accent, #2563eb)",
3643
3666
  borderRadius: "50%",
3644
3667
  animation: "skc-spin 0.8s linear infinite",
3645
3668
  margin: "0 auto 1.5rem"
3646
3669
  }
3647
3670
  }
3648
3671
  ),
3649
- /* @__PURE__ */ jsx("p", { style: { color: "var(--commerce-text-secondary)", fontSize: "0.9375rem", margin: 0 }, children: "Processing your order..." })
3672
+ /* @__PURE__ */ jsx("p", { style: { color: "var(--commerce-text-secondary, #6b7280)", fontSize: "0.9375rem", margin: 0 }, children: "Processing your order..." })
3650
3673
  ] }),
3651
3674
  checkoutState === "success" && checkoutResult && /* @__PURE__ */ jsx(SuccessStep, { result: checkoutResult, product, onClose: handleCloseCheckout }),
3652
3675
  checkoutState === "customer-info" && /* @__PURE__ */ jsx(
@@ -3710,8 +3733,8 @@ function ProductDetail({
3710
3733
  padding: "0.75rem",
3711
3734
  background: "#fef2f2",
3712
3735
  border: "1px solid #fecaca",
3713
- borderRadius: "var(--commerce-radius-sm)",
3714
- color: "var(--commerce-danger)",
3736
+ borderRadius: "var(--commerce-radius-sm, 8px)",
3737
+ color: "var(--commerce-danger, #dc2626)",
3715
3738
  fontSize: "0.875rem",
3716
3739
  display: "flex",
3717
3740
  alignItems: "flex-start",
@@ -6551,5 +6574,5 @@ function getApiKey2() {
6551
6574
  }
6552
6575
 
6553
6576
  export { CalendarView, CheckoutForm, EventCalendar, EventEmbed, EventModal, EventTile, EventsWidget, OfferingCard, OfferingList, ProductDetail, ProductEmbed, ProductGrid, ProductPage, RegistrationForm, SizeChart, UpcomingEvents, createCheckoutSession, createPaymentIntent, fetchActiveProcessor, fetchCategories, fetchLatestOffering, fetchNextEvent, fetchOffering, fetchOfferings, fetchProcessorConfig, fetchProductBySlug, fetchProducts, fetchProductsPublic, fetchServices, fetchShippingRates, fetchUpcomingEvents, formatDate, formatDateRange, formatDateTime, formatPrice, formatTime, getOfferingUrl, getRelativeTimeUntil, getSpotsRemaining, isEventSoldOut, registerForEvent, useEventModal, validateAddress };
6554
- //# sourceMappingURL=chunk-KGNO6DZH.mjs.map
6555
- //# sourceMappingURL=chunk-KGNO6DZH.mjs.map
6577
+ //# sourceMappingURL=chunk-GA2MN6CF.mjs.map
6578
+ //# sourceMappingURL=chunk-GA2MN6CF.mjs.map