.ndb-share-modal .modal-dialog {
  --bs-modal-margin: 1rem;
  width: min(100% - 2rem, 566px);
  max-width: 566px;
  margin: 1rem auto;
}

.ndb-share-modal .modal-content {
  border: 1px solid #ededed;
  border-radius: 0;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.ndb-share-modal-panel {
  background: #fff;
}

.ndb-share-modal-body {
  padding: 28px;
  overflow-y: auto;
}

.ndb-share-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ndb-share-close-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #2e2f33;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

.ndb-share-close-btn:hover {
  color: #000;
  background: #f2f2f2;
}

.ndb-share-close-btn:focus-visible {
  outline: 2px solid #0079c1;
  outline-offset: 2px;
}

.ndb-share-title {
  margin: 0;
  color: #2e2f33;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1;
}

.ndb-share-subtitle {
  margin: 12px 0 0;
  color: #949ca6;
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
}

.ndb-share-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.ndb-share-option {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
  transition: transform 0.18s ease;
}

.ndb-share-option:hover {
  transform: translateY(-3px);
}

.ndb-share-option:active {
  transform: translateY(0);
}

.ndb-share-option-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ecf1fa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.ndb-share-option:hover .ndb-share-option-icon {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

[data-share-platform="email"]:hover .ndb-share-option-icon {
  background: #fde8e6;
}

[data-share-platform="linkedin"]:hover .ndb-share-option-icon {
  background: #ddeef7;
}

[data-share-platform="twitter"]:hover .ndb-share-option-icon {
  background: #e8e8e8;
}

[data-share-platform="whatsapp"]:hover .ndb-share-option-icon {
  background: #dcf5e5;
}

[data-share-platform="facebook"]:hover .ndb-share-option-icon {
  background: #dce9fd;
}

.ndb-share-option-icon .bi {
  font-size: 1.5rem;
}

[data-share-platform="email"] .ndb-share-option-icon .bi {
  color: #ea4335;
}

[data-share-platform="linkedin"] .ndb-share-option-icon .bi {
  color: #006699;
}

[data-share-platform="twitter"] .ndb-share-option-icon .bi {
  color: #000;
}

[data-share-platform="whatsapp"] .ndb-share-option-icon .bi {
  color: #25d366;
}

[data-share-platform="facebook"] .ndb-share-option-icon .bi {
  color: #1877f2;
}

.ndb-share-option-label {
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  transition: opacity 0.18s ease;
}

.ndb-share-option:hover .ndb-share-option-label {
  opacity: 0.8;
}

.ndb-share-option-label-email {
  color: #ea4335;
}

.ndb-share-option-label-linkedin {
  color: #006699;
}

.ndb-share-option-label-twitter {
  color: #000;
}

.ndb-share-option-label-whatsapp {
  color: #25d366;
}

.ndb-share-option-label-facebook {
  color: #1877f2;
}

.ndb-share-link-wrap {
  margin-top: 28px;
  border: 1px solid #d5dde7;
  border-radius: 8px;
  min-height: 48px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ndb-share-link-input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0 16px;
  text-overflow: ellipsis;
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  color: #8d9ca5;
}

.ndb-share-copy-btn {
  position: relative;
  border: 0;
  border-left: 1px solid #dfe5ec;
  background: #fff;
  min-width: 52px;
  min-height: 48px;
  color: #2e2f33;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.ndb-share-copy-btn:hover:not(.copied) {
  background: #f5f7fa;
  color: #0079c1;
}

.ndb-share-copy-btn.copied {
  color: #25a244;
  background: #f0faf3;
}

.ndb-share-copy-btn.copied::after {
  content: "Copied!";
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #2e2f33;
  color: #fff;
  font-size: 11px;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  animation: ndb-fade-in 0.15s ease;
}

@keyframes ndb-fade-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.ndb-share-copy-btn .bi {
  font-size: 1.1rem;
}

.ndb-share-option:focus-visible,
.ndb-share-copy-btn:focus-visible {
  outline: 2px solid #0079c1;
  outline-offset: 2px;
}

@media (max-width: 991.98px) {
  .ndb-share-modal .modal-dialog {
    width: min(100% - 1.25rem, 540px);
    max-width: 540px;
  }

  .ndb-share-modal-body {
    padding: 24px;
  }

  .ndb-share-title {
    font-size: 22px;
  }

  .ndb-share-subtitle {
    font-size: 13px;
  }

  .ndb-share-option-icon {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 767.98px) {
  .ndb-share-modal .modal-dialog {
    width: calc(100% - 1rem);
    max-width: none;
    margin: 0.5rem auto;
  }

  .ndb-share-modal-body {
    padding: 18px;
  }

  .ndb-share-title {
    font-size: 20px;
  }

  .ndb-share-subtitle {
    font-size: 12px;
    line-height: 1.35;
  }

  .ndb-share-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
  }

  .ndb-share-option-icon {
    width: 54px;
    height: 54px;
  }

  .ndb-share-option-label {
    font-size: 11px;
    font-weight: 700;
  }

  .ndb-share-link-wrap {
    margin-top: 22px;
    min-height: 46px;
  }

  .ndb-share-link-input {
    padding: 0 12px;
    font-size: 12px;
  }

  .ndb-share-copy-btn {
    min-width: 48px;
    min-height: 46px;
  }
}

@media (max-width: 420px) {
  .ndb-share-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ndb-share-title {
    font-size: 18px;
  }
}
