.fc-icon {
  border: 1px solid #dde8ea;
  background: transparent;
  color: var(--bs-body-color, #194955);
  border-radius: 14px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  cursor: pointer;
  flex-shrink: 0;
}
.fc-tools {
  display: flex;
  gap: 6px;
  align-items: center;
}
.ff-heading .fc-tools {
  margin-left: auto;
}
.ff-heading:has(.fc-tools) p,
.ff-heading:has(.fc-tools) .ff-browse {
  display: none;
}
.fc-dialog {
  box-sizing: border-box;
  border: 1px solid #dce9ec;
  border-radius: 24px;
  padding: 20px;
  width: min(520px, calc(100% - 32px));
  max-height: 85dvh;
  overflow: auto;
  color: #173c48;
  background: #fff;
  box-shadow: 0 16px 80px #142c4655;
}
.fc-dialog::backdrop {
  background: #102c4780;
}
.fc-dialog header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.fc-dialog h2 {
  font-size: 21px;
  margin: 0;
  flex: 1;
}
.fc-dialog p {
  font-size: 14px;
  color: #5d727d;
}
.fc-dialog form,
.fc-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fc-dialog label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}
.fc-dialog input:not([type='checkbox']),
.fc-dialog textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d3e3e6;
  border-radius: 14px;
  padding: 12px;
  font: inherit;
  color: inherit;
  background: #f8fbfc;
}
.fc-dialog input[type='checkbox'] {
  accent-color: #0086a5;
  width: 22px;
  height: 22px;
}
.fc-button {
  border: 1px solid #d6e6ea;
  background: #f5fafb;
  color: #126c80;
  border-radius: 14px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}
.fc-primary {
  background: #00a7ce;
  color: #fff;
  border-color: transparent;
}
.fc-danger {
  color: #b13839;
}
.fc-button:disabled {
  opacity: 0.5;
}
.fc-error:empty {
  display: none;
}
.fc-error {
  color: #ad3035 !important;
}
.fc-cover {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  background: #e7f7fa;
  display: grid;
  place-items: center;
  font-size: 32px;
  overflow: hidden;
}
.fc-cover img,
.fc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fc-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 40dvh;
  overflow: auto;
}
.fc-dialog .fc-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  border-radius: 12px;
  padding: 6px;
  background: #f5fafb;
}
.fc-option img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}
.fc-option span {
  overflow-wrap: anywhere;
}
.fc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.fc-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid #e0ebed;
  border-radius: 18px;
  padding: 10px;
}
.fc-card > a {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.fc-thumb {
  flex: 0 0 88px;
  height: 88px;
  border-radius: 14px;
  background: #e8f7fa;
  color: #1595b4;
  display: grid;
  place-items: center;
  font-size: 36px;
  overflow: hidden;
}
.fc-card h3 {
  font-size: 16px;
  margin: 0 0 5px;
  overflow-wrap: anywhere;
}
.fc-card p {
  font-size: 13px;
  margin: 0;
  color: #6b7b83;
}
.fc-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px !important;
}
.fc-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 32px 16px;
}
.fc-empty > .ti {
  font-size: 64px;
  color: #00a7ce;
}
.fc-empty h2 {
  font-size: 21px;
}
.fc-empty p {
  color: #647b83;
}
.fc-collection-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}
.fc-collection-heading h2 {
  font-size: 18px;
  margin: 0;
}
.fc-card .fc-icon {
  border: 0;
  min-width: 36px;
}
.fc-dialog .ff-toolbar {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  border: 0 !important;
}
.fc-dialog .ff-toolbar-right {
  display: flex;
  flex-wrap: wrap;
}
.fc-dialog .zg-preference {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}
.fc-ad-action {
  margin-left: auto;
}
.ff-price {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ff-filters a {
  white-space: nowrap;
}
.ff-filters span {
  margin-left: 6px;
  opacity: 0.7;
}
.ff-toolbar[hidden],
.zg-preference[hidden] {
  display: none !important;
}
@media (max-width: 650px) {
  .fc-list {
    grid-template-columns: 1fr;
  }
  .fc-dialog {
    margin: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: 90dvh;
    border-radius: 24px 24px 0 0;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
  .ff-heading {
    gap: 8px !important;
  }
  .ff-heading h1 {
    font-size: 24px !important;
  }
  .fc-tools {
    gap: 4px;
  }
  .fc-tools .fc-icon {
    min-width: 40px;
    min-height: 40px;
  }
  .fc-thumb {
    flex-basis: 80px;
    height: 80px;
  }
}

.ff-page .ff-tab span {
  border: 0;
  border-radius: 0;
  background: transparent;
  min-width: 0;
  padding: 0;
}
.ff-page .ff-filters a {
  border: 0;
  background: #f3f6f7;
}
.ff-page .ff-filters a[aria-current='true'] {
  background: #e6f6fa;
  color: #126c80;
}
