/* ============================================================
   Share button — reusable (frontend/partials/share_button)
   Icon button; dropdown fallback when the browser has no share sheet.
   Size/colour can be adjusted by the page through the variables.
   ============================================================ */
.share-btn {
  --share-size: 40px;
  --share-color: #00002E;
  --share-line: #e6e4e0;
  position: relative;
  display: inline-flex;
  flex: none;
}

.share-btn__trigger {
  width: var(--share-size);
  height: var(--share-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--share-color);
  border-radius: 6px;
  background: #fff;
  color: var(--share-color);
  cursor: pointer;
  transition: opacity .15s ease;
}
.share-btn__trigger:hover { opacity: .85; }
.share-btn__trigger:focus-visible { outline: 2px solid var(--share-color); outline-offset: 2px; }
.share-btn__trigger svg { width: 18px; height: 18px; }

.share-btn__menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 190px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid var(--share-line);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(23, 21, 15, 0.1);
}
.share-btn.is-open .share-btn__menu { display: block; }

.share-btn__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 16px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: #17150f;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.share-btn__item:hover,
.share-btn__item:focus { background: #f7f6f4; color: #17150f; text-decoration: none; outline: none; }
.share-btn__item i { width: 18px; font-size: 17px; text-align: center; color: var(--share-color); }
.share-btn__item.is-done span { color: #1f7a4d; }
