/* The product option and the JAVA MIX cards share the same finish palette. */
[data-color="chrome" i], [data-color="chrome-1" i], [data-color="chrome-2" i],
#java-mix a[href$="?color=chrome"] {
  --store-finish: linear-gradient(135deg, #fff, #888, #eee);
}
[data-color="black" i], [data-color="black-1" i], [data-color="black-2" i],
[data-color="tall mixer black" i], #java-mix a[href$="?color=black"] {
  --store-finish: #242424;
}
[data-color="gold" i], [data-color="gold-1" i], [data-color="gold-2" i],
#java-mix a[href$="?color=gold"] {
  --store-finish: linear-gradient(135deg, #ffe5a3, #b67d17);
}
[data-color="brushed gold" i], #java-mix a[href$="?color=brushed-gold"] {
  --store-finish: linear-gradient(135deg, #e4d3a8, #a2824d);
}
[data-color="rose gold" i], #java-mix a[href$="?color=rose-gold"] {
  --store-finish: linear-gradient(135deg, #f5c1ae, #a66560);
}
[data-color="brushed rose gold" i] {
  --store-finish: linear-gradient(135deg, #d9aa99, #905e54);
}
[data-color="gray" i], #java-mix a[href$="?color=gray"] { --store-finish: #78787a; }
[data-color="charcoal gray" i] { --store-finish: #46484c; }
[data-color="white" i] { --store-finish: #fff; }
[data-color="off-white" i], [data-color="ivore" i] { --store-finish: #eee7d6; }
[data-color="creamy" i] { --store-finish: #e8d6b3; }
[data-color="greige" i] { --store-finish: #b2a28e; }
[data-color="green" i] { --store-finish: #526d55; }
[data-color="oil" i] { --store-finish: #77764c; }
[data-color="red" i] { --store-finish: #a21729; }
[data-color="bronze" i] { --store-finish: linear-gradient(135deg, #d2a778, #784d37); }
#java-mix a[href$="?color=black-chrome"] {
  --store-finish: linear-gradient(90deg, #242424 50%, #bdbfc3 50%);
}
#java-mix a[href$="?color=black-rose-gold"] {
  --store-finish: linear-gradient(90deg, #242424 50%, #cf9281 50%);
}

button.option[data-color]:not(:has(> img))::before,
:is(#cobra-classic, #dinosaur, #pelle) button.option[data-color]:not(:has(> img))::before,
button.option[data-color]:has(> img) > bdi::before,
#java-mix a[href*="?color="] .mixer-product-copy bdi::before {
  content: "";
  display: inline-block;
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  border: 1px solid #81766a;
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 6px 0 0;
  margin-inline: 0 6px;
  background: var(--store-finish, transparent);
}
button.option[data-color]:has(> img)::before { content: none; }

.finish-picker {
  margin: .75rem 0 1rem;
  border: 1px solid #b7a58a;
  border-radius: 14px;
  background: #f8f3e9;
  color: #322719;
}
.finish-picker-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .6rem;
  min-height: 54px;
  padding: .55rem .75rem;
}
.finish-picker-copy { display: grid; gap: .15rem; }
.finish-picker-copy strong { font-size: .9rem; }
.finish-picker-count, .finish-picker-selected { color: #695332; }
.finish-picker-selected { overflow-wrap: anywhere; font-size: .875rem; }
.finish-picker-palette { display: flex; gap: .2rem; align-items: center; }
.finish-picker-dot {
  width: .875rem;
  height: .875rem;
  border: 1px solid #81766a;
  border-radius: 50%;
}
.finish-picker-more { font-size: .75rem; color: #695332; }
.finish-picker > .options {
  margin: 0;
  padding: .65rem .75rem .75rem;
  border-top: 1px solid #dfd1bc;
}

[data-color="light gray" i] { --store-finish: #b9bbbd; }
[data-color="matte black" i], [data-color="matt black" i] { --store-finish: #242424; }
[data-color="brushed green" i] { --store-finish: #8fa781; }
[data-color="gunmetal" i], [data-color="brushed gunmetal gray" i] { --store-finish: #545961; }
[data-color="walnut" i], [data-color="black oak" i] { --store-finish: #594031; }
[data-color="charcoal gray & walnut" i] { --store-finish: linear-gradient(90deg,#46484c 50%,#78543d 50%); }
[data-color="black & gold" i] { --store-finish: linear-gradient(90deg,#242424 50%,#c5a058 50%); }
[data-color="champagne gold" i], [data-color="brushed champagne gold" i] { --store-finish: linear-gradient(135deg,#e7d6b7,#aa8a5e); }
[data-color="polished gold" i] { --store-finish: linear-gradient(135deg,#ffe5a3,#b67d17); }
[data-color="polished rose gold" i] { --store-finish: linear-gradient(135deg,#f5c1ae,#a66560); }
[data-color="brushed nickel" i] { --store-finish: linear-gradient(135deg,#e2dcd1,#92908a); }
.product-info > .fixed-finish { margin-block: .65rem; }
.fixed-finish-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .8rem;
  border: 1px solid #b7a58a;
  border-radius: 999px;
  background: #201b15;
  color: #f8f3e9;
  font-size: .875rem;
  line-height: 1.5;
}
.fixed-finish-chip .finish-picker-dot {
  flex: 0 0 .875rem;
  background: var(--store-finish, #81766a);
}

/* Keep kitchen card prices and dividers aligned when model names wrap. */
#kitchen .cabinet-gallery > .mixer-product {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}
#kitchen .cabinet-gallery .mixer-product-copy {
  flex: 1;
  align-items: start;
  align-content: start;
}
#kitchen .cabinet-gallery .mixer-product-copy > small {
  min-block-size: 3em;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
#kitchen .cabinet-gallery .mixer-product-copy > span {
  line-height: 1.5;
}
