.page-share {
  position: relative;
  width: min(100%, 980px);
  margin: 20px auto 0;
  text-align: left;
}

.page-share-label {
  display: block;
  margin: 0 0 20px 2px;
  color: #1d1d1f;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.page-share-label + .page-share-actions {
  gap: 2px;
}

.page-share-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.page-share-actions > :is(button, a) {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #6e6e73;
  background: transparent;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.page-share-actions > :is(button, a):hover,
.page-share-actions > :is(button, a):active {
  color: #1d1d1f;
}

.page-share-actions > :is(button, a):focus-visible,
.page-share-close:focus-visible,
.page-share-url:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 4px;
}

.page-share-actions > button:disabled {
  opacity: 0.65;
  cursor: progress;
}

.page-share-icon {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}

.page-share-status {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  max-width: 100%;
  margin: 0;
  color: #6e6e73;
  font-size: 13px;
  line-height: 1.5;
}

.page-share-status:empty {
  display: none;
}

.page-share-dialog {
  box-sizing: border-box;
  width: min(340px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 32px 24px 24px;
  overflow: auto;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  color: #1d1d1f;
  background: #fff;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.18);
  font-family: inherit;
  text-align: center;
}

.page-share-dialog:not([open]) {
  display: none;
}

.page-share-dialog::backdrop {
  background: rgba(0, 0, 0, 0.2);
}

.page-share-dialog-fallback[open] {
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100;
  margin: 0;
  transform: translate(-50%, -50%);
}

.page-share-close {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: #6e6e73;
  background: transparent;
  cursor: pointer;
}

.page-share-close svg {
  width: 18px;
  height: 18px;
}

.page-share-dialog h2 {
  margin: 0 12px 16px;
  padding: 0;
  color: #1d1d1f;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

.page-share-qr {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto 12px;
  background: #fff;
}

.page-share-qr[hidden] {
  display: none;
}

.page-share-dialog p {
  margin: 12px 0 14px;
  color: #6e6e73;
  font-size: 14px;
  line-height: 1.6;
}

.page-share-url {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #d2d2d7;
  border-radius: 6px;
  color: #1d1d1f;
  background: #f5f5f7;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.page-share-actions {
  margin-left: -10px;
}

.page-share--bottom {
  width: min(calc(100% - 36px), 980px);
  margin: 0 auto 48px;
}

.restaurant-article-page .page-hero .page-share {
  width: min(calc(100% - 86px), 894px);
}

@media (max-width: 640px) {
  .restaurant-article-page .page-hero .page-share {
    width: calc(100% - 46px);
  }
}
