:root {
  --wf-event-pencil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15.5 4.5a2.83 2.83 0 0 1 4 4L8 20l-5 1 1-5Z M14 6l4 4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wf-event-edit-button:is(button, a, .wf-poster-pencil, .wf-host-pencil) {
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  flex: none;
  padding: 0 !important; /* Override the event builder's text-button padding. */
  margin: 0;
  line-height: 1;
  vertical-align: middle;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: #fffdf5;
  color: #111;
  cursor: pointer;
}
.wf-event-edit-button::before,
:is([data-event-edit="title"], [data-event-edit="schedule"], [data-event-settings="location"], .wf-create-title-field)::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: none;
  vertical-align: middle;
  background: currentColor;
  mask: var(--wf-event-pencil);
}
.wf-event-edit-button.ticket-tier-drag-handle::before {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg%3E%3Ccircle cx='8' cy='5' r='2'/%3E%3Ccircle cx='16' cy='5' r='2'/%3E%3Ccircle cx='8' cy='12' r='2'/%3E%3Ccircle cx='16' cy='12' r='2'/%3E%3Ccircle cx='8' cy='19' r='2'/%3E%3Ccircle cx='16' cy='19' r='2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
[data-event-edit="title"]::after { margin-inline-start: 8px; }
.wf-event-edit-button:hover { background: #eeeae0; }
.wf-event-edit-button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (forced-colors: active) {
  .wf-event-edit-button::before,
  :is([data-event-edit="title"], [data-event-edit="schedule"], [data-event-settings="location"], .wf-create-title-field)::after {
    forced-color-adjust: none;
    background: ButtonText;
  }
}

.wf-poster-preview-area .wf-poster-pencil {
  position: absolute;
  bottom: 12px;
  left: 12px;
  pointer-events: none;
}
.wf-poster-preview-area #image_file {
  position: absolute;
  display: block;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.wf-poster-preview-area input:focus-visible ~ .wf-poster-pencil {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.wf-poster-preview-area.dragover > .frame::after {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: 2;
  pointer-events: none;
  border: 3px dashed white;
  outline: 2px solid #111;
  background: rgb(0 0 0 / 20%);
}
