.fotopoly-stamp-layout {
  display: block;
}

.fotopoly-stamp-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
  align-items: center;
}

.fotopoly-stamp-toolbar select,
.fotopoly-stamp-toolbar button {
  font-size: 0.85rem;
  line-height: 1.2;
  padding: 0.2rem 0.45rem;
  border: 1px solid #c8c8c8;
  background: #f7f7f7;
  border-radius: 3px;
  color: #222;
}

.fotopoly-stamp-toolbar button {
  min-width: 2rem;
  font-weight: 700;
  cursor: pointer;
}

.fotopoly-stamp-toolbar button.is-active {
  background: #ddd;
  border-color: #999;
}

.fotopoly-stamp-toolbar .js-stamp-italic {
  font-style: italic;
  font-weight: 400;
}

.fotopoly-stamp-surface {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 10em;
  border: 1px solid #000;
  background: #fff;
  padding: 0.45em 0.55em;
  overflow: auto;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.25;
  outline: none;
}

.fotopoly-stamp-surface:focus {
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

.fotopoly-stamp-source {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fotopoly-stamp-notes {
  font-size: 0.9rem;
}

.fotopoly-stamp-notes ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.fotopoly-stamp-notes li + li {
  margin-top: 0.35rem;
}

.fotopoly-stamp-preview {
  width: 15em;
  max-width: 100%;
  border: 1px solid #000;
  background: #fff;
  padding: 0.4em 0.5em;
  overflow: auto;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.25;
}

.product-line__stamp {
  margin: 0.5rem 0 0.65rem;
}

.product-line__stamp .fotopoly-stamp-preview {
  width: 15em;
}

.product-line__stamp-file {
  margin: 0.45rem 0 0.65rem;
}

.product-line__stamp-file-link {
  display: inline-block;
  max-width: 100%;
  text-decoration: none;
  color: inherit;
}

.product-line__stamp-thumb {
  display: block;
  max-width: 7.5rem;
  max-height: 7.5rem;
  width: auto;
  height: auto;
  border: 1px solid #dee2e6;
  background: #fff;
  object-fit: contain;
}

.product-line__stamp-file-fallback {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  text-decoration: underline;
}

.blockcart-modal__stamp {
  margin-top: 0.65rem;
}

.blockcart-modal__stamp .fotopoly-stamp-preview {
  width: 12em;
  font-size: 11px;
}

.blockcart-modal__stamp .product-line__stamp-thumb {
  max-width: 6rem;
  max-height: 6rem;
}
