.select-photo-demo {
  background: #eff8ff;
  color: #102a56;
}
.select-photo-toolbar {
  height: 58px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 0 0 0;
  background: #fff;
}
.select-photo-toolbar button {
  width: 44px;
  height: 44px;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: #102a56;
}
.select-photo-toolbar h1 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
}
.select-photo-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px 12px 18px;
}
.select-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}
.select-photo-tile {
  position: relative;
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.select-thumb {
  position: relative;
  aspect-ratio: 1 / 1.4;
  overflow: hidden;
  display: grid;
  place-items: end center;
  padding: 12px;
  border-radius: 6px;
  background: var(--paint), var(--bg);
  box-shadow: 0 6px 14px rgba(16,42,86,.22);
}
.select-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: inset 0 0 0 0 #1570ef;
  transition: box-shadow .18s ease;
}
.select-photo-tile.on .select-thumb::after {
  box-shadow: inset 0 0 0 3px #1570ef;
}
.select-thumb i {
  position: absolute;
  inset: 14px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.08));
  mix-blend-mode: screen;
}
.select-thumb b {
  position: relative;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(16,42,86,.62);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
}
.select-radio {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #1570ef;
}
.select-radio svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 1px 2px rgba(16,42,86,.18));
}
.select-radio circle {
  fill: rgba(21,112,239,.25);
  stroke: #1570ef;
  stroke-width: 1.5;
}
.select-radio path {
  fill: #1570ef;
}
.select-photo-hint {
  margin: 0 0 16px;
  text-align: center;
  font-size: 12px;
  color: #102a56;
}
.select-photo-bottom {
  padding: 12px 20px 32px;
  background: #fff;
}
.select-photo-bottom button {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 16px;
  background: #d1e9ff;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.select-photo-bottom button.ready {
  background: #1570ef;
  box-shadow: inset 0 -1px 2px rgba(16,42,86,.42);
  cursor: pointer;
}
.select-photo-loader {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.7);
}
.select-photo-loader div {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 7px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  animation: select-spin .8s linear infinite;
}
@keyframes select-spin {
  to { transform: rotate(360deg); }
}
