/* WP SEO Next — Universal Metabox (Divi/Beaver front-end builders)
   Lightweight overlay; no external deps. */

#wpsn-universal-metabox-root {
  position: fixed;
  z-index: 999999;
  right: 20px;
  bottom: 20px;
}

#wpsn-umeta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  appearance: none;
  border: 1px solid rgba(0,0,0,.18);
  background: #fff;
  color: #111;
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

#wpsn-umeta-btn.wpsn-has-issues {
  border-color: rgba(0,0,0,.28);
}

.wpsn-umeta-btn-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wpsn-btn-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.14);
  background: rgba(0,0,0,.04);
  color: #111;
  white-space: nowrap;
}

.wpsn-btn-badge.warn {
  background: rgba(255,163,72,.18);
  border-color: rgba(255,163,72,.55);
}

.wpsn-btn-badge.bad {
  background: rgba(214,54,56,.14);
  border-color: rgba(214,54,56,.45);
}

.wpsn-btn-badge.info {
  background: rgba(34,113,177,.12);
  border-color: rgba(34,113,177,.38);
}

.wpsn-btn-badge.is-clickable {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wpsn-btn-badge.is-clickable:hover {
  background: rgba(34,113,177,.18);
}

#wpsn-umeta-btn:hover {
  box-shadow: 0 10px 26px rgba(0,0,0,.16);
}

#wpsn-umeta-panel {
  position: fixed;
  z-index: 1000000;
  right: 20px;
  bottom: 20px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 72vh;
  max-height: calc(100vh - 40px);
  background: #fff;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
  display: none;
  overflow: hidden;
}

#wpsn-umeta-panel.is-open {
  display: flex;
  flex-direction: column;
}

.wpsn-umeta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,.10);
}

.wpsn-umeta-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.wpsn-umeta-title {
  font-weight: 600;
  font-size: 13px;
}

.wpsn-umeta-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.wpsn-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.14);
  background: rgba(0,0,0,.04);
  color: #111;
  white-space: nowrap;
}

.wpsn-badge.ok {
  opacity: .75;
}

.wpsn-badge.warn {
  background: rgba(255,163,72,.18);
  border-color: rgba(255,163,72,.55);
}

.wpsn-badge.bad {
  background: rgba(214,54,56,.14);
  border-color: rgba(214,54,56,.45);
}

.wpsn-badge.info {
  background: rgba(34,113,177,.12);
  border-color: rgba(34,113,177,.38);
}

.wpsn-umeta-close {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 6px;
  border-radius: 6px;
}

.wpsn-umeta-close:hover {
  background: rgba(0,0,0,.06);
}

.wpsn-umeta-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 12px 6px;
}

.wpsn-umeta-quicklinks {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 12px 10px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.wpsn-umeta-quicklinks a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 999px;
  padding: 5px 9px;
  color: #111;
  background: #fff;
}

.wpsn-umeta-quicklinks a:hover {
  background: rgba(0,0,0,.06);
}

.wpsn-umeta-tabs button {
  appearance: none;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.wpsn-umeta-tabs button.is-active {
  background: rgba(0,0,0,.06);
}

.wpsn-umeta-body {
  padding: 10px 12px;
  overflow: auto;
  flex: 1 1 auto;
}

.wpsn-umeta-tab {
  display: none;
}

.wpsn-umeta-tab.is-active {
  display: block;
}

.wpsn-umeta-field {
  margin-bottom: 10px;
}

.wpsn-umeta-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.wpsn-umeta-field input[type="text"],
.wpsn-umeta-field textarea,
.wpsn-umeta-field select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}

.wpsn-umeta-field textarea {
  min-height: 64px;
  resize: vertical;
}

.wpsn-umeta-help {
  font-size: 12px;
  opacity: .75;
  margin-top: 4px;
}

.wpsn-umeta-preview {
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: 10px;
  font-size: 12px;
}

.wpsn-umeta-preview .row {
  margin-bottom: 6px;
}

.wpsn-umeta-footer {
  border-top: 1px solid rgba(0,0,0,.10);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#wpsn-umeta-status {
  font-size: 12px;
  opacity: .85;
  flex: 1 1 auto;
}

.wpsn-umeta-footer button {
  appearance: none;
  border: 1px solid rgba(0,0,0,.18);
  background: #fff;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.wpsn-umeta-footer button.primary {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
}

.wpsn-umeta-footer button.primary:disabled {
  opacity: .6;
  cursor: default;
}
