.vprint-pdfg-card {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.vprint-pdfg-thumb {
  aspect-ratio: 4 / 3;
  background: #f2f2f2;
}

.vprint-pdfg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vprint-pdfg-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  z-index: 999999;
}

.vprint-pdfg-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vprint-pdfg-modal-inner {
  width: min(1200px, 94vw);
  height: min(94vh, 900px);
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vprint-pdfg-modal-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.vprint-pdfg-shell {
  display: none;
}

.vprint-pdfg-shell.is-open {
  display: block;
}

.vprint-pdfg-shell-inner {
  padding: 14px 0;
}

.vprint-pdfg-headrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px 0;
}

.vprint-pdfg-headrow h4 {
  margin: 0;
}

.vprint-pdfg-shell .vprint-pdfg-headrow-close {
  border: 0 !important;
  border-radius: 10px !important;
  background: #4054b2 !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  padding: 8px 12px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: background .2s ease !important;
  box-shadow: none !important;
}

.vprint-pdfg-shell .vprint-pdfg-headrow-close:hover,
.vprint-pdfg-shell .vprint-pdfg-headrow-close:focus,
.vprint-pdfg-shell .vprint-pdfg-headrow-close:active {
  background: #ff0000 !important;
  color: #fff !important;
}

.vprint-pdfg-navrow {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px 0;
}

.vprint-pdfg-navrow-title {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vprint-pdfg-shell .vprint-pdfg-navrow-btn {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  border-radius: 10px !important;
  border: 0 !important;
  background: #4054b2 !important;
  color: #fff !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  transition: background .2s ease !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.vprint-pdfg-shell .vprint-pdfg-navrow-btn:hover,
.vprint-pdfg-shell .vprint-pdfg-navrow-btn:focus,
.vprint-pdfg-shell .vprint-pdfg-navrow-btn:active {
  background: #ff0000 !important;
  color: #fff !important;
}

.vprint-pdfg-shell .vprint-pdfg-navrow-btn-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
  pointer-events: none !important;
}

.vprint-pdfg-pages {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.vprint-pdfg-page {
  flex: 0 0 100%;
  scroll-snap-align: start;
  box-sizing: border-box;
}

#pp_design_label.vprint-has-open-btn {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#pp_design_label .vprint-open-gallery-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #4054b2 !important;
  color: #fff !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  padding: 11px 16px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: background .2s ease !important;
  box-shadow: none !important;
}

#pp_design_label .vprint-open-gallery-btn-label {
  display: block !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

#pp_design_label .vprint-open-gallery-btn:hover,
#pp_design_label .vprint-open-gallery-btn:focus,
#pp_design_label .vprint-open-gallery-btn:active {
  background: #ff0000 !important;
  color: #fff !important;
}

.vprint-pdfg-shell img,
.vprint-pdfg-shell.is-open img {
  loading: eager !important;
  fetchpriority: high !important;
  content-visibility: auto !important;
}