.social-share-instagram,
.social-share-email summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.social-share-dialog {
  box-sizing: border-box;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #111;
  box-shadow: 0 16px 60px #0003;
  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
}

.social-share-dialog::backdrop {
  background: #0009;
}

.social-share-dialog [hidden] {
  display: none !important;
}

.social-share-dialog h2 {
  margin: 0 36px 12px 0;
  font-size: 24px;
  line-height: 1.2;
}

.social-share-dialog p {
  margin: 0 0 18px;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.social-share-dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 2px 8px;
  border: 0;
  background: none;
  color: #333;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.social-share-dialog-image {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

.social-share-dialog-message {
  margin: 16px 0;
  padding: 12px;
  border-radius: 8px;
  background: #f6f5f9;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.social-share-dialog-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.social-share-dialog-actions a,
.social-share-dialog-actions button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 0 !important;
  padding: 9px 11px !important;
  border: 1px solid #d8d5e4;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.social-share-dialog-actions a:hover,
.social-share-dialog-actions button:hover {
  background: #f2f0ff;
}

.social-share-dialog-feedback:not(:empty) {
  display: block;
  margin-top: 12px;
  color: #276a37;
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 420px) {
  .social-share-dialog {
    padding: 20px;
  }

  .social-share-dialog-actions {
    grid-template-columns: 1fr;
  }
}

.social-share-email {
  position: relative;
  flex: 0 0 auto;
}

.social-share-email summary {
  list-style: none;
}

.social-share-email summary::-webkit-details-marker {
  display: none;
}

.social-share-email-options {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 30;
  width: 200px;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px #0002;
}

.social-share-email-options a,
.social-share-email-options button {
  display: block !important;
  width: 100%;
  margin: 0 !important;
  padding: 10px !important;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #111;
  font: inherit;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.social-share-email-options a:hover,
.social-share-email-options button:hover {
  background: #f2f0ff;
}

.social-share-feedback:empty {
  display: none;
}

.social-share-feedback:not(:empty) {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1000;
  width: max-content;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 8px 24px #0003;
}
