.wp-social-share {
  margin: 14px 0 4px;
  padding: 14px 0 0;
  border-top: 1px solid #eee;
}
.wp-social-share-heading {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}
.wp-social-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e2e6ea;
  background: #fff;
  color: #333;
  border-radius: 20px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
  font-family: inherit;
  line-height: 1.2;
}
.wp-share-btn i,
.wp-share-btn .wp-share-svg {
  color: var(--wp-share-color, #056636);
  font-size: 14px;
  flex-shrink: 0;
}
.wp-share-btn .wp-share-svg {
  width: 14px;
  height: 14px;
  display: block;
}
.wp-share-btn .fa {
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
}
.wp-share-btn:hover {
  background: #f4fbf7;
  border-color: #b9dfc9;
  text-decoration: none;
  color: #111;
  transform: translateY(-1px);
}
.wp-share-btn.wp-share-copied {
  border-color: #27ae60;
  background: #eaf8ef;
}
.wp-share-btn.wp-share-webychat:hover {
  background: #f3effa;
  border-color: #c5b3e6;
}

/* WebyChat share modal — above header, ads, and Bootstrap modals */
#wc-share-modal.wc-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 18, 9, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2147483646 !important;
  opacity: 0;
  transition: opacity 0.25s;
  backdrop-filter: blur(4px);
  pointer-events: none;
  padding: 16px;
  box-sizing: border-box;
}
#wc-share-modal.wc-modal-overlay.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
body.wc-share-open .modal.show {
  visibility: hidden !important;
  pointer-events: none !important;
}
#wc-share-modal .wc-modal {
  background: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  max-height: min(85vh, 640px);
  transform: translateY(20px);
  transition: transform 0.25s;
  overflow: hidden;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}
#wc-modal-body-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.wc-modal-overlay.open .wc-modal {
  transform: translateY(0);
}
.wc-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid #e8e2d9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wc-modal-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1a1209;
}
.wc-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #8a7f72;
  padding: 0;
  line-height: 1;
}
.wc-modal-close:hover {
  color: #e74c3c;
}
.wc-search-bar {
  padding: 16px 24px;
  border-bottom: 1px solid #e8e2d9;
  background: #fdfcfa;
}
.wc-search-input {
  width: 100%;
  padding: 10px 16px;
  border-radius: 20px;
  border: 1.5px solid #e8e2d9;
  font-size: 14px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.wc-search-input:focus {
  border-color: #27ae60;
}
.wc-user-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px 0;
  min-height: 120px;
  max-height: none;
}
.wc-user-item {
  display: flex;
  align-items: center;
  padding: 10px 24px;
  cursor: pointer;
  transition: background 0.15s;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.wc-user-item:hover {
  background: #e8f5e9;
}
.wc-user-item * {
  pointer-events: none;
}
.wc-user-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #e8e2d9;
  flex-shrink: 0;
  margin-right: 14px;
}
.wc-user-info {
  flex: 1;
  min-width: 0;
}
.wc-user-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1209;
  display: block;
}
.wc-user-unm {
  font-size: 12px;
  color: #8a7f72;
  display: block;
}
.wc-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #e8e2d9;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.wc-user-item.selected .wc-checkbox {
  background: #27ae60;
  border-color: #27ae60;
}
.wc-checkbox::after {
  content: '';
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  display: none;
}
.wc-user-item.selected .wc-checkbox::after {
  display: block;
}
.wc-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e8e2d9;
  background: #fdfcfa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 2;
}
.wc-selected-count {
  font-size: 13px;
  color: #8a7f72;
  font-weight: 600;
}
.wc-send-btn {
  padding: 10px 24px;
  background: #27ae60;
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wc-send-btn:hover {
  background: #1b5e20;
}
.wc-send-btn:disabled {
  background: #aaa;
  cursor: not-allowed;
}
.wc-share-card {
  margin: 16px 24px;
  border: 1px solid #e8e2d9;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
}
.wc-share-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: #e8f5e9;
  color: #27ae60;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  overflow: hidden;
}
.wc-share-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wc-share-info {
  flex: 1;
  min-width: 0;
}
.wc-share-title {
  font-size: 13px;
  font-weight: 600;
  color: #1a1209;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin: 0;
}
.wc-share-url {
  font-size: 11px;
  color: #8a7f72;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin: 2px 0 0;
}
.wc-success-msg {
  text-align: center;
  padding: 40px 20px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.wc-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #27ae60;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.wc-success-text {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1a1209;
  line-height: 1.4;
}
.wc-share-loading {
  padding: 40px 20px;
  text-align: center;
  font-size: 14px;
  color: #8a7f72;
}
.wc-share-spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 3px solid #e8e2d9;
  border-top-color: #27ae60;
  border-radius: 50%;
  animation: wc-share-spin 0.8s linear infinite;
  margin-bottom: 8px;
}
@keyframes wc-share-spin {
  to { transform: rotate(360deg); }
}