.annuncio-share-actions,
.annuncio-admin-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.annuncio-admin-actions form {
  margin: 0;
}

.annuncio-bottom-btn.annuncio-bottom-btn-share {
  border: 1px solid #c7d2fe;
  color: #3730a3;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
}

.annuncio-bottom-btn.annuncio-bottom-btn-facebook {
  border: 1px solid #0f62ce;
  color: #fff;
  background: linear-gradient(135deg, #1877f2, #0f62ce);
  box-shadow: 0 10px 22px rgb(24 119 242 / 20%);
  cursor: pointer;
}

.annuncio-facebook-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #1877f2;
  background: #fff;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.annuncio-facebook-admin-panel {
  max-width: 720px;
  margin: 12px auto 14px;
  padding: 12px;
  border: 1px solid rgb(147 197 253 / 85%);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgb(219 234 254 / 88%), transparent 42%),
    linear-gradient(145deg, #fff, #f8fbff);
  box-shadow: 0 12px 28px rgb(30 64 175 / 9%);
}

.annuncio-facebook-admin-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}

.annuncio-facebook-admin-heading > div {
  min-width: 0;
  flex: 1;
}

.annuncio-facebook-admin-heading small,
.annuncio-facebook-admin-heading strong {
  display: block;
}

.annuncio-facebook-admin-heading small {
  color: #64748b;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.annuncio-facebook-admin-heading strong {
  margin-top: 1px;
  color: #172554;
  font-size: .88rem;
  font-weight: 900;
}

.annuncio-facebook-state {
  flex: 0 0 auto;
  max-width: 38%;
  overflow: hidden;
  padding: 5px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #475569;
  background: rgb(255 255 255 / 88%);
  font-size: .6rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.annuncio-facebook-state.state-published {
  color: #047857;
  border-color: #86efac;
  background: #ecfdf5;
}

.annuncio-facebook-state.state-queued,
.annuncio-facebook-state.state-publishing {
  color: #1d4ed8;
  border-color: #93c5fd;
  background: #eff6ff;
}

.annuncio-facebook-state.state-retry,
.annuncio-facebook-state.state-uncertain {
  color: #92400e;
  border-color: #fcd34d;
  background: #fffbeb;
}

.annuncio-facebook-state.state-failed {
  color: #be123c;
  border-color: #fda4af;
  background: #fff1f2;
}

.annuncio-facebook-admin-note {
  margin: 9px 0 0;
  color: #64748b;
  font-size: .7rem;
  line-height: 1.35;
}

.annuncio-facebook-primary-action {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  padding: 9px 13px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #1877f2, #0f62ce);
  box-shadow: 0 8px 20px rgb(24 119 242 / 20%);
  font-size: .78rem;
  font-weight: 900;
  cursor: pointer;
}

.annuncio-facebook-admin-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.annuncio-facebook-admin-links a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  background: rgb(255 255 255 / 82%);
  font-size: .66rem;
  font-weight: 850;
}

.annuncio-facebook-uncertain {
  max-width: 720px;
  margin: 16px auto 0;
  padding: 16px;
  border: 1px solid #f59e0b;
  border-radius: 18px;
  color: #78350f;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
  box-shadow: 0 12px 28px rgb(146 64 14 / 10%);
}

.annuncio-facebook-uncertain p { margin: 6px 0 14px; }
.annuncio-facebook-resolution-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.annuncio-facebook-resolution-actions form { flex: 1 1 210px; margin: 0; }
.annuncio-facebook-resolution-actions form:first-child { display: grid; gap: 7px; }
.annuncio-facebook-resolution-link {
  display: grid;
  gap: 4px;
  color: #7c4a03;
  font-size: .72rem;
  font-weight: 800;
}
.annuncio-facebook-resolution-link input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  box-sizing: border-box;
  border: 1px solid #f3b942;
  border-radius: 11px;
  padding: 8px 10px;
  background: #fff;
  color: #172033;
  font-size: .76rem;
}
.annuncio-facebook-resolution-actions button {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}
.annuncio-facebook-resolution-confirm {
  border: 1px solid #15803d;
  color: #fff;
  background: #15803d;
}
.annuncio-facebook-resolution-cancel {
  border: 1px solid #d97706;
  color: #92400e;
  background: #fff;
}

.annuncio-share-dialog {
  width: min(460px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  margin: auto;
  padding: 24px;
  border: 1px solid #dbe3f0;
  border-radius: 24px;
  color: #334155;
  background: #fff;
  box-shadow: 0 24px 70px rgb(15 23 42 / 24%);
}

.annuncio-share-dialog::backdrop {
  background: rgb(15 23 42 / 45%);
  backdrop-filter: blur(3px);
}

.annuncio-share-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.annuncio-share-heading h2 {
  margin: 0;
  color: #1e3a8a;
  font-size: 1.2rem;
  font-weight: 800;
}

.annuncio-share-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
}

.annuncio-share-description {
  margin: 12px 0 20px;
  font-size: .9rem;
}

.annuncio-share-label {
  display: block;
  margin-bottom: 6px;
  font-size: .85rem;
  font-weight: 700;
}

.annuncio-share-link {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #334155;
  background: #f8fafc;
  font-size: 16px;
}

.annuncio-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.annuncio-share-primary,
.annuncio-share-secondary {
  flex: 1 1 160px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.annuncio-share-primary {
  border: 1px solid #4f46e5;
  background: #4f46e5;
  color: #fff;
}

.annuncio-share-secondary {
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
}

.annuncio-share-buttons [hidden] { display: none; }
.annuncio-share-buttons button:disabled { opacity: .6; cursor: wait; }
.annuncio-share-dialog :focus-visible,
.annuncio-bottom-btn-share:focus-visible,
.annuncio-bottom-btn-facebook:focus-visible { outline: 3px solid #818cf8; outline-offset: 3px; }
.annuncio-share-status { min-height: 24px; margin: 12px 0 0; font-size: .85rem; }

@media (max-width: 640px) {
  .annuncio-share-actions .annuncio-bottom-btn,
  .annuncio-admin-actions .annuncio-bottom-btn { width: 100%; }
  .annuncio-admin-actions form { width: 100%; }
  .annuncio-share-dialog { padding: 20px; }
}
