/* The salon's deposit payment image: a thumbnail that opens full screen
   (ui/deposit-lightbox.js). Each page sizes the thumbnail; this sets what is
   shared. */
.deposit-image-trigger {
  display: grid;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  color: inherit;
  background: #fff;
  font: inherit;
  text-align: center;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}

.deposit-image-trigger > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.deposit-image-trigger-caption {
  display: block;
  padding: 7px 8px;
  border-top: 1px solid rgba(23, 19, 31, 0.07);
  color: #5d4a96;
  background: #fff;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}

.deposit-image-trigger:focus-visible {
  outline: 3px solid rgba(111, 82, 194, 0.42);
  outline-offset: -3px;
}

.deposit-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147480000;
  overscroll-behavior: contain;
}

.deposit-lightbox[data-state="closing"] {
  pointer-events: none;
}

.deposit-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 12, 26, 0.74);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  backdrop-filter: blur(10px) saturate(1.05);
  cursor: zoom-out;
}

.deposit-lightbox-image {
  position: fixed;
  display: block;
  max-width: none;
  margin: 0;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  transform-origin: 0 0;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.deposit-lightbox-close {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: background-color 160ms ease;
}

.deposit-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.deposit-lightbox-close:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.72);
  outline-offset: 2px;
}

@media (min-width: 600px) {
  .deposit-lightbox-close {
    top: max(28px, env(safe-area-inset-top));
    right: max(28px, env(safe-area-inset-right));
  }
}
