/* �R���p�N�gpopover���j���[ */
/* Compact popover menu */

.menu-share {
  inset: 0;
  display: block;
  min-height: 0;
  width: auto;
  padding: 8px;
  border-radius: 8px;
  opacity: 0;
  translate: 0 -8px;
  max-width: 400px;

  &::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
  }

  .menu-list {
    gap: 4px;
    max-height: inherit;

    > a {
      min-height: 0;
      padding: 12px;
      line-height: 1.25;
    }
  }

  &:popover-open {
    opacity: 1;
    translate: 0 0;

    @starting-style {
      opacity: 0;
      translate: 0 -8px;
    }
  }
}

/* SNS share button & dialog */
.share__modal{
  background-color: #fff;
  position: fixed;
  inset: 0;
  margin: auto;
  display: grid;
  align-items: flex-end;
  overflow: auto;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
}
.share__modal_content{
  padding: 1em;
  display: flex;
  flex-direction: column;
  row-gap: 2em;
}
.share__modal__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.share__modal__header span {
  font-size: 2.5rem;
  font-weight: 600;
  color: #373d46;
  text-transform: capitalize;
  opacity: 0.88;
}
.close_modal_btn{
  padding: 0;
  background: transparent;
  border: none;
  height: 42px;
  width: 42px;
}
.fa-xmark,
.fa-copy {
  width: 21px;
  height: 21px;
}
.share__modal__options {
  height: 80px;
}
.list {
  display: flex;
  justify-content: space-between;
  grid-template-columns: repeat(4,1fr);
  padding: 0 !important;
}

.list__item {
  width: 77px;
  flex-direction: column;
  row-gap: 0.5em;
  justify-content: center;
  text-transform: capitalize;
  color: #373d46;
  opacity: 0.9;
  cursor: pointer;
}

.sp-sns-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
}

.sp-sns-btn svg {
  width: 22px;
  height: 22px;
  margin: 10px;
  display: inline-block
}

/* .icon_holder {
  display: grid;
  align-items: center;
  justify-content: center;
} */

.share__modal_link {
  display: flex;
  flex-direction: column;
  row-gap: 1.1em;
}

.share__modal_link span {
  font-weight: 500;
  font-size: 0.9869em;
  text-transform: capitalize;
  color: #373d46;
}

.share__modal_input {
  display: flex;
}

.share__modal_input input {
  width: 100%;
  background-color: #eee;
  padding: 0.88em;
  border-radius: 0.5em;
  border: none;
  outline: none;
  font-size: 0.8em;
  text-overflow: ellipsis;
}

.show-modal {
  opacity: 1;
  visibility: visible;
}

.copy_btn {
  border: none;
  background: none;
}

.copy_toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  width: max-content;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  z-index: 9999;
}

.copy_toast.show {
  opacity: 1;
}