/* Template share buttons */

.template-share-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.92);
  color: #5b2ee5;
  box-shadow: 0 14px 34px rgba(61,35,138,.14);
  cursor: pointer;
  z-index: 4;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}

.template-share-btn:hover {
  transform: translateY(-2px) scale(1.03);
  background: #5b2ee5;
  color: #fff;
}

.template-share-btn span {
  font-size: 22px;
  line-height: 1;
  font-weight: 1000;
  transform: translateY(-1px);
}

.template-card {
  padding-top: 24px;
}

.template-card .template-card-top {
  padding-right: 48px;
}

.template-share-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 24px);
  border-radius: 999px;
  padding: 13px 18px;
  background: #24194d;
  color: #fff;
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
  font-weight: 1000;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.template-share-toast.active {
  opacity: 1;
  transform: translate(-50%, 0);
}

.template-nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.template-inline-share-btn,
.template-full-share-btn {
  border: 1px solid rgba(91,46,229,.16);
  cursor: pointer;
  font: inherit;
}

.template-inline-share-btn span,
.template-full-share-btn span {
  margin-right: 6px;
  font-size: 18px;
  line-height: 1;
}

.template-preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.template-preview-share-icon {
  position: static;
  flex: 0 0 auto;
}

.template-full-share-btn {
  width: 100%;
}

@media (max-width: 760px) {
  .template-nav-actions {
    width: 100%;
  }

  .template-nav-actions > * {
    flex: 1;
  }

  .template-card .template-card-top {
    padding-right: 44px;
  }

  .template-share-btn {
    top: 14px;
    right: 14px;
  }
}
