.fp-modal-box {
  max-width: 420px;
}

.fp-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.fp-search {
  position: relative;
  display: flex;
  align-items: center;
}

.fp-search-icon {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--color-gray-400);
  pointer-events: none;
}

.fp-search-input {
  width: 100%;
  padding: 0.55rem 2.1rem 0.55rem 2rem;
  border: 1px solid rgba(var(--black-color-rgb), 0.1);
  border-radius: 0.55rem;
  background: rgba(var(--black-color-rgb), 0.025);
  font-family: "Outfit", sans-serif;
  font-size: 0.85rem;
  color: var(--text-color);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-sizing: border-box;
}

.fp-search-input::placeholder {
  color: var(--color-gray-400);
}

.fp-search-input:focus {
  background: var(--white-color);
  border-color: rgba(var(--primary-color-rgb), 0.4);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.12);
}

.fp-search-clear {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(var(--black-color-rgb), 0.06);
  color: var(--color-gray-500);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}

.fp-search-clear:hover {
  background: rgba(var(--black-color-rgb), 0.12);
  color: var(--color-gray-700);
}

.fp-font-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 320px;
  overflow-y: auto;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
}

.fp-font-list::-webkit-scrollbar {
  width: 4px;
}
.fp-font-list::-webkit-scrollbar-thumb {
  background: rgba(var(--black-color-rgb), 0.1);
  border-radius: 2px;
}

.fp-font-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(var(--black-color-rgb), 0.06);
  background: var(--white-color);
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease;
  text-align: left;
}

.fp-font-option:hover {
  background: rgba(var(--black-color-rgb), 0.025);
  border-color: rgba(var(--black-color-rgb), 0.12);
}

.fp-font-option.active {
  border-color: rgba(var(--primary-color-rgb), 0.45);
  background: rgba(var(--primary-color-rgb), 0.05);
}

.fp-font-sample {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
  background: rgba(var(--black-color-rgb), 0.04);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-gray-800);
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.fp-font-option.active .fp-font-sample {
  background: rgba(var(--primary-color-rgb), 0.12);
  color: var(--modal-accent);
}

.fp-font-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.fp-font-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: -0.005em;
}

.fp-font-hint {
  font-size: 0.72rem;
  color: var(--color-gray-500);
  font-weight: 450;
}

.fp-font-check {
  width: 18px;
  height: 18px;
  color: var(--modal-accent);
  opacity: 0;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.fp-font-option.active .fp-font-check {
  opacity: 1;
}

.fp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0;
  color: var(--color-gray-500);
}

.fp-empty-icon {
  width: 22px;
  height: 22px;
  color: var(--color-gray-400);
}

.fp-empty-text {
  font-size: 0.82rem;
}

.fp-custom-upload {
  position: relative;
  cursor: pointer;
  border-radius: 0.65rem;
  overflow: hidden;
}

.fp-custom-inner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.65rem;
  border: 1.5px dashed rgba(var(--black-color-rgb), 0.14);
  background: rgba(var(--black-color-rgb), 0.02);
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.fp-custom-upload:hover .fp-custom-inner {
  border-color: rgba(var(--primary-color-rgb), 0.4);
  background: rgba(var(--primary-color-rgb), 0.04);
}

.fp-custom-icon {
  width: 18px;
  height: 18px;
  color: var(--color-gray-500);
}

.fp-custom-labels {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.fp-custom-text {
  font-size: 0.85rem;
  color: var(--text-color);
  font-weight: 600;
}

.fp-custom-hint {
  font-size: 0.7rem;
  color: var(--color-gray-500);
  font-weight: 450;
}
