/*
 * "Save and share" row of the translation pages and the Voice Translator page
 * (inc/share-row.php). Colours come from the theme's variables, so the dark
 * theme needs no rules of its own.
 */
.se-xshare {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border-top: 1px solid var(--border);
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}
.se-xshare-item {
  flex: 1 1 0;
  min-width: 0;
  min-height: 76px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-left: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.se-xshare-item:first-child {
  border-left: 0;
}
.se-xshare-item:hover {
  background: var(--bg-secondary);
}
.se-xshare-item:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: -3px;
}
.se-xshare-ico {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
}
.se-xshare-video .se-xshare-ico {
  background: #be185d;
}
.se-xshare-srt .se-xshare-ico {
  background: #4f46e5;
}
.se-xshare-link .se-xshare-ico {
  background: #0f766e;
}
.se-xshare-embed .se-xshare-ico {
  background: #7e22ce;
}
.se-xshare-history .se-xshare-ico {
  background: #b45309;
}
.se-xshare-card .se-xshare-ico {
  background: #dc2626;
}
.se-xshare-note {
  margin: 0;
  padding: 10px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
}
.se-xshare-note[hidden] {
  display: none;
}
/* Voice Translator page: the row is a card of its own under the two speakers. */
.sv-tool .se-xshare {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
/* Six buttons: two rows of three on a phone. */
@media (max-width: 640px) {
  .se-xshare-item {
    flex: 1 1 33.333%;
    min-height: 68px;
    padding: 10px 2px;
    font-size: 12px;
  }
  .se-xshare-item:nth-child(n+4) {
    border-top: 1px solid var(--border);
  }
  .se-xshare-item:nth-child(4) {
    border-left: 0;
  }
}
