@layer recipes {
  [data-scope="signature-pad"][data-part="root"] {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
  }

  [data-scope="signature-pad"][data-part="label"] {
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 500;
  }

  [data-scope="signature-pad"][data-part="control"] {
    width: 100%;
    height: 120px;
    background-color: rgb(239, 239, 239);
    border-radius: 8px;
  }

  [data-scope="signature-pad"][data-part="guide"] {
    position: absolute;
    bottom: 12%;
    left: 8px;
    right: 8px;
    border-bottom: 1px dashed rgb(47, 47, 47);
  }

  [data-scope="signature-pad"][data-part="clear-trigger"] {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;

    & svg {
      width: 1em;
      height: 1em;
    }
  }

  .signature-pad [data-part="preview"] {
    height: 160px;
    object-fit: cover;
    max-width: 100%;
  }
}
