#tube-options .flex-tube-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "profile sample" "color sample";
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 20px 26px;
  padding: clamp(14px, 2.5vw, 30px);
  margin-top: 22px;
  border: 1px solid #e3dce8;
  border-radius: 18px;
  background: #faf8fc;
  color: #221c2b;
}
#tube-options .flex-profile { grid-area: profile; min-width: 0; }
#tube-options .flex-colors { grid-area: color; min-width: 0; border-top: 1px solid #e5dfe9; padding-top: 15px; }
#tube-options .flex-sample { grid-area: sample; min-width: 0; margin: 0; }
#tube-options .flex-tube-picker h3 { font-size: 18px; line-height: 1.25; margin: 0 0 10px; }
#tube-options .flex-tube-picker p { font-size: 14px; line-height: 1.45; margin: 0 0 12px; }
#tube-options .tube-profile-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px; margin: 0;
}
#tube-options .tube-profile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 0; min-width: 0; gap: 4px; text-align: center;
  background: #fff; padding: 8px 4px; border: 1px solid #d9d0df; border-radius: 9px;
}
#tube-options .tube-profile svg { width: 70px; max-width: 100%; height: auto; margin: 0; }
#tube-options .tube-profile strong { font-size: 15px; line-height: 1.25; }
#tube-options .tube-profile span { font-size: 12px; line-height: 1.3; margin: 0; }
#tube-options .tube-key { margin: 9px 0 0; font-size: 12px; }
#tube-options .tube-swatches { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
#tube-options .tube-swatches button {
  min-height: 38px; padding: 6px 10px; background: #fff; color: #221c2b;
  border: 1px solid #d9d0df; border-radius: 999px; font-size: 14px;
}
#tube-options .flex-tube-picker button[aria-pressed="true"] {
  background: #eee6ff; border-color: #68439d; color: #302143;
}
#tube-options .flex-tube-picker button:focus-visible { outline: 2px solid #68439d; outline-offset: 2px; }
#tube-options .flex-sample-head {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: 10px;
}
#tube-options .flex-sample-head h3 { margin: 0; }
#tube-options .flex-sample-toggle { display: flex; gap: 4px; background: #f0ebf4; padding: 3px; border-radius: 8px; }
#tube-options .flex-sample-toggle button {
  color: #33283e; background: transparent; border: 1px solid transparent; border-radius: 6px;
  padding: 5px 9px; font: inherit; font-size: 13px; white-space: nowrap;
}
#tube-options .flex-board-photo {
  position: relative; display: block; width: 100%; aspect-ratio: 1672 / 941;
  padding: 0; overflow: hidden; border: 0; border-radius: 10px; background: #f0eef3; cursor: zoom-in;
}
#tube-options .flex-board-photo img {
  display: block; width: 100%; height: 100%;
  object-fit: contain; margin: 0; border-radius: 0;
}
#tube-options .flex-sample figcaption { margin-top: 8px; font-size: 13px; line-height: 1.35; color: #574a60; }
#tube-options .flex-sample-dialog {
  width: min(1100px, 94vw); max-height: 94vh; padding: 12px; border: 0; border-radius: 12px; background: #fff;
}
#tube-options .flex-sample-dialog::backdrop { background: #180f22b8; }
#tube-options .flex-sample-dialog img { display: block; width: 100%; max-height: 80vh; object-fit: contain; }
#tube-options .flex-sample-dialog form { display: flex; justify-content: flex-end; margin-bottom: 6px; }
#tube-options .flex-sample-dialog button { padding: 6px 12px; }
@media (max-width: 790px) {
  #tube-options .flex-tube-picker {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "profile" "sample" "color";
    grid-template-rows: auto; gap: 16px;
  }
  #tube-options .tube-profile svg { width: 60px; }
  #tube-options .tube-key { display: flex; flex-wrap: wrap; gap: 4px 12px; }
}
#tube-options .flex-sample-highlight {
  position: absolute;
  top: 18.5%;
  bottom: 11%;
  left: var(--sample-left, 0);
  right: var(--sample-right, 0);
  pointer-events: none;
  border: 2px solid #fff;
  border-radius: 7px;
  box-shadow: 0 0 0 1px #46325d, 0 0 0 100vmax rgb(9 6 20 / 54%);
}
#tube-options .flex-sample-selection {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 8px;
  min-height: 23px;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: #51346e;
}
#tube-options .flex-sample-reset {
  border: 0;
  background: transparent;
  padding: 0 3px;
  color: #5d368e;
  font: inherit;
  text-decoration: underline;
}
