.share-button-wrapper {
  position: relative;
  display: inline-block;
}

@media only screen and (max-width: 768px) {
  .share-button-wrapper {
    display: flex;
    justify-content: flex-end;
    width: 100%;
  }
}
.share-button {
  background: white;
  border-radius: 4px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  margin: 0;
  color: #656d79;
  font-size: 18px;
}

.share-button:hover {
  background: #f5f5f5;
}

.share-button:focus {
  outline: 2px solid #0d2c54;
  outline-offset: 2px;
}

.share-button svg {
  width: 20px;
  height: 20px;
  color: currentColor;
}

.share-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 400px;
  max-width: 480px;
  overflow: hidden;
  animation: slideDown 0.2s ease-out;
}

.share-dropdown.hidden {
  display: none;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.share-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #FFFFFF;
}

.share-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 16px;
  border-bottom: none;
}

.share-dropdown-header h3 {
  margin: 0;
  font-family: Roboto, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #0d2c54;
}

.share-dropdown-close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #656d79;
  font-size: 24px;
  line-height: 1;
  transition: all 0.2s ease;
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.share-dropdown-close:hover {
  color: #0d2c54;
  background: #f5f5f5;
}

.share-dropdown-close span {
  font-size: 24px;
  line-height: 1;
}

.share-dropdown-content {
  padding: 0 20px 20px 20px;
}

.share-options {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: nowrap;
  padding: 0 10px;
}

.share-option-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  border: none;
  outline: none;
}

.share-option-item:hover {
  opacity: 0.8;
  text-decoration: none !important;
  border-bottom: none !important;
}

.share-option-item:focus {
  outline: none;
  border-bottom: none !important;
}

.share-option-item::after {
  display: none !important;
  content: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}

.share-option-item:hover::after {
  display: none !important;
  content: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}

.share-option-item.link-underlined::after {
  display: none !important;
  content: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}

.share-option-item.link-underlined:hover::after {
  display: none !important;
  content: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}

.share-option-circle {
  background: #F2F5F7;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 8px;
  transition: transform 0.2s ease;
}

.share-option-item:hover .share-option-circle {
  transform: scale(1.05);
}

.share-option-circle .icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-option-circle svg {
  width: 24px;
  height: 24px;
  display: block;
}

.share-option-label {
  font-family: Roboto, sans-serif;
  font-size: 12px;
  color: #98a0af;
  text-align: center;
  line-height: 1.2;
}

.share-more-icon {
  color: #0D2C54;
  font-size: 24px;
  line-height: 1;
  font-weight: bold;
  letter-spacing: -2px;
}

.share-url-container {
  display: flex;
  align-items: center;
  position: relative;
  padding: 0;
  background: #F2F5F7;
  border-radius: 12px;
  border: none;
  overflow: hidden;
}

.share-url-input {
  flex: 1;
  border: none !important;
  background: #F2F5F7 !important;
  font-family: Roboto, sans-serif;
  font-size: 14px;
  color: #0d2c54;
  outline: none;
  padding: 12px 16px;
  padding-right: 48px;
  cursor: text;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-url-input:focus {
  outline: none;
  background: #F2F5F7 !important;
}

.share-url-input:-webkit-autofill,
.share-url-input:-webkit-autofill:hover,
.share-url-input:-webkit-autofill:focus {
  background: #F2F5F7 !important;
  -webkit-box-shadow: 0 0 0px 1000px #F2F5F7 inset !important;
}

.share-copy-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #656d79;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.share-copy-button:hover {
  background: #e0e0e0;
  color: #0d2c54;
}

.share-copy-button svg {
  width: 18px;
  height: 18px;
  display: block;
}

.share-copy-button:hover svg rect {
  stroke: #0d2c54;
}

.share-copy-button.copied svg rect {
  stroke: white;
}

.share-copy-button .icon {
  font-size: 18px;
}

.share-copy-button.copied {
  background: #11ddac;
  color: white;
}

.share-copy-button.copied .icon {
  color: white;
}

@media only screen and (max-width: 768px) {
  .share-button {
    width: 36px;
    height: 36px;
  }
  .share-button svg {
    width: 18px;
    height: 18px;
  }
  .share-dropdown {
    width: calc(100vw - 32px);
    min-width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    right: 0;
    left: auto;
    transform: none;
    position: absolute;
    top: calc(100% + 8px);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
  .share-dropdown::before {
    right: 20px;
    left: auto;
    transform: none;
  }
  .share-options {
    gap: 16px;
    padding: 0 5px;
  }
  .share-option-circle {
    width: 44px;
    height: 44px;
    border-radius: 6px;
  }
  .share-option-circle .icon {
    font-size: 20px;
  }
  .share-option-label {
    font-size: 11px;
  }
  .share-more-icon {
    font-size: 20px;
  }
}