/* Photo upload for print products. Loaded only on products switched on in the app. */
.spu {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.4;
  color: #1a1a1a;
}
.spu *,
.spu-modal * {
  box-sizing: border-box;
}
.spu-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 8px;
}
.spu-head span {
  color: #555;
  font-size: 14px;
}
.spu-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 12px;
  border: 2px dashed #9bb5ad;
  border-radius: 6px;
  background: #f5f8f7;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.spu-drop:hover,
.spu--over .spu-drop {
  background: #e8f0ed;
  border-color: #2e5a51;
}
.spu-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.spu-drop__title {
  font-weight: 600;
  color: #2e5a51;
}
.spu-drop__hint {
  font-size: 13px;
  color: #666;
}
.spu-files {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.spu-file {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
}
.spu-file__thumb {
  flex: none;
  width: 72px;
  max-height: 96px;
  background-color: #eee;
  background-repeat: no-repeat;
  border: 1px solid #ccc;
}
.spu-file__thumb--empty {
  height: 72px;
}
.spu-file__main {
  flex: 1;
  min-width: 0;
}
.spu-file__name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.spu-file__status {
  margin-top: 4px;
  font-size: 14px;
  color: #555;
}
.spu-file__status--error {
  color: #b42318;
}
.spu-file__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.spu-link {
  padding: 0;
  border: 0;
  background: none;
  color: #2e5a51;
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}
.spu-bar {
  display: inline-block;
  width: 120px;
  height: 6px;
  margin-left: 6px;
  vertical-align: middle;
  border-radius: 3px;
  background: #e5e5e5;
  overflow: hidden;
}
.spu-bar span {
  display: block;
  height: 100%;
  background: #2e5a51;
  transition: width 0.2s;
}
.spu-q {
  margin-top: 4px;
  font-size: 14px;
}
.spu-q__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: baseline;
}
.spu-q--great .spu-q__dot { background: #1a7f37; }
.spu-q--ok .spu-q__dot { background: #d4a72c; }
.spu-q--soft .spu-q__dot { background: #e36209; }
.spu-q--blocked .spu-q__dot { background: #b42318; }
.spu-q--blocked strong { color: #b42318; }
.spu-q__notes {
  margin-top: 2px;
  color: #555;
}
.spu-q__tick {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
  font-weight: 600;
  cursor: pointer;
}
.spu-message {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 4px;
  background: #fdecea;
  color: #b42318;
  font-size: 14px;
}

/* Crop window */
.spu-locked,
.spu-locked body {
  overflow: hidden;
}
.spu-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.6);
}
.spu-modal__box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(760px, 100%);
  max-height: 100%;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  color: #1a1a1a;
  font-size: 15px;
}
.spu-modal__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
}
.spu-modal__size {
  color: #555;
  font-size: 14px;
}
.spu-stage {
  position: relative;
  height: min(60vh, 520px);
  overflow: hidden;
  background: #2b2b2b;
  touch-action: none;
  user-select: none;
}
.spu-stage img {
  position: absolute;
  max-width: none;
  pointer-events: none;
}
.spu-crop {
  position: absolute;
  border: 2px solid #fff;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
  cursor: move;
}
.spu-crop span {
  position: absolute;
  inset: 33.33% 0;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
}
.spu-crop::after {
  content: "";
  position: absolute;
  inset: 0 33.33%;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  border-right: 1px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
}
.spu-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}
.spu-zoom {
  display: flex;
  flex: 1;
  gap: 8px;
  align-items: center;
  min-width: 200px;
  font-size: 14px;
}
.spu-zoom input {
  flex: 1;
  direction: rtl;
}
.spu-modal__foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.spu-btn {
  padding: 10px 18px;
  border: 1px solid #2e5a51;
  border-radius: 4px;
  background: #2e5a51;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.spu-btn--ghost {
  background: #fff;
  color: #2e5a51;
}
