.content-share-surface {
  position: relative;
}

.content-share-button {
  align-items: center;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(27, 46, 35, .16);
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(18, 32, 23, .14);
  color: #1b2e23;
  cursor: pointer;
  display: flex;
  height: 40px;
  justify-content: center;
  opacity: 0;
  padding: 0;
  position: absolute;
  right: 10px;
  top: 10px;
  transform: translateY(-5px);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease, color 160ms ease;
  width: 40px;
  z-index: 6;
}

.content-share-button > span {
  background: currentColor;
  display: block;
  height: 19px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='18' cy='5' r='3' fill='none' stroke='black' stroke-width='1.8'/%3E%3Ccircle cx='6' cy='12' r='3' fill='none' stroke='black' stroke-width='1.8'/%3E%3Ccircle cx='18' cy='19' r='3' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='m8.6 10.5 6.8-4M8.6 13.5l6.8 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='18' cy='5' r='3' fill='none' stroke='black' stroke-width='1.8'/%3E%3Ccircle cx='6' cy='12' r='3' fill='none' stroke='black' stroke-width='1.8'/%3E%3Ccircle cx='18' cy='19' r='3' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='m8.6 10.5 6.8-4M8.6 13.5l6.8 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  width: 19px;
}

.commerce-share-button {
  top: 58px;
}

.commerce-product-card-image-wrap:hover > .content-share-button,
.blog-card-media-wrap:hover > .content-share-button,
.blog-detail-cover:hover > .content-share-button,
.content-share-button:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.commerce-main-media-stage > .content-share-button,
.blog-detail-cover > .content-share-button {
  opacity: 1;
  transform: none;
}

.content-share-button:hover,
.content-share-button:focus-visible {
  background: #ffffff;
  color: #e86613;
}

.content-share-button:focus-visible {
  outline: 3px solid rgba(49, 95, 69, .28);
  outline-offset: 3px;
}

.blog-card-media-wrap {
  background: var(--blog-soft);
}

.content-share-layer {
  align-items: center;
  background: rgba(15, 24, 19, .52);
  box-sizing: border-box;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 2147483000;
}

.content-share-layer[hidden] {
  display: none !important;
}

.content-share-dialog {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(12, 25, 17, .3);
  box-sizing: border-box;
  color: #17231c;
  max-width: 440px;
  padding: 22px;
  position: relative;
  width: 100%;
}

.content-share-dialog h2 {
  font-size: 21px;
  line-height: 1.25;
  margin: 0 42px 6px 0;
}

.content-share-dialog > p {
  color: #5b6860;
  line-height: 1.45;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}

.content-share-close {
  align-items: center;
  background: #f2f5f3;
  border: 0;
  border-radius: 999px;
  color: #17231c;
  cursor: pointer;
  display: flex;
  font-size: 24px;
  height: 34px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 2px;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
}

.content-share-options {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-share-options a,
.content-share-copy {
  align-items: center;
  background: #f5f7f6;
  border: 1px solid #dce3df;
  border-radius: 8px;
  box-sizing: border-box;
  color: #193326 !important;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 750;
  justify-content: center;
  min-height: 43px;
  padding: 9px 11px;
  text-align: center;
  text-decoration: none !important;
}

.content-share-options a:hover,
.content-share-copy:hover,
.content-share-options a:focus-visible,
.content-share-copy:focus-visible,
.content-share-close:focus-visible {
  background: #e9f0ec;
  border-color: #8ca395;
  outline: 2px solid rgba(49, 95, 69, .2);
  outline-offset: 2px;
}

.content-share-status {
  color: #27613f;
  font-size: 13px;
  font-weight: 700;
  min-height: 18px;
  padding-top: 12px;
  text-align: center;
}

body.content-share-open {
  overflow: hidden;
}

@media (hover: none) {
  .content-share-button {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .content-share-button {
    height: clamp(28px, 8vw, 34px);
    right: 6px;
    top: 6px;
    width: clamp(28px, 8vw, 34px);
  }

  .content-share-button > span {
    height: 15px;
    width: 15px;
  }

  .commerce-share-button {
    top: 44px;
  }

  .content-share-layer {
    align-items: flex-end;
    padding: 12px;
  }

  .content-share-dialog {
    border-radius: 14px 14px 8px 8px;
    padding: 20px 16px 16px;
  }

  .content-share-options {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content-share-button {
    transition: none;
  }
}
