/* Lowqé share block. Colours from the site palette. */
.share-nudge, .share-end, .share-dialog, .share-dialog *, .share-btn { box-sizing: border-box; }
.share-nudge,
.share-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 2.25em 0;
  padding: 18px 20px;
  background: #EADFCB;
  border-left: 3px solid #B87A2A;
  border-radius: 4px;
}

.share-end {
  background: transparent;
  border-left: 0;
  border-top: 1px solid rgba(30, 29, 27, 0.16);
  border-radius: 0;
  padding: 24px 0 0;
}

.share-nudge__text,
.share-end__text {
  flex: 1 1 260px;
  margin: 0;
  color: #1E1D1B;
  font-weight: 500;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  color: #F1EEE8;
  background: #1E1D1B;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.share-btn:hover { background: #9A6220; }
.share-btn:focus-visible,
.share-opt:focus-visible,
.share-dialog__close:focus-visible {
  outline: 2px solid #B87A2A;
  outline-offset: 3px;
}

.share-btn__icon {
  width: 16px;
  height: 16px;
  flex: none;
}

/* The small menu (laptops) */
.share-dialog {
  width: min(380px, calc(100vw - 32px));
  padding: 0;
  color: #1E1D1B;
  background: #F1EEE8;
  border: 1px solid rgba(30, 29, 27, 0.16);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(30, 29, 27, 0.25);
}

.share-dialog::backdrop { background: rgba(30, 29, 27, 0.45); }

.share-dialog__inner { padding: 22px 22px 18px; }

.share-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.share-dialog__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.share-dialog__close {
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  line-height: 1;
  color: #1E1D1B;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.share-dialog__close:hover { background: #EADFCB; }

.share-dialog__sub {
  margin: 4px 0 16px;
  color: rgba(30, 29, 27, 0.6);
  font-size: 0.95rem;
}

.share-dialog__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.share-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  font: inherit;
  font-weight: 600;
  color: #1E1D1B;
  text-decoration: none;
  background: #EADFCB;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.share-opt:hover { background: #E4D8C3; }

.share-dialog__list li { min-width: 0; }
.share-dialog__list li:last-child { grid-column: 1 / -1; }

.share-opt--copy {
  color: #F1EEE8;
  background: #1E1D1B;
}

.share-opt--copy:hover { background: #9A6220; }

.share-dialog__status {
  min-height: 1.4em;
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: #9A6220;
}
