/* Replace the text glyph used by the H5 image picker with a photo icon. */
.icon-button {
  position: relative;
  border-radius: 50%;
  font-size: 0 !important;
  transition: color 180ms ease, background-color 180ms ease;
}

.icon-button::before {
  display: block;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='15' rx='2.5'/%3E%3Ccircle cx='8.5' cy='9.5' r='1.5'/%3E%3Cpath d='m4 17 4.2-4.2a1.5 1.5 0 0 1 2.1 0L15 17'/%3E%3Cpath d='m13.5 15.5 1.5-1.5a1.5 1.5 0 0 1 2.1 0L20 16.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='15' rx='2.5'/%3E%3Ccircle cx='8.5' cy='9.5' r='1.5'/%3E%3Cpath d='m4 17 4.2-4.2a1.5 1.5 0 0 1 2.1 0L15 17'/%3E%3Cpath d='m13.5 15.5 1.5-1.5a1.5 1.5 0 0 1 2.1 0L20 16.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.icon-button:focus-within {
  outline: 2px solid rgba(35, 116, 86, 0.32);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .icon-button:hover {
    background-color: rgba(35, 116, 86, 0.08);
  }
}
