.create-photo-before-save {
  position: relative;
  display: grid;
  gap: 10px;
  align-items: center;
  justify-items: center;
  min-height: 132px;
  margin-top: 10px;
  padding: 14px;
  border: 1px dashed #94a3b8;
  border-radius: 14px;
  background: #f8fafc;
}

.create-photo-before-save__input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.create-photo-before-save__button-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.create-photo-before-save__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid #2563eb;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
  user-select: none;
}

.create-photo-before-save__button:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.create-photo-before-save__button:active {
  transform: translateY(1px);
}

.create-photo-before-save__preview {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.create-photo-before-save__preview:empty {
  display: none;
}

.create-photo-before-save__item {
  position: relative;
  flex: 0 0 142px;
  width: 142px;
  max-width: 142px;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #172033;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
}

.create-photo-before-save__item img {
  display: block;
  width: 126px;
  height: 86px;
  max-width: 126px;
  object-fit: cover;
  border-radius: 8px;
  background: #e2e8f0;
}

.create-photo-before-save__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
}

.create-photo-before-save__remove:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.create-photo-before-save__name {
  display: block;
  max-width: 126px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.create-photo-before-save__status {
  width: 100%;
  min-height: 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #0369a1;
}

.create-photo-before-save__status:empty {
  display: none;
}

.create-photo-before-save__status.error {
  color: #b91c1c;
}
