
#sharebox-button {
  cursor: pointer;
  background: #ebebeb !important;
  color: #288c44 !important;
  border: 0px solid #ebebeb !important;
  padding: 10px 20px;
  display: inline-block;
  border-radius: 10px !important;
  font-weight: 400 !important;
  transition: all 0.3s ease;
}

#sharebox-button:hover {
  background: #888888 !important;
  color: #fff !important;
  border: 0px solid #888888 !important;
}

#sharebox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
}
.sharebox-modal {
  background: white;
  width: 100%;
  max-width: 440px;
  text-align: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  border-radius: 10px !important;
}
.sharebox-modal img.wp-post-image {
  width: 100%;
  display: block;
  border-radius: 0 !important;
}
.sharebox-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 10;
  border: 0px;
  background: rgba(96,96,96,0.37);
}
.sharebox-close img {
  width: 100%;
  height: auto;
  display: block;
}
.sharebox-modal h3 {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 500;
}
.sharebox-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  justify-items: center;
  margin: 16px 0 24px;
  padding: 0 12px;
}


.sharebox-icons img {
  width: 40px;
  max-width: 100%;
  cursor: pointer;
  transition: background 0.2s ease;
}
@media (max-width: 480px) {
  .sharebox-icons img {
    width: 32px;
  }
}

/* ======================================================
   Safety overrides (do not affect existing layout)
   Ensure overlay always sits above Divi stacking contexts
   and prevent background scroll when open.
   ====================================================== */

#sharebox-overlay{
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483646 !important;
}

.sharebox-modal{
  z-index: 2147483647 !important;
}

body.sharebox-open{
  overflow: hidden !important;
}
