/* Compartilhamento social — Escolinha de Jesus */

.edj-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.edj-share-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.activities-heading-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.activities-heading .sheet-count-pill {
  margin-left: 0;
}

.edj-share-root {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.edj-share-root[hidden] {
  display: none !important;
}

.edj-share-root.is-open {
  pointer-events: auto;
}

.edj-share-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 38, 81, 0.42);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.edj-share-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(88vh, 560px);
  overflow: auto;
  margin: 0 12px 12px;
  padding: 20px 18px 16px;
  border-radius: 22px 22px 18px 18px;
  background: #fffdf7;
  border: 2px solid #d7eefb;
  box-shadow: 0 18px 48px rgba(8, 38, 81, 0.22);
  color: #0d2846;
  font: 15px/1.45 Nunito, system-ui, sans-serif;
}

.edj-share-grab {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #cfe8f8;
  margin: 0 auto 14px;
}

.edj-share-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.edj-share-head-copy {
  flex: 1;
  min-width: 0;
}

.edj-share-title {
  margin: 0 0 6px;
  font-family: Fredoka, Nunito, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  color: #082651;
}

.edj-share-lead {
  margin: 0;
  color: #334e68;
  font-size: 0.95rem;
}

.edj-share-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid #cfe8f8;
  background: #fff;
  color: #082651;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.edj-share-close:hover {
  background: #f0f9ff;
}

.edj-share-close:focus-visible,
.edj-share-btn:focus-visible,
.edj-share-option:focus-visible {
  outline: 3px solid #7dd3fc;
  outline-offset: 2px;
}

.edj-share-close svg {
  width: 20px;
  height: 20px;
}

.edj-share-options {
  display: grid;
  gap: 8px;
}

.edj-share-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 2px solid #e0f2fe;
  background: #fff;
  color: #0d2846;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.edj-share-option:hover {
  background: #f0f9ff;
  border-color: #7dd3fc;
  transform: translateY(-1px);
}

.edj-share-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.edj-share-option-icon svg {
  width: 22px;
  height: 22px;
}

.edj-share-option[data-share-action="whatsapp"] .edj-share-option-icon {
  background: #e8f8ef;
  color: #128c7e;
}

.edj-share-option[data-share-action="instagram"] .edj-share-option-icon {
  background: linear-gradient(135deg, #fce7f3, #ede9fe);
  color: #c026d3;
}

.edj-share-option[data-share-action="copy"] .edj-share-option-icon {
  background: #e8f6ff;
  color: #0369a1;
}

.edj-share-option[data-share-action="native"] .edj-share-option-icon {
  background: #fff7db;
  color: #a16207;
}

.edj-share-option-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.edj-share-option-label {
  font-size: 0.98rem;
}

.edj-share-option-hint {
  font-size: 0.8rem;
  font-weight: 600;
  color: #4a6685;
}

.edj-share-tip {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f7fbfe;
  border: 1px solid #e0f2fe;
  color: #334e68;
  font-size: 0.9rem;
}

.edj-share-tip[hidden] {
  display: none !important;
}

.edj-share-status {
  margin: 12px 0 0;
  min-height: 1.25em;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0369a1;
}

.edj-share-status[data-tone="ok"] {
  color: #15803d;
}

.edj-share-status[data-tone="warn"] {
  color: #a16207;
}

@media (min-width: 720px) {
  .edj-share-root {
    align-items: center;
  }

  .edj-share-panel {
    margin: 0;
    border-radius: 22px;
  }

  .edj-share-grab {
    display: none;
  }
}

@media (max-width: 600px) {
  .activities-heading-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .activities-heading .edj-share-btn {
    flex: 1 1 auto;
  }
}
