.share-button {
  display: block;
  position: relative;
}

.share-button .hidden {
  display: none;
}

.share-button__button {
  font-size: 14px;
  display: flex;
  align-items: center;
  color: rgb(var(--color-link));
  margin-left: 0;
  padding-left: 0;
  min-height: 44px;
  cursor: pointer;
  background-color: transparent;
  border: none;
}

.share-button .svg-wrapper {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
}

.share-button__button .icon-share {
  height: 12px;
  margin-right: 10px;
  min-width: 13px;
}

.share-button details {
  width: fit-content;
}

.share-button__fallback {
  display: flex;
  align-items: center;
  position: absolute;
  top: 30px;
  left: 1px;
  z-index: 3;
  width: 100%;
  min-width: max-content;
  border-radius: var(--inputs-radius);
  border: 0;
}

.share-button__fallback .field {
  border-radius: 0;
  min-width: auto;
  min-height: auto;
  transition: none;
  position: relative;
  width: 100%;
  display: flex;
}

.share-button__message:not(:empty) {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  margin-top: 0;
  padding: 8px 0 8px 15px;
  margin: var(--inputs-border-width);
}

.share-button__fallback .field__input {
  box-shadow: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  filter: none;
  width: 100%;
  min-width: auto;
  min-height: auto;
  flex-grow: 1;
  text-align: left;
  padding: 22px 15px 8px 20px;
  transition: box-shadow var(--duration-short) ease;
  appearance: none;
  background-color: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
  font-family: var(--font-body-family);
  font-style: var(--font-body-style);
  font-weight: var(--font-body-weight);
  font-size: 16px;
  box-sizing: border-box;
  position: relative;
  border: 0;
}

.field__label,
.customer .field label {
  margin-bottom: 0;
  pointer-events: none;
  position: absolute;
  transition:
    top var(--duration-short) ease,
    font-size var(--duration-short) ease;
  color: rgba(var(--color-foreground), 0.75);
  line-height: 1.5;
  font-size: 10px;
  top: calc(var(--inputs-border-width) + 5px);
  left: calc(var(--inputs-border-width) + 20px);
}

.share-button__fallback button {
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  right: var(--inputs-border-width);
  cursor: pointer;
  background-color: transparent;
  border: none;
}

.share-button__fallback:before {
  background: rgb(var(--color-background));
  pointer-events: none;
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: var(--inputs-radius-outset);
  box-shadow: var(--inputs-shadow-horizontal-offset) var(--inputs-shadow-vertical-offset) var(--inputs-shadow-blur-radius)
    rgba(var(--color-shadow), var(--inputs-shadow-opacity));
  z-index: -1;
}

.share-button__fallback:after {
  pointer-events: none;
  content: '';
  position: absolute;
  top: var(--inputs-border-width);
  right: var(--inputs-border-width);
  bottom: var(--inputs-border-width);
  left: var(--inputs-border-width);
  border: 0.1rem solid transparent;
  border-radius: var(--inputs-radius);
  box-shadow: 0 0 0 var(--inputs-border-width) rgba(var(--color-foreground), var(--inputs-border-opacity));
  transition: box-shadow var(--duration-short) ease;
  z-index: 1;
}

.share-button__fallback .hidden,
.share-button__message:not(:empty):not(.hidden) ~ * {
  display: none;
}

.visually-hidden {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  word-wrap: normal;
}
