/* ===========================
   Wrapper / Card
   =========================== */

.iftd-wrap {
  max-width: 100%;
  margin: 16px 0;
  font-family: inherit;
}

.iftd-title {
  margin: 0 0 10px 0;
  font-size: 22px;
  font-weight: 700;
}

.iftd-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 16px;
  margin: 16px 0;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
}

/* ===========================
   Toolbar
   =========================== */

.iftd-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 12px 0;
}

.iftd-search-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.iftd-search {
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 240px;
  max-width: 100%;
}

/* ===========================
   Table container
   =========================== */

.iftd-table-scroll {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
}

/* ===========================
   Table
   =========================== */

.iftd-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 680px;
  table-layout: fixed;   /* CRITICAL: prevents long URLs from expanding columns */
}

.iftd-table thead th {
  position: sticky;
  top: 0;
  background: #111;
  color: #fff;
  text-align: left;
  font-weight: 700;
  padding: 12px 12px;
  font-size: 14px;
  z-index: 1;
}

.iftd-table tbody td {
  padding: 12px 12px;
  border-top: 1px solid rgba(0,0,0,.08);
  vertical-align: middle;
  background: #fff;
  overflow: hidden;   /* needed for ellipsis */
}

.iftd-table tbody tr:nth-child(even) td {
  background: rgba(0,0,0,.02);
}

/* ===========================
   Text helpers
   =========================== */

.iftd-name {
  font-weight: 700;
}

.iftd-muted {
  opacity: .55;
}

/* ===========================
   URL ellipsis (ANY column)
   =========================== */
/* Apply to links explicitly marked as URLs */

.iftd-table a.iftd-url-link {
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===========================
   Social Media column (EXCLUDED)
   =========================== */

.iftd-table td.iftd-social-cell {
  overflow: visible;
}

.iftd-table td.iftd-social-cell a {
  display: inline-flex;
  width: auto;
  max-width: none;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

/* ===========================
   Social icon strip
   =========================== */

.iftd-icons {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

/* Link wrapper should not impose any size differences */
.iftd-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0; /* prevents inline-img baseline weirdness */
}

/* HARD normalize all images to same visual size */
.iftd-social-img {
  width: 40px !important;
  height: 40px !important;
  display: block !important;
  object-fit: contain !important;
  max-width: 40px !important;
  max-height: 40px !important;
}

.iftd-icon-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

.iftd-dashicon {
  font-size: 24px;   /* visually balanced inside 40px */
  width: 24px;
  height: 24px;
}

.iftd-fallback-icon {
  width: 24px;
  height: 24px;
  display: block;
}
