.wallet-gallery-stage .wallet-focus-frame {
  display: none !important;
}

.wallet-gallery-stage {
  overflow: hidden;
}

.wallet-gallery-wheel {
  position: relative !important;
  inset: auto !important;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden !important;
  padding: 8px 0 72px !important;
  perspective: none !important;
  touch-action: auto !important;
}

.wallet-gallery-calendar {
  flex: 0 0 auto;
  width: min(430px, calc(100% - 20px));
  margin: 0 auto;
  padding: 10px 12px 9px;
  border: 1px solid rgba(100,116,139,.14);
  border-radius: 20px;
  background: linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,250,252,.96));
  box-shadow: 0 8px 24px rgba(15,23,42,.07), inset 0 1px 0 rgba(255,255,255,.95);
}

.wallet-gallery-calendar-header {
  height: 34px;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) 34px;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.wallet-gallery-calendar-nav {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(100,116,139,.14);
  border-radius: 50%;
  background: #FFFFFF;
  color: #334155;
  font: 700 25px/1 var(--font-family);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(15,23,42,.06);
}

.wallet-gallery-calendar-nav:active {
  transform: scale(.96);
  background: #F8FAFC;
}

.wallet-gallery-calendar-month {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0F172A;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -.01em;
  text-align: center;
  text-transform: capitalize;
}

.wallet-gallery-calendar-weekdays,
.wallet-gallery-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
}

.wallet-gallery-calendar-weekdays {
  margin-bottom: 2px;
}

.wallet-gallery-calendar-weekdays span {
  display: grid;
  place-items: center;
  height: 18px;
  color: #94A3B8;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.wallet-gallery-calendar-grid {
  row-gap: 1px;
}

.wallet-gallery-calendar-day {
  position: relative;
  min-width: 0;
  height: 27px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  border-radius: 9px;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
}

.wallet-gallery-calendar-day.is-adjacent-month {
  color: #CBD5E1;
}

.wallet-gallery-calendar-day.is-today {
  box-shadow: inset 0 0 0 1.5px rgba(15,118,110,.32);
  color: #0F766E;
}

.wallet-gallery-calendar-day.has-wallet-event {
  color: #0F172A;
}

.wallet-gallery-calendar-day-number {
  line-height: 1;
}

.wallet-gallery-calendar-dots {
  height: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.wallet-gallery-calendar-dots i {
  width: 4px;
  height: 4px;
  display: block;
  border-radius: 50%;
  background: #DC2626;
  box-shadow: 0 0 0 1px rgba(220,38,38,.05);
}

.wallet-gallery-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
}

.wallet-gallery-main-item {
  position: relative !important;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  display: flex;
  justify-content: center;
  pointer-events: auto !important;
  transform: none !important;
}

.wallet-gallery-main .wallet-document-card {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: min(90vw, 386px) !important;
  max-width: 100%;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  will-change: auto !important;
}

.wallet-gallery-main .wallet-document-card.is-active {
  box-shadow:
    0 24px 54px rgba(15,23,42,.20),
    0 8px 18px rgba(15,23,42,.10),
    inset 0 1px 0 rgba(255,255,255,.34);
}

.wallet-gallery-picker {
  flex: 0 0 auto;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 0 0 2px;
}

.wallet-gallery-picker-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px;
  color: #334155;
}

.wallet-gallery-picker-heading strong {
  font-size: 12px;
  font-weight: 900;
}

.wallet-gallery-picker-heading small {
  color: #94A3B8;
  font-size: 10px;
  font-weight: 700;
}

.wallet-gallery-thumbnails {
  width: 100%;
  min-width: 0;
  display: flex;
  gap: 11px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px calc(50% - 78px) 12px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: calc(50% - 78px);
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
}

.wallet-gallery-thumbnails::-webkit-scrollbar {
  display: none;
}

.wallet-gallery-thumbnail {
  --wallet-thumb-base: #0F766E;
  flex: 0 0 156px;
  width: 156px;
  height: 98px;
  scroll-snap-align: center;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  grid-template-rows: auto 1fr;
  column-gap: 9px;
  row-gap: 4px;
  align-content: center;
  padding: 12px 13px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 19px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb,var(--wallet-thumb-base) 78%,white),
    var(--wallet-thumb-base) 52%,
    color-mix(in srgb,var(--wallet-thumb-base) 74%,black)
  );
  color: #FFFFFF;
  text-align: left;
  box-shadow: 0 9px 20px rgba(15,23,42,.13), inset 0 1px 0 rgba(255,255,255,.24);
  cursor: pointer;
  opacity: .74;
  transform: scale(.965);
  transition: opacity 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.wallet-gallery-thumbnail[data-card-color="urban"] { --wallet-thumb-base:#0F766E; }
.wallet-gallery-thumbnail[data-card-color="petrol"] { --wallet-thumb-base:#1F6F8B; }
.wallet-gallery-thumbnail[data-card-color="cobalt"] { --wallet-thumb-base:#3F63B8; }
.wallet-gallery-thumbnail[data-card-color="violet"] { --wallet-thumb-base:#7357A6; }
.wallet-gallery-thumbnail[data-card-color="berry"] { --wallet-thumb-base:#A64D65; }
.wallet-gallery-thumbnail[data-card-color="terracotta"] { --wallet-thumb-base:#B85F43; }
.wallet-gallery-thumbnail[data-card-color="ochre"] { --wallet-thumb-base:#A86F18; }
.wallet-gallery-thumbnail[data-card-color="olive"] { --wallet-thumb-base:#667A32; }

.wallet-gallery-thumbnail.is-selected {
  opacity: 1;
  transform: scale(1);
  box-shadow:
    0 11px 24px rgba(15,23,42,.18),
    0 0 0 3px rgba(15,118,110,.17),
    inset 0 1px 0 rgba(255,255,255,.30);
}

.wallet-gallery-thumbnail:active {
  transform: scale(.985);
}

.wallet-gallery-thumbnail-emoji {
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 27px;
  line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(2,6,23,.18));
}

.wallet-gallery-thumbnail strong,
.wallet-gallery-thumbnail small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-gallery-thumbnail strong {
  align-self: end;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: -.01em;
}

.wallet-gallery-thumbnail small {
  align-self: start;
  color: rgba(255,255,255,.80);
  font-size: 9px;
  font-weight: 700;
}

.wallet-gallery-shell .wallet-add-populated,
.wallet-gallery-shell .wallet-archived-populated {
  z-index: 90;
}

.wallet-emoji-options {
  max-height: 132px;
  overflow-y: auto;
  align-content: flex-start;
  padding: 2px;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  .wallet-gallery-wheel {
    gap: 10px;
    padding-top: 7px !important;
  }

  .wallet-gallery-calendar {
    width: calc(100% - 16px);
    padding: 8px 10px 7px;
    border-radius: 18px;
  }

  .wallet-gallery-calendar-header {
    height: 32px;
    margin-bottom: 2px;
  }

  .wallet-gallery-calendar-day {
    height: 25px;
  }

  .wallet-gallery-main .wallet-document-card {
    width: min(88vw, 358px) !important;
  }

  .wallet-gallery-thumbnail {
    flex-basis: 150px;
    width: 150px;
    height: 96px;
  }

  .wallet-gallery-thumbnails {
    padding-inline: calc(50% - 75px);
    scroll-padding-inline: calc(50% - 75px);
  }
}

@media (max-width: 390px) {
  .wallet-gallery-wheel {
    gap: 8px;
  }

  .wallet-gallery-calendar {
    width: calc(100% - 12px);
    padding: 7px 8px 6px;
    border-radius: 17px;
  }

  .wallet-gallery-calendar-header {
    grid-template-columns: 30px minmax(0,1fr) 30px;
    height: 30px;
  }

  .wallet-gallery-calendar-nav {
    width: 29px;
    height: 29px;
    font-size: 22px;
  }

  .wallet-gallery-calendar-month {
    font-size: 13px;
  }

  .wallet-gallery-calendar-weekdays span {
    height: 16px;
    font-size: 8px;
  }

  .wallet-gallery-calendar-day {
    height: 23px;
    font-size: 10.5px;
  }

  .wallet-gallery-main {
    padding-block: 2px;
  }

  .wallet-gallery-main .wallet-document-card {
    width: 88vw !important;
  }

  .wallet-gallery-picker-heading {
    padding-inline: 14px;
  }

  .wallet-gallery-picker-heading small {
    display: none;
  }

  .wallet-gallery-thumbnail {
    flex-basis: 144px;
    width: 144px;
    height: 92px;
    padding: 11px;
  }

  .wallet-gallery-thumbnails {
    padding-inline: calc(50% - 72px);
    scroll-padding-inline: calc(50% - 72px);
  }
}

@media (max-height: 760px) {
  .wallet-gallery-calendar-day {
    height: 22px;
  }

  .wallet-gallery-calendar-weekdays span {
    height: 15px;
  }

  .wallet-gallery-main .wallet-document-card {
    width: min(84vw, 340px) !important;
  }

  .wallet-gallery-thumbnail {
    height: 86px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wallet-gallery-thumbnail,
  .wallet-gallery-calendar-nav {
    transition: none !important;
  }
}
